ritesh
07/25/2021, 6:37 AMandroid {
...
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
}
compileOptions
can be safely dropped from 100% kotlin application.
Using kotlinOptions.jvmTarget="11"
is there a downside to it, in terms of byte-code generation and byte-code compatibility with other jdk versions.ephemient
07/25/2021, 6:50 AMephemient
07/25/2021, 6:53 AMritesh
07/25/2021, 6:54 AMkotlinOptions.jvmTarget="11"
should be fine.ephemient
07/25/2021, 7:10 AMritesh
07/25/2021, 7:22 AM