@metarouter/react-native-sdk 0.1.8 → 0.1.9
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 +35 -0
- package/android/consumer-rules.pro +0 -0
- package/package.json +4 -3
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
apply plugin: 'com.android.library'
|
|
2
|
+
|
|
3
|
+
android {
|
|
4
|
+
namespace 'com.metarouterreactnative' // <- required in modern RN, change as needed
|
|
5
|
+
compileSdkVersion 33
|
|
6
|
+
|
|
7
|
+
defaultConfig {
|
|
8
|
+
minSdkVersion 21
|
|
9
|
+
targetSdkVersion 33
|
|
10
|
+
versionCode 1
|
|
11
|
+
versionName "0.1.0"
|
|
12
|
+
|
|
13
|
+
consumerProguardFiles "consumer-rules.pro"
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
compileOptions {
|
|
17
|
+
sourceCompatibility JavaVersion.VERSION_11
|
|
18
|
+
targetCompatibility JavaVersion.VERSION_11
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
dependencies {
|
|
23
|
+
// Core RN dependency (linked by consumer app)
|
|
24
|
+
implementation 'com.facebook.react:react-native:+'
|
|
25
|
+
|
|
26
|
+
// Segment SDK + Sovran
|
|
27
|
+
implementation "com.segment.analytics.reactnative:analytics-react-native:2.21.2"
|
|
28
|
+
implementation "com.segment.analytics.reactnative:sovran-react-native:1.1.3"
|
|
29
|
+
|
|
30
|
+
// Async storage
|
|
31
|
+
implementation "com.reactnativecommunity:async-storage:1.17.11"
|
|
32
|
+
|
|
33
|
+
// Random values (get-random-values equivalent)
|
|
34
|
+
implementation "org.lazysodium:randombytes:1.0.1"
|
|
35
|
+
}
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metarouter/react-native-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -14,13 +14,14 @@
|
|
|
14
14
|
"files": [
|
|
15
15
|
"lib",
|
|
16
16
|
"react-native.config.js",
|
|
17
|
-
"MetaRouterReactNativeSDK.podspec"
|
|
17
|
+
"MetaRouterReactNativeSDK.podspec",
|
|
18
|
+
"android"
|
|
18
19
|
],
|
|
19
20
|
"scripts": {
|
|
20
21
|
"clean": "rm -rf lib",
|
|
21
22
|
"build": "tsc --project tsconfig.build.json",
|
|
22
23
|
"prepare": "npm run build",
|
|
23
|
-
"
|
|
24
|
+
"prePublish": "npm run clean && npm run build",
|
|
24
25
|
"test": "jest"
|
|
25
26
|
},
|
|
26
27
|
"publishConfig": {
|