@mustafaj/capacitor-plugin-playlist 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/CapacitorPluginPlaylist.podspec +17 -0
  2. package/README.md +248 -0
  3. package/android/.project +34 -0
  4. package/android/build.gradle +69 -0
  5. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  6. package/android/gradle/wrapper/gradle-wrapper.properties +7 -0
  7. package/android/gradle.properties +22 -0
  8. package/android/gradlew +251 -0
  9. package/android/gradlew.bat +94 -0
  10. package/android/proguard-rules.pro +21 -0
  11. package/android/settings.gradle +2 -0
  12. package/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java +26 -0
  13. package/android/src/main/AndroidManifest.xml +4 -0
  14. package/android/src/main/java/org/dwbn/plugins/playlist/App.kt +19 -0
  15. package/android/src/main/java/org/dwbn/plugins/playlist/FakeR.kt +39 -0
  16. package/android/src/main/java/org/dwbn/plugins/playlist/OnStatusCallback.kt +34 -0
  17. package/android/src/main/java/org/dwbn/plugins/playlist/OnStatusReportListener.java +7 -0
  18. package/android/src/main/java/org/dwbn/plugins/playlist/PlaylistItemOptions.java +52 -0
  19. package/android/src/main/java/org/dwbn/plugins/playlist/PlaylistPlugin.kt +447 -0
  20. package/android/src/main/java/org/dwbn/plugins/playlist/RmxAudioErrorType.java +13 -0
  21. package/android/src/main/java/org/dwbn/plugins/playlist/RmxAudioPlayer.java +487 -0
  22. package/android/src/main/java/org/dwbn/plugins/playlist/RmxAudioStatusMessage.java +35 -0
  23. package/android/src/main/java/org/dwbn/plugins/playlist/RmxConstants.java +42 -0
  24. package/android/src/main/java/org/dwbn/plugins/playlist/TrackRemovalItem.java +12 -0
  25. package/android/src/main/java/org/dwbn/plugins/playlist/data/AudioTrack.kt +94 -0
  26. package/android/src/main/java/org/dwbn/plugins/playlist/manager/MediaControlsListener.kt +13 -0
  27. package/android/src/main/java/org/dwbn/plugins/playlist/manager/Options.kt +77 -0
  28. package/android/src/main/java/org/dwbn/plugins/playlist/manager/PlaylistManager.kt +308 -0
  29. package/android/src/main/java/org/dwbn/plugins/playlist/notification/PlaylistNotificationProvider.kt +26 -0
  30. package/android/src/main/java/org/dwbn/plugins/playlist/playlist/AudioApi.kt +114 -0
  31. package/android/src/main/java/org/dwbn/plugins/playlist/playlist/AudioPlaylistHandler.java +146 -0
  32. package/android/src/main/java/org/dwbn/plugins/playlist/playlist/BaseMediaApi.kt +36 -0
  33. package/android/src/main/java/org/dwbn/plugins/playlist/service/MediaImageProvider.kt +83 -0
  34. package/android/src/main/java/org/dwbn/plugins/playlist/service/MediaService.kt +98 -0
  35. package/android/src/main/res/.gitkeep +0 -0
  36. package/android/src/main/res/drawable/ic_closed_caption_white_24dp.xml +9 -0
  37. package/android/src/main/res/drawable/ic_demo_icon_adaptive.xml +15 -0
  38. package/android/src/main/res/drawable/ic_launcher_background.xml +48 -0
  39. package/android/src/main/res/drawable/ic_launcher_foreground.xml +22 -0
  40. package/android/src/main/res/drawable/ic_notification_icon.png +0 -0
  41. package/android/src/main/res/layout/bridge_layout_main.xml +15 -0
  42. package/android/src/main/res/values/colors.xml +3 -0
  43. package/android/src/main/res/values/strings.xml +3 -0
  44. package/android/src/main/res/values/styles.xml +3 -0
  45. package/android/src/test/java/com/getcapacitor/ExampleUnitTest.java +18 -0
  46. package/dist/docs.json +2071 -0
  47. package/dist/esm/Constants.d.ts +164 -0
  48. package/dist/esm/Constants.js +175 -0
  49. package/dist/esm/Constants.js.map +1 -0
  50. package/dist/esm/RmxAudioPlayer.d.ts +181 -0
  51. package/dist/esm/RmxAudioPlayer.js +344 -0
  52. package/dist/esm/RmxAudioPlayer.js.map +1 -0
  53. package/dist/esm/definitions.d.ts +78 -0
  54. package/dist/esm/definitions.js +2 -0
  55. package/dist/esm/definitions.js.map +1 -0
  56. package/dist/esm/index.d.ts +5 -0
  57. package/dist/esm/index.js +6 -0
  58. package/dist/esm/index.js.map +1 -0
  59. package/dist/esm/interfaces.d.ts +246 -0
  60. package/dist/esm/interfaces.js +2 -0
  61. package/dist/esm/interfaces.js.map +1 -0
  62. package/dist/esm/plugin.d.ts +3 -0
  63. package/dist/esm/plugin.js +13 -0
  64. package/dist/esm/plugin.js.map +1 -0
  65. package/dist/esm/utils.d.ts +15 -0
  66. package/dist/esm/utils.js +48 -0
  67. package/dist/esm/utils.js.map +1 -0
  68. package/dist/esm/web.d.ts +54 -0
  69. package/dist/esm/web.js +409 -0
  70. package/dist/esm/web.js.map +1 -0
  71. package/dist/plugin.cjs.js +993 -0
  72. package/dist/plugin.cjs.js.map +1 -0
  73. package/dist/plugin.js +996 -0
  74. package/dist/plugin.js.map +1 -0
  75. package/ios/Plugin/AVBidirectionalQueuePlayer.swift +269 -0
  76. package/ios/Plugin/AudioTrack.swift +63 -0
  77. package/ios/Plugin/Constants.swift +39 -0
  78. package/ios/Plugin/DispatchQueue.swift +47 -0
  79. package/ios/Plugin/Info.plist +24 -0
  80. package/ios/Plugin/Plugin.h +10 -0
  81. package/ios/Plugin/Plugin.m +30 -0
  82. package/ios/Plugin/Plugin.swift +208 -0
  83. package/ios/Plugin/RmxAudioPlayer.swift +1150 -0
  84. package/ios/Plugin.xcodeproj/project.pbxproj +574 -0
  85. package/ios/Plugin.xcworkspace/contents.xcworkspacedata +10 -0
  86. package/ios/Plugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  87. package/ios/PluginTests/Info.plist +22 -0
  88. package/ios/PluginTests/PluginTests.swift +35 -0
  89. package/ios/Podfile +16 -0
  90. package/package.json +89 -0
