aboutsummaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-06-27 14:36:40 -0700
committerAllan Wang <me@allanwang.ca>2020-06-27 14:36:40 -0700
commit3f28748f959dedb6f7baee7c1c27e343080e8c3f (patch)
tree97681a6ff6f1c07bf75e55219984d3236af3f892 /sample
parentcd24bc8175938ff289c48a6ec3bb956cc22fb79e (diff)
downloadkau-3f28748f959dedb6f7baee7c1c27e343080e8c3f.tar.gz
kau-3f28748f959dedb6f7baee7c1c27e343080e8c3f.tar.bz2
kau-3f28748f959dedb6f7baee7c1c27e343080e8c3f.zip
Update AS and add hilt version info
Diffstat (limited to 'sample')
-rw-r--r--sample/build.gradle26
-rw-r--r--sample/src/androidTest/kotlin/ca/allanwang/kau/sample/KPrefViewTest.kt1
-rw-r--r--sample/src/androidTest/kotlin/ca/allanwang/kau/sample/test/BaseTest.kt (renamed from sample/src/androidTest/kotlin/ca/allanwang/kau/sample/BaseTest.kt)2
-rw-r--r--sample/src/androidTest/kotlin/ca/allanwang/kau/sample/test/TestModules.kt (renamed from sample/src/androidTest/kotlin/ca/allanwang/kau/sample/TestModules.kt)2
4 files changed, 10 insertions, 21 deletions
diff --git a/sample/build.gradle b/sample/build.gradle
index 2414487..d620c2a 100644
--- a/sample/build.gradle
+++ b/sample/build.gradle
@@ -109,19 +109,7 @@ android {
// Always show the result of every unit test, even if it passes.
all {
testLogging {
- events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
- }
- }
- }
- }
-
- // See https://github.com/facebook/flipper/issues/146
- configurations.all {
- resolutionStrategy.eachDependency { DependencyResolveDetails details ->
- def requested = details.requested
- if (requested.group == "com.android.support") {
- if (!requested.name.startsWith("multidex")) {
- details.useVersion "26.+"
+ events 'skipped', 'failed', 'standardOut', 'standardError'
}
}
}
@@ -139,15 +127,15 @@ dependencies {
implementation project(':searchview')
implementation project(':mediapicker')
- implementation "com.google.dagger:hilt-android:2.28-alpha"
- kapt "com.google.dagger:hilt-android-compiler:2.28-alpha"
+ implementation Dependencies.hilt
+ kapt Dependencies.hiltCompiler
implementation Dependencies.materialDialog("input")
testImplementation Dependencies.kotlinTest
testImplementation Dependencies.junit
- testImplementation 'com.google.dagger:hilt-android-testing:2.28-alpha'
- kaptTest 'com.google.dagger:hilt-android-compiler:2.28-alpha'
+ testImplementation Dependencies.hiltTest
+ kaptTest Dependencies.hiltCompiler
androidTestImplementation Dependencies.kotlinTest
@@ -156,6 +144,6 @@ dependencies {
androidTestImplementation Dependencies.espresso("contrib")
androidTestImplementation Dependencies.testRules
androidTestImplementation Dependencies.testRunner
- androidTestImplementation 'com.google.dagger:hilt-android-testing:2.28-alpha'
- kaptAndroidTest 'com.google.dagger:hilt-android-compiler:2.28-alpha'
+ testImplementation Dependencies.hiltTest
+ kaptTest Dependencies.hiltCompiler
}
diff --git a/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/KPrefViewTest.kt b/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/KPrefViewTest.kt
index a8475b3..bfdcfff 100644
--- a/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/KPrefViewTest.kt
+++ b/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/KPrefViewTest.kt
@@ -26,6 +26,7 @@ import androidx.test.espresso.matcher.ViewMatchers.withChild
import androidx.test.espresso.matcher.ViewMatchers.withText
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.rule.ActivityTestRule
+import ca.allanwang.kau.sample.test.BaseTest
import dagger.hilt.android.testing.HiltAndroidTest
import dagger.hilt.android.testing.UninstallModules
import kotlin.test.assertFalse
diff --git a/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/BaseTest.kt b/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/test/BaseTest.kt
index 0f19b05..c3a17ea 100644
--- a/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/BaseTest.kt
+++ b/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/test/BaseTest.kt
@@ -1,4 +1,4 @@
-package ca.allanwang.kau.sample
+package ca.allanwang.kau.sample.test
import dagger.hilt.android.testing.HiltAndroidRule
import org.junit.Rule
diff --git a/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/TestModules.kt b/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/test/TestModules.kt
index 061af50..4e49810 100644
--- a/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/TestModules.kt
+++ b/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/test/TestModules.kt
@@ -1,4 +1,4 @@
-package ca.allanwang.kau.sample
+package ca.allanwang.kau.sample.test
import ca.allanwang.kau.kpref.KPrefFactory
import ca.allanwang.kau.kpref.KPrefFactoryInMemory