Skip to content

Commit

Permalink
Release 1.6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
johan12345 committed Aug 3, 2023
1 parent 42916d7 commit a054a31
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ android {
minSdkVersion 21
targetSdkVersion 33
// NOTE: always increase versionCode by 2 since automotive flavor uses versionCode + 1
versionCode 192
versionName "1.6.6"
versionCode 194
versionName "1.6.7"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
resConfigs supportedLocales.split(',')
Expand Down
13 changes: 10 additions & 3 deletions app/src/main/java/net/vonforst/evmap/storage/Database.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
import co.anbora.labs.spatia.builder.SpatiaRoom
import co.anbora.labs.spatia.geometry.GeometryConverters
import kotlinx.coroutines.runBlocking
import net.vonforst.evmap.api.goingelectric.GEChargeCard
import net.vonforst.evmap.api.goingelectric.GEChargepoint
import net.vonforst.evmap.api.openchargemap.OCMConnectionType
Expand All @@ -35,7 +34,7 @@ import net.vonforst.evmap.model.*
OCMCountry::class,
OCMOperator::class,
SavedRegion::class
], version = 21
], version = 22
)
@TypeConverters(Converters::class, GeometryConverters::class)
abstract class AppDatabase : RoomDatabase() {
Expand Down Expand Up @@ -75,7 +74,8 @@ abstract class AppDatabase : RoomDatabase() {
MIGRATION_2, MIGRATION_3, MIGRATION_4, MIGRATION_5, MIGRATION_6,
MIGRATION_7, MIGRATION_8, MIGRATION_9, MIGRATION_10, MIGRATION_11,
MIGRATION_12, MIGRATION_13, MIGRATION_14, MIGRATION_15, MIGRATION_16,
MIGRATION_17, MIGRATION_18, MIGRATION_19, MIGRATION_20, MIGRATION_21
MIGRATION_17, MIGRATION_18, MIGRATION_19, MIGRATION_20, MIGRATION_21,
MIGRATION_22
)
.addCallback(object : Callback() {
override fun onCreate(db: SupportSQLiteDatabase) {
Expand Down Expand Up @@ -452,6 +452,13 @@ abstract class AppDatabase : RoomDatabase() {
db.execSQL("DELETE FROM savedregion")
}
}

private val MIGRATION_22 = object : Migration(21, 22) {
override fun migrate(db: SupportSQLiteDatabase) {
// clear cache with this update
db.execSQL("DELETE FROM savedregion")
}
}
}

/**
Expand Down
5 changes: 5 additions & 0 deletions fastlane/metadata/android/de-DE/changelogs/194.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Fehler behoben:
- GoingElectric: Filteroption "CCS" erschien doppelt
- Korrekturen für kleine Bildschirme
- Farbe eines Menüs im dunklen Design korrigiert
- Abstürze behoben
5 changes: 5 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/194.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfixes:
- GoingElectric: filter option "CCS" appeared twice
- Improvements for small displays
- Fixed color of a menu in dark mode
- Fixed crashes

0 comments on commit a054a31

Please sign in to comment.