From 01c67b77cb48cbeaec80f015538950f75194cf0a Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 14 Sep 2021 09:55:35 -0400 Subject: [PATCH] Fixed #5995 --- android/build.gradle | 9 +++++++-- build.gradle | 10 ++-------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index b2a1d49e4d..96bcdac873 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -18,6 +18,12 @@ configurations{ natives } repositories{ mavenCentral() maven{ url "https://maven.google.com" } + + ivy{ + url 'https://github.com/' + patternLayout{ artifact '/[organisation]/[module]/raw/master/backends/backend-android/libs/android.jar' } + metadataSources{ artifact() } + } } task deploy(type: Copy){ @@ -140,8 +146,7 @@ dependencies{ gpImplementation "com.google.android.gms:play-services-auth:19.0.0" //android dependencies magically disappear during compilation, thanks gradle! - def sdkFile = new File((String)findSdkDir(), "/platforms/android-29/android.jar") - if(sdkFile.exists()) compileOnly files(sdkFile.absolutePath) + compileOnly "Anuken:Arc:android" } task copyAndroidNatives(){ diff --git a/build.gradle b/build.gradle index f9d2cf3568..56b17f5102 100644 --- a/build.gradle +++ b/build.gradle @@ -17,14 +17,8 @@ buildscript{ //fake repository to download my patched robovm jar from ivy{ url 'https://github.com/' - - patternLayout { - artifact '/[organisation]/[module]/raw/a-single-jar-file/[revision].jar' - } - - // This is required in Gradle 6.0+ as metadata file (ivy.xml) - // is mandatory. Docs linked below this code section - metadataSources { artifact() } + patternLayout{ artifact '/[organisation]/[module]/raw/a-single-jar-file/[revision].jar' } + metadataSources{ artifact() } } }