File tree 7 files changed +45
-21
lines changed
src/processing/mode/android/tools 7 files changed +45
-21
lines changed Original file line number Diff line number Diff line change @@ -72,28 +72,15 @@ allprojects {
72
72
localProperties. load(project. rootProject. file(" local.properties" ). newDataInputStream())
73
73
def sdkDir = localProperties. getProperty(" sdk.dir" )
74
74
ext. androidPlatformPath = " ${ sdkDir} /platforms/android-${ targetSdkVersion} "
75
- ext. androidToolsLibPath = " ${ sdkDir} /tools/lib"
76
-
77
75
ext. coreZipPath = " ${ rootDir} /mode/processing-core.zip"
78
76
79
77
repositories {
80
78
google()
81
79
jcenter()
82
-
83
80
maven { url " https://maven.google.com" }
84
81
maven { url " https://jitpack.io" }
85
-
86
82
maven { url ' https://repo.gradle.org/gradle/libs-releases' }
87
-
88
- // maven {
89
- // // mavenCentral() does not work to download the Gradle releases of gradle-tooling-api, one needs
90
- // // to set the artifact url as below to get the latest packages.
91
- // // https://mvnrepository.com/artifact/org.gradle/gradle-tooling-api?repo=gradle-libs-releases-local
92
- // url "https://repo1.maven.org/maven2"
93
- // artifactUrls "https://repo.gradle.org/gradle/libs-releases-local"
94
- // }
95
83
flatDir dirs : androidPlatformPath
96
- flatDir dirs : androidToolsLibPath
97
84
flatDir dirs : " ${ rootDir} /core/dist"
98
85
}
99
86
Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ repositories {
8
8
dependencies {
9
9
implementation gradleApi()
10
10
implementation localGroovy()
11
- implementation ' com.android.tools.build:gradle:3.5 .1'
11
+ implementation ' com.android.tools.build:gradle:4.1 .1'
12
12
}
Original file line number Diff line number Diff line change 6
6
<classpathentry combineaccessrules =" false" kind =" src" path =" /processing-core" />
7
7
<classpathentry combineaccessrules =" false" kind =" src" path =" /processing-java" />
8
8
<classpathentry kind =" lib" path =" mode/jdi.jar" />
9
- <classpathentry kind =" lib" path =" mode/gradle-tooling-api-5.6.2 .jar" />
9
+ <classpathentry kind =" lib" path =" mode/gradle-tooling-api-6.7.1 .jar" />
10
10
<classpathentry kind =" lib" path =" mode/jdimodel.jar" />
11
11
<classpathentry kind =" output" path =" core/bin" />
12
12
</classpath >
Original file line number Diff line number Diff line change 3
3
<classpathentry kind =" src" path =" src" />
4
4
<classpathentry kind =" con" path =" org.eclipse.jdt.launching.JRE_CONTAINER" />
5
5
<classpathentry combineaccessrules =" false" kind =" src" path =" /android-mode" />
6
- <classpathentry kind =" var " path =" ANDROID_SDK/tools/ lib/sdklib-26.0.0-dev .jar" />
7
- <classpathentry kind =" var " path =" ANDROID_SDK/tools/ lib/repository-26.0.0-dev .jar" />
6
+ <classpathentry kind =" lib " path =" lib/sdklib-27.1.1 .jar" />
7
+ <classpathentry kind =" lib " path =" lib/repository-27.1.1 .jar" />
8
8
<classpathentry combineaccessrules =" false" kind =" src" path =" /processing-app" />
9
9
<classpathentry kind =" output" path =" bin" />
10
10
</classpath >
Original file line number Diff line number Diff line change 1
1
import java.nio.file.Files
2
2
import static java.nio.file.StandardCopyOption.REPLACE_EXISTING;
3
3
4
+ configurations {
5
+ compile. extendsFrom compileAndCopy
6
+ }
7
+
4
8
dependencies {
5
9
compile group : " org.processing" , name : " pde" , version : " ${ processingVersion} "
6
10
7
- compile name : " sdklib-${ toolsLibVersion} "
8
- compile name : " repository-${ toolsLibVersion} "
11
+ compileAndCopy group : " com.android.tools" , name : " sdklib" , version : " ${ toolsLibVersion} "
12
+ compileAndCopy group : " com.android.tools" , name : " repository" , version : " ${ toolsLibVersion} "
13
+ }
14
+
15
+ // This task copies the gradle tooling jar into the mode folder
16
+ task copyToLib (type : Copy ) {
17
+ from configurations. compileAndCopy. files {
18
+ include ' **/sdklib*'
19
+ include ' **/repository*'
20
+ }
21
+ into " lib"
9
22
}
23
+ build. dependsOn(copyToLib)
10
24
11
25
sourceSets {
12
26
main {
@@ -18,6 +32,7 @@ sourceSets {
18
32
19
33
clean. doFirst {
20
34
delete " tool"
35
+ delete " lib"
21
36
}
22
37
23
38
build. doLast {
Original file line number Diff line number Diff line change @@ -165,6 +165,17 @@ public void setForceHttp(boolean b) { }
165
165
public Channel getChannel () {
166
166
return null ;
167
167
}
168
+
169
+ @ Override
170
+ public boolean getDisableSdkPatches () {
171
+ return false ;
172
+ }
173
+
174
+ @ Override
175
+ public void setDisableSdkPatches (boolean arg0 ) {
176
+ // TODO Auto-generated method stub
177
+
178
+ }
168
179
}), null );
169
180
170
181
RepositoryPackages packages = mRepoManager .getPackages ();
@@ -340,6 +351,17 @@ public java.util.List<String> getPaths(RepoManager mgr) {
340
351
}
341
352
return updates ;
342
353
}
354
+
355
+ @ Override
356
+ public boolean getDisableSdkPatches () {
357
+ return false ;
358
+ }
359
+
360
+ @ Override
361
+ public void setDisableSdkPatches (boolean arg0 ) {
362
+ // TODO Auto-generated method stub
363
+
364
+ }
343
365
}
344
366
}
345
367
Original file line number Diff line number Diff line change 1
1
# Basics
2
- android-platform = 28
3
- android-toolslib = 26.0.0-dev
2
+ android-platform = 29
3
+ android-toolslib = 27.1.1
4
4
gradlew = 6.7.1
5
5
6
6
# Minimum SDK versions for each type of project
You can’t perform that action at this time.
0 commit comments