Skip to content

Commit 1d135bf

Browse files
authored
Merge pull request #318 from processing/wearapi
merge changes in Services API and permission handling
2 parents 33fc9e4 + 842cbf3 commit 1d135bf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1327
-1286
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

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
Processing for Android
22
======================
33

4-
#New architecture branch
5-
6-
This branch is meant to test the new architecture that will allow different app publishing options (fragment-based apps, wallpaper, watchfaces, etc)
7-
8-
It is highly experimental and very likely will break your code, don't use it unless you want to help us with debugging.
4+
This is the main repository for Processing for Android. It includes the core library inside the core folder, and the mode itself in the root. See the [wiki](https://github.com/processing/processing-android/wiki) for build instructions.

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/.classpath

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
<classpath>
33
<classpathentry kind="src" path="src"/>
44
<classpathentry kind="var" path="ANDROID_LIB"/>
5-
<classpathentry kind="lib" path="library/android-support-v4.jar"/>
65
<classpathentry kind="lib" path="library/wearable-2.0.0.jar"/>
6+
<classpathentry kind="lib" path="library/support-annotations-25.2.0.jar"/>
7+
<classpathentry kind="lib" path="library/support-compat-25.2.0.jar"/>
8+
<classpathentry kind="lib" path="library/support-fragment-25.2.0.jar"/>
79
<classpathentry kind="output" path="bin"/>
810
</classpath>

core/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ buildscript {
1010

1111
dependencies {
1212
compile name: 'android'
13-
compile name: 'android-support-v4'
13+
compile name: 'support-compat-25.2.0'
14+
compile name: 'support-fragment-25.2.0'
15+
compile name: 'support-annotations-25.2.0'
1416
compile name: 'wearable-2.0.0'
1517
}
1618

@@ -46,7 +48,7 @@ task dist {
4648
doLast {
4749
// make copy of jar file as zip
4850
Files.copy(file("$buildDir/libs/core.jar").toPath(),
49-
file("$buildDir/libs/android-core.zip").toPath(), REPLACE_EXISTING);
51+
file("$buildDir/libs/processing-core.zip").toPath(), REPLACE_EXISTING);
5052

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

core/build.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,22 @@
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" />
1414

1515
<!-- Wear version to build the core library -->
1616
<property name="wear.version" value="2.0.0" />
1717

18+
<!-- Support version to build the core library -->
19+
<property name="support.version" value="25.2.0" />
20+
1821
<!-- oh ant, you're so cute and convoluted -->
1922
<target name="build" depends="sdk_chatter,actual_build" />
2023

2124
<target name="sdk_chatter" unless="env.ANDROID_SDK">
22-
<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" />
2326
</target>
2427

2528
<target name="sdk_whining">
@@ -41,7 +44,9 @@
4144
encoding="UTF-8"
4245
includeAntRuntime="false"
4346
bootclasspath="${env.ANDROID_SDK}/platforms/${android.platform}/android.jar;
44-
library/android-support-v4.jar;
47+
library/support-compat-${support.version}.jar;
48+
library/support-fragment-${support.version}.jar;
49+
library/support-annotations-${support.version}.jar;
4550
library/wearable-${wear.version}.jar"
4651
srcdir="src" destdir="bin" />
4752

core/library/android-support-v4.jar

-1.36 MB
Binary file not shown.
22.4 KB
Binary file not shown.
751 KB
Binary file not shown.

0 commit comments

Comments
 (0)