lemnisk-react-native 0.1.6 → 0.1.7

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.
Files changed (50) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +121 -121
  3. package/android/.gradle/6.7/executionHistory/executionHistory.lock +0 -0
  4. package/android/.gradle/6.7/fileHashes/fileHashes.lock +0 -0
  5. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  6. package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
  7. package/android/.gradle/checksums/checksums.lock +0 -0
  8. package/android/.gradle/checksums/sha1-checksums.bin +0 -0
  9. package/android/build.gradle +72 -72
  10. package/android/gradle/wrapper/gradle-wrapper.properties +5 -5
  11. package/android/gradle.properties +22 -22
  12. package/android/gradlew +185 -185
  13. package/android/gradlew.bat +15 -0
  14. package/android/src/main/AndroidManifest.xml +4 -4
  15. package/android/src/main/java/com/reactnativelemnisksdk/LemniskSdkModule.java +158 -158
  16. package/android/src/main/java/com/reactnativelemnisksdk/LemniskSdkPackage.java +28 -28
  17. package/ios/LemniskSdk.h +5 -5
  18. package/ios/LemniskSdk.m +38 -38
  19. package/lemnisk-react-native.podspec +21 -21
  20. package/lib/commonjs/index.js.map +1 -1
  21. package/lib/module/index.js.map +1 -1
  22. package/lib/typescript/index.d.ts +9 -9
  23. package/package.json +156 -156
  24. package/src/index.tsx +20 -20
  25. package/android/.gradle/6.5/executionHistory/executionHistory.bin +0 -0
  26. package/android/.gradle/6.5/executionHistory/executionHistory.lock +0 -0
  27. package/android/.gradle/6.5/fileChanges/last-build.bin +0 -0
  28. package/android/.gradle/6.5/fileContent/fileContent.lock +0 -0
  29. package/android/.gradle/6.5/fileHashes/fileHashes.bin +0 -0
  30. package/android/.gradle/6.5/fileHashes/fileHashes.lock +0 -0
  31. package/android/.gradle/6.5/fileHashes/resourceHashesCache.bin +0 -0
  32. package/android/.gradle/6.5/gc.properties +0 -0
  33. package/android/.gradle/6.5/javaCompile/javaCompile.lock +0 -0
  34. package/android/.gradle/6.7/executionHistory/executionHistory.bin +0 -0
  35. package/android/.gradle/6.7/fileHashes/fileHashes.bin +0 -0
  36. package/android/.gradle/6.7/fileHashes/resourceHashesCache.bin +0 -0
  37. package/android/.gradle/6.7/javaCompile/classAnalysis.bin +0 -0
  38. package/android/.gradle/6.7/javaCompile/jarAnalysis.bin +0 -0
  39. package/android/.gradle/6.7/javaCompile/javaCompile.lock +0 -0
  40. package/android/.gradle/6.7/javaCompile/taskHistory.bin +0 -0
  41. package/android/.gradle/7.4/checksums/checksums.lock +0 -0
  42. package/android/.gradle/7.4/checksums/md5-checksums.bin +0 -0
  43. package/android/.gradle/7.4/checksums/sha1-checksums.bin +0 -0
  44. package/android/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  45. package/android/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
  46. package/android/.gradle/7.4/fileChanges/last-build.bin +0 -0
  47. package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  48. package/android/.gradle/7.4/gc.properties +0 -0
  49. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  50. package/android/.gradle/checksums/md5-checksums.bin +0 -0
