Set source/target version to 1.8 for Java 8 features with Studio 3.0.

See https://developer.android.com/studio/write/java8-support.html
for what is supported with our currently used SDK 23 target.
This commit is contained in:
Johannes Mockenhaupt 2017-10-28 13:42:42 +02:00
parent 255e9d0dff
commit 394a42837a
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1
4 changed files with 16 additions and 0 deletions

View file

@ -113,6 +113,10 @@ android {
buildConfigField "boolean", "CLOSEDLOOP", "false"
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
allprojects {

View file

@ -19,6 +19,10 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {

View file

@ -19,6 +19,10 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {

View file

@ -42,6 +42,10 @@ android {
publishNonDefault true
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
allprojects {