blob: 06366ec0205600c39c706517f96f7bf01d318d31 [file] [log] [blame]
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
android {
namespace "com.example.helloworldcompose"
compileSdkVersion libs.versions.latestCompileSdk.get().toInteger()
defaultConfig {
applicationId "com.example.helloworldcompose"
minSdkVersion 21
targetSdkVersion libs.versions.latestCompileSdk.get()
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildFeatures {
compose true
}
// To inline the bytecode built with JVM target 1.8 into
// bytecode that is being built with JVM target 1.6. (e.g. navArgs)
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs += [
"-P", "plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=true",
]
}
composeOptions {
kotlinCompilerExtensionVersion = "${libs.versions.composeCompilerVersion.get()}"
}
testFixtures {
enable = true
}
experimentalProperties["android.experimental.enableScreenshotTest"] = true
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${libs.versions.kotlinVersionForCompose.get()}"
implementation 'androidx.appcompat:appcompat:1.3.+'
implementation 'androidx.fragment:fragment:1.3.+'
implementation 'androidx.core:core-ktx:1.1.0'
implementation "androidx.activity:activity-compose:1.5.1"
implementation "androidx.compose.ui:ui:${libs.versions.composeVersion.get()}"
implementation "androidx.compose.material:material:${libs.versions.composeVersion.get()}"
implementation "androidx.compose.ui:ui-tooling:${libs.versions.composeVersion.get()}"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core-common:+'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.3-alpha02'
androidTestImplementation 'androidx.test:rules:1.4.0-alpha06'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
testFixturesImplementation "org.jetbrains.kotlin:kotlin-stdlib:${libs.versions.kotlinVersionForCompose.get()}"
testFixturesImplementation "androidx.activity:activity-compose:1.5.1"
testFixturesImplementation "androidx.compose.ui:ui:${libs.versions.composeVersion.get()}"
testFixturesImplementation "androidx.compose.material:material:${libs.versions.composeVersion.get()}"
testFixturesImplementation "androidx.compose.ui:ui-tooling:${libs.versions.composeVersion.get()}"
}