GithubHelp home page GithubHelp logo

Comments (10)

ajburley avatar ajburley commented on June 10, 2024 1

@zeldomar Here's a brief summary...

Clone the code from github into a folder (e.g. "cardslib") under your root Gradle project

Modify your local settings.gradle like this (replacing YourApp with your app-level Gradle project):

include ':YourApp', ':library', ':library-extra'
project(':library').projectDir = new File('cardslib/library')
project(':library-extra').projectDir = new File('cardslib/library-extra')

Add the dependency to your app-level build.gradle like this:

implementation project(':library')
implementation project(':library-extra')

Then just manually apply the diffs which I mentioned from GitHub to the cloned code.

I apologise if this is still not clear to you, I don't have the capacity to provide more detail than that, maybe you can ask on some forums like StackOverflow etc if things are still not clear.

from cardslib.

zeldomar avatar zeldomar commented on June 10, 2024 1

@zeldomar Here's a brief summary...

@ajburley
It's worked, thank you so so much !

from cardslib.

max32002 avatar max32002 commented on June 10, 2024

just WARNING, don't worry about it.

WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore.

from cardslib.

teristam avatar teristam commented on June 10, 2024

It's not just a warning. In Android Studio 3.1, the project fails to compile with android.enableAapt2=false.

from cardslib.

druidamix avatar druidamix commented on June 10, 2024

Next year android.enableAapt2=false won't work.
I'm replacing with recycle-view with cursorloader. cardlib, as it is now won't work anymore. Uses a customer recycle-view.

from cardslib.

metaphyze avatar metaphyze commented on June 10, 2024

I'd like to second this request: Any intention to patch the library to make it compatible?

I'd like to continue using this great library. Thanks.

from cardslib.

ajburley avatar ajburley commented on June 10, 2024

enableAapt2 was removed from the later versions of Android Studio / Gradle plugin. It's ignored, so AAPT2 is always used regardless of this option.

There is no official patch but this patch is helpful: oplarshad/cardslib@ef39a99

from cardslib.

zeldomar avatar zeldomar commented on June 10, 2024

enableAapt2 was removed from the later versions of Android Studio / Gradle plugin. It's ignored, so AAPT2 is always used regardless of this option.

There is no official patch but this patch is helpful: oplarshad/cardslib@ef39a99

Hi,

Can you please explain to me how to use this fork of the cardslib project (including this patch) ?
Should I modify the dependencies of my projects? With what ?

Thank you in advance

from cardslib.

ajburley avatar ajburley commented on June 10, 2024

enableAapt2 was removed from the later versions of Android Studio / Gradle plugin. It's ignored, so AAPT2 is always used regardless of this option.
There is no official patch but this patch is helpful: oplarshad/cardslib@ef39a99

Hi,

Can you please explain to me how to use this fork of the cardslib project (including this patch) ?
Should I modify the dependencies of my projects? With what ?

Thank you in advance

I just manually applied the diffs from that patch to my local copy of vanilla cardslib. The changes are to fix the compiler errors which you get with AAPT2. This will allow the project to build with AAPT2.

Also, not all the changes from that commit are even required. Lots of the changes are actually to remove redundant code, which is a good thing, but not essential for this task of making it work with AAPT2.

Changed files where the changes are NOT only to remove redundant code are:

  • /build.gradle
  • /demo/extras/build.gradle
  • /demo/stock/build.gradle
  • /extra/extra-dragdrop/build.gradle
  • /extra/extra-staggeredgrid/build.gradle
  • /extra/extra-twoway/build.gradle
  • /gradle/wrapper/gradle-wrapper.properties
  • /library-cards/build.gradle
  • /library-core/build.gradle
  • /library-core/src/main/AndroidManifest.xml
  • /library-core/src/main/java/it/gmariotti/cardslib/library/view/ForegroundLinearLayout.java
  • /library-core/src/main/res/values/attrs.xml
  • /library-recyclerview/build.gradle

The key changes are ForegroundLinearLayout.java and attrs.xml. The others are just to upgrade various versions.

from cardslib.

zeldomar avatar zeldomar commented on June 10, 2024

I just manually applied the diffs from that patch to my local copy of vanilla cardslib

Thanks for the reply, it gives me hope for my application :)

It is this part which is precisely the problem for me, how do you do that, please?

Do you have a link to a page explaining how to fork an android project, modify it locally, and reuse it in another local project?
Or simpler: can you please publish your patched version to Maven Central?

Thank you in advance

from cardslib.

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.