From 4fae4e2a278f222df6ab13106a2342622a317873 Mon Sep 17 00:00:00 2001 From: Zion Huang Date: Mon, 21 Aug 2023 17:39:22 +0800 Subject: [PATCH] Bump to version 0.5.2 --- app/build.gradle.kts | 4 ++-- .../java/com/zionhuang/music/utils/Utils.kt | 2 +- .../music/ui/screens/settings/AboutScreen.kt | 21 ++++++++++++++++++- .../metadata/android/en-US/changelogs/18.txt | 3 +++ 4 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 fastlane/metadata/android/en-US/changelogs/18.txt diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 9e09c5f74..02eb490e1 100755 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -24,8 +24,8 @@ android { applicationId = "com.zionhuang.music" minSdk = 24 targetSdk = 33 - versionCode = 17 - versionName = "0.5.1" + versionCode = 18 + versionName = "0.5.2" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } buildTypes { diff --git a/app/src/full/java/com/zionhuang/music/utils/Utils.kt b/app/src/full/java/com/zionhuang/music/utils/Utils.kt index 32dcffb51..cb1e2148d 100644 --- a/app/src/full/java/com/zionhuang/music/utils/Utils.kt +++ b/app/src/full/java/com/zionhuang/music/utils/Utils.kt @@ -13,7 +13,7 @@ import kotlin.time.Duration.Companion.hours fun MainActivity.setupRemoteConfig() { val remoteConfig = Firebase.remoteConfig remoteConfig.setConfigSettingsAsync(remoteConfigSettings { - minimumFetchIntervalInSeconds = 12.hours.inWholeSeconds + minimumFetchIntervalInSeconds = 6.hours.inWholeSeconds }) remoteConfig.fetchAndActivate() .addOnCompleteListener(this) { task -> diff --git a/app/src/main/java/com/zionhuang/music/ui/screens/settings/AboutScreen.kt b/app/src/main/java/com/zionhuang/music/ui/screens/settings/AboutScreen.kt index 97168db71..7444f441c 100644 --- a/app/src/main/java/com/zionhuang/music/ui/screens/settings/AboutScreen.kt +++ b/app/src/main/java/com/zionhuang/music/ui/screens/settings/AboutScreen.kt @@ -67,6 +67,25 @@ fun AboutScreen( style = MaterialTheme.typography.titleMedium, color = MaterialTheme.colorScheme.secondary ) + + Spacer(Modifier.width(4.dp)) + + Text( + text = BuildConfig.FLAVOR.uppercase(), + style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.secondary, + modifier = Modifier + .border( + width = 1.dp, + color = MaterialTheme.colorScheme.secondary, + shape = CircleShape + ) + .padding( + horizontal = 6.dp, + vertical = 2.dp + ) + ) + if (BuildConfig.DEBUG) { Spacer(Modifier.width(4.dp)) @@ -81,7 +100,7 @@ fun AboutScreen( shape = CircleShape ) .padding( - horizontal = 4.dp, + horizontal = 6.dp, vertical = 2.dp ) ) diff --git a/fastlane/metadata/android/en-US/changelogs/18.txt b/fastlane/metadata/android/en-US/changelogs/18.txt new file mode 100644 index 000000000..4334ebd2b --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/18.txt @@ -0,0 +1,3 @@ +- Improve library design +- Lyrics translator (full version only) +- Minor enhancement and bug fixes \ No newline at end of file