Skip to content

Convenient way of toggle between source code dependency and artifact dependency

Notifications You must be signed in to change notification settings

mricefox/GradleDynamicDependency

Repository files navigation

Gradle Dynamic Dependency

Convenient way of toggle between source code dependency and artifact dependency.

Usage

For example, if app module depend on android-weak-handler

  • add dependency to dependencies block of app
dependencies {
	compile convertDependency('android-weak-handler')
}
  • add the following line to local.properties like this
ndk.dir=E\:\\android-sdk\\ndk-bundle
sdk.dir=E\:\\android-sdk
android-weak-handler=com.badoo.mobile:android-weak-handler:1.1

Now you enable artifact dependency.

  • If you comment it as following
ndk.dir=E\:\\android-sdk\\ndk-bundle
sdk.dir=E\:\\android-sdk
#android-weak-handler=com.badoo.mobile:android-weak-handler:1.1

The gradle script will clone the source code of android-weak-handler and include module named android-weak-handler into build.

About

Convenient way of toggle between source code dependency and artifact dependency

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages