Reputation: 3036
I am trying to get "dev" branch instead of "master" branch from PhotoView project in Github: https://github.com/chrisbanes/PhotoView/tree/dev
But by default the dependencies get "master" branch.
dependencies {
compile 'com.github.chrisbanes.photoview:library:1.2.3'
}
How should I change this dependency to get "dev" branch instead of "master"?
Upvotes: 10
Views: 7776
Reputation: 1020
Use this :
compile 'com.github.chrisbanes.photoview:library:dev-SNAPSHOT'
source https://github.com/jitpack/jitpack.io
Upvotes: 4
Reputation: 363697
It can be a general consideration.
compile 'com.github.chrisbanes.photoview:library:1.2.3'
It downloads the aar from Central Maven, not from github.
If you would like to work with the dev branch and gradle, you should ask the author for a snapshot release, or you have to build it locally.
BTW, about this lib, the version 1.2.3 is very recent. Why do you want to work with the dev branch?
Upvotes: 2