revert Android Studio gradle plugin 4.0 usage
This commit is contained in:
parent
a2c034a4cc
commit
cf88c63e99
3 changed files with 13 additions and 11 deletions
|
@ -34,19 +34,21 @@ android {
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "deckers.thibault.aves"
|
applicationId "deckers.thibault.aves"
|
||||||
// some Java 8 APIs (java.util.stream, etc.) require minSdkVersion 24
|
// some Java 8 APIs (java.util.stream, etc.) require minSdkVersion 24
|
||||||
// but Android Studio 4.0 desugaring features allow targeting older SDKs
|
// Gradle plugin 4.0 desugaring features allow targeting older SDKs
|
||||||
|
// but Flutter (as of v1.17.3) fails to run in release mode when using Gradle plugin 4.0:
|
||||||
|
// https://github.com/flutter/flutter/issues/58247
|
||||||
minSdkVersion 24
|
minSdkVersion 24
|
||||||
targetSdkVersion 29 // same as compileSdkVersion
|
targetSdkVersion 29 // same as compileSdkVersion
|
||||||
versionCode flutterVersionCode.toInteger()
|
versionCode flutterVersionCode.toInteger()
|
||||||
versionName flutterVersionName
|
versionName flutterVersionName
|
||||||
}
|
}
|
||||||
|
|
||||||
compileOptions {
|
// compileOptions {
|
||||||
// enable support for Java 8 language APIs (stream, optional, etc.)
|
// // enable support for Java 8 language APIs (stream, optional, etc.)
|
||||||
coreLibraryDesugaringEnabled true
|
// coreLibraryDesugaringEnabled true
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
// sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
// targetCompatibility JavaVersion.VERSION_1_8
|
||||||
}
|
// }
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
debug {
|
debug {
|
||||||
|
@ -72,7 +74,7 @@ repositories {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// enable support for Java 8 language APIs (stream, optional, etc.)
|
// enable support for Java 8 language APIs (stream, optional, etc.)
|
||||||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.5'
|
// coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.5'
|
||||||
|
|
||||||
implementation "androidx.exifinterface:exifinterface:1.2.0"
|
implementation "androidx.exifinterface:exifinterface:1.2.0"
|
||||||
implementation 'com.commonsware.cwac:document:0.4.1'
|
implementation 'com.commonsware.cwac:document:0.4.1'
|
||||||
|
|
|
@ -5,7 +5,7 @@ buildscript {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:4.0.0'
|
classpath 'com.android.tools.build:gradle:3.6.3'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#Mon May 25 13:52:11 KST 2020
|
#Tue Apr 21 13:20:37 KST 2020
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
|
Loading…
Reference in a new issue