lemnisk-react-native 0.1.14 → 0.1.16
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 +1 -1
- package/ios/LemniskSdk.m +1 -1
- package/lemnisk-react-native.podspec +1 -1
- package/lib/commonjs/index.js +6 -3
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js +6 -2
- package/lib/module/index.js.map +1 -1
- package/package.json +3 -2
- package/src/index.tsx +7 -2
- 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/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/configuration-cache/gc.properties +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.settings/org.eclipse.buildship.core.prefs +0 -13
- /package/lib/typescript/{index.d.ts → src/index.d.ts} +0 -0
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.50'
|
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'
|
package/ios/LemniskSdk.m
CHANGED
@@ -31,7 +31,7 @@ RCT_EXPORT_METHOD(screen:(NSString *)name object:(NSDictionary *)properties obje
|
|
31
31
|
[[Lemnisk shared] screen:name properties:properties otherIds:otherIds];
|
32
32
|
}
|
33
33
|
|
34
|
-
RCT_EXPORT_METHOD(
|
34
|
+
RCT_EXPORT_METHOD(registerForPush) {
|
35
35
|
RCTLogInfo(@"calling registerForPushNotifications");
|
36
36
|
[[Lemnisk shared] registerForPushNotifications];
|
37
37
|
}
|
package/lib/commonjs/index.js
CHANGED
@@ -9,8 +9,11 @@ const {
|
|
9
9
|
LemniskSdk
|
10
10
|
} = _reactNative.NativeModules;
|
11
11
|
LemniskSdk.registerForPushNotifications = (title, message) => {
|
12
|
-
|
12
|
+
if (_reactNative.Platform.OS == "android") {
|
13
|
+
LemniskSdk.registerForPush(title, message);
|
14
|
+
} else if (_reactNative.Platform.OS == "ios") {
|
15
|
+
LemniskSdk.registerForPush();
|
16
|
+
}
|
13
17
|
};
|
14
|
-
var _default = LemniskSdk;
|
15
|
-
exports.default = _default;
|
18
|
+
var _default = exports.default = LemniskSdk;
|
16
19
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_reactNative","require","LemniskSdk","NativeModules","registerForPushNotifications","title","message","registerForPush","_default","exports","default"],"sources":["index.tsx"],"sourcesContent":["import { NativeModules } from 'react-native';\n\nconst { LemniskSdk } = NativeModules;\n\n\nLemniskSdk.registerForPushNotifications = (title: string, message: string)=>{\n LemniskSdk.registerForPush(title, message);\n}\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 registerForPushNotifications( title?: string, message?: string): any ;\n \n};\n\n\nexport default LemniskSdk as LemniskSdkType;\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,MAAM;EAAEC;AAAW,CAAC,GAAGC,0BAAa;AAGpCD,UAAU,CAACE,4BAA4B,GAAG,CAACC,KAAa,EAAEC,OAAe,KAAG;
|
1
|
+
{"version":3,"names":["_reactNative","require","LemniskSdk","NativeModules","registerForPushNotifications","title","message","Platform","OS","registerForPush","_default","exports","default"],"sources":["index.tsx"],"sourcesContent":["import { NativeModules, Platform } from 'react-native';\n\nconst { LemniskSdk } = NativeModules;\n\n\nLemniskSdk.registerForPushNotifications = (title: string, message: string)=>{\n if(Platform.OS == \"android\"){\n LemniskSdk.registerForPush(title, message);\n }\n else if(Platform.OS == \"ios\"){\n LemniskSdk.registerForPush();\n }\n}\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 registerForPushNotifications( title?: string, message?: string): any ;\n \n};\n\n\nexport default LemniskSdk as LemniskSdkType;\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,MAAM;EAAEC;AAAW,CAAC,GAAGC,0BAAa;AAGpCD,UAAU,CAACE,4BAA4B,GAAG,CAACC,KAAa,EAAEC,OAAe,KAAG;EAC1E,IAAGC,qBAAQ,CAACC,EAAE,IAAI,SAAS,EAAC;IAC1BN,UAAU,CAACO,eAAe,CAACJ,KAAK,EAAEC,OAAO,CAAC;EAC5C,CAAC,MACI,IAAGC,qBAAQ,CAACC,EAAE,IAAI,KAAK,EAAC;IAC3BN,UAAU,CAACO,eAAe,CAAC,CAAC;EAC9B;AACF,CAAC;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAYcV,UAAU","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
@@ -1,9 +1,13 @@
|
|
1
|
-
import { NativeModules } from 'react-native';
|
1
|
+
import { NativeModules, Platform } from 'react-native';
|
2
2
|
const {
|
3
3
|
LemniskSdk
|
4
4
|
} = NativeModules;
|
5
5
|
LemniskSdk.registerForPushNotifications = (title, message) => {
|
6
|
-
|
6
|
+
if (Platform.OS == "android") {
|
7
|
+
LemniskSdk.registerForPush(title, message);
|
8
|
+
} else if (Platform.OS == "ios") {
|
9
|
+
LemniskSdk.registerForPush();
|
10
|
+
}
|
7
11
|
};
|
8
12
|
export default LemniskSdk;
|
9
13
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["NativeModules","LemniskSdk","registerForPushNotifications","title","message","registerForPush"],"sources":["index.tsx"],"sourcesContent":["import { NativeModules } from 'react-native';\n\nconst { LemniskSdk } = NativeModules;\n\n\nLemniskSdk.registerForPushNotifications = (title: string, message: string)=>{\n LemniskSdk.registerForPush(title, message);\n}\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 registerForPushNotifications( title?: string, message?: string): any ;\n \n};\n\n\nexport default LemniskSdk as LemniskSdkType;\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,cAAc;
|
1
|
+
{"version":3,"names":["NativeModules","Platform","LemniskSdk","registerForPushNotifications","title","message","OS","registerForPush"],"sources":["index.tsx"],"sourcesContent":["import { NativeModules, Platform } from 'react-native';\n\nconst { LemniskSdk } = NativeModules;\n\n\nLemniskSdk.registerForPushNotifications = (title: string, message: string)=>{\n if(Platform.OS == \"android\"){\n LemniskSdk.registerForPush(title, message);\n }\n else if(Platform.OS == \"ios\"){\n LemniskSdk.registerForPush();\n }\n}\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 registerForPushNotifications( title?: string, message?: string): any ;\n \n};\n\n\nexport default LemniskSdk as LemniskSdkType;\n"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAEtD,MAAM;EAAEC;AAAW,CAAC,GAAGF,aAAa;AAGpCE,UAAU,CAACC,4BAA4B,GAAG,CAACC,KAAa,EAAEC,OAAe,KAAG;EAC1E,IAAGJ,QAAQ,CAACK,EAAE,IAAI,SAAS,EAAC;IAC1BJ,UAAU,CAACK,eAAe,CAACH,KAAK,EAAEC,OAAO,CAAC;EAC5C,CAAC,MACI,IAAGJ,QAAQ,CAACK,EAAE,IAAI,KAAK,EAAC;IAC3BJ,UAAU,CAACK,eAAe,CAAC,CAAC;EAC9B;AACF,CAAC;AAYD,eAAeL,UAAU","ignoreList":[]}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "lemnisk-react-native",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.16",
|
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",
|
@@ -19,7 +19,8 @@
|
|
19
19
|
"!ios/build",
|
20
20
|
"!**/__tests__",
|
21
21
|
"!**/__fixtures__",
|
22
|
-
"!**/__mocks__"
|
22
|
+
"!**/__mocks__",
|
23
|
+
"!Examples"
|
23
24
|
],
|
24
25
|
"scripts": {
|
25
26
|
"test": "jest",
|
package/src/index.tsx
CHANGED
@@ -1,10 +1,15 @@
|
|
1
|
-
import { NativeModules } from 'react-native';
|
1
|
+
import { NativeModules, Platform } from 'react-native';
|
2
2
|
|
3
3
|
const { LemniskSdk } = NativeModules;
|
4
4
|
|
5
5
|
|
6
6
|
LemniskSdk.registerForPushNotifications = (title: string, message: string)=>{
|
7
|
-
|
7
|
+
if(Platform.OS == "android"){
|
8
|
+
LemniskSdk.registerForPush(title, message);
|
9
|
+
}
|
10
|
+
else if(Platform.OS == "ios"){
|
11
|
+
LemniskSdk.registerForPush();
|
12
|
+
}
|
8
13
|
}
|
9
14
|
|
10
15
|
type LemniskSdkType = {
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
File without changes
|
@@ -1,13 +0,0 @@
|
|
1
|
-
arguments=--init-script /var/folders/l6/667t1v314gj_jxc8x3cltzd80000gr/T/d146c9752a26f79b52047fb6dc6ed385d064e120494f96f08ca63a317c41f94c.gradle --init-script /var/folders/l6/667t1v314gj_jxc8x3cltzd80000gr/T/52cde0cfcf3e28b8b7510e992210d9614505e0911af0c190bd590d7158574963.gradle
|
2
|
-
auto.sync=false
|
3
|
-
build.scans.enabled=false
|
4
|
-
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
|
5
|
-
connection.project.dir=../../../android
|
6
|
-
eclipse.preferences.version=1
|
7
|
-
gradle.user.home=
|
8
|
-
java.home=/Users/koteswarudu-akula/Library/Java/JavaVirtualMachines/corretto-11.0.19/Contents/Home
|
9
|
-
jvm.arguments=
|
10
|
-
offline.mode=false
|
11
|
-
override.workspace.settings=true
|
12
|
-
show.console.view=true
|
13
|
-
show.executions.view=true
|
File without changes
|