assentify-sdk-react-native 0.0.40 → 0.0.41

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.
package/README.md CHANGED
@@ -92,6 +92,10 @@ yarn add assentify-sdk-react-native
92
92
  ```
93
93
 
94
94
  ## Versions
95
+ **0.0.41**
96
+ 1. *Updated React Native development version*
97
+ 2. *Updated React version*
98
+
95
99
  **0.0.40**
96
100
  1. *TensorFlow Lite → LiteRT Migration (16 KB Page Size Compliance)*
97
101
 
@@ -197,7 +197,7 @@ class AssentifySdkModule(context: ReactApplicationContext) :
197
197
  fun startScanOtherIDPage(language: String ,stepID :Int) {
198
198
  timeStarted = getCurrentDateTimeUTC();
199
199
  /** Nav To Other Scan Page */
200
- val intent = Intent(currentActivity, ScanOtherActivity::class.java)
200
+ val intent = Intent(reactApplicationContext.currentActivity, ScanOtherActivity::class.java)
201
201
  intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
202
202
  intent.putExtra("holdHandColor", environmentalConditions.HoldHandColor)
203
203
  intent.putExtra("processingColor", environmentalConditions.CustomColor)
@@ -206,7 +206,7 @@ class AssentifySdkModule(context: ReactApplicationContext) :
206
206
  intent.putExtra("apiKey", this.apiKey)
207
207
  intent.putExtra("stepID", stepID)
208
208
  intent.putExtra("manualClickColor", this.manualClickColor)
209
- currentActivity?.startActivity(intent)
209
+ reactApplicationContext.currentActivity?.startActivity(intent)
210
210
  }
211
211
 
212
212
  @ReactMethod
@@ -215,7 +215,7 @@ class AssentifySdkModule(context: ReactApplicationContext) :
215
215
  stepID :Int) {
216
216
  timeStarted = getCurrentDateTimeUTC();
217
217
  /** Nav To Other Scan Page */
218
- val intent = Intent(currentActivity, QrActivity::class.java)
218
+ val intent = Intent(reactApplicationContext.currentActivity, QrActivity::class.java)
219
219
  intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
220
220
  intent.putExtra("holdHandColor", environmentalConditions.HoldHandColor)
221
221
  intent.putExtra("processingColor", environmentalConditions.CustomColor)
@@ -223,7 +223,7 @@ class AssentifySdkModule(context: ReactApplicationContext) :
223
223
  intent.putExtra("language", language)
224
224
  intent.putExtra("stepID", stepID)
225
225
  intent.putExtra("manualClickColor", this.manualClickColor)
226
- currentActivity?.startActivity(intent)
226
+ reactApplicationContext.currentActivity?.startActivity(intent)
227
227
  }
228
228
 
229
229
  @ReactMethod
@@ -236,7 +236,7 @@ class AssentifySdkModule(context: ReactApplicationContext) :
236
236
  timeStarted = getCurrentDateTimeUTC();
237
237
  try {
238
238
  /** Nav To ID Scan Page */
239
- val intent = Intent(currentActivity, ScanIDActivity::class.java)
239
+ val intent = Intent(reactApplicationContext.currentActivity, ScanIDActivity::class.java)
240
240
  intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
241
241
  intent.putExtra("holdHandColor", environmentalConditions.HoldHandColor)
242
242
  intent.putExtra("processingColor", environmentalConditions.CustomColor)
@@ -248,7 +248,7 @@ class AssentifySdkModule(context: ReactApplicationContext) :
248
248
  intent.putExtra("apiKey", this.apiKey)
249
249
  intent.putExtra("stepID", stepID)
250
250
  intent.putExtra("manualClickColor", this.manualClickColor)
251
- currentActivity?.startActivity(intent)
251
+ reactApplicationContext.currentActivity?.startActivity(intent)
252
252
  } catch (e: Exception) {
253
253
  Log.e(NAME, e.toString())
254
254
  }
@@ -272,7 +272,7 @@ class AssentifySdkModule(context: ReactApplicationContext) :
272
272
  intent.putExtra("showCountDown", showCountDown)
273
273
  intent.putExtra("stepID", stepID)
274
274
  intent.putExtra("manualClickColor", this.manualClickColor)
275
- currentActivity?.startActivity(intent)
275
+ reactApplicationContext.currentActivity?.startActivity(intent)
276
276
  }
277
277
 
278
278
  override fun onAssentifySdkInitError(message: String) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assentify-sdk-react-native",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "description": "This package provides integration with Assentify's services, allowing developers to incorporate Assentify functionalities seamlessly into their applications.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -70,8 +70,8 @@
70
70
  "eslint-plugin-prettier": "^5.0.1",
71
71
  "jest": "^29.7.0",
72
72
  "prettier": "^3.0.3",
73
- "react": "18.2.0",
74
- "react-native": "0.73.6",
73
+ "react": "18.3.1",
74
+ "react-native": "0.82.1",
75
75
  "react-native-builder-bob": "^0.20.0",
76
76
  "react-native-gesture-handler": "^2.16.2",
77
77
  "react-native-safe-area-context": "^4.10.4",
@@ -87,8 +87,8 @@
87
87
  "@gorhom/bottom-sheet": "^4",
88
88
  "@react-navigation/native": ">=6.0.0 <8.0.0",
89
89
  "@react-navigation/native-stack": ">=6.0.0 <8.0.0",
90
- "react": "*",
91
- "react-native": "*",
90
+ "react": ">=18.0.0 <20.0.0",
91
+ "react-native": ">=0.73.0 <0.83.0",
92
92
  "react-native-gesture-handler": "^2.0.0",
93
93
  "react-native-reanimated": ">= 3.0.0",
94
94
  "react-native-safe-area-context": ">= 3.0.0",