Last active
May 22, 2020 14:30
-
-
Save sagar2093/ff8a8a11aa3a2ae3055ec875b6f0465b to your computer and use it in GitHub Desktop.
compose module level build.gradle
This file contains hidden or 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
plugins { | |
id 'com.android.application' | |
id 'kotlin-android' | |
} | |
android { | |
compileSdkVersion 29 | |
buildToolsVersion "29.0.3" | |
defaultConfig { | |
applicationId "com.example.jetpackcompose" | |
minSdkVersion 29 | |
targetSdkVersion 29 | |
versionCode 1 | |
versionName "1.0" | |
vectorDrawables.useSupportLibrary = true | |
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | |
} | |
buildTypes { | |
release { | |
minifyEnabled false | |
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | |
} | |
} | |
compileOptions { | |
sourceCompatibility JavaVersion.VERSION_1_8 | |
targetCompatibility JavaVersion.VERSION_1_8 | |
} | |
kotlinOptions { | |
jvmTarget = '1.8' | |
} | |
buildFeatures { | |
compose true | |
} | |
composeOptions { | |
kotlinCompilerVersion "1.3.70-dev-withExperimentalGoogleExtensions-20200424" | |
kotlinCompilerExtensionVersion "$compose_compiler_extension_version" | |
} | |
} | |
dependencies { | |
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version") | |
implementation("androidx.compose:compose-runtime:$compose_version") | |
implementation("androidx.ui:ui-core:$compose_version") | |
implementation("androidx.ui:ui-layout:$compose_version") | |
implementation("androidx.ui:ui-material:$compose_version") | |
implementation("androidx.ui:ui-material-icons-extended:$compose_version") | |
implementation("androidx.ui:ui-foundation:$compose_version") | |
implementation("androidx.ui:ui-animation:$compose_version") | |
implementation("androidx.ui:ui-tooling:$compose_version") | |
implementation('androidx.appcompat:appcompat:1.1.0') | |
implementation('androidx.activity:activity-ktx:1.1.0') | |
implementation "androidx.core:core-ktx:1.2.0" | |
androidTestImplementation("junit:junit:4.13") | |
androidTestImplementation("androidx.test:rules:1.2.0") | |
androidTestImplementation("androidx.test:runner:1.2.0") | |
androidTestImplementation("androidx.ui:ui-core:$compose_version") | |
androidTestImplementation("androidx.ui:ui-test:$compose_version") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment