From 31d407ad5a57f1f472dab5bd60d192d4ad116e23 Mon Sep 17 00:00:00 2001
From: Muntashir Al-Islam <muntashirakon@riseup.net>
Date: Mon, 5 Sep 2022 22:17:45 +0600
Subject: [PATCH] [fastlane] Prepare for v3.0.1

Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
---
 app/build.gradle                              |  4 +--
 app/src/main/res/raw/changelog.xml            | 32 +++++++++++++++++++
 .../metadata/android/en-US/changelogs/400.txt |  5 ---
 .../metadata/android/en-US/changelogs/412.txt |  7 ++++
 4 files changed, 41 insertions(+), 7 deletions(-)
 delete mode 100644 fastlane/metadata/android/en-US/changelogs/400.txt
 create mode 100644 fastlane/metadata/android/en-US/changelogs/412.txt

diff --git a/app/build.gradle b/app/build.gradle
index d6d1aafa6..b245b5f69 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -11,8 +11,8 @@ android {
         applicationId 'io.github.muntashirakon.AppManager'
         minSdkVersion rootProject.ext.minSdk
         targetSdkVersion rootProject.ext.targetSdk
-        versionCode 410
-        versionName "3.0.0"
+        versionCode 412
+        versionName "3.0.1"
         javaCompileOptions {
             annotationProcessorOptions {
                 arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
diff --git a/app/src/main/res/raw/changelog.xml b/app/src/main/res/raw/changelog.xml
index ad8a316a6..bc8de3afe 100644
--- a/app/src/main/res/raw/changelog.xml
+++ b/app/src/main/res/raw/changelog.xml
@@ -16,6 +16,38 @@
 
     ]>
 <changelog>
+    <release
+        type="stable release"
+        version="v3.0.1"
+        code="412"
+        date="5 September 2022">
+        <improve>Display inferred mode of operation in the crash logs</improve>
+        <improve>Handled the Internet permission in GrapheneOS</improve>
+        <improve>Prevented closing multi-selection panel after starting an operation</improve>
+        <improve>Replaced MD2 (Material Design 2) switches with M3 (Material 3) switches</improve>
+        <fix>Fixed icon theming issues in Android 12</fix>
+
+        <fix title="App Details page">
+            Display failure message instead of crashing if a service cannot be launched from the Services tab
+        </fix>
+        <fix title="App Details page">Fixed crashes in the Shared Libs tab</fix>
+        <fix title="Installer">
+            Fixed a rare crash used to occur due to the accidental closing of the installer page
+        </fix>
+        <fix title="Main page">Fixed sorting when a profile is selected in the list options</fix>
+        <fix title="Main page">
+            Fixed displaying backup volume unavailable messages when [tt]/sdcard/AppManager[/tt] was inaccessible or
+            unavailable
+        </fix>
+        <fix title="Profile page">Fixed crashes in the log viewer tab</fix>
+        <fix title="Running Apps page">Fixed double scrollbars</fix>
+        <fix title="Running Apps page">Fixed crashes in no-root mode while checking for [tt]RUN_IN_BACKGROUND[/tt]</fix>
+        <fix title="Scanner page">Fixed a rare crash used to occur when the activity is accidentally closed</fix>
+        <note>
+            [br /][b]Full list of changes:[/b] [a
+            href="https://github.com/MuntashirAkon/AppManager/compare/v3.0.0...v3.0.1"]v3.0.0...v3.0.1[/a]
+        </note>
+    </release>
     <release
         type="stable release"
         version="v3.0.0"
diff --git a/fastlane/metadata/android/en-US/changelogs/400.txt b/fastlane/metadata/android/en-US/changelogs/400.txt
deleted file mode 100644
index b8d4493c6..000000000
--- a/fastlane/metadata/android/en-US/changelogs/400.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-You have to restart your device after updating the app.
-
-Full list of changes: https://github.com/MuntashirAkon/AppManager/compare/c504b30...9821bc24
-
-We're running a funding campaign</b> for App Manager for a limited period. Visit https://opencollective.com/app-manager to learn more.
diff --git a/fastlane/metadata/android/en-US/changelogs/412.txt b/fastlane/metadata/android/en-US/changelogs/412.txt
new file mode 100644
index 000000000..d16a3da94
--- /dev/null
+++ b/fastlane/metadata/android/en-US/changelogs/412.txt
@@ -0,0 +1,7 @@
+This release contains a number of bug fixes and feature improvements.
+
+- Handled the Internet permission in GrapheneOS
+- Replaced MD2 switches with M3 switches
+- Fixed icon theming issues in Android 12
+- Fixed crashes in the Main, App Details, Profiles, Running Apps and Scanner pages
+- Fixed displaying volume unavailable message in the Main page.
\ No newline at end of file
-- 
GitLab