Skip to content

Instantly share code, notes, and snippets.

@kirich1409
Last active October 13, 2019 15:29
Show Gist options
  • Save kirich1409/73159a085eca71ac608019728f5929e3 to your computer and use it in GitHub Desktop.
Save kirich1409/73159a085eca71ac608019728f5929e3 to your computer and use it in GitHub Desktop.
Jetpack Compose build.gradle
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "by.kirich1409.sample.jetpackcompose"
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "1.0"
}
}
def compose_version = "0.1.0-dev01"
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7"
// Add kotlin-reflect library
implementation "org.jetbrains.kotlin:kotlin-reflect"
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation "androidx.compose:compose-runtime:$compose_version"
kapt "androidx.compose:compose-compiler:$compose_version"
implementation "androidx.ui:ui-layout:$compose_version"
implementation "androidx.ui:ui-android-text:$compose_version"
implementation "androidx.ui:ui-text:$compose_version"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment