@bits-innovate/react-native-vstarcam 1.0.3 → 1.0.4
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 +18 -5
- package/package.json +1 -1
package/android/build.gradle
CHANGED
|
@@ -17,6 +17,11 @@ android {
|
|
|
17
17
|
defaultConfig {
|
|
18
18
|
minSdkVersion 21
|
|
19
19
|
targetSdkVersion 34
|
|
20
|
+
|
|
21
|
+
// Include NDK ABIs
|
|
22
|
+
ndk {
|
|
23
|
+
abiFilters 'armeabi-v7a', 'arm64-v8a'
|
|
24
|
+
}
|
|
20
25
|
}
|
|
21
26
|
|
|
22
27
|
buildTypes {
|
|
@@ -33,18 +38,26 @@ android {
|
|
|
33
38
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
34
39
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
35
40
|
}
|
|
41
|
+
|
|
42
|
+
// Specify where to find JNI libs
|
|
43
|
+
sourceSets {
|
|
44
|
+
main {
|
|
45
|
+
jniLibs.srcDirs = ['src/main/jniLibs']
|
|
46
|
+
}
|
|
47
|
+
}
|
|
36
48
|
}
|
|
37
49
|
|
|
38
50
|
repositories {
|
|
39
51
|
mavenCentral()
|
|
40
52
|
google()
|
|
53
|
+
// Use flatDir to properly consume the AAR
|
|
54
|
+
flatDir {
|
|
55
|
+
dirs 'libs'
|
|
56
|
+
}
|
|
41
57
|
}
|
|
42
58
|
|
|
43
59
|
dependencies {
|
|
44
60
|
implementation "com.facebook.react:react-native:+"
|
|
45
|
-
//
|
|
46
|
-
implementation
|
|
61
|
+
// Use the proper AAR notation with flatDir
|
|
62
|
+
implementation(name: 'app_p2p_api-5.0.0', ext: 'aar')
|
|
47
63
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|