lemnisk-react-native 0.1.5 → 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.
- package/LICENSE +21 -21
- package/README.md +121 -121
- package/android/.gradle/6.7/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.7/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/build.gradle +72 -71
- package/android/gradle/wrapper/gradle-wrapper.properties +5 -5
- package/android/gradle.properties +22 -0
- package/android/gradlew +185 -185
- package/android/src/main/AndroidManifest.xml +4 -4
- package/android/src/main/java/com/reactnativelemnisksdk/LemniskSdkModule.java +158 -144
- package/android/src/main/java/com/reactnativelemnisksdk/LemniskSdkPackage.java +28 -28
- package/ios/LemniskSdk.h +5 -5
- package/ios/LemniskSdk.m +38 -38
- package/lemnisk-react-native.podspec +21 -21
- package/lib/commonjs/index.js +3 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js +3 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/index.d.ts +9 -8
- package/package.json +156 -156
- package/src/index.tsx +20 -12
- package/android/.gradle/6.7/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/6.7/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/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/outputFiles.bin +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/local.properties +0 -1
package/package.json
CHANGED
@@ -1,156 +1,156 @@
|
|
1
|
-
{
|
2
|
-
"name": "lemnisk-react-native",
|
3
|
-
"version": "0.1.
|
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": "
|
65
|
-
"react-native": "0.
|
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,12 +1,20 @@
|
|
1
|
-
import { NativeModules } from 'react-native';
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
}
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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;
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
package/android/local.properties
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
sdk.dir=/Users/sarvesh/Library/Android/sdk
|