orbis1-sdk-rn 0.2.5 → 0.2.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.
@@ -384,7 +384,13 @@ class RgbModule(reactContext: ReactApplicationContext) :
384
384
 
385
385
  fun deleteRuntimeLockFile(masterFingerprint: String) {
386
386
  try {
387
- val runtimeLockPath = AppConstants.rgbDir
387
+ val rgbDir = AppConstants.rgbDir
388
+ if (rgbDir == null) {
389
+ Log.i("RGB", "RGB directory is not initialized. Skipping runtime lock deletion.")
390
+ return
391
+ }
392
+
393
+ val runtimeLockPath = rgbDir
388
394
  .resolve(masterFingerprint)
389
395
  .resolve("rgb_runtime.lock")
390
396
  if (!runtimeLockPath.exists()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orbis1-sdk-rn",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Orbis1 SDK for React Native with RGB core, Watch Tower, and Gas-Free transfers.",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",