parent
08c655e7d3
commit
b677cc4508
@ -1,102 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2021 The Android Open Source Project
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* https://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
plugins {
|
|
||||||
id 'nowinandroid.android.application'
|
|
||||||
id 'nowinandroid.android.application.compose'
|
|
||||||
id 'nowinandroid.android.application.jacoco'
|
|
||||||
id 'kotlin-kapt'
|
|
||||||
id 'jacoco'
|
|
||||||
id 'dagger.hilt.android.plugin'
|
|
||||||
id 'nowinandroid.spotless'
|
|
||||||
}
|
|
||||||
|
|
||||||
android {
|
|
||||||
defaultConfig {
|
|
||||||
applicationId "com.google.samples.apps.nowinandroid"
|
|
||||||
versionCode 1
|
|
||||||
versionName "0.0.1" // X.Y.Z; X = Major, Y = minor, Z = Patch level
|
|
||||||
|
|
||||||
// Custom test runner to set up Hilt dependency graph
|
|
||||||
testInstrumentationRunner "com.google.samples.apps.nowinandroid.core.testing.NiaTestRunner"
|
|
||||||
vectorDrawables {
|
|
||||||
useSupportLibrary true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
buildTypes {
|
|
||||||
release {
|
|
||||||
minifyEnabled true
|
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
||||||
}
|
|
||||||
benchmark {
|
|
||||||
initWith buildTypes.release
|
|
||||||
signingConfig signingConfigs.debug
|
|
||||||
matchingFallbacks = ['release']
|
|
||||||
proguardFiles 'benchmark-rules.pro'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
packagingOptions {
|
|
||||||
resources {
|
|
||||||
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
testOptions {
|
|
||||||
unitTests {
|
|
||||||
includeAndroidResources = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(':feature-following')
|
|
||||||
implementation project(':feature-foryou')
|
|
||||||
implementation project(':feature-topic')
|
|
||||||
|
|
||||||
implementation project(':core-ui')
|
|
||||||
|
|
||||||
implementation project(':sync')
|
|
||||||
|
|
||||||
androidTestImplementation project(':core-testing')
|
|
||||||
androidTestImplementation project(':core-datastore-test')
|
|
||||||
androidTestImplementation project(':core-domain-test')
|
|
||||||
androidTestImplementation project(':core-network')
|
|
||||||
|
|
||||||
implementation libs.androidx.activity.compose
|
|
||||||
implementation libs.androidx.appcompat
|
|
||||||
implementation libs.androidx.core.ktx
|
|
||||||
implementation libs.androidx.compose.material3.windowSizeClass
|
|
||||||
implementation libs.androidx.hilt.navigation.compose
|
|
||||||
implementation libs.androidx.navigation.compose
|
|
||||||
implementation libs.androidx.window.manager
|
|
||||||
implementation libs.material3
|
|
||||||
implementation libs.androidx.profileinstaller
|
|
||||||
|
|
||||||
implementation libs.coil.kt
|
|
||||||
implementation libs.coil.kt.svg
|
|
||||||
|
|
||||||
implementation libs.hilt.android
|
|
||||||
kapt libs.hilt.compiler
|
|
||||||
kaptAndroidTest libs.hilt.compiler
|
|
||||||
|
|
||||||
// androidx.test is forcing JUnit, 4.12. This forces it to use 4.13
|
|
||||||
configurations.configureEach {
|
|
||||||
resolutionStrategy {
|
|
||||||
force libs.junit4
|
|
||||||
// Temporary workaround for https://issuetracker.google.com/174733673
|
|
||||||
force 'org.objenesis:objenesis:2.6'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,102 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2021 The Android Open Source Project
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
plugins {
|
||||||
|
id("nowinandroid.android.application")
|
||||||
|
id("nowinandroid.android.application.compose")
|
||||||
|
id("nowinandroid.android.application.jacoco")
|
||||||
|
kotlin("kapt")
|
||||||
|
id("jacoco")
|
||||||
|
id("dagger.hilt.android.plugin")
|
||||||
|
id("nowinandroid.spotless")
|
||||||
|
}
|
||||||
|
|
||||||
|
android {
|
||||||
|
defaultConfig {
|
||||||
|
applicationId = "com.google.samples.apps.nowinandroid"
|
||||||
|
versionCode = 1
|
||||||
|
versionName = "0.0.1" // X.Y.Z; X = Major, Y = minor, Z = Patch level
|
||||||
|
|
||||||
|
// Custom test runner to set up Hilt dependency graph
|
||||||
|
testInstrumentationRunner = "com.google.samples.apps.nowinandroid.core.testing.NiaTestRunner"
|
||||||
|
vectorDrawables {
|
||||||
|
useSupportLibrary = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
buildTypes {
|
||||||
|
val release by getting {
|
||||||
|
isMinifyEnabled = true
|
||||||
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
||||||
|
}
|
||||||
|
val benchmark by creating {
|
||||||
|
initWith(release)
|
||||||
|
signingConfig = signingConfigs.getByName("debug")
|
||||||
|
matchingFallbacks.add("release")
|
||||||
|
proguardFiles("benchmark-rules.pro")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
packagingOptions {
|
||||||
|
resources {
|
||||||
|
excludes.add("/META-INF/{AL2.0,LGPL2.1}")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
testOptions {
|
||||||
|
unitTests {
|
||||||
|
isIncludeAndroidResources = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation(project(":feature-following"))
|
||||||
|
implementation(project(":feature-foryou"))
|
||||||
|
implementation(project(":feature-topic"))
|
||||||
|
|
||||||
|
implementation(project(":core-ui"))
|
||||||
|
|
||||||
|
implementation(project(":sync"))
|
||||||
|
|
||||||
|
androidTestImplementation(project(":core-testing"))
|
||||||
|
androidTestImplementation(project(":core-datastore-test"))
|
||||||
|
androidTestImplementation(project(":core-domain-test"))
|
||||||
|
androidTestImplementation(project(":core-network"))
|
||||||
|
|
||||||
|
implementation(libs.androidx.activity.compose)
|
||||||
|
implementation(libs.androidx.appcompat)
|
||||||
|
implementation(libs.androidx.core.ktx)
|
||||||
|
implementation(libs.androidx.compose.material3.windowSizeClass)
|
||||||
|
implementation(libs.androidx.hilt.navigation.compose)
|
||||||
|
implementation(libs.androidx.navigation.compose)
|
||||||
|
implementation(libs.androidx.window.manager)
|
||||||
|
implementation(libs.material3)
|
||||||
|
implementation(libs.androidx.profileinstaller)
|
||||||
|
|
||||||
|
implementation(libs.coil.kt)
|
||||||
|
implementation(libs.coil.kt.svg)
|
||||||
|
|
||||||
|
implementation(libs.hilt.android)
|
||||||
|
kapt(libs.hilt.compiler)
|
||||||
|
kaptAndroidTest(libs.hilt.compiler)
|
||||||
|
|
||||||
|
// androidx.test is forcing JUnit, 4.12. This forces it to use 4.13
|
||||||
|
configurations.configureEach {
|
||||||
|
resolutionStrategy {
|
||||||
|
force(libs.junit4)
|
||||||
|
// Temporary workaround for https://issuetracker.google.com/174733673
|
||||||
|
force("org.objenesis:objenesis:2.6")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,41 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2022 The Android Open Source Project
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* https://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
plugins {
|
|
||||||
id "nowinandroid.android.library"
|
|
||||||
id "nowinandroid.android.library.jacoco"
|
|
||||||
id 'kotlin-kapt'
|
|
||||||
id 'kotlinx-serialization'
|
|
||||||
id 'dagger.hilt.android.plugin'
|
|
||||||
id 'nowinandroid.spotless'
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(':core-common')
|
|
||||||
implementation project(':core-model')
|
|
||||||
implementation project(':core-database')
|
|
||||||
implementation project(':core-datastore')
|
|
||||||
implementation project(':core-network')
|
|
||||||
|
|
||||||
testImplementation project(':core-testing')
|
|
||||||
testImplementation project(':core-datastore-test')
|
|
||||||
|
|
||||||
implementation libs.kotlinx.datetime
|
|
||||||
implementation libs.kotlinx.coroutines.android
|
|
||||||
implementation libs.kotlinx.serialization.json
|
|
||||||
|
|
||||||
implementation libs.hilt.android
|
|
||||||
kapt libs.hilt.compiler
|
|
||||||
}
|
|
@ -0,0 +1,41 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2022 The Android Open Source Project
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
plugins {
|
||||||
|
id("nowinandroid.android.library")
|
||||||
|
id("nowinandroid.android.library.jacoco")
|
||||||
|
kotlin("kapt")
|
||||||
|
id("kotlinx-serialization")
|
||||||
|
id("dagger.hilt.android.plugin")
|
||||||
|
id("nowinandroid.spotless")
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation(project(":core-common"))
|
||||||
|
implementation(project(":core-model"))
|
||||||
|
implementation(project(":core-database"))
|
||||||
|
implementation(project(":core-datastore"))
|
||||||
|
implementation(project(":core-network"))
|
||||||
|
|
||||||
|
testImplementation(project(":core-testing"))
|
||||||
|
testImplementation(project(":core-datastore-test"))
|
||||||
|
|
||||||
|
implementation(libs.kotlinx.datetime)
|
||||||
|
implementation(libs.kotlinx.coroutines.android)
|
||||||
|
implementation(libs.kotlinx.serialization.json)
|
||||||
|
|
||||||
|
implementation(libs.hilt.android)
|
||||||
|
kapt(libs.hilt.compiler)
|
||||||
|
}
|
@ -1,41 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2022 The Android Open Source Project
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* https://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
plugins {
|
|
||||||
id "nowinandroid.android.library"
|
|
||||||
id "nowinandroid.android.library.jacoco"
|
|
||||||
id 'kotlin-kapt'
|
|
||||||
id 'kotlinx-serialization'
|
|
||||||
id 'dagger.hilt.android.plugin'
|
|
||||||
id 'nowinandroid.spotless'
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(':core-common')
|
|
||||||
implementation project(':core-model')
|
|
||||||
|
|
||||||
testImplementation project(':core-testing')
|
|
||||||
|
|
||||||
implementation libs.kotlinx.coroutines.android
|
|
||||||
implementation libs.kotlinx.serialization.json
|
|
||||||
implementation libs.kotlinx.datetime
|
|
||||||
|
|
||||||
implementation libs.okhttp.logging
|
|
||||||
implementation libs.retrofit.core
|
|
||||||
implementation libs.retrofit.kotlin.serialization
|
|
||||||
|
|
||||||
implementation libs.hilt.android
|
|
||||||
kapt libs.hilt.compiler
|
|
||||||
}
|
|
@ -0,0 +1,41 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2022 The Android Open Source Project
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
plugins {
|
||||||
|
id("nowinandroid.android.library")
|
||||||
|
id("nowinandroid.android.library.jacoco")
|
||||||
|
kotlin("kapt")
|
||||||
|
id("kotlinx-serialization")
|
||||||
|
id("dagger.hilt.android.plugin")
|
||||||
|
id("nowinandroid.spotless")
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation(project(":core-common"))
|
||||||
|
implementation(project(":core-model"))
|
||||||
|
|
||||||
|
testImplementation(project(":core-testing"))
|
||||||
|
|
||||||
|
implementation(libs.kotlinx.coroutines.android)
|
||||||
|
implementation(libs.kotlinx.serialization.json)
|
||||||
|
implementation(libs.kotlinx.datetime)
|
||||||
|
|
||||||
|
implementation(libs.okhttp.logging)
|
||||||
|
implementation(libs.retrofit.core)
|
||||||
|
implementation(libs.retrofit.kotlin.serialization)
|
||||||
|
|
||||||
|
implementation(libs.hilt.android)
|
||||||
|
kapt(libs.hilt.compiler)
|
||||||
|
}
|
@ -1,45 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2022 The Android Open Source Project
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* https://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
plugins {
|
|
||||||
id "nowinandroid.android.library"
|
|
||||||
id "nowinandroid.android.library.compose"
|
|
||||||
id "nowinandroid.android.library.jacoco"
|
|
||||||
id 'nowinandroid.spotless'
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(':core-model')
|
|
||||||
|
|
||||||
implementation libs.androidx.core.ktx
|
|
||||||
implementation libs.coil.kt
|
|
||||||
implementation libs.coil.kt.compose
|
|
||||||
implementation libs.kotlinx.datetime
|
|
||||||
|
|
||||||
// TODO : Remove these dependencies when b/225193889 is fixed
|
|
||||||
// These dependencies are currently necessary to render Compose previews
|
|
||||||
debugImplementation "androidx.savedstate:savedstate-ktx:1.1.0"
|
|
||||||
debugImplementation libs.androidx.lifecycle.viewModelCompose
|
|
||||||
|
|
||||||
api libs.androidx.compose.foundation
|
|
||||||
api libs.androidx.compose.foundation.layout
|
|
||||||
api libs.androidx.compose.material.iconsExtended
|
|
||||||
api libs.androidx.compose.material3
|
|
||||||
debugApi libs.androidx.compose.ui.tooling
|
|
||||||
api libs.androidx.compose.ui.tooling.preview
|
|
||||||
api libs.androidx.compose.ui.util
|
|
||||||
api libs.androidx.compose.runtime
|
|
||||||
api libs.androidx.compose.runtime.livedata
|
|
||||||
}
|
|
@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2022 The Android Open Source Project
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
plugins {
|
||||||
|
id("nowinandroid.android.library")
|
||||||
|
id("nowinandroid.android.library.compose")
|
||||||
|
id("nowinandroid.android.library.jacoco")
|
||||||
|
id("nowinandroid.spotless")
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation(project(":core-model"))
|
||||||
|
|
||||||
|
implementation(libs.androidx.core.ktx)
|
||||||
|
implementation(libs.coil.kt)
|
||||||
|
implementation(libs.coil.kt.compose)
|
||||||
|
implementation(libs.kotlinx.datetime)
|
||||||
|
|
||||||
|
// TODO : Remove these dependencies when b/225193889 is fixed
|
||||||
|
// These dependencies are currently necessary to render Compose previews
|
||||||
|
debugImplementation("androidx.savedstate:savedstate-ktx:1.1.0")
|
||||||
|
debugImplementation(libs.androidx.lifecycle.viewModelCompose)
|
||||||
|
|
||||||
|
api(libs.androidx.compose.foundation)
|
||||||
|
api(libs.androidx.compose.foundation.layout)
|
||||||
|
api(libs.androidx.compose.material.iconsExtended)
|
||||||
|
api(libs.androidx.compose.material3)
|
||||||
|
debugApi(libs.androidx.compose.ui.tooling)
|
||||||
|
api(libs.androidx.compose.ui.tooling.preview)
|
||||||
|
api(libs.androidx.compose.ui.util)
|
||||||
|
api(libs.androidx.compose.runtime)
|
||||||
|
api(libs.androidx.compose.runtime.livedata)
|
||||||
|
}
|
@ -1,58 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2022 The Android Open Source Project
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* https://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
plugins {
|
|
||||||
id "nowinandroid.android.library"
|
|
||||||
id "nowinandroid.android.library.compose"
|
|
||||||
id "nowinandroid.android.library.jacoco"
|
|
||||||
id 'kotlin-kapt'
|
|
||||||
id 'dagger.hilt.android.plugin'
|
|
||||||
id 'nowinandroid.spotless'
|
|
||||||
}
|
|
||||||
|
|
||||||
android {
|
|
||||||
defaultConfig {
|
|
||||||
testInstrumentationRunner "com.google.samples.apps.nowinandroid.core.testing.NiaTestRunner"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(':core-model')
|
|
||||||
implementation project(':core-ui')
|
|
||||||
implementation project(':core-domain')
|
|
||||||
|
|
||||||
testImplementation project(':core-testing')
|
|
||||||
androidTestImplementation project(':core-testing')
|
|
||||||
|
|
||||||
implementation libs.coil.kt
|
|
||||||
implementation libs.coil.kt.compose
|
|
||||||
|
|
||||||
implementation libs.kotlinx.coroutines.android
|
|
||||||
|
|
||||||
implementation libs.androidx.hilt.navigation.compose
|
|
||||||
implementation libs.androidx.lifecycle.viewModelCompose
|
|
||||||
|
|
||||||
implementation libs.hilt.android
|
|
||||||
kapt libs.hilt.compiler
|
|
||||||
|
|
||||||
// androidx.test is forcing JUnit, 4.12. This forces it to use 4.13
|
|
||||||
configurations.configureEach {
|
|
||||||
resolutionStrategy {
|
|
||||||
force libs.junit4
|
|
||||||
// Temporary workaround for https://issuetracker.google.com/174733673
|
|
||||||
force 'org.objenesis:objenesis:2.6'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,58 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2022 The Android Open Source Project
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
plugins {
|
||||||
|
id("nowinandroid.android.library")
|
||||||
|
id("nowinandroid.android.library.compose")
|
||||||
|
id("nowinandroid.android.library.jacoco")
|
||||||
|
kotlin("kapt")
|
||||||
|
id("dagger.hilt.android.plugin")
|
||||||
|
id("nowinandroid.spotless")
|
||||||
|
}
|
||||||
|
|
||||||
|
android {
|
||||||
|
defaultConfig {
|
||||||
|
testInstrumentationRunner = "com.google.samples.apps.nowinandroid.core.testing.NiaTestRunner"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation(project(":core-model"))
|
||||||
|
implementation(project(":core-ui"))
|
||||||
|
implementation(project(":core-domain"))
|
||||||
|
|
||||||
|
testImplementation(project(":core-testing"))
|
||||||
|
androidTestImplementation(project(":core-testing"))
|
||||||
|
|
||||||
|
implementation(libs.coil.kt)
|
||||||
|
implementation(libs.coil.kt.compose)
|
||||||
|
|
||||||
|
implementation(libs.kotlinx.coroutines.android)
|
||||||
|
|
||||||
|
implementation(libs.androidx.hilt.navigation.compose)
|
||||||
|
implementation(libs.androidx.lifecycle.viewModelCompose)
|
||||||
|
|
||||||
|
implementation(libs.hilt.android)
|
||||||
|
kapt(libs.hilt.compiler)
|
||||||
|
|
||||||
|
// androidx.test is forcing JUnit, 4.12. This forces it to use 4.13
|
||||||
|
configurations.configureEach {
|
||||||
|
resolutionStrategy {
|
||||||
|
force(libs.junit4)
|
||||||
|
// Temporary workaround for https://issuetracker.google.com/174733673
|
||||||
|
force("org.objenesis:objenesis:2.6")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,61 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2022 The Android Open Source Project
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* https://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
plugins {
|
|
||||||
id "nowinandroid.android.library"
|
|
||||||
id "nowinandroid.android.library.compose"
|
|
||||||
id "nowinandroid.android.library.jacoco"
|
|
||||||
id 'kotlin-kapt'
|
|
||||||
id 'dagger.hilt.android.plugin'
|
|
||||||
id 'nowinandroid.spotless'
|
|
||||||
}
|
|
||||||
|
|
||||||
android {
|
|
||||||
defaultConfig {
|
|
||||||
testInstrumentationRunner "com.google.samples.apps.nowinandroid.core.testing.NiaTestRunner"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(':core-model')
|
|
||||||
implementation project(':core-ui')
|
|
||||||
implementation project(':core-domain')
|
|
||||||
|
|
||||||
testImplementation project(':core-testing')
|
|
||||||
androidTestImplementation project(':core-testing')
|
|
||||||
|
|
||||||
implementation libs.kotlinx.coroutines.android
|
|
||||||
implementation libs.kotlinx.datetime
|
|
||||||
|
|
||||||
implementation libs.androidx.hilt.navigation.compose
|
|
||||||
implementation libs.androidx.lifecycle.viewModelCompose
|
|
||||||
|
|
||||||
implementation libs.accompanist.flowlayout
|
|
||||||
|
|
||||||
implementation libs.coil.kt
|
|
||||||
implementation libs.coil.kt.compose
|
|
||||||
|
|
||||||
implementation libs.hilt.android
|
|
||||||
kapt libs.hilt.compiler
|
|
||||||
|
|
||||||
// androidx.test is forcing JUnit, 4.12. This forces it to use 4.13
|
|
||||||
configurations.configureEach {
|
|
||||||
resolutionStrategy {
|
|
||||||
force libs.junit4
|
|
||||||
// Temporary workaround for https://issuetracker.google.com/174733673
|
|
||||||
force 'org.objenesis:objenesis:2.6'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,61 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2022 The Android Open Source Project
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
plugins {
|
||||||
|
id("nowinandroid.android.library")
|
||||||
|
id("nowinandroid.android.library.compose")
|
||||||
|
id("nowinandroid.android.library.jacoco")
|
||||||
|
kotlin("kapt")
|
||||||
|
id("dagger.hilt.android.plugin")
|
||||||
|
id("nowinandroid.spotless")
|
||||||
|
}
|
||||||
|
|
||||||
|
android {
|
||||||
|
defaultConfig {
|
||||||
|
testInstrumentationRunner = "com.google.samples.apps.nowinandroid.core.testing.NiaTestRunner"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation(project(":core-model"))
|
||||||
|
implementation(project(":core-ui"))
|
||||||
|
implementation(project(":core-domain"))
|
||||||
|
|
||||||
|
testImplementation(project(":core-testing"))
|
||||||
|
androidTestImplementation(project(":core-testing"))
|
||||||
|
|
||||||
|
implementation(libs.kotlinx.coroutines.android)
|
||||||
|
implementation(libs.kotlinx.datetime)
|
||||||
|
|
||||||
|
implementation(libs.androidx.hilt.navigation.compose)
|
||||||
|
implementation(libs.androidx.lifecycle.viewModelCompose)
|
||||||
|
|
||||||
|
implementation(libs.accompanist.flowlayout)
|
||||||
|
|
||||||
|
implementation(libs.coil.kt)
|
||||||
|
implementation(libs.coil.kt.compose)
|
||||||
|
|
||||||
|
implementation(libs.hilt.android)
|
||||||
|
kapt(libs.hilt.compiler)
|
||||||
|
|
||||||
|
// androidx.test is forcing JUnit, 4.12. This forces it to use 4.13
|
||||||
|
configurations.configureEach {
|
||||||
|
resolutionStrategy {
|
||||||
|
force(libs.junit4)
|
||||||
|
// Temporary workaround for https://issuetracker.google.com/174733673
|
||||||
|
force("org.objenesis:objenesis:2.6")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,57 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2022 The Android Open Source Project
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* https://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
plugins {
|
|
||||||
id "nowinandroid.android.library"
|
|
||||||
id "nowinandroid.android.library.compose"
|
|
||||||
id "nowinandroid.android.library.jacoco"
|
|
||||||
id 'kotlin-kapt'
|
|
||||||
id 'dagger.hilt.android.plugin'
|
|
||||||
id 'nowinandroid.spotless'
|
|
||||||
}
|
|
||||||
|
|
||||||
android {
|
|
||||||
defaultConfig {
|
|
||||||
testInstrumentationRunner "com.google.samples.apps.nowinandroid.core.testing.NiaTestRunner"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(':core-model')
|
|
||||||
implementation project(':core-ui')
|
|
||||||
implementation project(':core-domain')
|
|
||||||
implementation project(':core-common')
|
|
||||||
|
|
||||||
testImplementation project(':core-testing')
|
|
||||||
androidTestImplementation project(':core-testing')
|
|
||||||
|
|
||||||
implementation libs.kotlinx.coroutines.android
|
|
||||||
implementation libs.kotlinx.datetime
|
|
||||||
|
|
||||||
implementation libs.androidx.hilt.navigation.compose
|
|
||||||
implementation libs.androidx.lifecycle.viewModelCompose
|
|
||||||
|
|
||||||
implementation libs.hilt.android
|
|
||||||
kapt libs.hilt.compiler
|
|
||||||
|
|
||||||
// androidx.test is forcing JUnit, 4.12. This forces it to use 4.13
|
|
||||||
configurations.configureEach {
|
|
||||||
resolutionStrategy {
|
|
||||||
force libs.junit4
|
|
||||||
// Temporary workaround for https://issuetracker.google.com/174733673
|
|
||||||
force 'org.objenesis:objenesis:2.6'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,57 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2022 The Android Open Source Project
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
plugins {
|
||||||
|
id("nowinandroid.android.library")
|
||||||
|
id("nowinandroid.android.library.compose")
|
||||||
|
id("nowinandroid.android.library.jacoco")
|
||||||
|
kotlin("kapt")
|
||||||
|
id("dagger.hilt.android.plugin")
|
||||||
|
id("nowinandroid.spotless")
|
||||||
|
}
|
||||||
|
|
||||||
|
android {
|
||||||
|
defaultConfig {
|
||||||
|
testInstrumentationRunner = "com.google.samples.apps.nowinandroid.core.testing.NiaTestRunner"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation(project(":core-model"))
|
||||||
|
implementation(project(":core-ui"))
|
||||||
|
implementation(project(":core-domain"))
|
||||||
|
implementation(project(":core-common"))
|
||||||
|
|
||||||
|
testImplementation(project(":core-testing"))
|
||||||
|
androidTestImplementation(project(":core-testing"))
|
||||||
|
|
||||||
|
implementation(libs.kotlinx.coroutines.android)
|
||||||
|
implementation(libs.kotlinx.datetime)
|
||||||
|
|
||||||
|
implementation(libs.androidx.hilt.navigation.compose)
|
||||||
|
implementation(libs.androidx.lifecycle.viewModelCompose)
|
||||||
|
|
||||||
|
implementation(libs.hilt.android)
|
||||||
|
kapt(libs.hilt.compiler)
|
||||||
|
|
||||||
|
// androidx.test is forcing JUnit, 4.12. This forces it to use 4.13
|
||||||
|
configurations.configureEach {
|
||||||
|
resolutionStrategy {
|
||||||
|
force(libs.junit4)
|
||||||
|
// Temporary workaround for https://issuetracker.google.com/174733673
|
||||||
|
force("org.objenesis:objenesis:2.6")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,60 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2022 The Android Open Source Project
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* https://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
plugins {
|
|
||||||
id "nowinandroid.android.library"
|
|
||||||
id "nowinandroid.android.library.jacoco"
|
|
||||||
id 'kotlin-kapt'
|
|
||||||
id 'dagger.hilt.android.plugin'
|
|
||||||
id 'nowinandroid.spotless'
|
|
||||||
}
|
|
||||||
|
|
||||||
android {
|
|
||||||
defaultConfig {
|
|
||||||
testInstrumentationRunner "com.google.samples.apps.nowinandroid.core.testing.NiaTestRunner"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation project(':core-common')
|
|
||||||
implementation project(':core-model')
|
|
||||||
implementation project(':core-domain')
|
|
||||||
implementation project(':core-datastore')
|
|
||||||
|
|
||||||
implementation libs.kotlinx.coroutines.android
|
|
||||||
|
|
||||||
implementation libs.androidx.startup
|
|
||||||
implementation libs.androidx.work.ktx
|
|
||||||
implementation libs.hilt.ext.work
|
|
||||||
|
|
||||||
testImplementation project(':core-testing')
|
|
||||||
androidTestImplementation project(':core-testing')
|
|
||||||
|
|
||||||
implementation libs.hilt.android
|
|
||||||
kapt libs.hilt.compiler
|
|
||||||
kapt libs.hilt.ext.compiler
|
|
||||||
|
|
||||||
androidTestImplementation libs.androidx.work.testing
|
|
||||||
|
|
||||||
kaptAndroidTest libs.hilt.compiler
|
|
||||||
kaptAndroidTest libs.hilt.ext.compiler
|
|
||||||
|
|
||||||
configurations.configureEach {
|
|
||||||
resolutionStrategy {
|
|
||||||
// Temporary workaround for https://issuetracker.google.com/174733673
|
|
||||||
force 'org.objenesis:objenesis:2.6'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,60 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2022 The Android Open Source Project
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
plugins {
|
||||||
|
id("nowinandroid.android.library")
|
||||||
|
id("nowinandroid.android.library.jacoco")
|
||||||
|
kotlin("kapt")
|
||||||
|
id("dagger.hilt.android.plugin")
|
||||||
|
id("nowinandroid.spotless")
|
||||||
|
}
|
||||||
|
|
||||||
|
android {
|
||||||
|
defaultConfig {
|
||||||
|
testInstrumentationRunner = "com.google.samples.apps.nowinandroid.core.testing.NiaTestRunner"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation(project(":core-common"))
|
||||||
|
implementation(project(":core-model"))
|
||||||
|
implementation(project(":core-domain"))
|
||||||
|
implementation(project(":core-datastore"))
|
||||||
|
|
||||||
|
implementation(libs.kotlinx.coroutines.android)
|
||||||
|
|
||||||
|
implementation(libs.androidx.startup)
|
||||||
|
implementation(libs.androidx.work.ktx)
|
||||||
|
implementation(libs.hilt.ext.work)
|
||||||
|
|
||||||
|
testImplementation(project(":core-testing"))
|
||||||
|
androidTestImplementation(project(":core-testing"))
|
||||||
|
|
||||||
|
implementation(libs.hilt.android)
|
||||||
|
kapt(libs.hilt.compiler)
|
||||||
|
kapt(libs.hilt.ext.compiler)
|
||||||
|
|
||||||
|
androidTestImplementation(libs.androidx.work.testing)
|
||||||
|
|
||||||
|
kaptAndroidTest(libs.hilt.compiler)
|
||||||
|
kaptAndroidTest(libs.hilt.ext.compiler)
|
||||||
|
|
||||||
|
configurations.configureEach {
|
||||||
|
resolutionStrategy {
|
||||||
|
// Temporary workaround for https://issuetracker.google.com/174733673
|
||||||
|
force("org.objenesis:objenesis:2.6")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue