ci: insère keystoreProperties après plugins{} (build.gradle 3.24)
Build APK / build (push) Failing after 6s
Build APK / build (push) Failing after 6s
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
f103134762
commit
cdb899575e
@@ -33,12 +33,16 @@ open(man, "w").write(s)
|
|||||||
# 3) build.gradle : signature + schéma OIDC
|
# 3) build.gradle : signature + schéma OIDC
|
||||||
gr = "android/app/build.gradle"
|
gr = "android/app/build.gradle"
|
||||||
s = open(gr).read()
|
s = open(gr).read()
|
||||||
|
# ⚠️ Rien n'est autorisé AVANT le bloc plugins {} → on insère juste avant `android {`
|
||||||
if "keystoreProperties" not in s:
|
if "keystoreProperties" not in s:
|
||||||
s = (
|
s = s.replace(
|
||||||
|
"android {",
|
||||||
'def keystoreProperties = new Properties()\n'
|
'def keystoreProperties = new Properties()\n'
|
||||||
'def keystorePropertiesFile = rootProject.file("key.properties")\n'
|
'def keystorePropertiesFile = rootProject.file("key.properties")\n'
|
||||||
'if (keystorePropertiesFile.exists()) { keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) }\n\n'
|
'if (keystorePropertiesFile.exists()) { keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) }\n\n'
|
||||||
) + s
|
'android {',
|
||||||
|
1,
|
||||||
|
)
|
||||||
if "appAuthRedirectScheme" not in s:
|
if "appAuthRedirectScheme" not in s:
|
||||||
s = s.replace(
|
s = s.replace(
|
||||||
"defaultConfig {",
|
"defaultConfig {",
|
||||||
|
|||||||
Reference in New Issue
Block a user