lemnisk-react-native 0.1.16 → 0.1.18
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/android/build.gradle
CHANGED
@@ -56,7 +56,7 @@ repositories {
|
|
56
56
|
dependencies {
|
57
57
|
//noinspection GradleDynamicVersion
|
58
58
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
59
|
-
implementation 'co.lemnisk.app.android:AndroidSDK:1.1.
|
59
|
+
implementation 'co.lemnisk.app.android:AndroidSDK:1.1.52'
|
60
60
|
implementation 'org.apache.commons:commons-text:1.9'
|
61
61
|
//implementation(name:'AndroidSDK-release', ext:'aar')
|
62
62
|
implementation group: 'joda-time', name: 'joda-time', version: '2.10.10'
|
@@ -23,6 +23,8 @@ import co.lemnisk.app.android.LemniskHelper;
|
|
23
23
|
import co.lemnisk.app.android.Utils;
|
24
24
|
import co.lemnisk.app.android.LemConstants;
|
25
25
|
import android.text.TextUtils;
|
26
|
+
import android.os.Handler;
|
27
|
+
import android.os.Looper;
|
26
28
|
|
27
29
|
@ReactModule(name = LemniskSdkModule.NAME)
|
28
30
|
public class LemniskSdkModule extends ReactContextBaseJavaModule {
|
@@ -30,23 +32,18 @@ public class LemniskSdkModule extends ReactContextBaseJavaModule {
|
|
30
32
|
private ReactApplicationContext reactContext;
|
31
33
|
|
32
34
|
public LemniskSdkModule(ReactApplicationContext reactContext) {
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
Utils.getInstance(reactContext).setStringInSharedPrefs(LemConstants.PREFS_GCM_TOKEN, "");
|
46
|
-
helper.setGCMToken(s);
|
47
|
-
}
|
48
|
-
}
|
49
|
-
});
|
35
|
+
super(reactContext);
|
36
|
+
this.reactContext = reactContext;
|
37
|
+
|
38
|
+
LemniskHelper helper = LemniskHelper.getInstance(reactContext);
|
39
|
+
|
40
|
+
new Handler(Looper.getMainLooper()).post(new Runnable() {
|
41
|
+
@Override
|
42
|
+
public void run() {
|
43
|
+
helper.init();
|
44
|
+
}
|
45
|
+
});
|
46
|
+
|
50
47
|
}
|
51
48
|
|
52
49
|
@Override
|