Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasnlm committed Jan 20, 2021
1 parent a15bebc commit 700a300
Show file tree
Hide file tree
Showing 16 changed files with 42 additions and 31 deletions.
4 changes: 2 additions & 2 deletions about/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode 807011
versionName '8.7.1'
versionCode 807021
versionName '8.7.2'

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ android {

defaultConfig {
// versionCode and versionName must be hardcoded to support F-droid
versionCode 807011
versionName '8.7.1'
versionCode 807021
versionName '8.7.2'
minSdkVersion 21
targetSdkVersion 30
multiDexEnabled true
Expand Down
10 changes: 7 additions & 3 deletions app/src/main/java/dev/lucasnlm/antimine/splash/SplashActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,14 @@ class SplashActivity : AppCompatActivity() {
private fun migrateDateAndGoToGameActivity() {
lifecycleScope.launchWhenCreated {
if (!isFinishing) {
withContext(Dispatchers.IO) {
playGamesManager.playerId()?.let {
splashViewMode.migrateCloudSave(it)
try {
withContext(Dispatchers.IO) {
playGamesManager.playerId()?.let {
splashViewMode.migrateCloudSave(it)
}
}
} catch (e: Exception) {
Log.e(TAG, "Play Games login was canceled", e)
}

goToGameActivity()
Expand Down
4 changes: 2 additions & 2 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {

defaultConfig {
// versionCode and versionName must be hardcoded to support F-droid
versionCode 807011
versionName '8.7.1'
versionCode 807021
versionName '8.7.2'
minSdkVersion 21
targetSdkVersion 30
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
Expand Down
4 changes: 2 additions & 2 deletions control/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode 807011
versionName '8.7.1'
versionCode 807021
versionName '8.7.2'

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down
4 changes: 2 additions & 2 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode 807011
versionName '8.7.1'
versionCode 807021
versionName '8.7.2'

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down
2 changes: 1 addition & 1 deletion external/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode 807011
versionCode 807021
versionName '1.0'
}

Expand Down
4 changes: 2 additions & 2 deletions foss/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
compileSdkVersion 30

defaultConfig {
versionCode 807011
versionName '8.7.1'
versionCode 807021
versionName '8.7.2'
minSdkVersion 21
targetSdkVersion 30
}
Expand Down
4 changes: 2 additions & 2 deletions i18n/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode 807011
versionName '8.7.1'
versionCode 807021
versionName '8.7.2'

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down
4 changes: 2 additions & 2 deletions preferences/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode 807011
versionName '8.7.1'
versionCode 807021
versionName '8.7.2'

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down
4 changes: 2 additions & 2 deletions proprietary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
compileSdkVersion 30

defaultConfig {
versionCode 807011
versionName '8.7.1'
versionCode 807021
versionName '8.7.2'
minSdkVersion 21
targetSdkVersion 30
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package dev.lucasnlm.external

import android.util.Log
import com.google.android.gms.tasks.Tasks
import com.google.firebase.remoteconfig.FirebaseRemoteConfig
import kotlinx.coroutines.Dispatchers
Expand Down Expand Up @@ -66,12 +67,18 @@ class FeatureFlagManager : IFeatureFlagManager() {
override suspend fun refresh() {
if (!BuildConfig.DEBUG) {
withContext(Dispatchers.IO) {
Tasks.await(remoteConfig.fetchAndActivate())
try {
Tasks.await(remoteConfig.fetchAndActivate())
} catch (e: Exception) {
Log.e(TAG, "Fail to fetch flags", e)
}
}
}
}

companion object {
private val TAG = FeatureFlagManager::class.simpleName

private const val HISTORY_ENABLED = "history_enabled"
private const val RATE_US_ENABLED = "rate_us_enabled"
private const val IN_APP_ADS_ENABLED = "in_app_ads_enabled"
Expand Down
4 changes: 2 additions & 2 deletions purchases/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode 807011
versionName '8.7.1'
versionCode 807021
versionName '8.7.2'

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down
4 changes: 2 additions & 2 deletions themes/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode 807011
versionName '8.7.1'
versionCode 807021
versionName '8.7.2'

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down
4 changes: 2 additions & 2 deletions ui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode 807011
versionName '8.7.1'
versionCode 807021
versionName '8.7.2'

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down
4 changes: 2 additions & 2 deletions wear/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {

defaultConfig {
// versionCode and versionName must be hardcoded to support F-droid
versionCode 807011
versionName '8.7.1'
versionCode 807021
versionName '8.7.2'
applicationId 'dev.lucasnlm.antimine'
minSdkVersion 23
targetSdkVersion 30
Expand Down

0 comments on commit 700a300

Please sign in to comment.