45 lines
1,000 B
Groovy
45 lines
1,000 B
Groovy
import common.Release
|
|
import common.Constants
|
|
import static common.Constants.strip
|
|
|
|
for(ARCH in Constants.AndroidArch)
|
|
{
|
|
|
|
def j = new Release
|
|
(
|
|
name: 'Android_APK_' + ARCH,
|
|
libraries: 'Android_' + ARCH,
|
|
label: 'Android',
|
|
artifacts: 'build/dist/**/AusweisApp2-*.apk'
|
|
).generate(this)
|
|
|
|
|
|
j.with
|
|
{
|
|
parameters
|
|
{
|
|
stringParam("ANDROID_VERSION_CODE", "0", "See https://play.google.com/apps/publish/")
|
|
}
|
|
|
|
steps
|
|
{
|
|
shell(strip("""\
|
|
cd build; cmake ../source
|
|
-DCMAKE_PREFIX_PATH=\${WORKSPACE}/libs/build/dist
|
|
-DCMAKE_TOOLCHAIN_FILE=../source/cmake/android.toolchain.cmake
|
|
-DCMAKE_BUILD_TYPE=release
|
|
-DCMAKE_ANDROID_ARCH_ABI=${ARCH}
|
|
-DAPK_SIGN_KEYSTORE=\${APK_SIGN_KEYSTORE}
|
|
-DAPK_SIGN_KEYSTORE_ALIAS=\${APK_SIGN_KEYSTORE_ALIAS}
|
|
-DAPK_SIGN_KEYSTORE_PSW=\${APK_SIGN_KEYSTORE_PSW}
|
|
-DANDROID_VERSION_CODE=\${ANDROID_VERSION_CODE}
|
|
"""))
|
|
|
|
shell('cd build; make \${MAKE_FLAGS} install')
|
|
shell('cd build; make apk')
|
|
shell('cd build; make verify.signature')
|
|
}
|
|
}
|
|
|
|
}
|