Skip to content

Commit b150946

Browse files
committed
Add android-support-v4.jar into ant build
This is needed by gpg c++ service lib 2.0 Change-Id: I8a21e5e5b83849053f3a054e534f3168834a99fa BugId: b2/25977677 Tested: Linux (build) / Nexus 9 (target) + Android M
1 parent 03940ae commit b150946

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

samples-android/build_sample.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ declare -x mode=${1:-debug}
7171
declare -r android_tool="${ANDROID_HOME}/tools/android"
7272
declare -r ndk_build="${NDK_ROOT}/ndk-build"
7373
declare -r lib_project="${ANDROID_HOME}/${lib_rel_path}"
74+
declare -r android_support_v4="${ANDROID_HOME}/extras/android/support/v4/\
75+
android-support-v4.jar"
7476

7577
>&2 echo Preparing projects...
7678
declare -r private_lib=".gpg-lib"
@@ -95,6 +97,9 @@ trap cleanup EXIT
9597
# Copy the lib project and run "android update lib-project" on it.
9698
# This requires a target, which apparently needs to be android-10.
9799
cp -r ${lib_project} ${private_lib}
100+
mkdir -p libs
101+
cp -f ${android_support_v4} ./libs
102+
98103
${android_tool} update lib-project --path ${private_lib} --target android-22
99104

100105
#

0 commit comments

Comments
 (0)