@op-engineering/op-sqlite 6.0.0 → 6.0.2-beta1

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.
@@ -59,10 +59,7 @@ internal class OPSQLiteModule(context: ReactApplicationContext?) : ReactContextB
59
59
  val assetsManager = context.assets
60
60
 
61
61
  try {
62
- // Open the input stream for the asset file
63
- val inputStream: InputStream = assetsManager.open("$path/$filename")
64
62
 
65
- // Create the output file in the documents directory
66
63
  val databasesFolder =
67
64
  context.getDatabasePath("defaultDatabase")
68
65
  .absolutePath
@@ -79,6 +76,8 @@ internal class OPSQLiteModule(context: ReactApplicationContext?) : ReactContextB
79
76
  }
80
77
  }
81
78
 
79
+ val inputStream: InputStream = assetsManager.open("$path/$filename")
80
+
82
81
  // Open the output stream for the output file
83
82
  val outputStream: OutputStream = FileOutputStream(outputFile)
84
83