Update version number

This commit is contained in:
Matthieu 2020-12-20 14:31:48 +01:00
parent deb21ccb90
commit 6c66863305
3 changed files with 7 additions and 4 deletions

View File

@ -24,8 +24,8 @@ android {
applicationId "com.h.pixeldroid" applicationId "com.h.pixeldroid"
minSdkVersion 23 minSdkVersion 23
targetSdkVersion 30 targetSdkVersion 30
versionCode 6 versionCode 7
versionName "1.0.alpha5" versionName "1.0.alpha6"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments clearPackageData: 'true' testInstrumentationRunnerArguments clearPackageData: 'true'

View File

@ -20,7 +20,7 @@ import com.h.pixeldroid.objects.Notification
PublicFeedStatusDatabaseEntity::class, PublicFeedStatusDatabaseEntity::class,
Notification::class Notification::class
], ],
version = 1 version = 2
) )
@TypeConverters(Converters::class) @TypeConverters(Converters::class)
abstract class AppDatabase : RoomDatabase() { abstract class AppDatabase : RoomDatabase() {

View File

@ -16,6 +16,9 @@ class DatabaseModule(private val context: Context) {
return Room.databaseBuilder( return Room.databaseBuilder(
context, context,
AppDatabase::class.java, "pixeldroid" AppDatabase::class.java, "pixeldroid"
).allowMainThreadQueries().build() ).allowMainThreadQueries()
//TODO remove this for 1.0 release
.fallbackToDestructiveMigration()
.build()
} }
} }