lemnisk-react-native 0.1.14 → 0.1.15

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.
@@ -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.46'
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(registerForPushNotifications) {
34
+ RCT_EXPORT_METHOD(registerForPush) {
35
35
  RCTLogInfo(@"calling registerForPushNotifications");
36
36
  [[Lemnisk shared] registerForPushNotifications];
37
37
  }
@@ -17,5 +17,5 @@ Pod::Spec.new do |s|
17
17
  s.source_files = 'ios/**/*.{h,m,mm}'
18
18
 
19
19
  s.dependency 'React-Core'
20
- s.dependency 'Lemnisk-iOS-SDK', '3.8.8'
20
+ s.dependency 'Lemnisk-iOS-SDK', '3.9.1'
21
21
  end
@@ -9,8 +9,11 @@ const {
9
9
  LemniskSdk
10
10
  } = _reactNative.NativeModules;
11
11
  LemniskSdk.registerForPushNotifications = (title, message) => {
12
- LemniskSdk.registerForPush(title, message);
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;EAC1EJ,UAAU,CAACK,eAAe,CAACF,KAAK,EAAEC,OAAO,CAAC;AAC5C,CAAC;AAAA,IAAAE,QAAA,GAYcN,UAAU;AAAAO,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
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":[]}
@@ -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
- LemniskSdk.registerForPush(title, message);
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
@@ -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;AAE5C,MAAM;EAAEC;AAAW,CAAC,GAAGD,aAAa;AAGpCC,UAAU,CAACC,4BAA4B,GAAG,CAACC,KAAa,EAAEC,OAAe,KAAG;EAC1EH,UAAU,CAACI,eAAe,CAACF,KAAK,EAAEC,OAAO,CAAC;AAC5C,CAAC;AAYD,eAAeH,UAAU"}
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.14",
3
+ "version": "0.1.15",
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
- LemniskSdk.registerForPush(title, message);
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 = {
File without changes
@@ -1,2 +0,0 @@
1
- #Wed Aug 16 11:19:50 IST 2023
2
- gradle.version=6.7
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