Refactor Android CI workflow to use Nix actions and improve translation file collection
Some checks failed
Android / build (push) Failing after 6m12s

This commit is contained in:
HendrikRauh 2026-01-26 17:40:54 +01:00
parent 49bc90c00c
commit 51a1c1e6f3
3 changed files with 154 additions and 21 deletions

View file

@ -23,11 +23,34 @@ if (flutterVersionName == null) {
}
def keystoreProperties = new Properties()
// Prefer root key.properties, but fall back to android/key.properties if present (CI may place it there)
def keystorePropertiesFile = rootProject.file('key.properties')
if (!keystorePropertiesFile.exists()) {
def alt = rootProject.file('android/key.properties')
if (alt.exists()) {
keystorePropertiesFile = alt
}
}
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
// Temporary debug task: prints which keystore file Gradle sees and whether the storeFile exists (does NOT print secrets)
task printSigning {
doLast {
println "keystorePropertiesFile = ${keystorePropertiesFile}"
println "keystoreProperties keys = " + keystoreProperties.keySet().toString()
def store = keystoreProperties['storeFile']
println "storeFile = " + (store ?: 'null')
if (store) {
def f = new File(store)
println "storeFile absolute = " + f.absolutePath
println "storeFile exists = " + f.exists()
}
}
}
android {
namespace "inventree.inventree_app"
compileSdkVersion 35