@metarouter/react-native-sdk 0.1.11 → 0.1.13

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.
@@ -1,35 +1,39 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
- android {
4
- namespace 'com.metarouterreactnative' // <- required in modern RN, change as needed
5
- compileSdkVersion 33
3
+ def safeExtGet(prop, fallback) {
4
+ rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
5
+ }
6
6
 
7
+ android {
8
+ compileSdkVersion safeExtGet('compileSdkVersion', 33)
9
+
7
10
  defaultConfig {
8
- minSdkVersion 21
9
- targetSdkVersion 33
11
+ minSdkVersion safeExtGet('minSdkVersion', 21)
12
+ targetSdkVersion safeExtGet('targetSdkVersion', 33)
10
13
  versionCode 1
11
14
  versionName "0.1.0"
12
-
13
- consumerProguardFiles "consumer-rules.pro"
14
15
  }
15
-
16
+
16
17
  compileOptions {
17
- sourceCompatibility JavaVersion.VERSION_11
18
- targetCompatibility JavaVersion.VERSION_11
18
+ sourceCompatibility JavaVersion.VERSION_1_8
19
+ targetCompatibility JavaVersion.VERSION_1_8
19
20
  }
20
21
  }
21
22
 
23
+ repositories {
24
+ google()
25
+ mavenCentral()
26
+ maven { url "https://www.jitpack.io" }
27
+ }
28
+
22
29
  dependencies {
23
- // Core RN dependency (linked by consumer app)
30
+ // React Native core
24
31
  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"
32
+
33
+ // Your SDK's native dependencies - these will be installed when users add your SDK
34
+ // Using the exact source directories from the config output
35
+ implementation project(':react-native-async-storage_async-storage')
36
+ implementation project(':segment-analytics-react-native')
37
+ implementation project(':sovran-react-native')
38
+ implementation project(':react-native-get-random-values')
35
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metarouter/react-native-sdk",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "exports": {
@@ -1,3 +0,0 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
- package="com.metarouterreactnative">
3
- </manifest>