mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-06-19 15:51:13 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c4fe2df923 | |||
| 4361230c47 |
+11
-3
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user