package/package.json CHANGED
@@ -1,156 +1,156 @@
1
- {
2
- "name": "lemnisk-react-native",
3
- "version": "0.1.6",
4
- "description": "plugin to setup the lemnisk sdk on both android and ios platform",
5
- "main": "lib/commonjs/index",
6
- "module": "lib/module/index",
7
- "types": "lib/typescript/index.d.ts",
8
- "react-native": "src/index",
9
- "source": "src/index",
10
- "files": [
11
- "src",
12
- "lib",
13
- "android",
14
- "ios",
15
- "cpp",
16
- "lemnisk-react-native.podspec",
17
- "!lib/typescript/example",
18
- "!android/build",
19
- "!ios/build",
20
- "!**/__tests__",
21
- "!**/__fixtures__",
22
- "!**/__mocks__"
23
- ],
24
- "scripts": {
25
- "test": "jest",
26
- "typescript": "tsc --noEmit",
27
- "lint": "eslint \"**/*.{js,ts,tsx}\"",
28
- "prepare": "bob build",
29
- "release": "release-it",
30
- "example": "yarn --cwd example",
31
- "pods": "cd example && pod-install --quiet",
32
- "bootstrap": "yarn example && yarn && yarn pods"
33
- },
34
- "keywords": [
35
- "react-native",
36
- "ios",
37
- "android"
38
- ],
39
- "repository": {
40
- "type": "git",
41
- "url": "git+https://github.com/Immensitas/lemnisk-app-sdk"
42
- },
43
- "author": "Lemnisk",
44
- "bugs": {
45
- "url": "https://github.com/Immensitas/lemnisk-app-sdk/issues"
46
- },
47
- "homepage": "https://github.com/Immensitas/lemnisk-app-sdk",
48
- "devDependencies": {
49
- "@commitlint/config-conventional": "^11.0.0",
50
- "@react-native-community/eslint-config": "^2.0.0",
51
- "@release-it/conventional-changelog": "^2.0.0",
52
- "@types/jest": "^26.0.0",
53
- "@types/react": "^16.9.19",
54
- "@types/react-native": "0.62.13",
55
- "commitlint": "^11.0.0",
56
- "eslint": "^7.2.0",
57
- "eslint-config-prettier": "^7.0.0",
58
- "eslint-plugin-prettier": "^3.1.3",
59
- "husky": "^4.2.5",
60
- "jest": "^26.0.1",
61
- "jetifier": "^2.0.0",
62
- "pod-install": "^0.1.0",
63
- "prettier": "^2.0.5",
64
- "react": "17.0.1",
65
- "react-native": "0.64.1",
66
- "react-native-builder-bob": "^0.18.0",
67
- "release-it": "^14.2.2",
68
- "typescript": "^4.1.3"
69
- },
70
- "peerDependencies": {
71
- "react": "*",
72
- "react-native": "*"
73
- },
74
- "jest": {
75
- "preset": "react-native",
76
- "modulePathIgnorePatterns": [
77
- "<rootDir>/example/node_modules",
78
- "<rootDir>/lib/"
79
- ]
80
- },
81
- "husky": {
82
- "hooks": {
83
- "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
84
- "pre-commit": "yarn lint && yarn typescript"
85
- }
86
- },
87
- "commitlint": {
88
- "extends": [
89
- "@commitlint/config-conventional"
90
- ]
91
- },
92
- "release-it": {
93
- "git": {
94
- "commitMessage": "chore: release ${version}",
95
- "tagName": "v${version}"
96
- },
97
- "npm": {
98
- "publish": true
99
- },
100
- "github": {
101
- "release": true
102
- },
103
- "plugins": {
104
- "@release-it/conventional-changelog": {
105
- "preset": "angular"
106
- }
107
- }
108
- },
109
- "eslintConfig": {
110
- "root": true,
111
- "extends": [
112
- "@react-native-community",
113
- "prettier"
114
- ],
115
- "rules": {
116
- "prettier/prettier": [
117
- "error",
118
- {
119
- "quoteProps": "consistent",
120
- "singleQuote": true,
121
- "tabWidth": 2,
122
- "trailingComma": "es5",
123
- "useTabs": false
124
- }
125
- ]
126
- }
127
- },
128
- "eslintIgnore": [
129
- "node_modules/",
130
- "lib/"
131
- ],
132
- "prettier": {
133
- "quoteProps": "consistent",
134
- "singleQuote": true,
135
- "tabWidth": 2,
136
- "trailingComma": "es5",
137
- "useTabs": false
138
- },
139
- "react-native-builder-bob": {
140
- "source": "src",
141
- "output": "lib",
142
- "targets": [
143
- "commonjs",
144
- "module",
145
- [
146
- "typescript",
147
- {
148
- "project": "tsconfig.build.json"
149
- }
150
- ]
151
- ]
152
- },
153
- "dependencies": {
154
- "extract-zip": "^1.6.6"
155
- }
156
- }
1
+ {
2
+ "name": "lemnisk-react-native",
3
+ "version": "0.1.7",
4
+ "description": "plugin to setup the lemnisk sdk on both android and ios platform",
5
+ "main": "lib/commonjs/index",
6
+ "module": "lib/module/index",
7
+ "types": "lib/typescript/index.d.ts",
8
+ "react-native": "src/index",
9
+ "source": "src/index",
10
+ "files": [
11
+ "src",
12
+ "lib",
13
+ "android",
14
+ "ios",
15
+ "cpp",
16
+ "lemnisk-react-native.podspec",
17
+ "!lib/typescript/example",
18
+ "!android/build",
19
+ "!ios/build",
20
+ "!**/__tests__",
21
+ "!**/__fixtures__",
22
+ "!**/__mocks__"
23
+ ],
24
+ "scripts": {
25
+ "test": "jest",
26
+ "typescript": "tsc --noEmit",
27
+ "lint": "eslint \"**/*.{js,ts,tsx}\"",
28
+ "prepare": "bob build",
29
+ "release": "release-it",
30
+ "example": "yarn --cwd example",
31
+ "pods": "cd example && pod-install --quiet",
32
+ "bootstrap": "yarn example && yarn && yarn pods"
33
+ },
34
+ "keywords": [
35
+ "react-native",
36
+ "ios",
37
+ "android"
38
+ ],
39
+ "repository": {
40
+ "type": "git",
41
+ "url": "git+https://github.com/Immensitas/lemnisk-app-sdk"
42
+ },
43
+ "author": "Lemnisk",
44
+ "bugs": {
45
+ "url": "https://github.com/Immensitas/lemnisk-app-sdk/issues"
46
+ },
47
+ "homepage": "https://github.com/Immensitas/lemnisk-app-sdk",
48
+ "devDependencies": {
49
+ "@commitlint/config-conventional": "^11.0.0",
50
+ "@react-native-community/eslint-config": "^2.0.0",
51
+ "@release-it/conventional-changelog": "^2.0.0",
52
+ "@types/jest": "^26.0.0",
53
+ "@types/react": "^16.9.19",
54
+ "@types/react-native": "0.62.13",
55
+ "commitlint": "^11.0.0",
56
+ "eslint": "^7.2.0",
57
+ "eslint-config-prettier": "^7.0.0",
58
+ "eslint-plugin-prettier": "^3.1.3",
59
+ "husky": "^4.2.5",
60
+ "jest": "^26.0.1",
61
+ "jetifier": "^2.0.0",
62
+ "pod-install": "^0.1.0",
63
+ "prettier": "^2.0.5",
64
+ "react": "17.0.1",
65
+ "react-native": "0.64.1",
66
+ "react-native-builder-bob": "^0.18.0",
67
+ "release-it": "^14.2.2",
68
+ "typescript": "^4.1.3"
69
+ },
70
+ "peerDependencies": {
71
+ "react": "*",
72
+ "react-native": "*"
73
+ },
74
+ "jest": {
75
+ "preset": "react-native",
76
+ "modulePathIgnorePatterns": [
77
+ "<rootDir>/example/node_modules",
78
+ "<rootDir>/lib/"
79
+ ]
80
+ },
81
+ "husky": {
82
+ "hooks": {
83
+ "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
84
+ "pre-commit": "yarn lint && yarn typescript"
85
+ }
86
+ },
87
+ "commitlint": {
88
+ "extends": [
89
+ "@commitlint/config-conventional"
90
+ ]
91
+ },
92
+ "release-it": {
93
+ "git": {
94
+ "commitMessage": "chore: release ${version}",
95
+ "tagName": "v${version}"
96
+ },
97
+ "npm": {
98
+ "publish": true
99
+ },
100
+ "github": {
101
+ "release": true
102
+ },
103
+ "plugins": {
104
+ "@release-it/conventional-changelog": {
105
+ "preset": "angular"
106
+ }
107
+ }
108
+ },
109
+ "eslintConfig": {
110
+ "root": true,
111
+ "extends": [
112
+ "@react-native-community",
113
+ "prettier"
114
+ ],
115
+ "rules": {
116
+ "prettier/prettier": [
117
+ "error",
118
+ {
119
+ "quoteProps": "consistent",
120
+ "singleQuote": true,
121
+ "tabWidth": 2,
122
+ "trailingComma": "es5",
123
+ "useTabs": false
124
+ }
125
+ ]
126
+ }
127
+ },
128
+ "eslintIgnore": [
129
+ "node_modules/",
130
+ "lib/"
131
+ ],
132
+ "prettier": {
133
+ "quoteProps": "consistent",
134
+ "singleQuote": true,
135
+ "tabWidth": 2,
136
+ "trailingComma": "es5",
137
+ "useTabs": false
138
+ },
139
+ "react-native-builder-bob": {
140
+ "source": "src",
141
+ "output": "lib",
142
+ "targets": [
143
+ "commonjs",
144
+ "module",
145
+ [
146
+ "typescript",
147
+ {
148
+ "project": "tsconfig.build.json"
149
+ }
150
+ ]
151
+ ]
152
+ },
153
+ "dependencies": {
154
+ "extract-zip": "^1.6.6"
155
+ }
156
+ }
package/src/index.tsx CHANGED
@@ -1,20 +1,20 @@
1
- import { NativeModules } from 'react-native';
2
-
3
- const { LemniskSdk } = NativeModules;
4
-
5
-
6
- LemniskSdk.registerForPushNotifications = (title: string, message: string)=>{
7
- LemniskSdk.registerForPush(title, message);
8
- }
9
-
10
- type LemniskSdkType = {
11
- createLemniskEvent(name: string, object: object): any;
12
- track(eventName: string, properties: object, otherIds: object): any;
13
- screen(name: string, properties: object, otherIds: object): any;
14
- identify(userId: string, properties: object, otherIds: object): any;
15
- registerForPushNotifications( title?: string, message?: string): any ;
16
-
17
- };
18
-
19
-
20
- export default LemniskSdk as LemniskSdkType;
1
+ import { NativeModules } from 'react-native';
2
+
3
+ const { LemniskSdk } = NativeModules;
4
+
5
+
6
+ LemniskSdk.registerForPushNotifications = (title: string, message: string)=>{
7
+ LemniskSdk.registerForPush(title, message);
8
+ }
9
+
10
+ type LemniskSdkType = {
11
+ createLemniskEvent(name: string, object: object): any;
12
+ track(eventName: string, properties: object, otherIds: object): any;
13
+ screen(name: string, properties: object, otherIds: object): any;
14
+ identify(userId: string, properties: object, otherIds: object): any;
15
+ registerForPushNotifications( title?: string, message?: string): any ;
16
+
17
+ };
18
+
19
+
20
+ export default LemniskSdk as LemniskSdkType;
File without changes
File without changes