@bits-innovate/react-native-vstarcam 1.0.4 → 1.0.5

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.
@@ -38,19 +38,12 @@ android {
38
38
  sourceCompatibility JavaVersion.VERSION_1_8
39
39
  targetCompatibility JavaVersion.VERSION_1_8
40
40
  }
41
-
42
- // Specify where to find JNI libs
43
- sourceSets {
44
- main {
45
- jniLibs.srcDirs = ['src/main/jniLibs']
46
- }
47
- }
48
41
  }
49
42
 
50
43
  repositories {
51
44
  mavenCentral()
52
45
  google()
53
- // Use flatDir to properly consume the AAR
46
+ // Use flatDir to properly consume the AAR files
54
47
  flatDir {
55
48
  dirs 'libs'
56
49
  }
@@ -58,6 +51,8 @@ repositories {
58
51
 
59
52
  dependencies {
60
53
  implementation "com.facebook.react:react-native:+"
61
- // Use the proper AAR notation with flatDir
54
+ // VStarCam SDK dependencies - include both AAR files!
55
+ // vp_log must be loaded first as it's a dependency of app_p2p_api
56
+ implementation(name: 'vp_log-5.0.0', ext: 'aar')
62
57
  implementation(name: 'app_p2p_api-5.0.0', ext: 'aar')
63
58
  }
Binary file
@@ -429,7 +429,7 @@ public class VStarCamModule extends ReactContextBaseJavaModule {
429
429
  @ReactMethod
430
430
  public void getSdkVersion(Promise promise) {
431
431
  WritableMap result = Arguments.createMap();
432
- result.putString("version", "1.0.3");
432
+ result.putString("version", "1.0.5");
433
433
  result.putBoolean("nativeLoaded", isNativeLibraryLoaded);
434
434
  result.putString("nativeLib", "OKSMARTPPCS");
435
435
  promise.resolve(result);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bits-innovate/react-native-vstarcam",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "React Native bridge for VStarCam P2P SDK",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",