Skip to content

Commit 9614074

Browse files
committed
Create databases folder if it does not exist
1 parent 343013d commit 9614074

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ allprojects {
2424
}
2525

2626
project.ext {
27-
sdkVersion='0.6.4'
27+
sdkVersion='0.6.5'
2828
versionCode=1
2929

3030
compileSdkVersion=27

core/src/main/java/io/snabble/sdk/ProductDatabase.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@ void applyDeltaUpdate(InputStream inputStream) throws IOException {
313313
return;
314314
}
315315

316+
tempDbFile.mkdirs();
317+
316318
FileUtils.copyFile(dbFile, tempDbFile);
317319

318320
SQLiteDatabase tempDb = SQLiteDatabase.openOrCreateDatabase(tempDbFile, null);

0 commit comments

Comments
 (0)