File tree Expand file tree Collapse file tree
src/processing/mode/android/tools Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,28 +72,15 @@ allprojects {
7272 localProperties. load(project. rootProject. file(" local.properties" ). newDataInputStream())
7373 def sdkDir = localProperties. getProperty(" sdk.dir" )
7474 ext. androidPlatformPath = " ${ sdkDir} /platforms/android-${ targetSdkVersion} "
75- ext. androidToolsLibPath = " ${ sdkDir} /tools/lib"
76-
7775 ext. coreZipPath = " ${ rootDir} /mode/processing-core.zip"
7876
7977 repositories {
8078 google()
8179 jcenter()
82-
8380 maven { url " https://maven.google.com" }
8481 maven { url " https://jitpack.io" }
85-
8682 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- // }
9583 flatDir dirs : androidPlatformPath
96- flatDir dirs : androidToolsLibPath
9784 flatDir dirs : " ${ rootDir} /core/dist"
9885 }
9986
Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ repositories {
88dependencies {
99 implementation gradleApi()
1010 implementation localGroovy()
11- implementation ' com.android.tools.build:gradle:3.5 .1'
11+ implementation ' com.android.tools.build:gradle:4.1 .1'
1212}
Original file line number Diff line number Diff line change 66 <classpathentry combineaccessrules =" false" kind =" src" path =" /processing-core" />
77 <classpathentry combineaccessrules =" false" kind =" src" path =" /processing-java" />
88 <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" />
1010 <classpathentry kind =" lib" path =" mode/jdimodel.jar" />
1111 <classpathentry kind =" output" path =" core/bin" />
1212</classpath >
Original file line number Diff line number Diff line change 33 <classpathentry kind =" src" path =" src" />
44 <classpathentry kind =" con" path =" org.eclipse.jdt.launching.JRE_CONTAINER" />
55 <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" />
88 <classpathentry combineaccessrules =" false" kind =" src" path =" /processing-app" />
99 <classpathentry kind =" output" path =" bin" />
1010</classpath >
Original file line number Diff line number Diff line change 11import java.nio.file.Files
22import static java.nio.file.StandardCopyOption.REPLACE_EXISTING;
33
4+ configurations {
5+ compile. extendsFrom compileAndCopy
6+ }
7+
48dependencies {
59 compile group : " org.processing" , name : " pde" , version : " ${ processingVersion} "
610
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"
922}
23+ build. dependsOn(copyToLib)
1024
1125sourceSets {
1226 main {
@@ -18,6 +32,7 @@ sourceSets {
1832
1933clean. doFirst {
2034 delete " tool"
35+ delete " lib"
2136}
2237
2338build. doLast {
Original file line number Diff line number Diff line change @@ -165,6 +165,17 @@ public void setForceHttp(boolean b) { }
165165 public Channel getChannel () {
166166 return null ;
167167 }
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+ }
168179 }), null );
169180
170181 RepositoryPackages packages = mRepoManager .getPackages ();
@@ -340,6 +351,17 @@ public java.util.List<String> getPaths(RepoManager mgr) {
340351 }
341352 return updates ;
342353 }
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+ }
343365 }
344366 }
345367
Original file line number Diff line number Diff line change 11# Basics
2- android-platform = 28
3- android-toolslib = 26.0.0-dev
2+ android-platform = 29
3+ android-toolslib = 27.1.1
44gradlew = 6.7.1
55
66# Minimum SDK versions for each type of project
You can’t perform that action at this time.
0 commit comments