lemnisk-react-native 0.0.8 → 0.0.9
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
@@ -58,7 +58,7 @@ repositories {
|
|
58
58
|
dependencies {
|
59
59
|
//noinspection GradleDynamicVersion
|
60
60
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
61
|
-
implementation 'co.lemnisk.app.android:AndroidSDK:1.1.
|
61
|
+
implementation 'co.lemnisk.app.android:AndroidSDK:1.1.4'
|
62
62
|
//implementation(name:'AndroidSDK-release', ext:'aar')
|
63
63
|
implementation group: 'joda-time', name: 'joda-time', version: '2.10.10'
|
64
64
|
implementation 'com.google.android.gms:play-services-base:17.6.0'
|
@@ -12,6 +12,7 @@ import com.facebook.react.bridge.ReadableMap;
|
|
12
12
|
import com.facebook.react.module.annotations.ReactModule;
|
13
13
|
import com.google.android.gms.tasks.OnSuccessListener;
|
14
14
|
import com.google.android.gms.tasks.Task;
|
15
|
+
import com.google.firebase.messaging.FirebaseMessaging;
|
15
16
|
|
16
17
|
import org.json.JSONObject;
|
17
18
|
import java.util.Iterator;
|
@@ -26,7 +27,16 @@ public class LemniskSdkModule extends ReactContextBaseJavaModule {
|
|
26
27
|
public LemniskSdkModule(ReactApplicationContext reactContext) {
|
27
28
|
super(reactContext);
|
28
29
|
LemniskHelper helper = LemniskHelper.getInstance(reactContext);
|
29
|
-
|
30
|
+
|
31
|
+
Task<String> task = FirebaseMessaging.getInstance().getToken();
|
32
|
+
task.addOnSuccessListener(new OnSuccessListener<String>() {
|
33
|
+
@Override
|
34
|
+
public void onSuccess(@NonNull String s) {
|
35
|
+
Log.d("Firebase Token","onSuccess ========> : "+s);
|
36
|
+
helper.setGCMToken(s);
|
37
|
+
helper.init();
|
38
|
+
}
|
39
|
+
});
|
30
40
|
}
|
31
41
|
|
32
42
|
@Override
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "lemnisk-react-native",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.9",
|
4
4
|
"description": "plugin to setup the lemnisk sdk on both android and ios platform",
|
5
5
|
"main": "lib/commonjs/index",
|
6
6
|
"module": "lib/module/index",
|
@@ -38,7 +38,7 @@
|
|
38
38
|
],
|
39
39
|
"repository": {
|
40
40
|
"type": "git",
|
41
|
-
"url": "git+https://github.com/Immensitas/lemnisk-app-sdk
|
41
|
+
"url": "git+https://github.com/Immensitas/lemnisk-app-sdk"
|
42
42
|
},
|
43
43
|
"author": "Lemnisk",
|
44
44
|
"bugs": {
|
@@ -152,10 +152,5 @@
|
|
152
152
|
},
|
153
153
|
"dependencies": {
|
154
154
|
"extract-zip": "^1.6.6"
|
155
|
-
}
|
156
|
-
"directories": {
|
157
|
-
"example": "example",
|
158
|
-
"lib": "lib"
|
159
|
-
},
|
160
|
-
"license": "ISC"
|
155
|
+
}
|
161
156
|
}
|