87 lines
2.7 KiB
Groovy
87 lines
2.7 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'kotlin-android'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 30
|
|
|
|
defaultConfig {
|
|
applicationId "com.github.guilhe.compose.mysoothe"
|
|
minSdkVersion 23
|
|
targetSdkVersion 30
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
signingConfigs {
|
|
// We use a bundled debug keystore, to allow debug builds from CI to be upgradable
|
|
debug {
|
|
storeFile rootProject.file('debug.keystore')
|
|
storePassword 'android'
|
|
keyAlias 'androiddebugkey'
|
|
keyPassword 'android'
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
|
|
buildFeatures {
|
|
compose true
|
|
|
|
// Disable unused AGP features
|
|
buildConfig false
|
|
aidl false
|
|
renderScript false
|
|
resValues false
|
|
shaders false
|
|
}
|
|
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion compose_version
|
|
}
|
|
|
|
packagingOptions {
|
|
// Multiple dependency bring these files in. Exclude them to enable
|
|
// our test APK to build (has no effect on our AARs)
|
|
excludes += "/META-INF/AL2.0"
|
|
excludes += "/META-INF/LGPL2.1"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'androidx.core:core-ktx:1.3.2'
|
|
implementation 'androidx.appcompat:appcompat:1.3.0-beta01'
|
|
implementation 'com.google.android.material:material:1.3.0'
|
|
implementation "androidx.activity:activity-compose:1.3.0-alpha04"
|
|
implementation "androidx.compose.ui:ui:$compose_version"
|
|
implementation "androidx.compose.material:material:$compose_version"
|
|
implementation "androidx.compose.material:material-icons-extended:$compose_version"
|
|
implementation "androidx.compose.ui:ui-tooling:$compose_version"
|
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.0'
|
|
implementation "androidx.compose.runtime:runtime:$compose_version"
|
|
implementation "androidx.compose.runtime:runtime-livedata:$compose_version"
|
|
implementation "androidx.navigation:navigation-compose:1.0.0-alpha09"
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
|
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
|
|
|
|
implementation 'dev.chrisbanes.accompanist:accompanist-insets:0.6.2'
|
|
implementation 'dev.chrisbanes.accompanist:accompanist-coil:0.6.2'
|
|
} |