From 9758bcb3d17aa9ca4e38fab1e7014adb38896c29 Mon Sep 17 00:00:00 2001 From: Mohamed ElSaadany <21214427+sa3dany@users.noreply.github.com> Date: Wed, 24 Aug 2022 00:17:47 +0300 Subject: [PATCH] release v0.4.1 --- CHANGELOG.md | 6 ++++++ app/build.gradle | 8 ++++---- .../java/com/tanglycohort/smshooks/SettingsFragment.kt | 4 ++-- build.gradle | 2 +- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d118fde..a716bbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ Changelog ========= +## 0.4.1 (Aug 24, 2022) + +- Update dependencies +- Update compiler SDK version to 32 +- Fix build a warning + ## 0.4.0 (Aug 09, 2022) - Update dependencies diff --git a/app/build.gradle b/app/build.gradle index 3cfc203..88db466 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -14,8 +14,8 @@ android { minSdkVersion rootProject.minSdkVersion targetSdkVersion rootProject.targetSdkVersion testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" - versionCode 4 - versionName "0.4.0" + versionCode 5 + versionName "0.4.1" } buildFeatures { @@ -56,10 +56,10 @@ dependencies { // Core implementation "androidx.activity:activity-ktx:1.5.1" - implementation "androidx.appcompat:appcompat:1.4.2" + implementation "androidx.appcompat:appcompat:1.5.0" implementation "androidx.constraintlayout:constraintlayout:2.1.4" implementation "androidx.core:core-ktx:1.8.0" - implementation "androidx.fragment:fragment-ktx:1.5.1" + implementation "androidx.fragment:fragment-ktx:1.5.2" implementation "com.google.android.material:material:1.6.1" testImplementation "junit:junit:4.13.2" androidTestImplementation "androidx.test.espresso:espresso-core:3.4.0" diff --git a/app/src/main/java/com/tanglycohort/smshooks/SettingsFragment.kt b/app/src/main/java/com/tanglycohort/smshooks/SettingsFragment.kt index 8eef403..88e3aa2 100644 --- a/app/src/main/java/com/tanglycohort/smshooks/SettingsFragment.kt +++ b/app/src/main/java/com/tanglycohort/smshooks/SettingsFragment.kt @@ -8,6 +8,7 @@ import android.os.Bundle import android.provider.DocumentsContract import android.view.View import androidx.activity.result.contract.ActivityResultContracts +import androidx.activity.result.contract.ActivityResultContracts.CreateDocument import androidx.lifecycle.Lifecycle import androidx.lifecycle.LifecycleEventObserver import androidx.navigation.NavBackStackEntry @@ -21,11 +22,10 @@ class SettingsFragment : PreferenceFragmentCompat() { * Simple class that extends [ActivityResultContracts.CreateDocument] * Just sets the category (openable) & MIME type to text/plain */ - class CreateTextFile : ActivityResultContracts.CreateDocument() { + class CreateTextFile : CreateDocument("text/plain") { override fun createIntent(context: Context, input: String): Intent { return super.createIntent(context, input).apply { addCategory(Intent.CATEGORY_OPENABLE) - type = "text/plain" } } } diff --git a/build.gradle b/build.gradle index a48bf2b..1859efa 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ buildscript { ext { // Sdk and tools - compileSdkVersion = 31 + compileSdkVersion = 32 targetSdkVersion = 29 minSdkVersion = 29