Created
September 1, 2014 07:39
-
-
Save robUx4/131eb1ba91ee8c701d7a to your computer and use it in GitHub Desktop.
Android-Switch workaround
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies { | |
def artifactAndroidSwitch = 'org.jraf:android-switch-backport:1.3.+' | |
def useLocalAndroidSwitch = false | |
def localAndroidSwitch = ':android-Switch' | |
allprojects { | |
rootProject.allprojects.project.each { | |
if (it.path == localAndroidSwitch) { | |
useLocalAndroidSwitch = true | |
} | |
} | |
} | |
if (useLocalAndroidSwitch) { | |
println 'Using local android-Switch library in ' + project.path | |
compile project(localAndroidSwitch) | |
} else { | |
compile artifactAndroidSwitch | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include 'android-Switch' | |
project(':android-Switch').projectDir = new File('dependencies/android-Switch/library') |
We the Maven server is back, just comment the code in settings.gradle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should be used with this branch as a submodule in
dependencies/android-Switch
BoD/android-switch-backport#49