Skip to content

Commit 88c0908

Browse files
committed
renamed android-core to processing-core.jar
1 parent 5149870 commit 88c0908

File tree

8 files changed

+21
-20
lines changed

8 files changed

+21
-20
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ release
1111

1212
build/**
1313
.gradle
14+
/processing-core.zip

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ allprojects {
1414
apply plugin: 'java'
1515

1616
ext.android_platform = "$sdkdir/platforms/android-$sdkver"
17-
ext.core_jar_path = "$rootDir/android-core.zip"
17+
ext.core_jar_path = "$rootDir/processing-core.zip"
1818

1919
repositories {
2020
jcenter()
@@ -66,8 +66,8 @@ task dist {
6666
Files.copy(file("$buildDir/libs/processing-android.jar").toPath(),
6767
file("mode/AndroidMode.jar").toPath(), REPLACE_EXISTING);
6868

69-
Files.copy(file("core/build/libs/android-core.zip").toPath(),
70-
file("$root/android-core.zip").toPath(), REPLACE_EXISTING);
69+
Files.copy(file("core/build/libs/processing-core.zip").toPath(),
70+
file("$root/processing-core.zip").toPath(), REPLACE_EXISTING);
7171

7272
Files.copy(file("mode.properties").toPath(),
7373
file("$root/mode.properties").toPath(), REPLACE_EXISTING);

build.xml

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

8-
<property name="core.jar.path" value="android-core.zip" />
8+
<property name="core.jar.path" value="processing-core.zip" />
99
<property name="mode.jar.path" value="mode/AndroidMode.jar" />
1010
<property name="mode.dist.path" value="release/AndroidMode.zip" />
1111
<property name="tools.jar.path" value="mode/tools.jar" />
@@ -58,15 +58,15 @@
5858
<!--
5959
<target name="android-dist-check">
6060
-->
61-
<!-- ensure that the android-core.zip file has been built -->
61+
<!-- ensure that the processing-core.zip file has been built -->
6262
<!--
6363
<available file="${core.jar.path}"
6464
property="android-core-present" />
6565
-->
66-
<!--<echo message="${target.path}/modes/android/android-core.zip" />-->
66+
<!--<echo message="${target.path}/modes/android/processing-core.zip" />-->
6767
<!--
6868
<fail unless="android-core-present"
69-
message="android-core.zip was not built, but is required for dist. Install the Android tools, set ANDROID_SDK, and try again." />
69+
message="processing-core.zip was not built, but is required for dist. Install the Android tools, set ANDROID_SDK, and try again." />
7070
</target>
7171
-->
7272

@@ -85,7 +85,7 @@
8585

8686
<zip destfile="${mode.dist.path}">
8787
<zipfileset dir="." prefix="AndroidMode">
88-
<include name="android-core.zip" />
88+
<include name="processing-core.zip" />
8989
<include name="mode.properties" />
9090
<include name="mode/**" />
9191
<include name="templates/**" />

core/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ task dist {
4848
doLast {
4949
// make copy of jar file as zip
5050
Files.copy(file("$buildDir/libs/core.jar").toPath(),
51-
file("$buildDir/libs/android-core.zip").toPath(), REPLACE_EXISTING);
51+
file("$buildDir/libs/processing-core.zip").toPath(), REPLACE_EXISTING);
5252

5353
// and copy it to root
5454
Files.copy(file("$buildDir/libs/core.jar").toPath(),

core/build.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<property name="processing.dir" value="../../processing" />
88

99
<!-- path to the core library -->
10-
<property name="core.jar.path" value="../android-core.zip" />
10+
<property name="core.jar.path" value="../processing-core.zip" />
1111

1212
<!-- Android platform to build the core library -->
1313
<property name="android.platform" value="android-25" />
@@ -22,7 +22,7 @@
2222
<target name="build" depends="sdk_chatter,actual_build" />
2323

2424
<target name="sdk_chatter" unless="env.ANDROID_SDK">
25-
<echo message="ANDROID_SDK not set, skipping build of android-core.zip" />
25+
<echo message="ANDROID_SDK not set, skipping build of processing-core.zip" />
2626
</target>
2727

2828
<target name="sdk_whining">

libraries/cardboard/build.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121
<target name="compile" description="Compile sources">
2222
<condition property="core-built">
23-
<available file="../../android-core.zip" />
23+
<available file="../../processing-core.zip" />
2424
</condition>
25-
<fail unless="core-built" message="Please build the core library first and make sure it sits in ../../android-core.zip" />
25+
<fail unless="core-built" message="Please build the core library first and make sure it sits in ../../processing-core.zip" />
2626

2727
<mkdir dir="bin" />
2828
<javac source="1.7"
@@ -33,7 +33,7 @@
3333
classpath="lib/gvr-base.jar;
3434
lib/gvr-common.jar;
3535
lib/gvr-audio.jar;
36-
../../android-core.zip;
36+
../../processing-core.zip;
3737
${env.ANDROID_SDK}/platforms/android-25/android.jar"
3838
nowarn="true"
3939
compiler="org.eclipse.jdt.core.JDTCompilerAdapter">

src/processing/mode/android/AndroidBuild.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,6 @@ public File createProject(boolean wear) throws IOException, SketchException {
266266
final File libsFolder = mkdirs(tmpFolder, "libs");
267267
final File assetsFolder = mkdirs(tmpFolder, "assets");
268268

269-
// InputStream input = PApplet.createInput(getCoreZipLocation());
270-
// PApplet.saveStream(new File(libsFolder, "processing-core.jar"), input);
271269
Util.copyFile(coreZipFile, new File(libsFolder, "processing-core.jar"));
272270

273271
////////////////////////////////////////////////////////////////////////
@@ -1660,7 +1658,8 @@ private void createMobileModule(File projectFolder, File exportFolder, String bu
16601658
replaceMap.put("@@build_tools@@", buildToolsVer);
16611659
replaceMap.put("@@package_name@@", getPackageName());
16621660
replaceMap.put("@@min_sdk@@", min_sdk_handheld);
1663-
replaceMap.put("@@target_sdk@@", target_sdk);
1661+
replaceMap.put("@@target_sdk@@", target_sdk);
1662+
replaceMap.put("@@support_version@@", support_version);
16641663
replaceMap.put("@@play_services_version@@", play_services_version);
16651664
replaceMap.put("@@wear_version@@", wear_version);
16661665
replaceMap.put("@@version_code@@", manifest.getVersionCode());
@@ -1691,6 +1690,7 @@ private void createWearModule(File projectFolder, File exportFolder, String buil
16911690
replaceMap.put("@@package_name@@", getPackageName());
16921691
replaceMap.put("@@min_sdk@@", min_sdk_watchface);
16931692
replaceMap.put("@@target_sdk@@", target_sdk);
1693+
replaceMap.put("@@support_version@@", support_version);
16941694
replaceMap.put("@@play_services_version@@", play_services_version);
16951695
replaceMap.put("@@wear_version@@", wear_version);
16961696
replaceMap.put("@@version_code@@", manifest.getVersionCode());

src/processing/mode/android/AndroidMode.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
Part of the Processing project - http://processing.org
55
6-
Copyright (c) 2012-16 The Processing Foundation
6+
Copyright (c) 2012-17 The Processing Foundation
77
Copyright (c) 2011-12 Ben Fry and Casey Reas
88
99
This program is free software; you can redistribute it and/or modify
@@ -152,7 +152,7 @@ protected File getCoreZipLocation() {
152152

153153
// otherwise do the usual
154154
// return new File(base.getSketchbookFolder(), ANDROID_CORE_FILENAME);
155-
coreZipLocation = getContentFile("android-core.zip");
155+
coreZipLocation = getContentFile("processing-core.zip");
156156
}
157157
return coreZipLocation;
158158
}
@@ -232,7 +232,7 @@ public String getSearchPath() {
232232
return "";
233233
}
234234

235-
String coreJarPath = new File(getFolder(), "android-core.zip").getAbsolutePath();
235+
String coreJarPath = new File(getFolder(), "processing-core.zip").getAbsolutePath();
236236
return sdk.getAndroidJarPath().getAbsolutePath() + File.pathSeparatorChar + coreJarPath;
237237
}
238238

0 commit comments

Comments
 (0)