From 3cf1ce491f4af8022394d3de1be47e65c60e4f9c Mon Sep 17 00:00:00 2001 From: T8RIN Date: Thu, 9 Feb 2023 22:07:48 +0300 Subject: [PATCH] fixed saving on android >= 13 --- .idea/deploymentTargetDropDown.xml | 4 ++-- app/build.gradle | 8 ++++---- app/release/output-metadata.json | 4 ++-- app/src/main/AndroidManifest.xml | 1 + .../java/ru/tech/imageresizershrinker/MainActivity.kt | 5 ++++- build.gradle | 2 +- 6 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml index 2039c1558..8cd274d87 100644 --- a/.idea/deploymentTargetDropDown.xml +++ b/.idea/deploymentTargetDropDown.xml @@ -7,11 +7,11 @@ - + - + \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 5e1c71c91..e7e7458a6 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -33,7 +33,7 @@ android { compose true } composeOptions { - kotlinCompilerExtensionVersion '1.3.2' + kotlinCompilerExtensionVersion '1.4.0' } packagingOptions { resources { @@ -43,9 +43,9 @@ android { } dependencies { - implementation 'androidx.activity:activity-compose:1.6.1' - implementation 'androidx.compose.material3:material3:1.1.0-alpha04' - implementation "androidx.compose.material:material-icons-extended:1.4.0-alpha04" + implementation 'androidx.activity:activity-compose:1.7.0-alpha04' + implementation 'androidx.compose.material3:material3:1.1.0-alpha05' + implementation "androidx.compose.material:material-icons-extended:1.4.0-alpha05" implementation "com.google.accompanist:accompanist-systemuicontroller:0.28.0" implementation("io.coil-kt:coil-compose:2.2.2") implementation("androidx.core:core-splashscreen:1.0.0") diff --git a/app/release/output-metadata.json b/app/release/output-metadata.json index 7059a69f8..ff935ddc7 100644 --- a/app/release/output-metadata.json +++ b/app/release/output-metadata.json @@ -11,8 +11,8 @@ "type": "SINGLE", "filters": [], "attributes": [], - "versionCode": 6, - "versionName": "1.1.1", + "versionCode": 7, + "versionName": "1.2", "outputFile": "app-release.apk" } ], diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e924861e0..de299d797 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -3,6 +3,7 @@ xmlns:tools="http://schemas.android.com/tools"> + = Build.VERSION_CODES.TIRAMISU) true + else ContextCompat.checkSelfPermission( this, Manifest.permission.WRITE_EXTERNAL_STORAGE ) == PackageManager.PERMISSION_GRANTED diff --git a/build.gradle b/build.gradle index 6229eb3c6..9fb697775 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins { id 'com.android.application' version '7.4.0' apply false id 'com.android.library' version '7.4.0' apply false - id 'org.jetbrains.kotlin.android' version '1.7.20' apply false + id 'org.jetbrains.kotlin.android' version '1.8.0' apply false } \ No newline at end of file