Hi,I tried to reduce APK size of Chromium build as well as to download dynamic features as user demands. And I found Android App Bundle which can support that. But I didn't find any build command I can use to build Chromium as App Bundle. Are there any plans to support that? If not, how I can I do it myself? Would anyone like to shed lights on this?
--Thanks,Ran
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/96c30caf-6f2b-4b6d-b548-55cb802b5160%40chromium.org.
Thanks David.I guess App Bundle would be fully supported after http://crbug.com/820459 checked in, right? And when do you think it will be completely ready? Do you have a schedule?
Hi David,I believe chromium has supported App Bundle already. I saw some keywords in the build script. Would you please share some docs related to that?
Thanks David.I saw Chromium has a property `featureSplit` in manifest files of bundle. Do you know what does that mean? I don't see this property in android official document.
split attribute is no longer added automatically by Bundletool, it must be already present in the AndroidManifest.xml. Note that in the original AndroidManifest.xml, this attribute is named featureSplit(it is later renamed by aapt2). For users of the Android Gradle Plugin, this is a no-op since AGP adds it automatically.Another question is about standalone apk.I built an app bundle as the guides shows in the document. And use this (out/Release/bin/foo_bundle build-bundle-apks) to create apks. And I found a standalone apk as well as some split apks in the output folder. But I dump the dexes in the standalone.apk. I can only find classes defined in base module. But classes defined in other modules are not there. Do you have any ideas what may cause this issue. Or is that by design?
Hi David,
Thanks for your patience.Actually I am building a chrome_public_apk instread of chrome_modern_public_apk. Even with 0.8.0, I can still build a standalone apk. I am curious about how do you test your bundles without building a standalone apk. Do you use the install command in bundletool? But I can't install the dynamic module with that command. Only the base module included.
BTW, I didn't pull the latest code of Chromium. The branch I am working on is still based on bundletool 0.6.0.
Another issue I would like to discuss with you is about the package names. As I can see in Chromium's code. All the package name defined in manifest files of dynamic modules are as exactly same as the app itself. When I built the aab this way, I would get a failure on installing the bundle. There would be a dex merge issue about that. Any ideas about that?
Thanks David. I updated the bundle tool as you suggested. And can install all modules with the corresponding parameters. I have been suffering a lot to try to build a standalone apk.I saw all of modules in Chromium are target for Android L and above. Because of that, none of them support fusing for now. Do you have plans to support that in future? The reason I ask this is because I will encounter the dex merge issue if I set the fusing to true.