Fix fdroid build ci
This commit is contained in:
parent
42e44d47f9
commit
f50fd578c8
|
@ -126,7 +126,7 @@ fdroid build:
|
||||||
- .gradle
|
- .gradle
|
||||||
script:
|
script:
|
||||||
# Put the correct versionName and versionCode in the .fdroid.yml
|
# Put the correct versionName and versionCode in the .fdroid.yml
|
||||||
- sed -e "s/\${versionName}/$(grep "versionName " app/build.gradle | awk '{print $2}' | tr -d \")$(grep "versionCode" app/build.gradle -m 1 | awk '{print $2}')/" -e "s/\${versionCode}/$(grep "versionCode" app/build.gradle -m 1 | awk '{print $2}')/" .fdroid.yml.template > .fdroid.yml
|
- sed -e "s/\${versionName}/$(./gradlew -q printVersionName)/" -e "s/\${versionCode}/$(./gradlew -q printVersionCode)/" .fdroid.yml.template > .fdroid.yml
|
||||||
- rm .fdroid.yml.template
|
- rm .fdroid.yml.template
|
||||||
# each `fdroid build --on-server` run expects sudo, then uninstalls it
|
# each `fdroid build --on-server` run expects sudo, then uninstalls it
|
||||||
- set -x
|
- set -x
|
||||||
|
|
|
@ -166,6 +166,17 @@ android {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.register('printVersionName') {
|
||||||
|
doLast {
|
||||||
|
println android.defaultConfig.versionName
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tasks.register('printVersionCode') {
|
||||||
|
doLast {
|
||||||
|
println android.defaultConfig.versionCode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||||
implementation 'androidx.hilt:hilt-common:1.2.0'
|
implementation 'androidx.hilt:hilt-common:1.2.0'
|
||||||
|
|
Loading…
Reference in New Issue