diff --git a/build.gradle b/build.gradle index b3803f51e..0eb5c61da 100644 --- a/build.gradle +++ b/build.gradle @@ -50,7 +50,7 @@ ext { cyfaceAndroidBackendVersion = "0.0.0" // Automatically overwritten by CI // Cyface dependencies - cyfaceUtilsVersion = "4.0.3" + cyfaceUtilsVersion = "4.0.4" cyfaceSerializationVersion = "3.0.0" cyfaceUploaderVersion = "1.0.0" diff --git a/synchronization/src/main/kotlin/de/cyface/synchronization/settings/SynchronizationSettings.kt b/synchronization/src/main/kotlin/de/cyface/synchronization/settings/SynchronizationSettings.kt index 144368820..2bbedc602 100644 --- a/synchronization/src/main/kotlin/de/cyface/synchronization/settings/SynchronizationSettings.kt +++ b/synchronization/src/main/kotlin/de/cyface/synchronization/settings/SynchronizationSettings.kt @@ -57,7 +57,8 @@ class SynchronizationSettings(context: Context, collectorUrl: String, oAuthConfi private val dataStore: DataStore = MultiProcessDataStoreFactory.create( serializer = SettingsSerializer, produceFile = { - File("${appContext.cacheDir.path}/synchronization.pb") + // With cacheDir the settings are lost on app restart [RFR-799] + File("${appContext.filesDir.path}/synchronization.pb") }, migrations = listOf( PreferencesMigrationFactory.create(appContext, collectorUrl, oAuthConfig),