2 Commits

Author SHA1 Message Date
pezkuwichain c4fe2df923 fix(build): declare resource-task deps for google-services bind task
bindDevelopGithubGoogleServicesToRelease writes into src/develop, which
generate/mergeDevelopResources read — Gradle 8.9 fails on the implicit
dependency. Add generate/mergeResources to the bind task's dependents
(null-safe via findByName).
2026-06-13 09:12:46 -07:00
pezkuwichain 4361230c47 fix(build): bind production google-services to develop variant
develop now uses the base io.pezkuwichain.wallet applicationId, whose
google-services client is in the production google-services.json (the DEV
google-services.json only has a .debug client). Extend the release-binding
task to copy src/release/google-services.json into src/develop so
processDevelopGoogleServices finds a matching client.
2026-06-13 08:13:22 -07:00
+11 -3
View File
@@ -121,7 +121,10 @@ android {
applicationVariants.all { variant ->
String name = variant.buildType.name
if (name != "release" && name.startsWith("release")) {
// 'develop' now shares the base io.pezkuwichain.wallet applicationId, whose
// google-services client lives in the production google-services.json — so bind
// it for develop too (the DEV google-services.json has no matching client).
if ((name != "release" && name.startsWith("release")) || name == "develop") {
createBindReleaseFileTask(variant.buildType.name)
}
}
@@ -159,11 +162,16 @@ void createBindReleaseFileTask(String destination) {
"merge${capitalizedDestination}JniLibFolders".toString(),
"merge${capitalizedDestination}StartupProfile".toString(),
"merge${capitalizedDestination}Shaders".toString(),
"merge${capitalizedDestination}ArtProfile".toString()
"merge${capitalizedDestination}ArtProfile".toString(),
// The bind task writes into src/<dest>, which resource tasks read —
// declare the dependency so Gradle 8.9 doesn't fail on implicit ordering.
"generate${capitalizedDestination}Resources".toString(),
"merge${capitalizedDestination}Resources".toString()
]
dependentTasks.forEach {
tasks.getByName(it).dependsOn(task)
def t = tasks.findByName(it)
if (t != null) t.dependsOn(task)
}
}
}