52 lines
No EOL
1.7 KiB
Groovy
52 lines
No EOL
1.7 KiB
Groovy
plugins {
|
|
id 'com.android.library'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id 'androidx.navigation.safeargs.kotlin'
|
|
}
|
|
|
|
android {
|
|
compileSdk rootProject.ext.compileSdkVersion
|
|
|
|
defaultConfig {
|
|
minSdk rootProject.ext.minSdkVersion
|
|
targetSdk rootProject.ext.targetSdkVersion
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles "consumer-rules.pro"
|
|
}
|
|
|
|
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'
|
|
}
|
|
|
|
// needed for androidTest
|
|
packagingOptions {
|
|
exclude 'META-INF/LGPL2.1'
|
|
exclude 'META-INF/AL2.0'
|
|
exclude 'META-INF/LICENSE.md'
|
|
exclude 'META-INF/LICENSE-notice.md'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation "androidx.core:core-ktx:$androidx_core_version"
|
|
implementation "androidx.appcompat:appcompat:$androidx_appcompat_version"
|
|
implementation "com.google.android.material:material:$androidx_material_version"
|
|
implementation "androidx.navigation:navigation-fragment-ktx:$navigation_version"
|
|
implementation "androidx.navigation:navigation-ui-ktx:$navigation_version"
|
|
|
|
applyAppTestDependenciesTo(this)
|
|
debugImplementation "androidx.fragment:fragment-testing:1.5.3"
|
|
testImplementation project(":examplecase:example-navcontroller-shared-test")
|
|
androidTestImplementation project(":examplecase:example-navcontroller-shared-test")
|
|
} |