Thomas Martitz | 6499ce3 | 2014-03-09 18:08:06 +0100 | [diff] [blame^] | 1 | #!/bin/sh |
| 2 | |
| 3 | BUILDDIR=$1 |
| 4 | APK=$2 |
| 5 | SDKV=$3 |
| 6 | |
| 7 | [ -z $ANDROID_SDK_PATH ] && exit 1 |
| 8 | [ -z $BUILDDIR ] && exit 1 |
| 9 | [ -d $BUILDDIR ] || exit 1 |
| 10 | |
| 11 | # need to cd into the bin dir and create a symlink to the libraries |
| 12 | # so that aapt puts the libraries with the correct prefix into the apk |
| 13 | cd $BUILDDIR/bin |
| 14 | ln -nfs $BUILDDIR/libs lib |
| 15 | cp resources.ap_ $APK |
| 16 | $ANDROID_SDK_PATH/build-tools/$SDKV/aapt add $APK classes.dex > /dev/null |
| 17 | $ANDROID_SDK_PATH/build-tools/$SDKV/aapt add $APK lib/*/* > /dev/null |
| 18 | |
| 19 | exit 0 |