@infilectorg/infiviz-shots-react-sdk 1.1.10 → 1.1.12

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
- minifyEnabled true
67
+ debuggable false
68
+ minifyEnabled false
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 {
@@ -103,7 +105,7 @@ dependencies {
103
105
  implementation 'androidx.constraintlayout:constraintlayout:2.2.1'
104
106
 
105
107
 
106
- implementation 'com.infilect:infivizshots-sdk:RN-1.0.9'
108
+ implementation 'com.infilect:infivizshots-sdk:RN-1.0.11'
107
109
 
108
110
  testImplementation 'junit:junit:4.13.2'
109
111
  implementation 'com.github.bumptech.glide:glide:4.14.2'
@@ -122,4 +124,4 @@ react {
122
124
  jsRootDir = file("../src/")
123
125
  libraryName = "InfivizShotsReactSdk"
124
126
  codegenJavaPackageName = "com.infilect.infivizshotsreactsdk"
125
- }
127
+ }
@@ -127,6 +127,29 @@
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
+
135
+ -keep class com.infilect.infivizshotsreactsdk.SDKEvent$SYNC_EVENT {
136
+ *;
137
+ }
138
+
139
+ -keep class com.infilect.infivizshotsreactsdk.SDKEvent$SESSION_RESULT_EVENT {
140
+ *;
141
+ }
142
+ -keep class com.infilect.infivizshotsreactsdk.SDKEvent$ACTION_GENERATED_EVENT {
143
+ *;
144
+ }
145
+
146
+ # Keep sealed class constructors and object instances
147
+ -keepclassmembers class com.infilect.infivizshotsreactsdk.SDKEvent {
148
+ public static final com.infilect.infivizshotsreactsdk.SDKEvent$SYNC_EVENT SYNC_EVENT;
149
+ public static final com.infilect.infivizshotsreactsdk.SDKEvent$SESSION_RESULT_EVENT SESSION_RESULT_EVENT;
150
+ public static final com.infilect.infivizshotsreactsdk.SDKEvent$ACTION_GENERATED_EVENT ACTION_GENERATED_EVENT;
151
+ }
152
+
130
153
  # Additional memory optimization rules
131
154
  -dontusemixedcaseclassnames
132
155
  -dontskipnonpubliclibraryclasses
@@ -50,8 +50,9 @@ class InfivizShotsReactSdkModule(private val reactContext: ReactApplicationConte
50
50
  val status = intent!!.getStringExtra(IntentConstants.STATUS)
51
51
  val message = intent.getStringExtra(IntentConstants.MESSAGE)
52
52
  val sessionId = intent.getStringExtra(IntentConstants.SESSION_ID)
53
+ val universalSessionId = intent.getStringExtra(IntentConstants.EXTERNAL_SESSION_ID)
53
54
 
54
- sendEventToReact(SDKEvent.SYNC_EVENT, sessionId!!, status!!, message!!)
55
+ sendEventToReact(SDKEvent.SYNC_EVENT, sessionId!!, status!!, message!!,universalSessionId)
55
56
  }
56
57
  }
57
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infilectorg/infiviz-shots-react-sdk",
3
- "version": "1.1.10",
3
+ "version": "1.1.12",
4
4
  "description": "React Native package for native libraries",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",