cordova-plugin-insider 2.4.0 → 2.4.1
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.
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/src/android/InsiderPlugin.java +12 -12
- package/src/android/build-extras.gradle +5 -4
- package/www/Constants.js +1 -1
package/package.json
CHANGED
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="cordova-plugin-insider" version="2.4.
|
|
2
|
+
<plugin id="cordova-plugin-insider" version="2.4.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
|
|
3
3
|
<name>Insider</name>
|
|
4
4
|
<description>Insider Cordova Plugin</description>
|
|
5
5
|
<keywords>insider,cordova,cordova-ios,cordova-android</keywords>
|
|
@@ -64,18 +64,6 @@ public class InsiderPlugin extends CordovaPlugin {
|
|
|
64
64
|
cordova.getActivity().runOnUiThread(new Runnable() {
|
|
65
65
|
@Override
|
|
66
66
|
public void run() {
|
|
67
|
-
InsiderHybrid.initWithActivity(cordova.getActivity(), partnerName);
|
|
68
|
-
|
|
69
|
-
Insider.Instance.setSDKType("cordova");
|
|
70
|
-
Insider.Instance.setHybridSDKVersion(sdkVersion);
|
|
71
|
-
Insider.Instance.resumeSessionHybridConfig(cordova.getActivity());
|
|
72
|
-
|
|
73
|
-
if (isCoreInitialized) {
|
|
74
|
-
Insider.Instance.resumeSessionHybridRequestConfig();
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
isCoreInitialized = true;
|
|
78
|
-
|
|
79
67
|
Insider.Instance.registerInsiderCallback(new InsiderCallback() {
|
|
80
68
|
@Override
|
|
81
69
|
public void doAction(JSONObject jsonObject, InsiderCallbackType insiderCallbackType) {
|
|
@@ -88,6 +76,18 @@ public class InsiderPlugin extends CordovaPlugin {
|
|
|
88
76
|
}
|
|
89
77
|
}
|
|
90
78
|
});
|
|
79
|
+
|
|
80
|
+
InsiderHybrid.initWithActivity(cordova.getActivity(), partnerName);
|
|
81
|
+
|
|
82
|
+
Insider.Instance.setSDKType("cordova");
|
|
83
|
+
Insider.Instance.setHybridSDKVersion(sdkVersion);
|
|
84
|
+
Insider.Instance.resumeSessionHybridConfig(cordova.getActivity());
|
|
85
|
+
|
|
86
|
+
if (isCoreInitialized) {
|
|
87
|
+
Insider.Instance.resumeSessionHybridRequestConfig();
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
isCoreInitialized = true;
|
|
91
91
|
|
|
92
92
|
Insider.Instance.storePartnerName(partnerName);
|
|
93
93
|
}
|
|
@@ -5,23 +5,24 @@ repositories {
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
android {
|
|
8
|
-
compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion :
|
|
8
|
+
compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
|
|
9
9
|
useLibrary 'org.apache.http.legacy'
|
|
10
10
|
|
|
11
11
|
defaultConfig {
|
|
12
|
-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion :
|
|
13
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
12
|
+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
|
|
13
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
|
|
14
14
|
multiDexEnabled true
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
dependencies {
|
|
19
|
-
implementation 'com.useinsider:insider:14.10.
|
|
19
|
+
implementation 'com.useinsider:insider:14.10.6'
|
|
20
20
|
implementation 'com.useinsider:insiderhybrid:1.3.2'
|
|
21
21
|
|
|
22
22
|
implementation 'com.fasterxml.jackson.core:jackson-core:2.12.4'
|
|
23
23
|
implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.4'
|
|
24
24
|
|
|
25
|
+
implementation "androidx.work:work-runtime:2.9.1"
|
|
25
26
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
26
27
|
implementation 'androidx.lifecycle:lifecycle-process:2.7.0'
|
|
27
28
|
implementation 'androidx.security:security-crypto:1.1.0-alpha06'
|
package/www/Constants.js
CHANGED