Skip to content

Commit d63e0e5

Browse files
committed
Remove IS_FORCE_PREMIUM build config and usage
Eliminates the IS_FORCE_PREMIUM buildConfigField from build.gradle.kts and its conditional usage in GetAppSettingFlowUseCase. The premium setting UI is now always added, simplifying build configuration and code logic.
1 parent 5eb3abf commit d63e0e5

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

app/build.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,8 @@ android {
2727
release {
2828
isMinifyEnabled = true
2929
isShrinkResources = true
30-
buildConfigField("Boolean", "IS_FORCE_PREMIUM", false.toString())
3130
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
3231
}
33-
debug {
34-
buildConfigField("Boolean", "IS_FORCE_PREMIUM", true.toString())
35-
}
3632
}
3733
compileOptions {
3834
sourceCompatibility = JavaVersion.VERSION_11

app/src/main/java/com/creative/qrcodescanner/usecase/setting/GetAppSettingFlowUseCase.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ class GetAppSettingFlowUseCase @Inject constructor(
3838
add(SettingItemUIState.SwitchUIState(SettingId.VIBRATE.value, title = context.getString(R.string.vibrate), isEnable = it.isEnableVibrate))
3939
add(SettingItemUIState.SwitchUIState(SettingId.KEEP_SCANNING.value, title = context.getString(R.string.keep_scanning), isEnable = it.isKeepScanning))
4040

41-
if (BuildConfig.IS_FORCE_PREMIUM) {
4241
add(SettingItemUIState.SwitchUIState(SettingId.PREMIUM.value, title = context.getString(R.string.force_premium), isEnable = it.isPremium))
43-
}
4442

4543
add(SettingItemUIState.DividerUIState(UUID.randomUUID().hashCode()))
4644

0 commit comments

Comments
 (0)