74808f086e
* feat: Replace Legacy Media Controls with Nitro-Powered Playback * feat: Add TTS Engine Selection * chore: Remove User-Facing Error Reporting * refactor: Combine `Tts` and `TtsSession` Imports from `nitro-tts` Module --------- Co-authored-by: Claude <noreply@anthropic.com>
45 lines
1.5 KiB
Groovy
45 lines
1.5 KiB
Groovy
tasks.configureEach { task ->
|
|
def prefabConfigurePattern = ~/^prefab(.+)ConfigurePackage$/
|
|
def matcher = task.name =~ prefabConfigurePattern
|
|
if (matcher.matches()) {
|
|
def variantName = matcher[0][1]
|
|
task.outputs.upToDateWhen { false }
|
|
task.dependsOn("externalNativeBuild${variantName}")
|
|
}
|
|
}
|
|
|
|
afterEvaluate {
|
|
def abis = reactNativeArchitectures()
|
|
rootProject.allprojects.each { proj ->
|
|
if (proj === rootProject) return
|
|
|
|
def dependsOnThisLib = proj.configurations.findAll { it.canBeResolved }.any { config ->
|
|
config.dependencies.any { dep ->
|
|
dep.group == project.group && dep.name == project.name
|
|
}
|
|
}
|
|
if (!dependsOnThisLib && proj != project) return
|
|
|
|
if (!proj.plugins.hasPlugin('com.android.application') && !proj.plugins.hasPlugin('com.android.library')) {
|
|
return
|
|
}
|
|
|
|
def variants = proj.android.hasProperty('applicationVariants') ? proj.android.applicationVariants : proj.android.libraryVariants
|
|
variants.all { variant ->
|
|
def variantName = variant.name
|
|
abis.each { abi ->
|
|
def searchDir = new File(proj.projectDir, ".cxx/${variantName}")
|
|
if (!searchDir.exists()) return
|
|
def matches = []
|
|
searchDir.eachDir { randomDir ->
|
|
def prefabFile = new File(randomDir, "${abi}/prefab_config.json")
|
|
if (prefabFile.exists()) matches << prefabFile
|
|
}
|
|
matches.each { prefabConfig ->
|
|
prefabConfig.setLastModified(System.currentTimeMillis())
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|