Library Split Offerings

Asked 2 years ago, Updated 2 years ago, 71 views

These days, I think aar and jar are often published on jcenter and maven central, but I'm looking for a way to partially publish libraries like Google play services.

If you only want to publish it separately, you can separate the modules and upload them separately, but what you want to do is to publish them separately while using a program like Google play services.

If you have a core class group like Google play services, and you're referring to each module and writing a process, simply programming on each module deviates from the obfuscation of the core library or conflicts of names between the modules.

Of course, if you change the packages that become the root of each module so that even the package name is not obfuscated, you only need to be consistent with the dependent code, but Google play services adds classes to the same package on each module.
If this happens, each module may have a name conflict after obfuscation.

If you know how libraries like Google play services manage projects and generate deliverables (e.g., allowing you to write all the code on a single module and split the deliverables, or if you're good at segmenting and obfuscating in multiple modules), please let me know.

Thank you for your cooperation.

android java gradle

2022-09-30 16:46

1 Answers

I don't know exactly how Google play services are :

After setting the public part of the program to not obfuscate (keep, public), you can only public-modify method classes that depend on each library. (No, I'm sorry if you don't want to do that.)


2022-09-30 16:46

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.