Comments (11)
For anyone that wants to get rid of jcenter()
without having to migrate away from this library, you can compile this project yourself to an AAR file and include that in your dependencies.
- Clone this repo
- Build the AAR:
./gradlew :imageviewer:assembleRelease
- The AAR file can be found at
imageviewer/build/outputs/aar/imageviewer-release.aar
. Copy this intoapp/libs/
in your project. - Add this to your dependencies:
The AAR file does not include transitive dependencies, so you will need to include PhotoView yourself
implementation files("libs/imageviewer-release.aar") implementation "com.github.chrisbanes:PhotoView:2.2.0"
- Subscribe to notifications on this issue so that you can get notified if this project ever moves to another repository and you can remove all of the above :)
from stfalconimageviewer.
implementation 'com.github.omkar-tenkale:StfalconImageViewer:d11578fe3fd30c33a58b49978e3a9fd425291673'
EDIT:
This works too
implementation 'com.github.stfalcon-studio:StfalconImageViewer:master-SNAPSHOT'
Use with maven { url 'https://jitpack.io' }
in project build gradle inallprojects { repositories { ...
block
Happy Coding 😁
from stfalconimageviewer.
Any updates? Will we get a Maven Central (or other repository) update for the library?
Thank you for looking into this!
from stfalconimageviewer.
implementation 'com.github.omkar-tenkale:StfalconImageViewer:d11578fe3fd30c33a58b49978e3a9fd425291673'
I just forked this repo and added to my project via Jitpack (https://jitpack.io/)
You can use the line above
Else if you want to host this library yourslelf follow these steps
1.Fork this repo
2.Go to your forked repo
eg https://github.com/omkar-tenkale/StfalconImageViewer
3. Create your own implementation string like above in format
implementation com.github,my_user_name:StfalconImageViewer:d11578fe3fd30c33a58b49978e3a9fd425291673
The last part is commit hash,You can use a different commit hash for a diferent version.
4 Just paste this newly created string in your build gradle sync a few times took me 2-3 syncs
Done :)
You also need to add this line to build gradle
maven { url 'https://jitpack.io' }
My root build gradle file
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:4.2.1"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { setUrl("https://jitpack.io") }
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
from stfalconimageviewer.
For gradle plugin version 7.0.3, I need to edit settings.gradle to use the library from the jitpack repository.
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
jcenter() // Warning: this repository is going to shut down soon
maven { url "https://jitpack.io" }
}
}
from stfalconimageviewer.
@dncks1525 Remember that order matters. With such setup - library will still be downloaded from jCenter. I'd recommend to move it to the end
from stfalconimageviewer.
@omkar-tenkale I believe the jitpack.io repo is protected by authentication. If we try to download it from jitpack we get an authentication error. I am wondering if you have jitpack authentication already configured so it is working for you.
from stfalconimageviewer.
@brian-pinwheel No its public
from stfalconimageviewer.
@omkar-tenkale This is the URL that was computed when I included the library and when I tried to access it, I was met with an authentication prompt. Is the URL not computed correctly from the build or is the maven artifact repository private?
from stfalconimageviewer.
You tried using the new
implementation 'com.github.stfalcon-studio:StfalconImageViewer:v1.0.1'
from stfalconimageviewer.
@omkar-tenkale I was going off the readme of the repo. Should I be looking elsewhere for which version to use?
Also, do you make the current version public and password protect older versions? I would think if you were trying to use an authentication model you would want to password protect the latest version. I am a bit concerned about depending on a library that might make the version I'm using password-protected in the future.
from stfalconimageviewer.
Related Issues (20)
- Gradle Build Error: Could not find com.github.chrisbanes:PhotoView:2.2.0. HOT 7
- Updating Images Arraylist on the go
- Add ability to set navigation bar color HOT 1
- Another dead library? HOT 2
- Wrong transition motion for Arabic.
- java.lang.NoClassDefFoundError: Failed resolution of: Lcom/github/chrisbanes/photoview/PhotoView;
- java.util.ArrayList cannot be cast to java.lang.String[]
- Navigation Bar tint
- Back Button HOT 3
- ❓ How to add to android project ❓ HOT 3
- Could not find com.github.chrisbanes:PhotoView:2.2.0.
- Can't implement v1.0.1 via gradle HOT 5
- transition animation
- Gradle implementation line is wrong. HOT 4
- Zoom level
- Screen goes black after showing the image HOT 1
- somthing wrong with the jitpack or the package i don't know HOT 2
- Unresolved reference: StfalconImageViewer HOT 4
- CloseConfiguration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stfalconimageviewer.