Separate Hilt and Koin into their own product flavours
This commit is contained in:
parent
682fd71c2d
commit
1b8d0e836c
56 changed files with 496 additions and 72 deletions
13
build.gradle
13
build.gradle
|
|
@ -2,12 +2,14 @@
|
|||
buildscript {
|
||||
ext.kotlin_version = "1.5.30"
|
||||
ext.detekt_version = "1.18.1"
|
||||
ext.hilt_version = "2.38.1"
|
||||
repositories {
|
||||
mavenCentral()
|
||||
google()
|
||||
maven { url "https://plugins.gradle.org/m2/" }
|
||||
}
|
||||
dependencies {
|
||||
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
|
||||
classpath 'com.android.tools.build:gradle:7.0.2'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.2.0"
|
||||
|
|
@ -22,6 +24,15 @@ allprojects {
|
|||
repositories {
|
||||
mavenCentral()
|
||||
google()
|
||||
maven {
|
||||
url "https://maven.pkg.github.com/fknives/ReloadableHiltModule"
|
||||
credentials {
|
||||
username = project.findProperty("GITHUB_USERNAME") ?: System.getenv("GITHUB_USERNAME")
|
||||
password = project.findProperty("GITHUB_TOKEN") ?: System.getenv("GITHUB_TOKEN")
|
||||
}
|
||||
// how to get token
|
||||
// https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -29,7 +40,7 @@ task clean(type: Delete) {
|
|||
delete rootProject.buildDir
|
||||
}
|
||||
|
||||
task unitTests(dependsOn: ["app:testDebugUnitTest", "core:test", "network:test"]){
|
||||
task unitTests(dependsOn: ["app:testKoinDebugUnitTest", "app:testHiltDebugUnitTest", "core:test", "network:test"]){
|
||||
group = 'Tests'
|
||||
description = 'Run all unit tests'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue