lemnisk-react-native 0.0.6 → 0.1.0
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/gradle/wrapper/gradle-wrapper.properties +4 -0
- package/android/src/main/java/com/reactnativelemnisksdk/LemniskSdkModule.java +11 -1
- package/lemnisk-react-native.podspec +1 -1
- package/package.json +3 -7
- package/android/.gradle/6.7/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.7/fileChanges/last-build.bin +0 -0
- package/android/.gradle/6.7/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/6.7/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/configuration-cache/gc.properties +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
@@ -1,5 +1,9 @@
|
|
1
1
|
distributionBase=GRADLE_USER_HOME
|
2
2
|
distributionPath=wrapper/dists
|
3
|
+
<<<<<<< HEAD:ios-swift-sdk/Examples/LemniskReactDemo/android/gradle/wrapper/gradle-wrapper.properties
|
3
4
|
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
|
5
|
+
=======
|
6
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
|
7
|
+
>>>>>>> master:react-native/android/gradle/wrapper/gradle-wrapper.properties
|
4
8
|
zipStoreBase=GRADLE_USER_HOME
|
5
9
|
zipStorePath=wrapper/dists
|
@@ -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.1.0",
|
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,9 +152,5 @@
|
|
152
152
|
},
|
153
153
|
"dependencies": {
|
154
154
|
"extract-zip": "^1.6.6"
|
155
|
-
}
|
156
|
-
"directories": {
|
157
|
-
"example": "example"
|
158
|
-
},
|
159
|
-
"license": "ISC"
|
155
|
+
}
|
160
156
|
}
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
Binary file
|
Binary file
|
File without changes
|
File without changes
|