Support JVM 8 target on Android

This commit is contained in:
Mikhail Bogdanov
2020-04-14 14:25:14 +02:00
parent 284533f72b
commit dda2f53993
17 changed files with 51 additions and 8 deletions
@@ -1,5 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
ext {
isD8Enabled = project.findProperty('android.enableD8').toBoolean()
}
buildscript {
repositories {
google()
@@ -58,6 +60,12 @@ android {
resultsDir = "build/test/results"
}
if (isD8Enabled) {
compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
}
flavorDimensions "box"
@@ -77,6 +85,17 @@ android {
reflect0 {
dimension "box"
}
if (isD8Enabled) {
jvm80 {
dimension "box"
}
reflectjvm80 {
dimension "box"
}
}
}
}