Skip to content

Commit

Permalink
Fix opentok#196: Refactor iOS SDK installation do use CocoaPods.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaioMelo8 committed Oct 6, 2023
1 parent e947c7e commit c1f4037
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 120 deletions.
78 changes: 17 additions & 61 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
},
"dependencies": {
"@opentok/client": "2.19.2",
"exec": "^0.2.0",
"tar": "^2.0.0"
"exec": "^0.2.0"
},
"devDependencies": {
"grunt": "^0.4.5",
Expand Down
34 changes: 9 additions & 25 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,38 +40,22 @@

<!-- ios -->
<platform name="ios">
<hook type="before_plugin_install" src="scripts/downloadiOSSDK.js" />
<asset src="www/opentok.js" target="opentok.js" />

<header-file src="src/ios/UIView+Category.h" />
<source-file src="src/ios/UIView+Category.m" />
<header-file src="src/ios/OpenTokPlugin.h" />
<source-file src="src/ios/OpenTokPlugin.m" />

<framework src="libstdc++.dylib" />
<framework src="libc++.dylib" />
<framework src="libxml2.dylib" />
<framework src="libsqlite3.dylib" />
<framework src="libpthread.dylib" />
<framework src="VideoToolbox.framework" />
<framework src="src/ios/OpenTok.framework" custom="true" />
<framework src="AudioToolbox.framework" />
<framework src="CoreData.framework" />
<framework src="AVFoundation.framework" />
<framework src="CoreGraphics.framework" />
<framework src="CoreMedia.framework" />
<framework src="CoreVideo.framework" />
<framework src="OpenGLES.framework" />
<framework src="SystemConfiguration.framework" />
<framework src="CoreTelephony.framework" />
<framework src="GLKit.framework" />
<framework src="EventKit.framework" />
<framework src="QuartzCore.framework" />
<framework src="MapKit.framework" />
<framework src="UIKit.framework" />
<framework src="Foundation.framework" />
<framework src="Security.framework" />
<framework src="CFNetwork.framework" />
<!-- Opentok native iOS SDK -->
<podspec>
<config>
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<pod name="OpenTok" spec="2.19.0" />
</pods>
</podspec>

<!-- Add support for background audio to the plist -->
<!-- https://tokbox.com/developer/sdks/ios/background-state.html -->
Expand Down
32 changes: 0 additions & 32 deletions scripts/downloadiOSSDK.js

This file was deleted.

0 comments on commit c1f4037

Please sign in to comment.