Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

capacitor-youtube-player

Package Overview
Dependencies
Maintainers
2
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capacitor-youtube-player - npm Package Compare versions

Comparing version
1.0.5
to
1.0.6
+6
-5
android/build.gradle
ext {
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.1'
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.2.0'
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.2'
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.3.0'
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.4.0'
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.3'
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.4.0'
rxjavaVersion = project.hasProperty('rxjavaVersion') ? rootProject.ext.rxjavaVersion : '2.2.21'
}

@@ -63,3 +64,3 @@

implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
implementation 'io.reactivex.rxjava2:rxjava:2.2.20'
implementation "io.reactivex.rxjava2:rxjava:$rxjavaVersion"
implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'], exclude: [])

@@ -66,0 +67,0 @@ testImplementation "junit:junit:$junitVersion"

@@ -29,2 +29,3 @@ import Foundation

"videoId" : call.getString("videoId") ?? nil,
"fullscreen" : call.getBool("fullscreen") ?? false,
"playerSize" : call.getObject("playerSize") ?? nil,

@@ -31,0 +32,0 @@ "playerVars": call.getObject("playerVars") ?? nil

@@ -39,2 +39,4 @@ //

let videoId = dictionary["videoId"] as! String
let fullscreen = dictionary["fullscreen"] as! Bool
print("[Youtube Player Plugin Native iOS]: fullscreen", fullscreen)
// let playerVars = dictionary["playerVars"] as! [String: Any]

@@ -49,3 +51,3 @@ var playerSize = dictionary["playerSize"] as! [String: Int]

youtubePlayer.loadVideoID(videoId);
youtubePlayer.loadVideoID(videoId, fullscreen: fullscreen)
}

@@ -64,6 +66,6 @@ }

if (playerSize["height"]! > Int(UIScreen.main.bounds.height)) {
playerSize["height"] = Int(UIScreen.main.bounds.height);
playerSize["height"] = Int(UIScreen.main.bounds.height)
}
if (playerSize["width"]! > Int(UIScreen.main.bounds.width)) {
playerSize["width"] = Int(UIScreen.main.bounds.width);
playerSize["width"] = Int(UIScreen.main.bounds.width)
}

@@ -70,0 +72,0 @@ return playerSize;

{
"name": "capacitor-youtube-player",
"version": "1.0.5",
"version": "1.0.6",
"description": "Capacitor Youtube Player",

@@ -36,3 +36,3 @@ "main": "dist/plugin.cjs.js",

"@ionic/swiftlint-config": "^1.1.2",
"eslint": "^8.2.0",
"eslint": "^7.32.0",
"prettier": "^2.4.1",

@@ -39,0 +39,0 @@ "prettier-plugin-java": "^1.6.0",