lemnisk-react-native 0.1.3 → 0.1.4
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/6.7/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/6.7/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.7/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/6.7/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/{6.5 → 6.7}/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/6.7/javaCompile/classAnalysis.bin +0 -0
- package/android/.gradle/6.7/javaCompile/jarAnalysis.bin +0 -0
- package/android/.gradle/6.7/javaCompile/javaCompile.lock +0 -0
- package/android/.gradle/6.7/javaCompile/taskHistory.bin +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/build.gradle +8 -3
- package/android/gradle/wrapper/gradle-wrapper.properties +0 -4
- package/android/local.properties +1 -1
- package/android/src/main/java/com/reactnativelemnisksdk/LemniskSdkModule.java +15 -9
- package/lemnisk-react-native.podspec +1 -1
- package/lib/commonjs/index.js +0 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/index.d.ts +1 -1
- package/package.json +1 -1
- package/android/.gradle/6.5/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/6.5/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.5/fileChanges/last-build.bin +0 -0
- package/android/.gradle/6.5/fileContent/fileContent.lock +0 -0
- package/android/.gradle/6.5/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/6.5/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/6.5/gc.properties +0 -0
- package/android/.gradle/6.5/javaCompile/classAnalysis.bin +0 -0
- package/android/.gradle/6.5/javaCompile/jarAnalysis.bin +0 -0
- package/android/.gradle/6.5/javaCompile/javaCompile.lock +0 -0
- package/android/.gradle/6.5/javaCompile/taskHistory.bin +0 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,2 +1,2 @@
|
|
1
|
-
#
|
2
|
-
gradle.version=6.
|
1
|
+
#Wed Jan 18 20:34:56 IST 2023
|
2
|
+
gradle.version=6.7
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
package/android/build.gradle
CHANGED
@@ -18,11 +18,11 @@ def safeExtGet(prop, fallback) {
|
|
18
18
|
}
|
19
19
|
|
20
20
|
android {
|
21
|
-
compileSdkVersion safeExtGet('LemniskSdk_compileSdkVersion',
|
21
|
+
compileSdkVersion safeExtGet('LemniskSdk_compileSdkVersion', 31)
|
22
22
|
buildToolsVersion safeExtGet('LemniskSdk_buildToolsVersion', '30.0.2')
|
23
23
|
defaultConfig {
|
24
24
|
minSdkVersion safeExtGet('LemniskSdk_minSdkVersion', 16)
|
25
|
-
targetSdkVersion safeExtGet('LemniskSdk_targetSdkVersion',
|
25
|
+
targetSdkVersion safeExtGet('LemniskSdk_targetSdkVersion', 31)
|
26
26
|
versionCode 1
|
27
27
|
versionName "1.0"
|
28
28
|
|
@@ -54,8 +54,10 @@ repositories {
|
|
54
54
|
|
55
55
|
dependencies {
|
56
56
|
//noinspection GradleDynamicVersion
|
57
|
+
implementation 'androidx.appcompat:appcompat:1.3.0'
|
58
|
+
implementation 'androidx.core:core-ktx:1.6.0'
|
57
59
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
58
|
-
implementation 'co.lemnisk.app.android:AndroidSDK:1.1.
|
60
|
+
implementation 'co.lemnisk.app.android:AndroidSDK:1.1.28'
|
59
61
|
//implementation(name:'AndroidSDK-release', ext:'aar')
|
60
62
|
implementation group: 'joda-time', name: 'joda-time', version: '2.10.10'
|
61
63
|
implementation 'com.google.android.gms:play-services-base:17.6.0'
|
@@ -63,4 +65,7 @@ dependencies {
|
|
63
65
|
implementation 'com.google.firebase:firebase-messaging'
|
64
66
|
implementation 'com.google.android.gms:play-services-ads-identifier:16.0.0'
|
65
67
|
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
|
68
|
+
implementation "androidx.lifecycle:lifecycle-runtime:2.3.0"
|
69
|
+
implementation 'android.arch.lifecycle:common-java8:1.1.0'
|
70
|
+
implementation "androidx.work:work-runtime:2.7.1"
|
66
71
|
}
|
@@ -1,9 +1,5 @@
|
|
1
1
|
distributionBase=GRADLE_USER_HOME
|
2
2
|
distributionPath=wrapper/dists
|
3
|
-
<<<<<<< HEAD:ios-swift-sdk/Examples/LemniskReactDemo/android/gradle/wrapper/gradle-wrapper.properties
|
4
3
|
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
|
8
4
|
zipStoreBase=GRADLE_USER_HOME
|
9
5
|
zipStorePath=wrapper/dists
|
package/android/local.properties
CHANGED
@@ -1 +1 @@
|
|
1
|
-
sdk.dir=/
|
1
|
+
sdk.dir=/Users/sarvesh/Library/Android/sdk
|
@@ -1,4 +1,7 @@
|
|
1
1
|
package com.reactnativelemnisksdk;
|
2
|
+
import com.facebook.react.bridge.UiThreadUtil;
|
3
|
+
|
4
|
+
|
2
5
|
|
3
6
|
import android.util.Log;
|
4
7
|
|
@@ -26,15 +29,18 @@ public class LemniskSdkModule extends ReactContextBaseJavaModule {
|
|
26
29
|
|
27
30
|
public LemniskSdkModule(ReactApplicationContext reactContext) {
|
28
31
|
super(reactContext);
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
32
|
+
UiThreadUtil.runOnUiThread(new Runnable() {
|
33
|
+
public void run(){
|
34
|
+
LemniskHelper helper = LemniskHelper.getInstance(reactContext);
|
35
|
+
Task<String> task = FirebaseMessaging.getInstance().getToken();
|
36
|
+
task.addOnSuccessListener(new OnSuccessListener<String>() {
|
37
|
+
@Override
|
38
|
+
public void onSuccess(@NonNull String s) {
|
39
|
+
Log.d("Firebase Token","onSuccess ========> : "+s);
|
40
|
+
helper.setGCMToken(s);
|
41
|
+
helper.init();
|
42
|
+
}
|
43
|
+
});
|
38
44
|
}
|
39
45
|
});
|
40
46
|
}
|
package/lib/commonjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"names":["LemniskSdk","NativeModules"],"sources":["index.tsx"],"sourcesContent":["import { NativeModules } from 'react-native';\n\ntype LemniskSdkType = {\n createLemniskEvent(name: string, object: object): any;\n track(eventName: string, properties: object, otherIds: object): any;\n screen(name: string, properties: object, otherIds: object): any;\n identify(userId: string, properties: object, otherIds: object): any;\n};\n\nconst { LemniskSdk } = NativeModules;\n\nexport default LemniskSdk as LemniskSdkType;\n"],"mappings":";;;;;;AAAA;AASA,MAAM;EAAEA;AAAW,CAAC,GAAGC,0BAAa;AAAC,eAEtBD,UAAU;AAAA"}
|
package/lib/module/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"names":["NativeModules","LemniskSdk"],"sources":["index.tsx"],"sourcesContent":["import { NativeModules } from 'react-native';\n\ntype LemniskSdkType = {\n createLemniskEvent(name: string, object: object): any;\n track(eventName: string, properties: object, otherIds: object): any;\n screen(name: string, properties: object, otherIds: object): any;\n identify(userId: string, properties: object, otherIds: object): any;\n};\n\nconst { LemniskSdk } = NativeModules;\n\nexport default LemniskSdk as LemniskSdkType;\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,cAAc;AAS5C,MAAM;EAAEC;AAAW,CAAC,GAAGD,aAAa;AAEpC,eAAeC,UAAU"}
|
package/package.json
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|