1
0
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:
oliexdev
2025-08-29 15:55:55 +02:00
parent ac8e27fbfb
commit 96143e6a25
4 changed files with 10 additions and 0 deletions

View File

@@ -84,6 +84,11 @@ android {
} }
buildTypes { buildTypes {
debug {
applicationIdSuffix = ".debug"
versionNameSuffix = "-debug"
}
release { release {
signingConfig = signingConfigs.getByName("release") signingConfig = signingConfigs.getByName("release")
proguardFiles( proguardFiles(

View File

@@ -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>

View File

@@ -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)
} }

View File

@@ -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)
} }