Browse Source

Setting target SDK to 22 to mark app as legacy app which gets storage permissions without having to write request code

Martin Felis 7 years ago
parent
commit
7ad34c64f4
2 changed files with 8 additions and 8 deletions
  1. 5 5
      app/build.gradle
  2. 3 3
      love/build.gradle

+ 5 - 5
app/build.gradle

@@ -1,14 +1,14 @@
 apply plugin: 'com.android.application'
 
 android {
-    compileSdkVersion 25
+    compileSdkVersion 22
     buildToolsVersion "26.0.2"
     defaultConfig {
         applicationId "org.love2d.android"
-        versionCode 24
-        versionName "11.0.0"
+        versionCode 25
+        versionName "11.0.0a"
         minSdkVersion 14
-        targetSdkVersion 25
+        targetSdkVersion 22
     }
     buildTypes {
         release {
@@ -24,6 +24,6 @@ android {
 dependencies {
     compile 'com.android.support:multidex:1.0.1'
     compile fileTree(dir: 'libs', include: ['*.jar'])
-    compile 'com.android.support:appcompat-v7:25.1.0'
+    compile 'com.android.support:appcompat-v7:22.2.0'
     compile project(':love')
 }

+ 3 - 3
love/build.gradle

@@ -6,11 +6,11 @@ android {
     // See https://code.google.com/p/android/issues/detail?id=52962
     // and http://stackoverflow.com/questions/27277433/why-does-gradle-build-my-module-in-release-mode-when-the-app-is-in-debug
     // defaultPublishConfig "debug"
-    compileSdkVersion 25
+    compileSdkVersion 22
     buildToolsVersion "26.0.2"
 
     defaultConfig {
-        compileSdkVersion 25
+        compileSdkVersion 22
         buildToolsVersion "26.0.2"
         minSdkVersion 14
         externalNativeBuild {
@@ -49,5 +49,5 @@ android {
 
 dependencies {
     compile fileTree(dir: 'libs', include: ['*.jar'])
-    compile 'com.android.support:appcompat-v7:25.1.0'
+    compile 'com.android.support:appcompat-v7:22.2.0'
 }