make ci try building the flutter apk in the android apk pipeline

pull/1731/head
Jeff Becker 3 years ago
parent f3bc00bcd8
commit f65ec8e79f
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -76,7 +76,13 @@ local apk_builder(name, image, extra_cmds=[], allow_fail=false, jobs=6) = {
[if allow_fail then "failure"]: "ignore",
environment: { SSH_KEY: { from_secret: "SSH_KEY" }, ANDROID: "android" },
commands: [
'VERBOSE=1 JOBS='+jobs+' NDK=/usr/lib/android-ndk ./contrib/android.sh'
'VERBOSE=1 JOBS='+jobs+' NDK=/usr/lib/android-ndk ./contrib/android.sh',
'git clone https://github.com/oxen-io/lokinet-mobile',
'cp -av lokinet-jni-*/* lokinet-mobile/lokinet_lib/android/src/main/jniLibs/',
'cd lokinet-mobile',
'flutter build apk --debug',
'cd ..',
'cp lokinet-mobile/build/app/outputs/apk/debug/app-debug.apk lokinet.apk'
] + extra_cmds
}
]

@ -42,6 +42,7 @@ if [ -e build-windows ]; then
elif [ -e build-android ] ; then
# android af ngl
cp -av lokinet-jni-* "$base"
cp -av *.apk "$base"
archive="$base.tar.xz"
tar cJvf "$archive" "$base"
else

Loading…
Cancel
Save