Issue#106 Update NavController example's sharedTest as well
This commit is contained in:
parent
9752d1643b
commit
d5ce57769f
10 changed files with 94 additions and 21 deletions
44
examplecase/example-navcontroller-shared-test/build.gradle
Normal file
44
examplecase/example-navcontroller-shared-test/build.gradle
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
plugins {
|
||||
id 'com.android.library'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'androidx.navigation.safeargs.kotlin'
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdk 31
|
||||
|
||||
defaultConfig {
|
||||
minSdk 21
|
||||
targetSdk 31
|
||||
|
||||
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'
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
ignore 'FragmentGradleConfiguration'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
applyAppSharedTestDependenciesTo(this)
|
||||
implementation project(":examplecase:example-navcontroller")
|
||||
//noinspection FragmentGradleConfiguration
|
||||
implementation "androidx.fragment:fragment-testing:1.5.3"
|
||||
implementation "androidx.navigation:navigation-testing:$navigation_version"
|
||||
implementation project(':test-util-android')
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue