Reputation: 249
I have a project in Android Studio and two different app module but both of them are using this same Android library (core code). I want change some resources and logic in application but this code is in core (Android library). How do I approach this? How to customize core code?
Upvotes: 0
Views: 61
Reputation: 5247
I've been asking the same question and after some research, I've found that you have different approach:
They address the issue of having a separate project code base for each version of the app.
They keep the code tidy and makes it much easier and faster to navigate through the code base as everything related to the specific product flavor would be kept in their corresponding folders.
Source: https://levelup.gitconnected.com/simple-guide-to-android-product-flavors-674106455038
Source:
Also look at the gradle doc to start with modularizing.
Upvotes: 1
Reputation: 1607
You can build the library's aar
and use it in your main projects by simply copying into lib
folder in your project directory.
Or you can build it with services like Jitpack and add it to your project by the implementation
method in Gradle.
Upvotes: 0