Skip to content

Commit

Permalink
Try to catch changelog errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ixam97 committed Aug 12, 2024
1 parent 5a6ee4f commit 500c99f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion automotive/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ android {
minSdkVersion 29
targetSdkVersion 34
versionCode 260
versionName "0.27.0.0049"
versionName "0.27.1.0000"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class CarStatsViewerSession : Session(), DefaultLifecycleObserver {

if (CarStatsViewer.appPreferences.versionString != BuildConfig.VERSION_NAME) {
screens.add(ChangesScreen(carContext))
CarStatsViewer.appPreferences.versionString = BuildConfig.VERSION_NAME
}

var neededPermissions = permissions.filter { carContext.checkSelfPermission(it) != PackageManager.PERMISSION_GRANTED }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class ChangesScreen(carContext: CarContext): Screen(carContext) {
val changesRowList = mutableListOf<Row>()
ChangeLogCreator.createChangelog(carContext).forEach {
changesRowList.add(Row.Builder().apply {
setTitle(it.key)
addText(it.value)
setTitle(it.key.ifBlank { "THERE WAS AN ERROR CREATING CHANGELOG! Please get in touch with the developer via [email protected]" })
addText(it.value.ifBlank { "THERE WAS AN ERROR CREATING CHANGELOG! Please get in touch with the developer via [email protected]" })
}.build())
}
return changesRowList
Expand Down
3 changes: 3 additions & 0 deletions automotive/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@
</string-array>

<string-array translatable="false" name="pending_changes">
<item>(Play Edition) Fixed an issue where notification interactions would crash the app.</item>
<item>(Play Edition) Trying to catch crashes on changelog creation.</item>
<item>[V](0.27.1)</item>
</string-array>

<string name="file_name_current_trip_data" translatable="false">CurrentTripData</string>
Expand Down

0 comments on commit 500c99f

Please sign in to comment.