Code Monkey home page Code Monkey logo

Comments (4)

LikeTheSalad avatar LikeTheSalad commented on June 9, 2024 1

Hi @souravpalitrana - By default Android Buddy doesn't transform third party dependencies, but you can configure it to do so by following the steps mentioned here: https://github.com/LikeTheSalad/android-buddy#configuration-to-enable-dependencies-transformations

This configuration for transforming third party dependencies is quite new, so it's prone to errors. At the beginning I didn't add this support because of some Android build plugin limitations (which I've listed in the readme) and also because of build performance concerns, however I've been thinking lately about some ways to add this support by default without affecting the performance too much and making it easy to use as well, and I'm pondering about maybe making it to support third party transformations by default on version 2.0.0.

So please take a look at the configuration, let me know if something's wrong or somehow not working as expected so that I could address that in the version I mentioned :)

Thanks,
Cesar

from android-buddy.

LikeTheSalad avatar LikeTheSalad commented on June 9, 2024

Hi @souravpalitrana

You're not doing anything wrong, no worries, the issue is that, unfortunately, none of the Android SDK classes (listed here) can be transformed because of the way Android works. So what happens is that, the Android OS comes with these classes built in, so in the end your app makes use of the classes in each device instead of the classes of the android library that we see in our code.

So in other words, the Android SDK classes that we see in our code, are only some sort of "mocks" if you will... Those won't go into the app because the ones that you'll app will use when it's running are the ones built into the Android devices.

The only Views that your transformation can affect would be custom ones from your project, so for example, if you create a custom Button that extends the Android's SDK Button View class, and then you use that in your layout, then you'll see the transformation applied at run time, to your custom View only.

from android-buddy.

souravpalitrana avatar souravpalitrana commented on June 9, 2024

Thanks, @LikeTheSalad for the detailed explanation. However, could we do this transformation for the third-party library? I think we could not. For example, I want to rebase a class of Volley library. I could not do that too.

from android-buddy.

LikeTheSalad avatar LikeTheSalad commented on June 9, 2024

Closing due to inactivity, please reopen if you still have the same issue.

from android-buddy.

Related Issues (5)

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.