mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-30 19:49:59 +02:00
Configured a debug
build type in build.gradle.kts
with an applicationIdSuffix
of ".debug" and versionNameSuffix
of "-debug".
This commit is contained in:
@@ -84,6 +84,11 @@ android {
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
debug {
|
||||
applicationIdSuffix = ".debug"
|
||||
versionNameSuffix = "-debug"
|
||||
}
|
||||
|
||||
release {
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
proguardFiles(
|
||||
|
@@ -17,6 +17,7 @@
|
||||
<uses-feature android:name="android.hardware.bluetooth_le" android:required="false"/>
|
||||
|
||||
<queries>
|
||||
<package android:name="com.health.openscale.sync.debug" />
|
||||
<package android:name="com.health.openscale.sync.oss" />
|
||||
<package android:name="com.health.openscale.sync" />
|
||||
</queries>
|
||||
|
@@ -77,6 +77,7 @@ class MeasurementCrudUseCases @Inject constructor(
|
||||
|
||||
sync.triggerSyncInsert(measurement, values,"com.health.openscale.sync")
|
||||
sync.triggerSyncInsert(measurement, values,"com.health.openscale.sync.oss")
|
||||
sync.triggerSyncInsert(measurement, values,"com.health.openscale.sync.debug")
|
||||
|
||||
MeasurementWidget.refreshAll(appContext)
|
||||
|
||||
@@ -107,6 +108,7 @@ class MeasurementCrudUseCases @Inject constructor(
|
||||
|
||||
sync.triggerSyncUpdate(measurement, values, "com.health.openscale.sync")
|
||||
sync.triggerSyncUpdate(measurement, values,"com.health.openscale.sync.oss")
|
||||
sync.triggerSyncUpdate(measurement, values,"com.health.openscale.sync.debug")
|
||||
|
||||
MeasurementWidget.refreshAll(appContext)
|
||||
|
||||
@@ -128,6 +130,7 @@ class MeasurementCrudUseCases @Inject constructor(
|
||||
databaseRepository.deleteMeasurement(measurement)
|
||||
sync.triggerSyncDelete(Date(measurement.timestamp), "com.health.openscale.sync")
|
||||
sync.triggerSyncDelete(Date(measurement.timestamp), "com.health.openscale.sync.oss")
|
||||
sync.triggerSyncDelete(Date(measurement.timestamp), "com.health.openscale.sync.debug")
|
||||
|
||||
MeasurementWidget.refreshAll(appContext)
|
||||
}
|
||||
|
@@ -127,6 +127,7 @@ class UserUseCases @Inject constructor(
|
||||
suspend fun purgeMeasurementsForUser(userId: Int): Result<Int> = runCatching {
|
||||
sync.triggerSyncClear("com.health.openscale.sync")
|
||||
sync.triggerSyncClear("com.health.openscale.sync.oss")
|
||||
sync.triggerSyncClear("com.health.openscale.sync.debug")
|
||||
databaseRepository.deleteAllMeasurementsForUser(userId)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user