feat(android): import private Shopee probe tasks
This commit is contained in:
@@ -53,9 +53,25 @@ android {
|
||||
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
||||
}
|
||||
}
|
||||
|
||||
val generatedProbeAssets = layout.buildDirectory.dir("generated/probeFixtures")
|
||||
sourceSets.getByName("debug").assets.srcDir(generatedProbeAssets)
|
||||
|
||||
val configuredProbeFixtures = providers.gradleProperty("probeFixturesDir")
|
||||
val syncProbeFixtures = tasks.register<Sync>("syncProbeFixtures") {
|
||||
if (configuredProbeFixtures.isPresent) {
|
||||
from(rootProject.file(configuredProbeFixtures.get()))
|
||||
}
|
||||
into(generatedProbeAssets.map { it.dir("probe-fixtures") })
|
||||
}
|
||||
tasks.matching { it.name == "mergeDebugAssets" }.configureEach {
|
||||
dependsOn(syncProbeFixtures)
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":task-contract"))
|
||||
|
||||
// AndroidX Core
|
||||
implementation("androidx.core:core-ktx:1.12.0")
|
||||
implementation("androidx.core:core-splashscreen:1.0.1")
|
||||
|
||||
Reference in New Issue
Block a user