Skip to content

Commit

Permalink
Added loading spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
abritopach committed Jun 26, 2018
1 parent cbfc55d commit 59fa0f9
Show file tree
Hide file tree
Showing 52 changed files with 3,402 additions and 692 deletions.
1 change: 1 addition & 0 deletions CapacitorYoutubePlayer.podspec
Expand Up @@ -11,4 +11,5 @@
s.ios.deployment_target = '10.0'
s.dependency 'Capacitor'
s.dependency 'YouTubePlayer'
s.dependency 'SVProgressHUD'
end
2 changes: 2 additions & 0 deletions ios/Plugin/Plugin.xcodeproj/project.pbxproj
Expand Up @@ -288,13 +288,15 @@
"${BUILT_PRODUCTS_DIR}/Capacitor/Capacitor.framework",
"${BUILT_PRODUCTS_DIR}/CapacitorCordova/Cordova.framework",
"${BUILT_PRODUCTS_DIR}/GCDWebServer/GCDWebServer.framework",
"${BUILT_PRODUCTS_DIR}/SVProgressHUD/SVProgressHUD.framework",
"${BUILT_PRODUCTS_DIR}/YouTubePlayer/YouTubePlayer.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Capacitor.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Cordova.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GCDWebServer.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SVProgressHUD.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/YouTubePlayer.framework",
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
Expand Up @@ -7,7 +7,7 @@
<key>Plugin.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>6</integer>
<integer>7</integer>
</dict>
</dict>
</dict>
Expand Down
Binary file not shown.
6 changes: 5 additions & 1 deletion ios/Plugin/Plugin/YPViewController.swift
Expand Up @@ -8,6 +8,7 @@

import UIKit
import YouTubePlayer
import SVProgressHUD

public class YPViewController: UIViewController, YouTubePlayerDelegate {

Expand Down Expand Up @@ -44,6 +45,9 @@ public class YPViewController: UIViewController, YouTubePlayerDelegate {
print("[Youtube Player Plugin Native iOS]: JSONSerialization.isValidJSONObject");

if let dictionary = self.options as? [String: Any] {

SVProgressHUD.show()

// treat it as a string key dictionary.
let videoId = dictionary["videoId"] as! String
let width = dictionary["width"] as! Int
Expand Down Expand Up @@ -90,7 +94,7 @@ public class YPViewController: UIViewController, YouTubePlayerDelegate {

public func playerReady(_ youtubePlayer: YouTubePlayerView){
print("[Youtube Player Plugin Native iOS]: playerReady")
// SVProgressHUD.dismiss()
SVProgressHUD.dismiss()

}
}
2 changes: 2 additions & 0 deletions ios/Plugin/Podfile
Expand Up @@ -8,11 +8,13 @@ target 'Plugin' do
# Pods for IonicRunner
pod 'Capacitor'
pod 'YouTubePlayer'
pod 'SVProgressHUD'
end

target 'PluginTests' do
use_frameworks!

pod 'Capacitor'
pod 'YouTubePlayer'
pod 'SVProgressHUD'
end
6 changes: 5 additions & 1 deletion ios/Plugin/Podfile.lock
Expand Up @@ -6,25 +6,29 @@ PODS:
- GCDWebServer (3.4.2):
- GCDWebServer/Core (= 3.4.2)
- GCDWebServer/Core (3.4.2)
- SVProgressHUD (2.2.5)
- YouTubePlayer (0.4.0)

DEPENDENCIES:
- Capacitor
- SVProgressHUD
- YouTubePlayer

SPEC REPOS:
https://github.com/cocoapods/specs.git:
- Capacitor
- CapacitorCordova
- GCDWebServer
- SVProgressHUD
- YouTubePlayer

SPEC CHECKSUMS:
Capacitor: b37060b0b2685257bedbc69e49a54a74ef30fb9a
CapacitorCordova: a923a32bc7ad5f1f3d69664ca86ff69580343ed3
GCDWebServer: 8d67ee9f634b4bb91eb4b8aee440318a5fc6debd
SVProgressHUD: 1428aafac632c1f86f62aa4243ec12008d7a51d6
YouTubePlayer: 028451f6772f372d4759866db99824c676ac1473

PODFILE CHECKSUM: be100a1308831fa9a20740ec4ece704faf4e20db
PODFILE CHECKSUM: 0a84269aa2209cfcada817e032d1c259b4393b0c

COCOAPODS: 1.5.3
6 changes: 5 additions & 1 deletion ios/Plugin/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,571 changes: 902 additions & 669 deletions ios/Plugin/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions ios/Plugin/Pods/SVProgressHUD/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 59fa0f9

Please sign in to comment.