Issue#41 Copy full example into separate module with Hilt Integration
This commit is contained in:
parent
69e76dc0da
commit
52a99a82fc
229 changed files with 8416 additions and 11 deletions
49
hilt/hilt-app-shared-test/build.gradle
Normal file
49
hilt/hilt-app-shared-test/build.gradle
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
plugins {
|
||||
id 'com.android.library'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
}
|
||||
|
||||
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'
|
||||
}
|
||||
}
|
||||
sourceSets {
|
||||
main {
|
||||
assets.srcDirs += files("$projectDir/../hilt-app/schemas".toString())
|
||||
resources.srcDirs += files("$projectDir/../hilt-app/schemas".toString())
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
}
|
||||
kotlinOptions {
|
||||
jvmTarget = '1.8'
|
||||
}
|
||||
}
|
||||
|
||||
// since it itself contains the Test it doesn't have tests of it's own
|
||||
disableTestTasks(this)
|
||||
|
||||
dependencies {
|
||||
implementation project(":hilt:hilt-app")
|
||||
implementation project(':test-util-android')
|
||||
implementation testFixtures(project(':hilt:hilt-core'))
|
||||
implementation "com.google.dagger:hilt-android-testing:$hilt_version"
|
||||
implementation project(':test-util-shared-robolectric')
|
||||
api project(':hilt:hilt-network-di-test-util')
|
||||
applyAppSharedTestDependenciesTo(this)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue