diff --git a/app/build.gradle b/app/build.gradle index a5512823..1c15b1b1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -17,8 +17,8 @@ android { applicationId "info.zamojski.soft.towercollector" minSdkVersion 21 targetSdkVersion 29 - versionCode 2040066 - versionName "2.4.0" + versionCode 2050067 + versionName "2.5.0" vectorDrawables.useSupportLibrary = true diff --git a/app/src/main/java/info/zamojski/soft/towercollector/model/ChangelogInfo.java b/app/src/main/java/info/zamojski/soft/towercollector/model/ChangelogInfo.java index 36256496..dc475b85 100644 --- a/app/src/main/java/info/zamojski/soft/towercollector/model/ChangelogInfo.java +++ b/app/src/main/java/info/zamojski/soft/towercollector/model/ChangelogInfo.java @@ -6,6 +6,7 @@ import java.io.Serializable; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; public class ChangelogInfo implements Serializable { @@ -15,7 +16,7 @@ public class ChangelogInfo implements Serializable { private List entries; public ChangelogInfo() { - this.entries = new ArrayList(); + this.entries = new ArrayList<>(); } public List getEntries() { @@ -23,9 +24,7 @@ public List getEntries() { } public void addEntries(List entries) { - for (ChangelogEntry entry : entries) { - this.entries.add(entry); - } + this.entries.addAll(entries); } public void removeEntries(List entries) { @@ -51,13 +50,11 @@ public ChangelogEntry(int versionCode, String title, String description) { this.versionCode = versionCode; this.title = title; this.description = description; - this.messages = new ArrayList(); + this.messages = new ArrayList<>(); } public void addMessages(String... messages) { - for (String message : messages) { - this.messages.add(message); - } + this.messages.addAll(Arrays.asList(messages)); } public int getVersionCode() { diff --git a/app/src/main/res/raw/changelog.json b/app/src/main/res/raw/changelog.json index e3267316..88da9fc9 100644 --- a/app/src/main/res/raw/changelog.json +++ b/app/src/main/res/raw/changelog.json @@ -1,5 +1,15 @@ { "Entries": [ + { + "VersionCode": 2050067, + "Title": "Changes in version 2.5.0", + "Description": "If you experience app crashes on Android 10 when collecting, please make sure to update your system. One of early Android 10 versions has a defect which I cannot work around or fix :(", + "Messages": [ + "Add option to share exported files.", + "Increase active tab indicator height.", + "Improve error handling." + ] + }, { "VersionCode": 2040066, "Title": "Changes in version 2.4.0", @@ -42,14 +52,6 @@ "Messages": [ "Fix GPS Week Number Rollover on devices manufactured between 2006 and 2016." ] - }, - { - "VersionCode": 2020262, - "Title": "Changes in version 2.2.2", - "Messages": [ - "Fix crash due to inconsistency when exporting to GPX file.", - "Fix crash when collecting on some Xiaomi phones." - ] } ] } \ No newline at end of file diff --git a/fastlane/metadata/android/en-US/changelogs/2050067.txt b/fastlane/metadata/android/en-US/changelogs/2050067.txt new file mode 100644 index 00000000..f703343b --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/2050067.txt @@ -0,0 +1,3 @@ +- Add option to share exported files. +- Increase active tab indicator height. +- Improve error handling. \ No newline at end of file