Created
July 7, 2021 20:35
-
-
Save wesjon/88757baa54e8337d8df79e5c46a95d5d to your computer and use it in GitHub Desktop.
Compose Gradle configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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