Skip to content

Instantly share code, notes, and snippets.

@robUx4
Created September 1, 2014 07:39
Show Gist options
  • Save robUx4/131eb1ba91ee8c701d7a to your computer and use it in GitHub Desktop.
Save robUx4/131eb1ba91ee8c701d7a to your computer and use it in GitHub Desktop.
Android-Switch workaround
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
}
}
include 'android-Switch'
project(':android-Switch').projectDir = new File('dependencies/android-Switch/library')
@robUx4
Copy link
Author

robUx4 commented Sep 1, 2014

Should be used with this branch as a submodule in dependencies/android-Switch BoD/android-switch-backport#49

@robUx4
Copy link
Author

robUx4 commented Sep 1, 2014

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