chore(build): reorder DSL declarations

This commit is contained in:
Harsh Shandilya 2023-04-19 12:29:27 +05:30
parent 1d32ec810f
commit bf104a1d85
No known key found for this signature in database
5 changed files with 28 additions and 26 deletions

View file

@ -17,13 +17,6 @@ plugins {
alias(libs.plugins.whetstone)
}
whetstone {
addOns {
compose.set(true)
workManager.set(true)
}
}
android {
namespace = "dev.msfjarvis.claw.android"
defaultConfig { applicationId = "dev.msfjarvis.claw.android" }
@ -43,6 +36,13 @@ android {
}
}
whetstone {
addOns {
compose.set(true)
workManager.set(true)
}
}
dependencies {
implementation(platform(libs.androidx.compose.bom))
implementation(platform(libs.okhttp.bom))

View file

@ -43,6 +43,8 @@ android {
experimentalProperties["android.experimental.self-instrumenting"] = true
}
androidComponents { beforeVariants(selector().all()) { it.enable = it.buildType == "benchmark" } }
dependencies {
implementation(libs.androidx.benchmark.macro.junit4)
implementation(libs.androidx.profileinstaller)
@ -53,5 +55,3 @@ dependencies {
implementation(libs.androidx.test.runner)
implementation(libs.androidx.test.uiautomator)
}
androidComponents { beforeVariants(selector().all()) { it.enable = it.buildType == "benchmark" } }

View file

@ -4,6 +4,8 @@
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
@file:Suppress("UnstableApiUsage")
plugins {
id("dev.msfjarvis.claw.kotlin-android")
id("dev.msfjarvis.claw.android-library")
@ -11,10 +13,22 @@ plugins {
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 } }
anvil { generateDaggerFactories.set(true) }
dependencies {
implementation(platform(libs.androidx.compose.bom))
api(libs.napier)
@ -39,15 +53,3 @@ dependencies {
testImplementation(kotlin("test-junit"))
testImplementation(libs.testparameterinjector)
}
android {
buildFeatures {
androidResources = true
compose = true
}
composeOptions {
useLiveLiterals = false
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
}
namespace = "dev.msfjarvis.claw.common"
}

View file

@ -11,10 +11,10 @@ plugins {
alias(libs.plugins.whetstone)
}
anvil { generateDaggerFactories.set(true) }
android { namespace = "dev.msfjarvis.claw.core" }
anvil { generateDaggerFactories.set(true) }
dependencies {
api(libs.kotlinx.serialization.json)
api(libs.okhttp.loggingInterceptor)

View file

@ -12,10 +12,10 @@ plugins {
alias(libs.plugins.whetstone)
}
anvil { generateDaggerFactories.set(true) }
android { namespace = "dev.msfjarvis.claw.database" }
anvil { generateDaggerFactories.set(true) }
sqldelight {
databases {
create("LobstersDatabase") {