@infilectorg/infiviz-shots-react-sdk 1.0.13 → 1.0.15

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.
@@ -64,11 +64,13 @@ android {
64
64
 
65
65
  buildTypes {
66
66
  release {
67
+ debuggable false
67
68
  minifyEnabled true
68
69
  proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
69
70
  }
70
71
  debug {
71
72
  minifyEnabled false
73
+ debuggable true
72
74
  }
73
75
  }
74
76
 
@@ -77,8 +79,8 @@ android {
77
79
  }
78
80
 
79
81
  compileOptions {
80
- sourceCompatibility JavaVersion.VERSION_17
81
- targetCompatibility JavaVersion.VERSION_17
82
+ sourceCompatibility JavaVersion.VERSION_1_8
83
+ targetCompatibility JavaVersion.VERSION_1_8
82
84
  }
83
85
 
84
86
  sourceSets {
@@ -102,8 +104,7 @@ dependencies {
102
104
  implementation 'com.google.android.material:material:1.12.0'
103
105
  implementation 'androidx.constraintlayout:constraintlayout:2.2.1'
104
106
 
105
-
106
- implementation 'com.infilect:infivizshots-sdk:RN-1.0.1'
107
+ implementation 'com.infilect:infivizshots-sdk:RN-1.0.3'
107
108
 
108
109
  testImplementation 'junit:junit:4.13.2'
109
110
  implementation 'com.github.bumptech.glide:glide:4.14.2'
@@ -111,7 +112,7 @@ dependencies {
111
112
  implementation 'com.google.code.gson:gson:2.12.1'
112
113
  androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
113
114
  implementation 'com.facebook.stetho:stetho:1.5.1'
114
- implementation "androidx.core:core-ktx:1.16.0"
115
+ implementation "androidx.core:core-ktx:1.13.1"
115
116
 
116
117
  // HIlt
117
118
  implementation "com.google.dagger:hilt-android:2.42"
@@ -127,6 +127,27 @@
127
127
  *;
128
128
  }
129
129
 
130
+ # Keep sealed class SDKEvent and its object instances
131
+ -keep class com.infilect.infivizshotsreactsdk.SDKEvent {
132
+ *;
133
+ }
134
+ -keep class com.infilect.infivizshotsreactsdk.SDKEvent$SYNC_EVENT {
135
+ *;
136
+ }
137
+ -keep class com.infilect.infivizshotsreactsdk.SDKEvent$SESSION_RESULT_EVENT {
138
+ *;
139
+ }
140
+ -keep class com.infilect.infivizshotsreactsdk.SDKEvent$ACTION_GENERATED_EVENT {
141
+ *;
142
+ }
143
+
144
+ # Keep sealed class constructors and object instances
145
+ -keepclassmembers class com.infilect.infivizshotsreactsdk.SDKEvent {
146
+ public static final com.infilect.infivizshotsreactsdk.SDKEvent$SYNC_EVENT SYNC_EVENT;
147
+ public static final com.infilect.infivizshotsreactsdk.SDKEvent$SESSION_RESULT_EVENT SESSION_RESULT_EVENT;
148
+ public static final com.infilect.infivizshotsreactsdk.SDKEvent$ACTION_GENERATED_EVENT ACTION_GENERATED_EVENT;
149
+ }
150
+
130
151
  # Additional memory optimization rules
131
152
  -dontusemixedcaseclassnames
132
153
  -dontskipnonpubliclibraryclasses
@@ -1,8 +1,15 @@
1
1
  package com.infilect.infivizshotsreactsdk
2
2
 
3
3
 
4
- sealed class SDKEvent(val name: String) {
5
- object SYNC_EVENT : SDKEvent("SyncEvent")
6
- object SESSION_RESULT_EVENT: SDKEvent("SessionRealTimeResultEvent")
7
- object ACTION_GENERATED_EVENT: SDKEvent("ActionsGeneratedEvent")
4
+ open class SDKEvent(val name: String) {
5
+ companion object {
6
+ @JvmField
7
+ val SYNC_EVENT = SDKEvent("SyncEvent")
8
+
9
+ @JvmField
10
+ val SESSION_RESULT_EVENT = SDKEvent("SessionRealTimeResultEvent")
11
+
12
+ @JvmField
13
+ val ACTION_GENERATED_EVENT = SDKEvent("ActionsGeneratedEvent")
14
+ }
8
15
  }
@@ -463,7 +463,7 @@ class InfivizShotsReactSdk: RCTEventEmitter {
463
463
  navigationController: nil
464
464
  )
465
465
  let controller = InfilectSDKCameraActivityForResult(cameraContext: context)
466
- controller.deletePhoto(imageURI: imageURI, sessionID: temporarySessionId) { result in
466
+ controller.deleteImage(imageID: imageURI, sessionID: temporarySessionId) { result in
467
467
  switch result {
468
468
  case .success(let deleteResult):
469
469
  resolve(deleteResult)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infilectorg/infiviz-shots-react-sdk",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "React Native package for native libraries",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",