mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-31 20:11:58 +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 {
|
buildTypes {
|
||||||
|
debug {
|
||||||
|
applicationIdSuffix = ".debug"
|
||||||
|
versionNameSuffix = "-debug"
|
||||||
|
}
|
||||||
|
|
||||||
release {
|
release {
|
||||||
signingConfig = signingConfigs.getByName("release")
|
signingConfig = signingConfigs.getByName("release")
|
||||||
proguardFiles(
|
proguardFiles(
|
||||||
|
@@ -17,6 +17,7 @@
|
|||||||
<uses-feature android:name="android.hardware.bluetooth_le" android:required="false"/>
|
<uses-feature android:name="android.hardware.bluetooth_le" android:required="false"/>
|
||||||
|
|
||||||
<queries>
|
<queries>
|
||||||
|
<package android:name="com.health.openscale.sync.debug" />
|
||||||
<package android:name="com.health.openscale.sync.oss" />
|
<package android:name="com.health.openscale.sync.oss" />
|
||||||
<package android:name="com.health.openscale.sync" />
|
<package android:name="com.health.openscale.sync" />
|
||||||
</queries>
|
</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")
|
||||||
sync.triggerSyncInsert(measurement, values,"com.health.openscale.sync.oss")
|
sync.triggerSyncInsert(measurement, values,"com.health.openscale.sync.oss")
|
||||||
|
sync.triggerSyncInsert(measurement, values,"com.health.openscale.sync.debug")
|
||||||
|
|
||||||
MeasurementWidget.refreshAll(appContext)
|
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")
|
||||||
sync.triggerSyncUpdate(measurement, values,"com.health.openscale.sync.oss")
|
sync.triggerSyncUpdate(measurement, values,"com.health.openscale.sync.oss")
|
||||||
|
sync.triggerSyncUpdate(measurement, values,"com.health.openscale.sync.debug")
|
||||||
|
|
||||||
MeasurementWidget.refreshAll(appContext)
|
MeasurementWidget.refreshAll(appContext)
|
||||||
|
|
||||||
@@ -128,6 +130,7 @@ class MeasurementCrudUseCases @Inject constructor(
|
|||||||
databaseRepository.deleteMeasurement(measurement)
|
databaseRepository.deleteMeasurement(measurement)
|
||||||
sync.triggerSyncDelete(Date(measurement.timestamp), "com.health.openscale.sync")
|
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.oss")
|
||||||
|
sync.triggerSyncDelete(Date(measurement.timestamp), "com.health.openscale.sync.debug")
|
||||||
|
|
||||||
MeasurementWidget.refreshAll(appContext)
|
MeasurementWidget.refreshAll(appContext)
|
||||||
}
|
}
|
||||||
|
@@ -127,6 +127,7 @@ class UserUseCases @Inject constructor(
|
|||||||
suspend fun purgeMeasurementsForUser(userId: Int): Result<Int> = runCatching {
|
suspend fun purgeMeasurementsForUser(userId: Int): Result<Int> = runCatching {
|
||||||
sync.triggerSyncClear("com.health.openscale.sync")
|
sync.triggerSyncClear("com.health.openscale.sync")
|
||||||
sync.triggerSyncClear("com.health.openscale.sync.oss")
|
sync.triggerSyncClear("com.health.openscale.sync.oss")
|
||||||
|
sync.triggerSyncClear("com.health.openscale.sync.debug")
|
||||||
databaseRepository.deleteAllMeasurementsForUser(userId)
|
databaseRepository.deleteAllMeasurementsForUser(userId)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user