Skip to content

Commit 9da4d5e

Browse files
authored
Merge pull request #720 from processing/sdkupdater-improvement-testing
Merging SDKUpdater improvements and latest fixes
2 parents b807ab8 + 85d0c3f commit 9da4d5e

Some content is hidden

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

42 files changed

+753
-195
lines changed

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ task dist {
136136
FileUtils.copyDirectory(file("mode/languages"),
137137
file("${root}/languages"))
138138

139+
FileUtils.copyDirectory(file("mode/resources"),
140+
file("${root}/resources"))
141+
139142
FileUtils.copyDirectory(file("mode/tools/SDKUpdater/tool"),
140143
file("${root}/tools/SDKUpdater/tool"))
141144
FileUtils.copyDirectory(file("mode/tools/SDKUpdater/lib"),

mode/.classpath

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,19 @@
66
<attribute name="gradle_used_by_scope" value="main,test"/>
77
</attributes>
88
</classpathentry>
9-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17/"/>
9+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17/">
10+
<attributes>
11+
<attribute name="module" value="true"/>
12+
</attributes>
13+
</classpathentry>
1014
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
1115
<classpathentry combineaccessrules="false" kind="src" path="/processing4-app"/>
1216
<classpathentry combineaccessrules="false" kind="src" path="/processing4-core"/>
1317
<classpathentry combineaccessrules="false" kind="src" path="/processing4-java"/>
1418
<classpathentry kind="var" path="ANDROID_JAR"/>
1519
<classpathentry kind="var" path="ANDROID_SDK"/>
20+
<classpathentry kind="lib" path="mode/gradle-tooling-api-7.2.jar"/>
21+
<classpathentry kind="lib" path="mode/jdi.jar"/>
22+
<classpathentry kind="lib" path="mode/jdimodel.jar"/>
1623
<classpathentry kind="output" path="bin/default"/>
1724
</classpath>

mode/.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<projectDescription>
3-
<name>mode</name>
3+
<name>android-mode</name>
44
<comment></comment>
55
<projects>
66
</projects>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
connection.project.dir=
2+
eclipse.preferences.version=1
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
eclipse.preferences.version=1
22
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
33
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
4-
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
4+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
55
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
6-
org.eclipse.jdt.core.compiler.compliance=17
6+
org.eclipse.jdt.core.compiler.compliance=1.8
77
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
88
org.eclipse.jdt.core.compiler.debug.localVariable=generate
99
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
1010
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
11+
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
1112
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12-
org.eclipse.jdt.core.compiler.source=17
13+
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
14+
org.eclipse.jdt.core.compiler.release=disabled
15+
org.eclipse.jdt.core.compiler.source=1.8

mode/libraries/vr/build.gradle

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@ plugins {
88
dependencies {
99
compileOnly name: "android"
1010
compileOnly "org.p5android:processing-core:${modeVersion}"
11-
implementationAar "com.google.vr:sdk-audio:${gvrVersion}"
12-
implementationAar "com.google.vr:sdk-base:${gvrVersion}"
11+
12+
// commenting due to issue #718
13+
// implementationAar "com.google.vr:sdk-audio:${gvrVersion}"
14+
// implementationAar "com.google.vr:sdk-base:${gvrVersion}"
15+
16+
// fix for Issue #718
17+
implementationAar fileTree(dir: "libs", include: ["*.aar"])
1318
}
1419

1520
task sourceJar(type: Jar, dependsOn: classes) {
@@ -53,35 +58,35 @@ compileJava.doFirst {
5358
libFolder.mkdirs()
5459
for (String fn : deps) {
5560
Files.copy(file("${rootDir}/build/libs/" + fn).toPath(),
56-
file("library/" + fn).toPath(), REPLACE_EXISTING);
61+
file("library/" + fn).toPath(), REPLACE_EXISTING);
5762
}
5863
}
5964

6065
build.doLast {
6166
// Copying vr jar to library folder
6267
File vrJar = file("library/vr.jar")
6368
vrJar.mkdirs();
64-
69+
6570
// Need to check the existance of the files before using as the files
6671
// will get generated only if Task ':mode:libraries:vr:jar' is not being skipped
6772
// Task ':mode:libraries:vr:jar' will be skipped if source files are unchanged or jar task is UP-TO-DATE
68-
73+
6974
if (file("$buildDir/libs/vr.jar").exists()) {
7075
Files.copy(file("$buildDir/libs/vr.jar").toPath(),
71-
vrJar.toPath(), REPLACE_EXISTING);
76+
vrJar.toPath(), REPLACE_EXISTING);
7277
}
7378
// Renaming artifacts for maven publishing
7479
if (file("$buildDir/libs/vr.jar").exists()) {
7580
Files.move(file("$buildDir/libs/vr.jar").toPath(),
76-
file("$buildDir/libs/processing-vr-${vrLibVersion}.jar").toPath(), REPLACE_EXISTING);
81+
file("$buildDir/libs/processing-vr-${vrLibVersion}.jar").toPath(), REPLACE_EXISTING);
7782
}
7883
if (file("$buildDir/libs/vr-sources.jar").exists()) {
7984
Files.move(file("$buildDir/libs/vr-sources.jar").toPath(),
80-
file("$buildDir/libs/processing-vr-${vrLibVersion}-sources.jar").toPath(), REPLACE_EXISTING);
85+
file("$buildDir/libs/processing-vr-${vrLibVersion}-sources.jar").toPath(), REPLACE_EXISTING);
8186
}
8287
if (file("$buildDir/libs/vr.jar.MD5").exists()) {
8388
Files.move(file("$buildDir/libs/vr.jar.MD5").toPath(),
84-
file("$buildDir/libs/processing-vr-${vrLibVersion}.jar.md5").toPath(), REPLACE_EXISTING);
89+
file("$buildDir/libs/processing-vr-${vrLibVersion}.jar.md5").toPath(), REPLACE_EXISTING);
8590
}
8691
}
8792

1.21 MB
Binary file not shown.
2.81 MB
Binary file not shown.
507 KB
Binary file not shown.

mode/mode.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ url = http://android.processing.org
44
sentence = This mode lets you use Processing to create Android apps
55
paragraph =
66
imports=processing.mode.java.JavaMode
7-
version = 406
8-
prettyVersion = 4.5.0b2
7+
version = 407
8+
prettyVersion = 4.5.0b3
99
minRevision = 1283
1010
maxRevision = 0
1111

0 commit comments

Comments
 (0)