Files
AndroidJetpack/snippets/compose/recomposehighlighter/build.gradle
T
coco 723ce1af5c a
2026-07-03 15:12:48 +08:00

57 lines
1.6 KiB
Groovy

plugins {
id 'com.android.application'
id 'kotlin-android'
}
android {
compileSdkVersion 33
buildToolsVersion "30.0.2"
defaultConfig {
applicationId "com.example.android.compose.recomposehighlighter"
minSdkVersion 21
targetSdkVersion 33
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt')
}
}
buildFeatures {
compose true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
composeOptions {
kotlinCompilerExtensionVersion compose_compiler_version
}
}
dependencies {
def composeBom = platform('androidx.compose:compose-bom:2022.11.00')
implementation(composeBom)
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.activity:activity-compose:1.4.0'
implementation 'com.google.android.material:material:1.3.0'
implementation "androidx.compose.ui:ui"
implementation "androidx.compose.ui:ui-util"
implementation "androidx.compose.material:material"
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.0'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}