Skip to content

Commit 6dda5a2

Browse files
committed
iOS support
1 parent 487abc6 commit 6dda5a2

14 files changed

+3830
-9
lines changed

Diff for: plugin.xml

+46-1
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,60 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="pushy-cordova" version="1.0.4">
3-
<name>Pushy SDK for Cordova</name>
3+
<name>PushySDK</name>
44
<description>The official Pushy SDK for Cordova apps.</description>
55
<license>Apache 2.0</license>
66
<keywords>pushy pushy.me sdk cordova phonegap ionic</keywords>
7+
8+
<!-- Supported Platforms -->
79
<engines>
10+
<engine name="cordova-ios" version=">=4.3.0" />
811
<engine name="cordova-android" version=">=4.0.0" />
912
</engines>
13+
14+
<!-- Pushy JS Module -->
1015
<js-module src="www/Pushy.js" name="Pushy">
1116
<clobbers target="Pushy" />
1217
</js-module>
18+
19+
<!-- iOS -->
20+
<platform name="ios">
21+
<!-- iOS Package -->
22+
<config-file target="config.xml" parent="/*">
23+
<feature name="PushyPlugin">
24+
<param name="ios-package" value="PushyPlugin"/>
25+
</feature>
26+
</config-file>
27+
28+
<!-- Cordova Swift Support -->
29+
<dependency id="cordova-plugin-add-swift-support" version="1.7.2"/>
30+
31+
<!-- Pushy Cordova Plugin -->
32+
<source-file src="src/ios/PushyPlugin.swift" />
33+
34+
<!-- Pushy iOS SDK Source Files -->
35+
<!-- The official Pushy iOS SDK pod cannot be referenced directly due to lack of support from Cordova -->
36+
<source-file src="src/ios/Pushy.swift" />
37+
<source-file src="src/ios/PushyConfig.swift" />
38+
<source-file src="src/ios/PushyEnvironment.swift" />
39+
<source-file src="src/ios/PushyHTTP.swift" />
40+
<source-file src="src/ios/PushyKeychain.swift" />
41+
<source-file src="src/ios/PushyNetworkException.swift" />
42+
<source-file src="src/ios/PushyPubSubException.swift" />
43+
<source-file src="src/ios/PushyRegistrationException.swift" />
44+
<source-file src="src/ios/PushyResponseException.swift" />
45+
<source-file src="src/ios/PushySettings.swift" />
46+
<source-file src="src/ios/PushySwizzler.swift" />
47+
48+
<!-- APS environment injection -->
49+
<config-file target="*-Debug.plist" parent="aps-environment">
50+
<string>development</string>
51+
</config-file>
52+
<config-file target="*-Release.plist" parent="aps-environment">
53+
<string>production</string>
54+
</config-file>
55+
</platform>
56+
57+
<!-- Android -->
1358
<platform name="android">
1459
<!-- Pushy SDK -->
1560
<framework src="me.pushy:sdk:1.0.31" />

0 commit comments

Comments
 (0)