Skip to content

Commit

Permalink
Bump version to 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aistra0528 committed Jan 30, 2023
1 parent 55af0fc commit ed2b9b4
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
applicationId = "com.aistra.hail"
minSdk = 23
targetSdk = 33
versionCode = 21
versionName = "1.1.0"
versionCode = 22
versionName = "1.1.1"
}
val signing = if (file("../signing.properties").exists()) {
signingConfigs.create("release") {
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/kotlin/com/aistra/hail/HailApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.aistra.hail
import android.app.Application
import android.content.Intent
import com.aistra.hail.app.AppManager
import com.aistra.hail.app.DirtyDataUpdater
import com.aistra.hail.app.HailData
import com.aistra.hail.services.AutoFreezeService
import com.aistra.hail.utils.HTarget
Expand All @@ -11,8 +12,9 @@ import com.google.android.material.color.DynamicColors
class HailApp : Application() {
override fun onCreate() {
super.onCreate()
DynamicColors.applyToActivitiesIfAvailable(this)
app = this
DynamicColors.applyToActivitiesIfAvailable(this)
DirtyDataUpdater.update(this)
}

fun setAutoFreezeService() {
Expand Down
14 changes: 14 additions & 0 deletions app/src/main/kotlin/com/aistra/hail/app/DirtyDataUpdater.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.aistra.hail.app

import android.content.Context
import androidx.preference.PreferenceManager

object DirtyDataUpdater {
fun update(context: Context) = HailData.run {
// This method will be removed in the next release.
if (workingMode.startsWith("do_")) {
PreferenceManager.getDefaultSharedPreferences(context).edit()
.putString(WORKING_MODE, workingMode.replace("do_", OWNER)).apply()
}
}
}
5 changes: 4 additions & 1 deletion app/src/main/res/xml/locales_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
<locale android:name="de" />
<locale android:name="en" />
<locale android:name="es" />
<locale android:name="fr" />
<locale android:name="in" />
<locale android:name="it" />
<locale android:name="ja-JP" />
<locale android:name="ja" />
<locale android:name="nb" />
<locale android:name="ru" />
<locale android:name="uk" />
<locale android:name="zh-CN" />
Expand Down

0 comments on commit ed2b9b4

Please sign in to comment.