Update Vector Pinball to 1.10.0

This commit is contained in:
Brian Nenninger 2022-04-06 07:50:19 +00:00 committed by linsui
parent 3821f32c4d
commit 912d0c5e6e

View file

@ -302,6 +302,42 @@ Builds:
src/main/jniLibs/
ndk: r22
- versionName: 1.10.0
versionCode: 34
commit: v1.10.0
subdir: app
sudo:
- apt-get update || apt-get update
- apt-get install -y openjdk-11-jdk-headless
- update-alternatives --auto java
gradle:
- yes
srclibs:
- libgdx@gdx-parent-1.9.13
rm:
- app/src/main/jniLibs/*
- app/libs/*
prebuild:
- pushd $$libgdx$$
- rm gdx/jni/build.xml
- sed -i 's@<target name="compile-natives">@<target name="compile-natives">\n<ant
antfile="build-android32.xml"/>\n</target>\n<target name="compile-natives-old">@g'
extensions/gdx-box2d/gdx-box2d/jni/build.xml
- sed -i 's@<target name="all" depends="compile-natives,pack-natives"/>@<target
name="all" depends="compile-natives"/>@g' extensions/gdx-box2d/gdx-box2d/jni/build.xml
- sed -i 's@armeabi\s@ @g' extensions/gdx-box2d/gdx-box2d/jni/Application.mk
- popd
build:
- export NDK_HOME=$$NDK$$
- pushd $$libgdx$$
- ant -v -f build.xml -Dbuild-natives=true gdx-box2d
- popd
- cp $$libgdx$$/dist/gdx.jar libs/gdx-1.9.13.jar
- cp $$libgdx$$/dist/extensions/gdx-box2d/gdx-box2d.jar libs/gdx-box2d-1.9.13.jar
- cp -r $$libgdx$$/dist/extensions/gdx-box2d/{arm64-v8a,armeabi-v7a,x86,x86_64}
src/main/jniLibs/
ndk: r22
MaintainerNotes: |-
sed replaces needed as libgdx upstream currently don't provide a way to only build the android native bins only.
If more apps start to depend on libgdx consider to create a feature request to change this.