Skip to content

Commit 043c71f

Browse files
authored
Merge pull request #22 from SimpleAppProjects/develop
v5.12.0
2 parents 794c864 + dababca commit 043c71f

File tree

83 files changed

+1530
-903
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+1530
-903
lines changed

.aiexclude

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
*.iml
2+
*.bak
3+
*.orig
4+
.gradle
5+
/local.properties
6+
/.idea/assetWizardSettings.xml
7+
/.idea/workspace.xml
8+
/.idea/libraries
9+
/.idea/caches
10+
/.idea
11+
.DS_Store
12+
/build
13+
/captures
14+
.externalNativeBuild
15+
API_KEY.txt
16+
.cxx
17+
/weather-api/src/main/jni/fullgms
18+
/weather-api/src/fullgms/java/com/thewizrd/weather_api/keys/Keys.java
19+
/weather-api/src/fullgms/java/com/thewizrd/weather_api/keys/WeatherKitConfig.kt
20+
/app/debug
21+
/app/release
22+
/app/fullgms
23+
/app/nongms
24+
/wearapp/debug
25+
/wearapp/release
26+
/wearapp/fullgms
27+
/wearapp/nongms
28+
/keycheck.bat
29+
/keycheck.ps1
30+
/ImportTranslations.bat
31+
/secure.properties
32+
/weathericons/
33+
/extras/
34+
*.7z
35+
google-services.json
36+
/.privado/
37+
/.detekt
38+
/.kotlin

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ android {
1616
targetSdkVersion rootProject.targetSdkVersion
1717
// NOTE: Version Code Format (TargetSDK, Version Name, Build Number, Variant Code (Android: 0, WearOS: 1)
1818
// ex) 345100131 = (34, 5.10, 013, 0)
19-
versionCode 345110040
20-
versionName "5.11.1"
19+
versionCode 355120090
20+
versionName "5.12.0"
2121

2222
vectorDrawables {
2323
useSupportLibrary true

app/src/androidTestFullgms/java/com/thewizrd/simpleweather/test/UnitTests.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,9 @@ class UnitTests {
378378
val queryVM = locations.firstOrNull()
379379
assertNotNull(queryVM)
380380

381-
val locModel = if (locationProvider.needsLocationFromName()) {
381+
val locModel = if (locationProvider.needsLocationFromID()) {
382+
locationProvider.getLocationFromID(queryVM!!)
383+
} else if (locationProvider.needsLocationFromName()) {
382384
locationProvider.getLocationFromName(queryVM!!)
383385
} else if (locationProvider.needsLocationFromGeocoder()) {
384386
locationProvider.getLocation(
@@ -387,8 +389,6 @@ class UnitTests {
387389
queryVM.locationLong
388390
), WeatherAPI.GOOGLE
389391
)
390-
} else if (locationProvider.needsLocationFromID()) {
391-
locationProvider.getLocationFromID(queryVM!!)
392392
} else {
393393
queryVM
394394
}

app/src/fullgms/java/com/thewizrd/simpleweather/extras/Extras.kt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@ package com.thewizrd.simpleweather.extras
66
import android.content.ActivityNotFoundException
77
import android.content.Context
88
import android.content.Intent
9+
import androidx.lifecycle.lifecycleScope
910
import androidx.navigation.findNavController
1011
import androidx.preference.Preference
1112
import com.google.android.gms.maps.MapsInitializer
1213
import com.google.android.gms.maps.MapsInitializer.Renderer
1314
import com.google.android.play.core.splitcompat.SplitCompat
15+
import com.google.firebase.installations.ktx.installations
16+
import com.google.firebase.ktx.Firebase
1417
import com.thewizrd.extras.extrasModule
1518
import com.thewizrd.shared_resources.appLib
1619
import com.thewizrd.shared_resources.store.PlayStoreUtils
@@ -21,10 +24,13 @@ import com.thewizrd.simpleweather.NavGraphDirections
2124
import com.thewizrd.simpleweather.R
2225
import com.thewizrd.simpleweather.locale.UserLocaleActivity
2326
import com.thewizrd.simpleweather.preferences.BaseSettingsFragment
27+
import com.thewizrd.simpleweather.preferences.DevSettingsFragment
2428
import com.thewizrd.simpleweather.preferences.SettingsFragment
2529
import com.thewizrd.simpleweather.preferences.`SettingsFragment$IconsFragmentDirections`
2630
import com.thewizrd.simpleweather.snackbar.Snackbar
2731
import com.thewizrd.simpleweather.utils.NavigationUtils.safeNavigate
32+
import kotlinx.coroutines.launch
33+
import kotlinx.coroutines.tasks.await
2834
import timber.log.Timber
2935

3036
fun initializeExtras() {
@@ -179,4 +185,13 @@ fun SettingsFragment.AboutAppFragment.setupReviewPreference(preference: Preferen
179185
}
180186
}
181187
}
188+
}
189+
190+
fun DevSettingsFragment.updateFirebaseIdPreference(preference: Preference) {
191+
runCatching {
192+
lifecycleScope.launch {
193+
val firebaseId = Firebase.installations.id.await()
194+
preference.summary = firebaseId
195+
}
196+
}
182197
}

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
android:allowBackup="${allowBackup}"
5050
android:enableOnBackInvokedCallback="true"
5151
android:fullBackupContent="@xml/backup_rules"
52+
android:dataExtractionRules="@xml/data_extraction_rules"
5253
android:hardwareAccelerated="true"
5354
android:icon="@mipmap/ic_launcher"
5455
android:label="@string/app_name"

0 commit comments

Comments
 (0)