@@ -0,0 +1,574 @@
1
+ // !$*UTF8*$!
2
+ {
3
+ archiveVersion = 1;
4
+ classes = {
5
+ };
6
+ objectVersion = 48;
7
+ objects = {
8
+
9
+ /* Begin PBXBuildFile section */
10
+ 03FC29A292ACC40490383A1F /* Pods_Plugin.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B2A61DA5A1F2DD4F959604D /* Pods_Plugin.framework */; };
11
+ 20C0B05DCFC8E3958A738AF2 /* Pods_PluginTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F6753A823D3815DB436415E3 /* Pods_PluginTests.framework */; };
12
+ 50ADFF92201F53D600D50D53 /* Plugin.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50ADFF88201F53D600D50D53 /* Plugin.framework */; };
13
+ 50ADFF97201F53D600D50D53 /* PluginTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50ADFF96201F53D600D50D53 /* PluginTests.swift */; };
14
+ 50ADFF99201F53D600D50D53 /* Plugin.h in Headers */ = {isa = PBXBuildFile; fileRef = 50ADFF8B201F53D600D50D53 /* Plugin.h */; settings = {ATTRIBUTES = (Public, ); }; };
15
+ 50ADFFA42020D75100D50D53 /* Capacitor.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50ADFFA52020D75100D50D53 /* Capacitor.framework */; };
16
+ 50ADFFA82020EE4F00D50D53 /* Plugin.m in Sources */ = {isa = PBXBuildFile; fileRef = 50ADFFA72020EE4F00D50D53 /* Plugin.m */; };
17
+ 50E1A94820377CB70090CE1A /* Plugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50E1A94720377CB70090CE1A /* Plugin.swift */; };
18
+ 513CD8672A5D16D300BDE4DE /* DispatchQueue.swift in Sources */ = {isa = PBXBuildFile; fileRef = 513CD8622A5D16D300BDE4DE /* DispatchQueue.swift */; };
19
+ 513CD8682A5D16D300BDE4DE /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 513CD8632A5D16D300BDE4DE /* Constants.swift */; };
20
+ 513CD8692A5D16D300BDE4DE /* AVBidirectionalQueuePlayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 513CD8642A5D16D300BDE4DE /* AVBidirectionalQueuePlayer.swift */; };
21
+ 513CD86A2A5D16D300BDE4DE /* RmxAudioPlayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 513CD8652A5D16D300BDE4DE /* RmxAudioPlayer.swift */; };
22
+ 513CD86B2A5D16D300BDE4DE /* AudioTrack.swift in Sources */ = {isa = PBXBuildFile; fileRef = 513CD8662A5D16D300BDE4DE /* AudioTrack.swift */; };
23
+ /* End PBXBuildFile section */
24
+
25
+ /* Begin PBXContainerItemProxy section */
26
+ 50ADFF93201F53D600D50D53 /* PBXContainerItemProxy */ = {
27
+ isa = PBXContainerItemProxy;
28
+ containerPortal = 50ADFF7F201F53D600D50D53 /* Project object */;
29
+ proxyType = 1;
30
+ remoteGlobalIDString = 50ADFF87201F53D600D50D53;
31
+ remoteInfo = Plugin;
32
+ };
33
+ /* End PBXContainerItemProxy section */
34
+
35
+ /* Begin PBXFileReference section */
36
+ 3B2A61DA5A1F2DD4F959604D /* Pods_Plugin.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Plugin.framework; sourceTree = BUILT_PRODUCTS_DIR; };
37
+ 50ADFF88201F53D600D50D53 /* Plugin.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Plugin.framework; sourceTree = BUILT_PRODUCTS_DIR; };
38
+ 50ADFF8B201F53D600D50D53 /* Plugin.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Plugin.h; sourceTree = "<group>"; };
39
+ 50ADFF8C201F53D600D50D53 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
40
+ 50ADFF91201F53D600D50D53 /* PluginTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PluginTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
41
+ 50ADFF96201F53D600D50D53 /* PluginTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PluginTests.swift; sourceTree = "<group>"; };
42
+ 50ADFF98201F53D600D50D53 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
43
+ 50ADFFA52020D75100D50D53 /* Capacitor.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = Capacitor.framework; sourceTree = BUILT_PRODUCTS_DIR; };
44
+ 50ADFFA72020EE4F00D50D53 /* Plugin.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Plugin.m; sourceTree = "<group>"; };
45
+ 50E1A94720377CB70090CE1A /* Plugin.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Plugin.swift; sourceTree = "<group>"; };
46
+ 513CD8622A5D16D300BDE4DE /* DispatchQueue.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DispatchQueue.swift; sourceTree = "<group>"; };
47
+ 513CD8632A5D16D300BDE4DE /* Constants.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Constants.swift; sourceTree = "<group>"; };
48
+ 513CD8642A5D16D300BDE4DE /* AVBidirectionalQueuePlayer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AVBidirectionalQueuePlayer.swift; sourceTree = "<group>"; };
49
+ 513CD8652A5D16D300BDE4DE /* RmxAudioPlayer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RmxAudioPlayer.swift; sourceTree = "<group>"; };
50
+ 513CD8662A5D16D300BDE4DE /* AudioTrack.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AudioTrack.swift; sourceTree = "<group>"; };
51
+ 5E23F77F099397094342571A /* Pods-Plugin.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Plugin.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Plugin/Pods-Plugin.debug.xcconfig"; sourceTree = "<group>"; };
52
+ 91781294A431A2A7CC6EB714 /* Pods-Plugin.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Plugin.release.xcconfig"; path = "Pods/Target Support Files/Pods-Plugin/Pods-Plugin.release.xcconfig"; sourceTree = "<group>"; };
53
+ 96ED1B6440D6672E406C8D19 /* Pods-PluginTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PluginTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.debug.xcconfig"; sourceTree = "<group>"; };
54
+ F65BB2953ECE002E1EF3E424 /* Pods-PluginTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PluginTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.release.xcconfig"; sourceTree = "<group>"; };
55
+ F6753A823D3815DB436415E3 /* Pods_PluginTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_PluginTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
56
+ /* End PBXFileReference section */
57
+
58
+ /* Begin PBXFrameworksBuildPhase section */
59
+ 50ADFF84201F53D600D50D53 /* Frameworks */ = {
60
+ isa = PBXFrameworksBuildPhase;
61
+ buildActionMask = 2147483647;
62
+ files = (
63
+ 50ADFFA42020D75100D50D53 /* Capacitor.framework in Frameworks */,
64
+ 03FC29A292ACC40490383A1F /* Pods_Plugin.framework in Frameworks */,
65
+ );
66
+ runOnlyForDeploymentPostprocessing = 0;
67
+ };
68
+ 50ADFF8E201F53D600D50D53 /* Frameworks */ = {
69
+ isa = PBXFrameworksBuildPhase;
70
+ buildActionMask = 2147483647;
71
+ files = (
72
+ 50ADFF92201F53D600D50D53 /* Plugin.framework in Frameworks */,
73
+ 20C0B05DCFC8E3958A738AF2 /* Pods_PluginTests.framework in Frameworks */,
74
+ );
75
+ runOnlyForDeploymentPostprocessing = 0;
76
+ };
77
+ /* End PBXFrameworksBuildPhase section */
78
+
79
+ /* Begin PBXGroup section */
80
+ 50ADFF7E201F53D600D50D53 = {
81
+ isa = PBXGroup;
82
+ children = (
83
+ 50ADFF8A201F53D600D50D53 /* Plugin */,
84
+ 50ADFF95201F53D600D50D53 /* PluginTests */,
85
+ 50ADFF89201F53D600D50D53 /* Products */,
86
+ 8C8E7744173064A9F6D438E3 /* Pods */,
87
+ A797B9EFA3DCEFEA1FBB66A9 /* Frameworks */,
88
+ );
89
+ sourceTree = "<group>";
90
+ };
91
+ 50ADFF89201F53D600D50D53 /* Products */ = {
92
+ isa = PBXGroup;
93
+ children = (
94
+ 50ADFF88201F53D600D50D53 /* Plugin.framework */,
95
+ 50ADFF91201F53D600D50D53 /* PluginTests.xctest */,
96
+ );
97
+ name = Products;
98
+ sourceTree = "<group>";
99
+ };
100
+ 50ADFF8A201F53D600D50D53 /* Plugin */ = {
101
+ isa = PBXGroup;
102
+ children = (
103
+ 50E1A94720377CB70090CE1A /* Plugin.swift */,
104
+ 513CD8662A5D16D300BDE4DE /* AudioTrack.swift */,
105
+ 513CD8642A5D16D300BDE4DE /* AVBidirectionalQueuePlayer.swift */,
106
+ 513CD8632A5D16D300BDE4DE /* Constants.swift */,
107
+ 513CD8622A5D16D300BDE4DE /* DispatchQueue.swift */,
108
+ 513CD8652A5D16D300BDE4DE /* RmxAudioPlayer.swift */,
109
+ 50ADFF8B201F53D600D50D53 /* Plugin.h */,
110
+ 50ADFFA72020EE4F00D50D53 /* Plugin.m */,
111
+ 50ADFF8C201F53D600D50D53 /* Info.plist */,
112
+ );
113
+ path = Plugin;
114
+ sourceTree = "<group>";
115
+ };
116
+ 50ADFF95201F53D600D50D53 /* PluginTests */ = {
117
+ isa = PBXGroup;
118
+ children = (
119
+ 50ADFF96201F53D600D50D53 /* PluginTests.swift */,
120
+ 50ADFF98201F53D600D50D53 /* Info.plist */,
121
+ );
122
+ path = PluginTests;
123
+ sourceTree = "<group>";
124
+ };
125
+ 8C8E7744173064A9F6D438E3 /* Pods */ = {
126
+ isa = PBXGroup;
127
+ children = (
128
+ 5E23F77F099397094342571A /* Pods-Plugin.debug.xcconfig */,
129
+ 91781294A431A2A7CC6EB714 /* Pods-Plugin.release.xcconfig */,
130
+ 96ED1B6440D6672E406C8D19 /* Pods-PluginTests.debug.xcconfig */,
131
+ F65BB2953ECE002E1EF3E424 /* Pods-PluginTests.release.xcconfig */,
132
+ );
133
+ name = Pods;
134
+ sourceTree = "<group>";
135
+ };
136
+ A797B9EFA3DCEFEA1FBB66A9 /* Frameworks */ = {
137
+ isa = PBXGroup;
138
+ children = (
139
+ 50ADFFA52020D75100D50D53 /* Capacitor.framework */,
140
+ 3B2A61DA5A1F2DD4F959604D /* Pods_Plugin.framework */,
141
+ F6753A823D3815DB436415E3 /* Pods_PluginTests.framework */,
142
+ );
143
+ name = Frameworks;
144
+ sourceTree = "<group>";
145
+ };
146
+ /* End PBXGroup section */
147
+
148
+ /* Begin PBXHeadersBuildPhase section */
149
+ 50ADFF85201F53D600D50D53 /* Headers */ = {
150
+ isa = PBXHeadersBuildPhase;
151
+ buildActionMask = 2147483647;
152
+ files = (
153
+ 50ADFF99201F53D600D50D53 /* Plugin.h in Headers */,
154
+ );
155
+ runOnlyForDeploymentPostprocessing = 0;
156
+ };
157
+ /* End PBXHeadersBuildPhase section */
158
+
159
+ /* Begin PBXNativeTarget section */
160
+ 50ADFF87201F53D600D50D53 /* Plugin */ = {
161
+ isa = PBXNativeTarget;
162
+ buildConfigurationList = 50ADFF9C201F53D600D50D53 /* Build configuration list for PBXNativeTarget "Plugin" */;
163
+ buildPhases = (
164
+ AB5B3E54B4E897F32C2279DA /* [CP] Check Pods Manifest.lock */,
165
+ 50ADFF83201F53D600D50D53 /* Sources */,
166
+ 50ADFF84201F53D600D50D53 /* Frameworks */,
167
+ 50ADFF85201F53D600D50D53 /* Headers */,
168
+ 50ADFF86201F53D600D50D53 /* Resources */,
169
+ );
170
+ buildRules = (
171
+ );
172
+ dependencies = (
173
+ );
174
+ name = Plugin;
175
+ productName = Plugin;
176
+ productReference = 50ADFF88201F53D600D50D53 /* Plugin.framework */;
177
+ productType = "com.apple.product-type.framework";
178
+ };
179
+ 50ADFF90201F53D600D50D53 /* PluginTests */ = {
180
+ isa = PBXNativeTarget;
181
+ buildConfigurationList = 50ADFF9F201F53D600D50D53 /* Build configuration list for PBXNativeTarget "PluginTests" */;
182
+ buildPhases = (
183
+ 0596884F929ED6F1DE134961 /* [CP] Check Pods Manifest.lock */,
184
+ 50ADFF8D201F53D600D50D53 /* Sources */,
185
+ 50ADFF8E201F53D600D50D53 /* Frameworks */,
186
+ 50ADFF8F201F53D600D50D53 /* Resources */,
187
+ CCA81D3B7E26D0D727D24C84 /* [CP] Embed Pods Frameworks */,
188
+ );
189
+ buildRules = (
190
+ );
191
+ dependencies = (
192
+ 50ADFF94201F53D600D50D53 /* PBXTargetDependency */,
193
+ );
194
+ name = PluginTests;
195
+ productName = PluginTests;
196
+ productReference = 50ADFF91201F53D600D50D53 /* PluginTests.xctest */;
197
+ productType = "com.apple.product-type.bundle.unit-test";
198
+ };
199
+ /* End PBXNativeTarget section */
200
+
201
+ /* Begin PBXProject section */
202
+ 50ADFF7F201F53D600D50D53 /* Project object */ = {
203
+ isa = PBXProject;
204
+ attributes = {
205
+ LastSwiftUpdateCheck = 0920;
206
+ LastUpgradeCheck = 0920;
207
+ ORGANIZATIONNAME = "Max Lynch";
208
+ TargetAttributes = {
209
+ 50ADFF87201F53D600D50D53 = {
210
+ CreatedOnToolsVersion = 9.2;
211
+ LastSwiftMigration = 1100;
212
+ ProvisioningStyle = Automatic;
213
+ };
214
+ 50ADFF90201F53D600D50D53 = {
215
+ CreatedOnToolsVersion = 9.2;
216
+ LastSwiftMigration = 1100;
217
+ ProvisioningStyle = Automatic;
218
+ };
219
+ };
220
+ };
221
+ buildConfigurationList = 50ADFF82201F53D600D50D53 /* Build configuration list for PBXProject "Plugin" */;
222
+ compatibilityVersion = "Xcode 8.0";
223
+ developmentRegion = en;
224
+ hasScannedForEncodings = 0;
225
+ knownRegions = (
226
+ en,
227
+ );
228
+ mainGroup = 50ADFF7E201F53D600D50D53;
229
+ productRefGroup = 50ADFF89201F53D600D50D53 /* Products */;
230
+ projectDirPath = "";
231
+ projectRoot = "";
232
+ targets = (
233
+ 50ADFF87201F53D600D50D53 /* Plugin */,
234
+ 50ADFF90201F53D600D50D53 /* PluginTests */,
235
+ );
236
+ };
237
+ /* End PBXProject section */
238
+
239
+ /* Begin PBXResourcesBuildPhase section */
240
+ 50ADFF86201F53D600D50D53 /* Resources */ = {
241
+ isa = PBXResourcesBuildPhase;
242
+ buildActionMask = 2147483647;
243
+ files = (
244
+ );
245
+ runOnlyForDeploymentPostprocessing = 0;
246
+ };
247
+ 50ADFF8F201F53D600D50D53 /* Resources */ = {
248
+ isa = PBXResourcesBuildPhase;
249
+ buildActionMask = 2147483647;
250
+ files = (
251
+ );
252
+ runOnlyForDeploymentPostprocessing = 0;
253
+ };
254
+ /* End PBXResourcesBuildPhase section */
255
+
256
+ /* Begin PBXShellScriptBuildPhase section */
257
+ 0596884F929ED6F1DE134961 /* [CP] Check Pods Manifest.lock */ = {
258
+ isa = PBXShellScriptBuildPhase;
259
+ buildActionMask = 2147483647;
260
+ files = (
261
+ );
262
+ inputPaths = (
263
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
264
+ "${PODS_ROOT}/Manifest.lock",
265
+ );
266
+ name = "[CP] Check Pods Manifest.lock";
267
+ outputPaths = (
268
+ "$(DERIVED_FILE_DIR)/Pods-PluginTests-checkManifestLockResult.txt",
269
+ );
270
+ runOnlyForDeploymentPostprocessing = 0;
271
+ shellPath = /bin/sh;
272
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
273
+ showEnvVarsInLog = 0;
274
+ };
275
+ AB5B3E54B4E897F32C2279DA /* [CP] Check Pods Manifest.lock */ = {
276
+ isa = PBXShellScriptBuildPhase;
277
+ buildActionMask = 2147483647;
278
+ files = (
279
+ );
280
+ inputPaths = (
281
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
282
+ "${PODS_ROOT}/Manifest.lock",
283
+ );
284
+ name = "[CP] Check Pods Manifest.lock";
285
+ outputPaths = (
286
+ "$(DERIVED_FILE_DIR)/Pods-Plugin-checkManifestLockResult.txt",
287
+ );
288
+ runOnlyForDeploymentPostprocessing = 0;
289
+ shellPath = /bin/sh;
290
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
291
+ showEnvVarsInLog = 0;
292
+ };
293
+ CCA81D3B7E26D0D727D24C84 /* [CP] Embed Pods Frameworks */ = {
294
+ isa = PBXShellScriptBuildPhase;
295
+ buildActionMask = 2147483647;
296
+ files = (
297
+ );
298
+ inputPaths = (
299
+ "${PODS_ROOT}/Target Support Files/Pods-PluginTests/Pods-PluginTests-frameworks.sh",
300
+ "${BUILT_PRODUCTS_DIR}/Capacitor/Capacitor.framework",
301
+ "${BUILT_PRODUCTS_DIR}/CapacitorCordova/Cordova.framework",
302
+ );
303
+ name = "[CP] Embed Pods Frameworks";
304
+ outputPaths = (
305
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Capacitor.framework",
306
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Cordova.framework",
307
+ );
308
+ runOnlyForDeploymentPostprocessing = 0;
309
+ shellPath = /bin/sh;
310
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-PluginTests/Pods-PluginTests-frameworks.sh\"\n";
311
+ showEnvVarsInLog = 0;
312
+ };
313
+ /* End PBXShellScriptBuildPhase section */
314
+
315
+ /* Begin PBXSourcesBuildPhase section */
316
+ 50ADFF83201F53D600D50D53 /* Sources */ = {
317
+ isa = PBXSourcesBuildPhase;
318
+ buildActionMask = 2147483647;
319
+ files = (
320
+ 513CD8692A5D16D300BDE4DE /* AVBidirectionalQueuePlayer.swift in Sources */,
321
+ 50E1A94820377CB70090CE1A /* Plugin.swift in Sources */,
322
+ 50ADFFA82020EE4F00D50D53 /* Plugin.m in Sources */,
323
+ 513CD86A2A5D16D300BDE4DE /* RmxAudioPlayer.swift in Sources */,
324
+ 513CD8672A5D16D300BDE4DE /* DispatchQueue.swift in Sources */,
325
+ 513CD86B2A5D16D300BDE4DE /* AudioTrack.swift in Sources */,
326
+ 513CD8682A5D16D300BDE4DE /* Constants.swift in Sources */,
327
+ );
328
+ runOnlyForDeploymentPostprocessing = 0;
329
+ };
330
+ 50ADFF8D201F53D600D50D53 /* Sources */ = {
331
+ isa = PBXSourcesBuildPhase;
332
+ buildActionMask = 2147483647;
333
+ files = (
334
+ 50ADFF97201F53D600D50D53 /* PluginTests.swift in Sources */,
335
+ );
336
+ runOnlyForDeploymentPostprocessing = 0;
337
+ };
338
+ /* End PBXSourcesBuildPhase section */
339
+
340
+ /* Begin PBXTargetDependency section */
341
+ 50ADFF94201F53D600D50D53 /* PBXTargetDependency */ = {
342
+ isa = PBXTargetDependency;
343
+ target = 50ADFF87201F53D600D50D53 /* Plugin */;
344
+ targetProxy = 50ADFF93201F53D600D50D53 /* PBXContainerItemProxy */;
345
+ };
346
+ /* End PBXTargetDependency section */
347
+
348
+ /* Begin XCBuildConfiguration section */
349
+ 50ADFF9A201F53D600D50D53 /* Debug */ = {
350
+ isa = XCBuildConfiguration;
351
+ buildSettings = {
352
+ ALWAYS_SEARCH_USER_PATHS = NO;
353
+ CLANG_ANALYZER_NONNULL = YES;
354
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
355
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
356
+ CLANG_CXX_LIBRARY = "libc++";
357
+ CLANG_ENABLE_MODULES = YES;
358
+ CLANG_ENABLE_OBJC_ARC = YES;
359
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
360
+ CLANG_WARN_BOOL_CONVERSION = YES;
361
+ CLANG_WARN_COMMA = YES;
362
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
363
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
364
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
365
+ CLANG_WARN_EMPTY_BODY = YES;
366
+ CLANG_WARN_ENUM_CONVERSION = YES;
367
+ CLANG_WARN_INFINITE_RECURSION = YES;
368
+ CLANG_WARN_INT_CONVERSION = YES;
369
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
370
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
371
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
372
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
373
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
374
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
375
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
376
+ CLANG_WARN_UNREACHABLE_CODE = YES;
377
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
378
+ CODE_SIGN_IDENTITY = "iPhone Developer";
379
+ COPY_PHASE_STRIP = NO;
380
+ CURRENT_PROJECT_VERSION = 1;
381
+ DEBUG_INFORMATION_FORMAT = dwarf;
382
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
383
+ ENABLE_TESTABILITY = YES;
384
+ GCC_C_LANGUAGE_STANDARD = gnu11;
385
+ GCC_DYNAMIC_NO_PIC = NO;
386
+ GCC_NO_COMMON_BLOCKS = YES;
387
+ GCC_OPTIMIZATION_LEVEL = 0;
388
+ GCC_PREPROCESSOR_DEFINITIONS = (
389
+ "DEBUG=1",
390
+ "$(inherited)",
391
+ );
392
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
393
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
394
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
395
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
396
+ GCC_WARN_UNUSED_FUNCTION = YES;
397
+ GCC_WARN_UNUSED_VARIABLE = YES;
398
+ IPHONEOS_DEPLOYMENT_TARGET = 15.0;
399
+ MTL_ENABLE_DEBUG_INFO = YES;
400
+ ONLY_ACTIVE_ARCH = YES;
401
+ SDKROOT = iphoneos;
402
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
403
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
404
+ VERSIONING_SYSTEM = "apple-generic";
405
+ VERSION_INFO_PREFIX = "";
406
+ };
407
+ name = Debug;
408
+ };
409
+ 50ADFF9B201F53D600D50D53 /* Release */ = {
410
+ isa = XCBuildConfiguration;
411
+ buildSettings = {
412
+ ALWAYS_SEARCH_USER_PATHS = NO;
413
+ CLANG_ANALYZER_NONNULL = YES;
414
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
415
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
416
+ CLANG_CXX_LIBRARY = "libc++";
417
+ CLANG_ENABLE_MODULES = YES;
418
+ CLANG_ENABLE_OBJC_ARC = YES;
419
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
420
+ CLANG_WARN_BOOL_CONVERSION = YES;
421
+ CLANG_WARN_COMMA = YES;
422
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
423
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
424
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
425
+ CLANG_WARN_EMPTY_BODY = YES;
426
+ CLANG_WARN_ENUM_CONVERSION = YES;
427
+ CLANG_WARN_INFINITE_RECURSION = YES;
428
+ CLANG_WARN_INT_CONVERSION = YES;
429
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
430
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
431
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
432
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
433
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
434
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
435
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
436
+ CLANG_WARN_UNREACHABLE_CODE = YES;
437
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
438
+ CODE_SIGN_IDENTITY = "iPhone Developer";
439
+ COPY_PHASE_STRIP = NO;
440
+ CURRENT_PROJECT_VERSION = 1;
441
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
442
+ ENABLE_NS_ASSERTIONS = NO;
443
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
444
+ GCC_C_LANGUAGE_STANDARD = gnu11;
445
+ GCC_NO_COMMON_BLOCKS = YES;
446
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
447
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
448
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
449
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
450
+ GCC_WARN_UNUSED_FUNCTION = YES;
451
+ GCC_WARN_UNUSED_VARIABLE = YES;
452
+ IPHONEOS_DEPLOYMENT_TARGET = 15.0;
453
+ MTL_ENABLE_DEBUG_INFO = NO;
454
+ SDKROOT = iphoneos;
455
+ SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
456
+ VALIDATE_PRODUCT = YES;
457
+ VERSIONING_SYSTEM = "apple-generic";
458
+ VERSION_INFO_PREFIX = "";
459
+ };
460
+ name = Release;
461
+ };
462
+ 50ADFF9D201F53D600D50D53 /* Debug */ = {
463
+ isa = XCBuildConfiguration;
464
+ baseConfigurationReference = 5E23F77F099397094342571A /* Pods-Plugin.debug.xcconfig */;
465
+ buildSettings = {
466
+ CLANG_ENABLE_MODULES = YES;
467
+ CODE_SIGN_IDENTITY = "";
468
+ CODE_SIGN_STYLE = Automatic;
469
+ DEFINES_MODULE = YES;
470
+ DYLIB_COMPATIBILITY_VERSION = 1;
471
+ DYLIB_CURRENT_VERSION = 1;
472
+ DYLIB_INSTALL_NAME_BASE = "@rpath";
473
+ INFOPLIST_FILE = Plugin/Info.plist;
474
+ INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
475
+ IPHONEOS_DEPLOYMENT_TARGET = 15.0;
476
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)";
477
+ ONLY_ACTIVE_ARCH = YES;
478
+ PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin;
479
+ PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
480
+ SKIP_INSTALL = YES;
481
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
482
+ SWIFT_VERSION = 5.0;
483
+ TARGETED_DEVICE_FAMILY = "1,2";
484
+ };
485
+ name = Debug;
486
+ };
487
+ 50ADFF9E201F53D600D50D53 /* Release */ = {
488
+ isa = XCBuildConfiguration;
489
+ baseConfigurationReference = 91781294A431A2A7CC6EB714 /* Pods-Plugin.release.xcconfig */;
490
+ buildSettings = {
491
+ CLANG_ENABLE_MODULES = YES;
492
+ CODE_SIGN_IDENTITY = "";
493
+ CODE_SIGN_STYLE = Automatic;
494
+ DEFINES_MODULE = YES;
495
+ DYLIB_COMPATIBILITY_VERSION = 1;
496
+ DYLIB_CURRENT_VERSION = 1;
497
+ DYLIB_INSTALL_NAME_BASE = "@rpath";
498
+ INFOPLIST_FILE = Plugin/Info.plist;
499
+ INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
500
+ IPHONEOS_DEPLOYMENT_TARGET = 15.0;
501
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)";
502
+ ONLY_ACTIVE_ARCH = NO;
503
+ PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin;
504
+ PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
505
+ SKIP_INSTALL = YES;
506
+ SWIFT_VERSION = 5.0;
507
+ TARGETED_DEVICE_FAMILY = "1,2";
508
+ };
509
+ name = Release;
510
+ };
511
+ 50ADFFA0201F53D600D50D53 /* Debug */ = {
512
+ isa = XCBuildConfiguration;
513
+ baseConfigurationReference = 96ED1B6440D6672E406C8D19 /* Pods-PluginTests.debug.xcconfig */;
514
+ buildSettings = {
515
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
516
+ CODE_SIGN_STYLE = Automatic;
517
+ INFOPLIST_FILE = PluginTests/Info.plist;
518
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
519
+ PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.PluginTests;
520
+ PRODUCT_NAME = "$(TARGET_NAME)";
521
+ SWIFT_VERSION = 5.0;
522
+ TARGETED_DEVICE_FAMILY = "1,2";
523
+ };
524
+ name = Debug;
525
+ };
526
+ 50ADFFA1201F53D600D50D53 /* Release */ = {
527
+ isa = XCBuildConfiguration;
528
+ baseConfigurationReference = F65BB2953ECE002E1EF3E424 /* Pods-PluginTests.release.xcconfig */;
529
+ buildSettings = {
530
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
531
+ CODE_SIGN_STYLE = Automatic;
532
+ INFOPLIST_FILE = PluginTests/Info.plist;
533
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
534
+ PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.PluginTests;
535
+ PRODUCT_NAME = "$(TARGET_NAME)";
536
+ SWIFT_VERSION = 5.0;
537
+ TARGETED_DEVICE_FAMILY = "1,2";
538
+ };
539
+ name = Release;
540
+ };
541
+ /* End XCBuildConfiguration section */
542
+
543
+ /* Begin XCConfigurationList section */
544
+ 50ADFF82201F53D600D50D53 /* Build configuration list for PBXProject "Plugin" */ = {
545
+ isa = XCConfigurationList;
546
+ buildConfigurations = (
547
+ 50ADFF9A201F53D600D50D53 /* Debug */,
548
+ 50ADFF9B201F53D600D50D53 /* Release */,
549
+ );
550
+ defaultConfigurationIsVisible = 0;
551
+ defaultConfigurationName = Release;
552
+ };
553
+ 50ADFF9C201F53D600D50D53 /* Build configuration list for PBXNativeTarget "Plugin" */ = {
554
+ isa = XCConfigurationList;
555
+ buildConfigurations = (
556
+ 50ADFF9D201F53D600D50D53 /* Debug */,
557
+ 50ADFF9E201F53D600D50D53 /* Release */,
558
+ );
559
+ defaultConfigurationIsVisible = 0;
560
+ defaultConfigurationName = Release;
561
+ };
562
+ 50ADFF9F201F53D600D50D53 /* Build configuration list for PBXNativeTarget "PluginTests" */ = {
563
+ isa = XCConfigurationList;
564
+ buildConfigurations = (
565
+ 50ADFFA0201F53D600D50D53 /* Debug */,
566
+ 50ADFFA1201F53D600D50D53 /* Release */,
567
+ );
568
+ defaultConfigurationIsVisible = 0;
569
+ defaultConfigurationName = Release;
570
+ };
571
+ /* End XCConfigurationList section */
572
+ };
573
+ rootObject = 50ADFF7F201F53D600D50D53 /* Project object */;
574
+ }
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Workspace
3
+ version = "1.0">
4
+ <FileRef
5
+ location = "group:Plugin.xcodeproj">
6
+ </FileRef>
7
+ <FileRef
8
+ location = "group:Pods/Pods.xcodeproj">
9
+ </FileRef>
10
+ </Workspace>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>IDEDidComputeMac32BitWarning</key>
6
+ <true/>
7
+ </dict>
8
+ </plist>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>$(DEVELOPMENT_LANGUAGE)</string>
7
+ <key>CFBundleExecutable</key>
8
+ <string>$(EXECUTABLE_NAME)</string>
9
+ <key>CFBundleIdentifier</key>
10
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundleName</key>
14
+ <string>$(PRODUCT_NAME)</string>
15
+ <key>CFBundlePackageType</key>
16
+ <string>BNDL</string>
17
+ <key>CFBundleShortVersionString</key>
18
+ <string>1.0</string>
19
+ <key>CFBundleVersion</key>
20
+ <string>1</string>
21
+ </dict>
22
+ </plist>
@@ -0,0 +1,35 @@
1
+ import XCTest
2
+ import Capacitor
3
+ @testable import Plugin
4
+
5
+ class PluginTests: XCTestCase {
6
+
7
+ override func setUp() {
8
+ super.setUp()
9
+ // Put setup code here. This method is called before the invocation of each test method in the class.
10
+ }
11
+
12
+ override func tearDown() {
13
+ // Put teardown code here. This method is called after the invocation of each test method in the class.
14
+ super.tearDown()
15
+ }
16
+
17
+ func testEcho() {
18
+ // This is an example of a functional test case for a plugin.
19
+ // Use XCTAssert and related functions to verify your tests produce the correct results.
20
+
21
+ let value = "Hello, World!"
22
+ let plugin = MyPlugin()
23
+
24
+ let call = CAPPluginCall(callbackId: "test", options: [
25
+ "value": value
26
+ ], success: { (result, _) in
27
+ let resultValue = result!.data["value"] as? String
28
+ XCTAssertEqual(value, resultValue)
29
+ }, error: { (_) in
30
+ XCTFail("Error shouldn't have been called")
31
+ })
32
+
33
+ plugin.echo(call!)
34
+ }
35
+ }
package/ios/Podfile ADDED
@@ -0,0 +1,16 @@
1
+ platform :ios, '15.0'
2
+
3
+ def capacitor_pods
4
+ # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
5
+ use_frameworks!
6
+ pod 'Capacitor', :path => '../node_modules/@capacitor/ios'
7
+ pod 'CapacitorCordova', :path => '../node_modules/@capacitor/ios'
8
+ end
9
+
10
+ target 'Plugin' do
11
+ capacitor_pods
12
+ end
13
+
14
+ target 'PluginTests' do
15
+ capacitor_pods
16
+ end