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

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.
@@ -39,7 +39,7 @@ android {
39
39
  targetCompatibility JavaVersion.VERSION_1_8
40
40
  }
41
41
 
42
- // Specify where to find JNI libs
42
+ // The .so files are in jniLibs folder
43
43
  sourceSets {
44
44
  main {
45
45
  jniLibs.srcDirs = ['src/main/jniLibs']
@@ -50,14 +50,10 @@ android {
50
50
  repositories {
51
51
  mavenCentral()
52
52
  google()
53
- // Use flatDir to properly consume the AAR
54
- flatDir {
55
- dirs 'libs'
56
- }
57
53
  }
58
54
 
59
55
  dependencies {
60
56
  implementation "com.facebook.react:react-native:+"
61
- // Use the proper AAR notation with flatDir
62
- implementation(name: 'app_p2p_api-5.0.0', ext: 'aar')
57
+ // AAR for Java classes only (SDK wrapper classes)
58
+ implementation files('libs/app_p2p_api-5.0.0.aar')
63
59
  }
@@ -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.6",
4
4
  "description": "React Native bridge for VStarCam P2P SDK",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",