Replies: 1 comment 3 replies
-
I don't see the point of Gradle. All you need to build an Android app is compile some Java (uh, it's a simple javac call), compile some native code (Meson does this well) and then put everything in a ZIP file (just a few shell calls).
What Android build tools are impossible to be used without Gradle? What dependencies do you wish to have? What language features cannot be used without Gradle? What language, anyway? Java? Gradle isn't a Java compiler - it only invokes the Java compiler. Just like we do currently.
I don't get that either. APK can also "include resources, native binaries, and java class files". In fact, that is exactly how MPD is packaged for Android currently. |
Beta Was this translation helpful? Give feedback.
-
I was looking at integrating media session into the Android app but I believe that it would first be worth the time to modernize how the app is build on the Android side.
Android has the ability to package libraries as AAR files. These can include resources, native binaries, and java class files. I think it would be worthwhile to tweak the current build system to only build the native code and Bridge.java and package that as an AAR.
The rest of the project would be converted to a Gradle project so we can use more modern Android build tools, dependencies, and language features. This project would then pull in the AAR that was built so that the app can bundle the native MPD code. This change should make it easier to add functionality to the Android app going forward.
Let me know what you think!
Some quick info about AAR libraries:
https://developer.android.com/studio/projects/android-library
Beta Was this translation helpful? Give feedback.
All reactions