Skip to content

Commit ecde6e8

Browse files
committed
use Android 6.0 (API level 23) for building the core library
1 parent 9e5caac commit ecde6e8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

core/build.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@
66
<!-- path to the main processing repo -->
77
<property name="processing.dir" value="../../processing" />
88

9+
<!-- path to the core library -->
910
<property name="core.jar.path" value="../android-core.zip" />
1011

12+
<!-- Android platform to build the core library -->
13+
<property name="android.platform" value="android-23" />
14+
1115
<!-- oh ant, you're so cute and convoluted -->
1216
<target name="build" depends="sdk_chatter,actual_build" />
1317

@@ -16,10 +20,10 @@
1620
</target>
1721

1822
<target name="sdk_whining">
19-
<available file="${env.ANDROID_SDK}/platforms/android-21/android.jar"
23+
<available file="${env.ANDROID_SDK}/platforms/${android.platform}/android.jar"
2024
property="andoid-jar-present" />
2125
<fail unless="andoid-jar-present"
22-
message="Android SDK 21 could not be found in ${env.ANDROID_SDK}/platforms/android-21/android.jar" />
26+
message="Android SDK could not be found in ${env.ANDROID_SDK}/platforms/${android.platform}/android.jar" />
2327
</target>
2428

2529
<target name="actual_build" if="env.ANDROID_SDK">
@@ -33,7 +37,7 @@
3337
target="1.7"
3438
encoding="UTF-8"
3539
includeAntRuntime="false"
36-
bootclasspath="${env.ANDROID_SDK}/platforms/android-21/android.jar;
40+
bootclasspath="${env.ANDROID_SDK}/platforms/${android.platform}/android.jar;
3741
library/wearable-1.3.0-classes.jar"
3842
srcdir="src" destdir="bin" />
3943

0 commit comments

Comments
 (0)