MaterialFilePicker icon indicating copy to clipboard operation
MaterialFilePicker copied to clipboard

minSdkVersion is now 19

Open drmrbrewer opened this issue 5 years ago • 15 comments

I note that minSdkVersion for version 1.9 is now 19. The minSdkVersion for my project is 16, so there's now a conflict. I assume the change up to 19 was necessary?

drmrbrewer avatar May 05 '20 11:05 drmrbrewer

Check my contribution Require API 16 and Android 10 Support

https://github.com/arteaprogramar/Android_MaterialFilePicker

arteaprogramar avatar Jul 06 '20 01:07 arteaprogramar

@arteaprogramar looks interesting! For convenience, I'm trying to load this library in using jitpack.io using:

repositories {
    maven {
        url "https://jitpack.io"
    }
    google()
}

implementation "com.github.arteaprogramar:MaterialFilePicker:1666064"

Gradle syncs OK (the above library is apparently found OK). But then in the code when I try to use new MaterialFilePicker() , the library is not being picked up... it is still suggesting only the "official" com.nbsp.materialfilepicker, despite me removing that completely from the gradle file and cleaning project, rebuilding etc. I should be able to import using something like:

import com.github.arteaprogramar.materialfilepicker.MaterialFilePicker;

But for some reason com.github.arteaprogramar isn't recognised. I have another library imported via jitpack so it does/should work.

drmrbrewer avatar Jul 06 '20 08:07 drmrbrewer

  • I recommend that you download the repository manually: Material File Picker Unofficial

  • Unzip the archive

  • Copy and paste "library" folder to root path of your project

  • You can change the name of the library (optional)

  • Edit settings.gradle and and "library" folder include ':app', ':library'

  • Edit app/build.gradle and also add library for compile dependencies { . . . implementation project(':library') . . . }

  • Now just sync gradle

arteaprogramar avatar Jul 06 '20 16:07 arteaprogramar

Will do that, but any idea why the jitpack method doesn't work with your library? It is far more convenient just putting one extra line into the gradle file...

drmrbrewer avatar Jul 06 '20 18:07 drmrbrewer

@arteaprogramar any thoughts? As I said, it's a lot more convenient for devs to use your library if it is easy to include in their project... not only when first adding it but also to keep it updated each time you make changes. Making it accessible via the jitpack.io method will be really useful IMHO.

drmrbrewer avatar Jul 17 '20 11:07 drmrbrewer

Maybe the error is because I have "gradle" configured as the original project

I fix It!!

arteaprogramar avatar Jul 21 '20 02:07 arteaprogramar

I fix It!!

You have, or you will? Am keen to try it ASAP!

drmrbrewer avatar Jul 21 '20 09:07 drmrbrewer

Today I will.

arteaprogramar avatar Jul 21 '20 19:07 arteaprogramar

Ready!! Read the documentation and if you need help you can consult us https://github.com/arteaprogramar/Android_MaterialFilePicker

arteaprogramar avatar Jul 21 '20 23:07 arteaprogramar

Great! I won't be able to try it for a few days but will be sure to after that! Thanks.

drmrbrewer avatar Jul 21 '20 23:07 drmrbrewer

@arteaprogramar I still cannot get it to work.

What version are you using in implementation 'com.github.arteaprogramar:MaterialFilePicker:version' in the gradle?

I think it would be better to have an actual release to refer to, but you have none:

image

See: https://jitpack.io/#arteaprogramar/MaterialFilePicker

And in the code file, what import statement do you have at the top? For me it cannot find anything starting with import com.github.arteaprogramar.*

drmrbrewer avatar Jul 27 '20 15:07 drmrbrewer

@drmrbrewer use implementation 'com.github.arteaprogramar:Android_MaterialFilePicker:edfbf32f54'

https://jitpack.io/#arteaprogramar/Android_MaterialFilePicker/edfbf32f54

arteaprogramar avatar Jul 27 '20 15:07 arteaprogramar

Then I just see the following suggestion that there is a newer version available:

image

Seems to me that the versioning is all a bit messed up.

drmrbrewer avatar Jul 27 '20 16:07 drmrbrewer

This https://jitpack.io/#arteaprogramar/Android_MaterialFilePicker/edfbf32f54 is last version.

Jitpack is crazy!!!

I believe that.

arteaprogramar avatar Jul 27 '20 18:07 arteaprogramar

Hello!! Now avaible for Jcenter

implementation 'arte.programar:materialfile:1.0'

arteaprogramar avatar Aug 10 '20 19:08 arteaprogramar