diff --git a/android/app/build.gradle b/android/app/build.gradle index 45b7eca..8ec7f73 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -84,8 +84,8 @@ android { applicationId "com.micahlindley.offsides" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 44 - versionName "0.7.10" + versionCode 45 + versionName "0.8.0" } signingConfigs { debug { diff --git a/android/app/release/app-release.apk b/android/app/release/app-release.apk index 278cf60..45fcacc 100644 Binary files a/android/app/release/app-release.apk and b/android/app/release/app-release.apk differ diff --git a/android/app/release/baselineProfiles/0/app-release.dm b/android/app/release/baselineProfiles/0/app-release.dm index 54500eb..0ebc09b 100644 Binary files a/android/app/release/baselineProfiles/0/app-release.dm and b/android/app/release/baselineProfiles/0/app-release.dm differ diff --git a/android/app/release/baselineProfiles/1/app-release.dm b/android/app/release/baselineProfiles/1/app-release.dm index c293c82..4b22129 100644 Binary files a/android/app/release/baselineProfiles/1/app-release.dm and b/android/app/release/baselineProfiles/1/app-release.dm differ diff --git a/android/app/release/output-metadata.json b/android/app/release/output-metadata.json index 7511b43..4a3025f 100644 --- a/android/app/release/output-metadata.json +++ b/android/app/release/output-metadata.json @@ -11,8 +11,8 @@ "type": "SINGLE", "filters": [], "attributes": [], - "versionCode": 44, - "versionName": "0.7.10", + "versionCode": 45, + "versionName": "0.8.0", "outputFile": "app-release.apk" } ], diff --git a/docs/latest.json b/docs/latest.json index c9a9f56..8651ed6 100644 --- a/docs/latest.json +++ b/docs/latest.json @@ -1,4 +1,4 @@ { - "latestVersion": "0.7.10", - "changelog": "This update attempts to solve an issue that some users were encountering that prevented the app from loading." + "latestVersion": "0.8.0", + "changelog": "This update brings further stability improvements." } diff --git a/package-lock.json b/package-lock.json index fd18cbf..3c3cbb0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "offsides", - "version": "0.7.10", + "version": "0.8.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "offsides", - "version": "0.7.10", + "version": "0.8.0", "hasInstallScript": true, "dependencies": { "@devvie/bottom-sheet": "^0.4.3", diff --git a/package.json b/package.json index f47921c..e379770 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "offsides", - "version": "0.7.10", + "version": "0.8.0", "private": true, "scripts": { "android": "react-native run-android", diff --git a/src/screens/HomeScreen.jsx b/src/screens/HomeScreen.jsx index cfbfeb6..75ca553 100644 --- a/src/screens/HomeScreen.jsx +++ b/src/screens/HomeScreen.jsx @@ -74,7 +74,7 @@ function HomeScreen({ navigation, route }) { React.useEffect(() => { crashlytics().log('Setting group color'); - if (currentGroup.color) { + if (currentGroup?.color) { const t = createMaterial3Theme(currentGroup.color); setCustomTheme(colorScheme == 'dark' ? t.dark : t.light); } @@ -85,7 +85,7 @@ function HomeScreen({ navigation, route }) { updateSortIcon(); if (!loadingPosts) { InteractionManager.runAfterInteractions(() => { - if (appState.userToken && currentGroup.id) { + if (appState.userToken && currentGroup?.id) { fetchPosts(true, currentGroup.id); } else { console.log('App state is undefined, will load in a second'); @@ -116,7 +116,7 @@ function HomeScreen({ navigation, route }) { } }; const fetchPosts = (refresh, override) => { - if (loadingPosts) return false; + if (loadingPosts || !currentGroup?.id || !postSortMethod) return false; crashlytics().log(`Fetching posts sorted by ${postSortMethod}`); setLoadingPosts(true); try {