Code Monkey home page Code Monkey logo

Comments (18)

daniel-stoneuk avatar daniel-stoneuk commented on July 18, 2024 2

Good point. I'll update the support library versions and add AndroidX support.

from material-about-library.

leosarra avatar leosarra commented on July 18, 2024 1

I tried using AndroidX (with jetifier on) but the MaterialAboutActivity doesn't provide any getResources() or startActivity(). getString etc
It was fine before I did the refactoring

from material-about-library.

DerTyp7214 avatar DerTyp7214 commented on July 18, 2024 1

i compiled by myself without testapp.
if someone need it with androidx: https://github.com/DerTyp7214/material-about-library/releases/tag/2.3.0

from material-about-library.

daniel-stoneuk avatar daniel-stoneuk commented on July 18, 2024 1

Hi guys, apologies for the delay.

Could you please test if 2.4.2 works?

Thanks

from material-about-library.

daniel-stoneuk avatar daniel-stoneuk commented on July 18, 2024

Do you know if it works yet with jetifier?

from material-about-library.

systemallica avatar systemallica commented on July 18, 2024

Actually I'm not sure. I'm still using Android Studio 3.1.4

from material-about-library.

eclectice avatar eclectice commented on July 18, 2024

jetifier

The latest AndroidX should be OK

gradle.properties

android.useAndroidX = true
android.enableJetifier = false

build gradle

implementation "com.google.android.material:material:$material_version"
implementation "androidx.appcompat:appcompat:$legacy_support_version"    
implementation "androidx.legacy:legacy-support-v4:$legacy_support_version"
implementation "androidx.legacy:legacy-support-v13:$legacy_support_version"

I really like to use your About library since there is a support for Licenses entry. But, I have just moved to AndroidX.

from material-about-library.

eclectice avatar eclectice commented on July 18, 2024

OK, I try to refactor everything in your library codes to AndroidX but the example app uses LicenseAdapter from GITHUB yshrsmz/LicenseAdapter which currently doesn't support AndroidX.

{update redacted into a new post reply}

from material-about-library.

daniel-stoneuk avatar daniel-stoneuk commented on July 18, 2024

Thanks for taking a look into it. The example using License adapter as an example actually isn't in the latest release, I'm wondering if supporting custom adapters is a good feature.

So you can confirm jetifier does not work with material about library? If this is the case, I'll probably create a new branch and support both support library and AndroidX versions separately.

On another note, how many libraries have you encountered that don't play well with AndroidX, I'm looking to migrate soon.

from material-about-library.

eclectice avatar eclectice commented on July 18, 2024

Thanks for taking a look into it. The example using License adapter as an example actually isn't in the latest release, I'm wondering if supporting custom adapters is a good feature.

So you can confirm jetifier does not work with material about library? If this is the case, I'll probably create a new branch and support both support library and AndroidX versions separately.

On another note, how many libraries have you encountered that don't play well with AndroidX, I'm looking to migrate soon.

I have tried set android.enableJetifier = true and it seems okay. But, I only change that part. So, obviously, I haven't done anything.

About custom adapter support, I think it is a choice and it looks fine to me.

On the other hand, the developer of LicenseAdapter seems inclined to support it yshrsmz/LicenseAdapter#53

from material-about-library.

daniel-stoneuk avatar daniel-stoneuk commented on July 18, 2024

Thanks. I would also like to add AndroidX support, however, I am more inclined to wait until AndroidX is more common because (correct me if I'm wrong) whilst a support library dep can be used with jetifier, an AndroidX dep can't be used in a support library project.

Would you agree here or do you think I should create two separate branches?

from material-about-library.

eclectice avatar eclectice commented on July 18, 2024

from material-about-library.

bernaferrari avatar bernaferrari commented on July 18, 2024

Released now! Keep in mind all future updates to support library will only happen in androidx.

from material-about-library.

eclectice avatar eclectice commented on July 18, 2024

I tried implementation "com.github.daniel-stoneuk:material-about-library:2.3.0" but I think the MaterialAboutCard.Builder.customAdapter is broken.

Update: OK, I understand 2.3.0 tag is the old one. I should use the one from DerTyp7214

from material-about-library.

DerTyp7214 avatar DerTyp7214 commented on July 18, 2024

@daniel-stoneuk I will try when I'm back from work

from material-about-library.

eclectice avatar eclectice commented on July 18, 2024

from material-about-library.

daniel-stoneuk avatar daniel-stoneuk commented on July 18, 2024

Brilliant! Hopefully support for @yshrsmz 's LicenseAdapter should make life a bit easier! @eclectice

from material-about-library.

systemallica avatar systemallica commented on July 18, 2024

The new version is working great, thank you.

from material-about-library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.