@@ -8,8 +8,13 @@ plugins {
8
8
dependencies {
9
9
compileOnly name : " android"
10
10
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" ])
13
18
}
14
19
15
20
task sourceJar (type : Jar , dependsOn : classes) {
@@ -53,35 +58,35 @@ compileJava.doFirst {
53
58
libFolder. mkdirs()
54
59
for (String fn : deps) {
55
60
Files . copy(file(" ${ rootDir} /build/libs/" + fn). toPath(),
56
- file(" library/" + fn). toPath(), REPLACE_EXISTING );
61
+ file(" library/" + fn). toPath(), REPLACE_EXISTING );
57
62
}
58
63
}
59
64
60
65
build. doLast {
61
66
// Copying vr jar to library folder
62
67
File vrJar = file(" library/vr.jar" )
63
68
vrJar. mkdirs();
64
-
69
+
65
70
// Need to check the existance of the files before using as the files
66
71
// will get generated only if Task ':mode:libraries:vr:jar' is not being skipped
67
72
// Task ':mode:libraries:vr:jar' will be skipped if source files are unchanged or jar task is UP-TO-DATE
68
-
73
+
69
74
if (file(" $buildDir /libs/vr.jar" ). exists()) {
70
75
Files . copy(file(" $buildDir /libs/vr.jar" ). toPath(),
71
- vrJar. toPath(), REPLACE_EXISTING );
76
+ vrJar. toPath(), REPLACE_EXISTING );
72
77
}
73
78
// Renaming artifacts for maven publishing
74
79
if (file(" $buildDir /libs/vr.jar" ). exists()) {
75
80
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 );
77
82
}
78
83
if (file(" $buildDir /libs/vr-sources.jar" ). exists()) {
79
84
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 );
81
86
}
82
87
if (file(" $buildDir /libs/vr.jar.MD5" ). exists()) {
83
88
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 );
85
90
}
86
91
}
87
92
0 commit comments