passy / Android-DirectoryChooser

A directory chooser library for Android.
Apache License 2.0
515 stars 144 forks source link

gradle 1.0-pre-v11 dependency does not work #114

Closed ghost closed 7 years ago

ghost commented 7 years ago

Would it be possible to get the 1.0-pre-v11 aar uploaded to jcenter? Or tell me where else I can get the aar? Worse comes to worse, I will download the branch and build it myself, but I would prefer not to.

The pre-v11 branch (https://github.com/passy/Android-DirectoryChooser/tree/pre-v11) specifies that we should use this dependency for gradle:

compile 'net.rdrei.android.dirchooser:library:1.0-pre-v11@aar' does not exist

Only apklib is present at https://jcenter.bintray.com/net/rdrei/android/dirchooser/library/1.0-pre-v11/, so as a result, the gradle build fails.

gradle installRelease
Download https://jcenter.bintray.com/net/rdrei/android/dirchooser/library/1.0-pre-v11/library-1.0-pre-v11.pom
Download https://jcenter.bintray.com/net/rdrei/android/dirchooser/parent/1.0-pre-v11/parent-1.0-pre-v11.pom

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not find library.aar (net.rdrei.android.dirchooser:library:1.0-pre-v11).
  Searched in the following locations:
      https://jcenter.bintray.com/net/rdrei/android/dirchooser/library/1.0-pre-v11/library-1.0-pre-v11.aar

I tried to change my gradle build to use apklib, but gradle said no:

gradle installRelease
WARNING: Packaging for dependency net.rdrei.android.dirchooser:library:1.0-pre-v11 is 'apklib' and is not supported. Only 'aar' libraries are supported.
WARNING: Packaging for dependency net.rdrei.android.dirchooser:library:1.0-pre-v11 is 'apklib' and is not supported. Only 'aar' libraries are supported.
WARNING: Packaging for dependency net.rdrei.android.dirchooser:library:1.0-pre-v11 is 'apklib' and is not supported. Only 'aar' libraries are supported.
WARNING: Packaging for dependency net.rdrei.android.dirchooser:library:1.0-pre-v11 is 'apklib' and is not supported. Only 'aar' libraries are supported.
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
:app:preBuild UP-TO-DATE
:app:preReleaseBuild UP-TO-DATE
:app:checkReleaseManifest
:app:preDebugBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE
:app:prepareComAndroidSupportConstraintConstraintLayout102Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42301Library UP-TO-DATE
:app:prepareReleaseDependencies
Packaging for dependency net.rdrei.android.dirchooser:library:1.0-pre-v11 is 'apklib' and is not supported. Only 'aar' libraries are supported.
Packaging for dependency net.rdrei.android.dirchooser:library:1.0-pre-v11 is 'apklib' and is not supported. Only 'aar' libraries are supported.
:app:prepareReleaseDependencies FAILED
passy commented 7 years ago

Yes, this was built in the days before AARs were a thing. Sorry, but I do not plan to support this. If you want to use pre-v11 versions you'll have to check out the old branch and build it yourself. Sorry about that!