Merge develop into feature/fga/dagger_setup
This commit is contained in:
commit
4c88d8e3c2
214 changed files with 2662 additions and 1833 deletions
|
|
@ -2,9 +2,10 @@ package extension
|
|||
|
||||
import Versions
|
||||
import com.android.build.api.dsl.CommonExtension
|
||||
import org.gradle.api.Project
|
||||
import java.io.File
|
||||
|
||||
|
||||
fun CommonExtension<*, *, *, *>.androidConfig() {
|
||||
fun CommonExtension<*, *, *, *>.androidConfig(project: Project) {
|
||||
defaultConfig {
|
||||
compileSdk = Versions.compileSdk
|
||||
minSdk = Versions.minSdk
|
||||
|
|
@ -18,6 +19,12 @@ fun CommonExtension<*, *, *, *>.androidConfig() {
|
|||
testOptions {
|
||||
unitTests.isReturnDefaultValues = true
|
||||
}
|
||||
|
||||
lint {
|
||||
lintConfig = File("${project.rootDir}/tools/lint/lint.xml")
|
||||
checkDependencies = true
|
||||
abortOnError = true
|
||||
}
|
||||
}
|
||||
|
||||
fun CommonExtension<*, *, *, *>.composeConfig() {
|
||||
|
|
@ -35,5 +42,11 @@ fun CommonExtension<*, *, *, *>.composeConfig() {
|
|||
add("META-INF/LGPL2.1")
|
||||
}
|
||||
}
|
||||
|
||||
lint {
|
||||
// Extra rules for compose
|
||||
error.add("ComposableLambdaParameterNaming")
|
||||
error.add("ComposableLambdaParameterPosition")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,8 +5,17 @@ import gradle.kotlin.dsl.accessors._4b7ad2363fc1fce7c774e054dc9a9300.debugImplem
|
|||
import gradle.kotlin.dsl.accessors._4b7ad2363fc1fce7c774e054dc9a9300.implementation
|
||||
import org.gradle.kotlin.dsl.DependencyHandlerScope
|
||||
|
||||
/**
|
||||
* Dependencies used by all the modules
|
||||
*/
|
||||
fun DependencyHandlerScope.commonDependencies() {
|
||||
implementation("com.jakewharton.timber:timber:5.0.1")
|
||||
}
|
||||
|
||||
fun DependencyHandlerScope.composeDependencies(){
|
||||
/**
|
||||
* Dependencies used by all the modules with composable items
|
||||
*/
|
||||
fun DependencyHandlerScope.composeDependencies() {
|
||||
val composeBom = platform("androidx.compose:compose-bom:2022.11.00")
|
||||
implementation(composeBom)
|
||||
androidTestImplementation(composeBom)
|
||||
|
|
@ -22,5 +31,6 @@ fun DependencyHandlerScope.composeDependencies(){
|
|||
debugImplementation("androidx.compose.ui:ui-tooling")
|
||||
debugImplementation("androidx.compose.ui:ui-test-manifest")
|
||||
implementation("com.airbnb.android:showkase:1.0.0-beta14")
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-collections-immutable:0.3.5")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue