mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 08:17:04 +05:30
chore(build): reorder DSL declarations
This commit is contained in:
parent
1d32ec810f
commit
bf104a1d85
5 changed files with 28 additions and 26 deletions
|
@ -17,13 +17,6 @@ plugins {
|
||||||
alias(libs.plugins.whetstone)
|
alias(libs.plugins.whetstone)
|
||||||
}
|
}
|
||||||
|
|
||||||
whetstone {
|
|
||||||
addOns {
|
|
||||||
compose.set(true)
|
|
||||||
workManager.set(true)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace = "dev.msfjarvis.claw.android"
|
namespace = "dev.msfjarvis.claw.android"
|
||||||
defaultConfig { applicationId = "dev.msfjarvis.claw.android" }
|
defaultConfig { applicationId = "dev.msfjarvis.claw.android" }
|
||||||
|
@ -43,6 +36,13 @@ android {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
whetstone {
|
||||||
|
addOns {
|
||||||
|
compose.set(true)
|
||||||
|
workManager.set(true)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(platform(libs.androidx.compose.bom))
|
implementation(platform(libs.androidx.compose.bom))
|
||||||
implementation(platform(libs.okhttp.bom))
|
implementation(platform(libs.okhttp.bom))
|
||||||
|
|
|
@ -43,6 +43,8 @@ android {
|
||||||
experimentalProperties["android.experimental.self-instrumenting"] = true
|
experimentalProperties["android.experimental.self-instrumenting"] = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
androidComponents { beforeVariants(selector().all()) { it.enable = it.buildType == "benchmark" } }
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(libs.androidx.benchmark.macro.junit4)
|
implementation(libs.androidx.benchmark.macro.junit4)
|
||||||
implementation(libs.androidx.profileinstaller)
|
implementation(libs.androidx.profileinstaller)
|
||||||
|
@ -53,5 +55,3 @@ dependencies {
|
||||||
implementation(libs.androidx.test.runner)
|
implementation(libs.androidx.test.runner)
|
||||||
implementation(libs.androidx.test.uiautomator)
|
implementation(libs.androidx.test.uiautomator)
|
||||||
}
|
}
|
||||||
|
|
||||||
androidComponents { beforeVariants(selector().all()) { it.enable = it.buildType == "benchmark" } }
|
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
* license that can be found in the LICENSE file or at
|
* license that can be found in the LICENSE file or at
|
||||||
* https://opensource.org/licenses/MIT.
|
* https://opensource.org/licenses/MIT.
|
||||||
*/
|
*/
|
||||||
|
@file:Suppress("UnstableApiUsage")
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("dev.msfjarvis.claw.kotlin-android")
|
id("dev.msfjarvis.claw.kotlin-android")
|
||||||
id("dev.msfjarvis.claw.android-library")
|
id("dev.msfjarvis.claw.android-library")
|
||||||
|
@ -11,10 +13,22 @@ plugins {
|
||||||
alias(libs.plugins.whetstone)
|
alias(libs.plugins.whetstone)
|
||||||
}
|
}
|
||||||
|
|
||||||
anvil { generateDaggerFactories.set(true) }
|
android {
|
||||||
|
buildFeatures {
|
||||||
|
androidResources = true
|
||||||
|
compose = true
|
||||||
|
}
|
||||||
|
composeOptions {
|
||||||
|
useLiveLiterals = false
|
||||||
|
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
|
||||||
|
}
|
||||||
|
namespace = "dev.msfjarvis.claw.common"
|
||||||
|
}
|
||||||
|
|
||||||
androidComponents { beforeVariants { it.enableUnitTest = false } }
|
androidComponents { beforeVariants { it.enableUnitTest = false } }
|
||||||
|
|
||||||
|
anvil { generateDaggerFactories.set(true) }
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(platform(libs.androidx.compose.bom))
|
implementation(platform(libs.androidx.compose.bom))
|
||||||
api(libs.napier)
|
api(libs.napier)
|
||||||
|
@ -39,15 +53,3 @@ dependencies {
|
||||||
testImplementation(kotlin("test-junit"))
|
testImplementation(kotlin("test-junit"))
|
||||||
testImplementation(libs.testparameterinjector)
|
testImplementation(libs.testparameterinjector)
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
|
||||||
buildFeatures {
|
|
||||||
androidResources = true
|
|
||||||
compose = true
|
|
||||||
}
|
|
||||||
composeOptions {
|
|
||||||
useLiveLiterals = false
|
|
||||||
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
|
|
||||||
}
|
|
||||||
namespace = "dev.msfjarvis.claw.common"
|
|
||||||
}
|
|
||||||
|
|
|
@ -11,10 +11,10 @@ plugins {
|
||||||
alias(libs.plugins.whetstone)
|
alias(libs.plugins.whetstone)
|
||||||
}
|
}
|
||||||
|
|
||||||
anvil { generateDaggerFactories.set(true) }
|
|
||||||
|
|
||||||
android { namespace = "dev.msfjarvis.claw.core" }
|
android { namespace = "dev.msfjarvis.claw.core" }
|
||||||
|
|
||||||
|
anvil { generateDaggerFactories.set(true) }
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api(libs.kotlinx.serialization.json)
|
api(libs.kotlinx.serialization.json)
|
||||||
api(libs.okhttp.loggingInterceptor)
|
api(libs.okhttp.loggingInterceptor)
|
||||||
|
|
|
@ -12,10 +12,10 @@ plugins {
|
||||||
alias(libs.plugins.whetstone)
|
alias(libs.plugins.whetstone)
|
||||||
}
|
}
|
||||||
|
|
||||||
anvil { generateDaggerFactories.set(true) }
|
|
||||||
|
|
||||||
android { namespace = "dev.msfjarvis.claw.database" }
|
android { namespace = "dev.msfjarvis.claw.database" }
|
||||||
|
|
||||||
|
anvil { generateDaggerFactories.set(true) }
|
||||||
|
|
||||||
sqldelight {
|
sqldelight {
|
||||||
databases {
|
databases {
|
||||||
create("LobstersDatabase") {
|
create("LobstersDatabase") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue