@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.
@@ -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
- // Reference the AAR directly from the libs folder
46
- implementation files('libs/app_p2p_api-5.0.0.aar')
61
+ // Use the proper AAR notation with flatDir
62
+ implementation(name: 'app_p2p_api-5.0.0', ext: 'aar')
47
63
  }
48
-
49
-
50
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bits-innovate/react-native-vstarcam",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "React Native bridge for VStarCam P2P SDK",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",