-
Notifications
You must be signed in to change notification settings - Fork 112
/
plugin.xml
205 lines (175 loc) · 10.8 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="com.salesforce"
version="12.2.0">
<name>SalesforceMobileSDK Plugins</name>
<description>SalesforceMobileSDK Plugins</description>
<license>Apache 2.0</license>
<keywords>salesforce,oauth,smartstore,mobilesync</keywords>
<repo>https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin</repo>
<js-module src="www/com.salesforce.plugin.oauth.js" name="plugin.oauth"></js-module>
<js-module src="www/com.salesforce.plugin.network.js" name="plugin.network"></js-module>
<js-module src="www/com.salesforce.plugin.sdkinfo.js" name="plugin.sdkinfo"></js-module>
<js-module src="www/com.salesforce.plugin.smartstore.js" name="plugin.smartstore">
<clobbers target="navigator.smartstore" />
</js-module>
<js-module src="www/com.salesforce.plugin.smartstore.client.js" name="plugin.smartstore.client">
<clobbers target="navigator.smartstoreClient" />
</js-module>
<js-module src="www/com.salesforce.plugin.sfaccountmanager.js" name="plugin.sfaccountmanager"></js-module>
<js-module src="www/com.salesforce.plugin.mobilesync.js" name="plugin.mobilesync"></js-module>
<js-module src="www/com.salesforce.util.bootstrap.js" name="util.bootstrap"></js-module>
<js-module src="www/com.salesforce.util.event.js" name="util.event"></js-module>
<js-module src="www/com.salesforce.util.exec.js" name="util.exec"></js-module>
<js-module src="www/com.salesforce.util.logger.js" name="util.logger"></js-module>
<js-module src="www/com.salesforce.util.promiser.js" name="util.promiser"></js-module>
<js-module src="www/com.salesforce.util.push.js" name="util.push"></js-module>
<engines>
<engine name="cordova-ios" version="7.1.1" />
<engine name="cordova-android" version="13.0.0" />
</engines>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<preference name="BackupWebStorage" value="local" />
<preference name="deployment-target" value="16.0" />
<preference name="WKWebViewOnly" value="true" />
<!-- To allow XHR requests with the new Whitelist plugin -->
<allow-navigation href="https://localhost" subdomains="true" />
<allow-navigation href="https://*.force.com" subdomains="true" />
<allow-navigation href="https://*.salesforce.com" subdomains="true" />
<allow-navigation href="https://*.visualforce.com" subdomains="true" />
<allow-navigation href="https://*.documentforce.com" subdomains="true" />
<allow-navigation href="https://*.salesforce-communities.com" subdomains="true" />
<!-- For legacy apps that don't use CSP -->
<access origin="https://localhost" subdomains="true" />
<access origin="https://*.force.com" subdomains="true" />
<access origin="https://*.salesforce.com" subdomains="true" />
<access origin="https://*.visualforce.com" subdomains="true" />
<access origin="https://*.documentforce.com" subdomains="true" />
<access origin="https://*.salesforce-communities.com" subdomains="true" />
<feature name="com.salesforce.oauth"><param name="ios-package" value="SalesforceOAuthPlugin"/></feature>
<feature name="com.salesforce.network"><param name="ios-package" value="SFNetworkPlugin"/></feature>
<feature name="com.salesforce.sdkinfo"><param name="ios-package" value="SFSDKInfoPlugin"/></feature>
<feature name="com.salesforce.sfaccountmanager"><param name="ios-package" value="SFAccountManagerPlugin"/></feature>
<feature name="com.salesforce.smartstore"><param name="ios-package" value="SFSmartStorePlugin"/></feature>
<feature name="com.salesforce.mobilesync"><param name="ios-package" value="SFMobileSyncPlugin"/></feature>
</config-file>
<!-- Entitlements -->
<config-file parent="aps-environment" target="*/Entitlements-Debug.plist">
<string>development</string>
</config-file>
<config-file parent="aps-environment" target="*/Entitlements-Release.plist">
<string>production</string>
</config-file>
<!-- Header files -->
<header-file src="src/ios/classes/UIApplication+SalesforceHybridSDK.h" />
<header-file src="src/ios/classes/InitialViewController.h" />
<!-- Source files -->
<source-file src="src/ios/classes/AppDelegate.m" />
<source-file src="src/ios/classes/UIApplication+SalesforceHybridSDK.m" />
<source-file src="src/ios/classes/InitialViewController.m" />
<!-- Resource bundles -->
<resource-file src="src/ios/resources/SalesforceSDKResources.bundle" />
<resource-file src="src/ios/resources/Images.xcassets" />
<resource-file src="src/ios/resources/SalesforceSDKAssets.xcassets" />
<!-- Mobile SDK frameworks pod specs -->
<podspec>
<config>
<source url="https://cdn.cocoapods.org"/>
</config>
<pods use-frameworks="true">
<pod name="SalesforceHybridSDK" git="https://github.com/forcedotcom/SalesforceMobileSDK-iOS-Hybrid" tag="v12.2.0" />
<pod name="MobileSync" git="https://github.com/forcedotcom/SalesforceMobileSDK-iOS" tag="v12.2.0" />
<pod name="SmartStore" git="https://github.com/forcedotcom/SalesforceMobileSDK-iOS" tag="v12.2.0" />
<pod name="SalesforceSDKCore" git="https://github.com/forcedotcom/SalesforceMobileSDK-iOS" tag="v12.2.0" />
<pod name="SalesforceAnalytics" git="https://github.com/forcedotcom/SalesforceMobileSDK-iOS" tag="v12.2.0" />
<pod name="SalesforceSDKCommon" git="https://github.com/forcedotcom/SalesforceMobileSDK-iOS" tag="v12.2.0" />
<!-- Needed until cordova-ios gets posted to cocoapod.org -->
<pod name="Cordova" git="https://github.com/apache/cordova-ios" tag="7.1.1" />
</pods>
</podspec>
<!-- System frameworks -->
<framework src="libxml2.tbd" />
<framework src="libz.tbd" />
<framework src="AddressBook.framework" weak="true" />
<framework src="AddressBookUI.framework" weak="true" />
<framework src="CoreGraphics.framework" weak="true" />
<framework src="CoreLocation.framework" weak="true" />
<framework src="Foundation.framework" weak="true" />
<framework src="MessageUI.framework" weak="true" />
<framework src="MobileCoreServices.framework" weak="true" />
<framework src="QuartzCore.framework" weak="true" />
<framework src="Security.framework" weak="true" />
<framework src="SystemConfiguration.framework" weak="true" />
<framework src="UIKit.framework" weak="true" />
<framework src="AssetsLibrary.framework" weak="true" />
<framework src="ImageIO.framework" weak="true" />
<!-- Post install script -->
<hook type="after_plugin_install" src="tools/postinstall-ios.js" />
</platform>
<!-- android -->
<platform name="android">
<!-- Fixes the activity tag in the Manifest -->
<edit-config file="app/src/main/AndroidManifest.xml" target="/manifest/application/activity" mode="merge">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
android:label="@string/app_name"
android:name="com.salesforce.androidsdk.phonegap.ui.SalesforceDroidGapActivity"
android:theme="@style/SalesforceSDK_SplashScreen"
android:windowSoftInputMode="adjustResize"
android:launchMode="singleTop"
android:allowBackup="false"
android:exported="true"/>
</edit-config>
<!-- Fixes the application tag in the Manifest -->
<edit-config file="app/src/main/AndroidManifest.xml" target="/manifest/application" mode="merge">
<application android:hardwareAccelerated="true"
android:icon="@drawable/sf__icon"
android:label="@string/app_name"
android:manageSpaceActivity="com.salesforce.androidsdk.ui.ManageSpaceActivity"
android:name="com.salesforce.androidsdk.phonegap.app.HybridApp" />
</edit-config>
<config-file target="res/xml/config.xml" parent="/*">
<!-- To enable Android X -->
<preference name="AndroidXEnabled" value="true" />
<!-- Required for hybrid local apps -->
<preference name="AndroidInsecureFileModeEnabled" value="true" />
<!-- To specify min and target SDK versions -->
<preference name="android-minSdkVersion" value="26" />
<preference name="android-targetSdkVersion" value="34" />
<!-- To specify gradle and gradle plugin versions -->
<preference name="GradleVersion" value="8.7.0" />
<preference name="AndroidGradlePluginVersion" value="8.6.1"/>
<!-- Kotlin in Plugin -->
<preference name="GradlePluginKotlinEnabled" value="true" />
<preference name="GradlePluginKotlinVersion" value="1.9.24" />
<!-- To allow XHR requests with the new Whitelist plugin -->
<allow-navigation href="https://localhost" />
<allow-navigation href="https://*.force.com" />
<allow-navigation href="https://*.salesforce.com" />
<allow-navigation href="https://*.visualforce.com" />
<allow-navigation href="https://*.documentforce.com" />
<allow-navigation href="https://*.salesforce-communities.com" />
<!-- For legacy apps that don't use CSP -->
<access origin="https://localhost" />
<access origin="https://*.force.com" />
<access origin="https://*.salesforce.com" />
<access origin="https://*.visualforce.com" />
<access origin="https://*.documentforce.com" />
<access origin="https://*.salesforce-communities.com" />
<feature name="com.salesforce.oauth"><param name="android-package" value="com.salesforce.androidsdk.phonegap.plugin.SalesforceOAuthPlugin"/></feature>
<feature name="com.salesforce.network"><param name="android-package" value="com.salesforce.androidsdk.phonegap.plugin.SalesforceNetworkPlugin"/></feature>
<feature name="com.salesforce.sfaccountmanager"><param name="android-package" value="com.salesforce.androidsdk.phonegap.plugin.SFAccountManagerPlugin"/></feature>
<feature name="com.salesforce.sdkinfo"><param name="android-package" value="com.salesforce.androidsdk.phonegap.plugin.SDKInfoPlugin"/></feature>
<feature name="com.salesforce.smartstore"><param name="android-package" value="com.salesforce.androidsdk.phonegap.plugin.SmartStorePlugin"/></feature>
<feature name="com.salesforce.mobilesync"><param name="android-package" value="com.salesforce.androidsdk.phonegap.plugin.MobileSyncPlugin"/></feature>
</config-file>
<config-file target="res/values/strings.xml" parent="/resources">
<string name="account_type">$PACKAGE_NAME.login</string>
<string name="app_package">$PACKAGE_NAME</string>
</config-file>
<!-- Post install script -->
<hook type="after_plugin_install" src="tools/postinstall-android.js" />
</platform>
</plugin>