Android Build Optimisations #5868
Replies: 4 comments
-
|
First iteration for reducing the androidTest apk I suspect further reduction can be done with R8 (I found evidence in Gradle's resulting apk that R8 is involved) but will leave that work for a subsequent PR |
Beta Was this translation helpful? Give feedback.
-
|
While migrating the Jetcaster Compose sample, a few points came up about how we handle multi-module projects. For example:
|
Beta Was this translation helpful? Give feedback.
-
Code housekeepingAndroid bundleAndroid bundle is a non executable, non installable package . At the moment we have a separate trait which duplicates some of the logic and by now it's probably not supporting all the configurations we support with app module builds. We can consider having a bundle task in the android module instead and get rid of the extra trait. Maven layoutI think by now we are familiar with the android structure. We can align the android modules with the rest of mill, by mixing the maven module and cleaning up some duplicated code but also have android module traits that extend java modules, similar to Kotlin module approach |
Beta Was this translation helpful? Give feedback.
-
Security enhancementsSo far we have support and examples for signing apks with user managed keys. We can add support for Google signing services . Not sure about the example but maybe we can come up with a mock server |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion is to exchange ideas and discuss on starting to optimise the Android build.
Basically, some things in the build process are over "provisioned" (for lack of a better word) , there might be excessive things packaged in the APK or things that are using CLI tools can be optimised as jvm workers (e.g. like the KSP2)
A few things that come to mind at the moment:
androidPackageableNativeDeps, it needs some knowledge of mill + android)Beta Was this translation helpful? Give feedback.
All reactions