Skip to content

Instantly share code, notes, and snippets.

@wesjon
Created July 7, 2021 20:35
Show Gist options
  • Save wesjon/88757baa54e8337d8df79e5c46a95d5d to your computer and use it in GitHub Desktop.
Save wesjon/88757baa54e8337d8df79e5c46a95d5d to your computer and use it in GitHub Desktop.
Compose Gradle configuration
android {
defaultConfig {
...
minSdkVersion 21
}
buildFeatures {
// Enables Jetpack Compose for this module
compose true
}
...
// Set both the Java and Kotlin compilers to target Java 8.
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
composeOptions {
kotlinCompilerExtensionVersion '1.0.0-rc01'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment