• Building an Android bundle (aab) with tools available in Debian

    From Federico Kircheis@21:1/5 to All on Fri May 23 10:40:01 2025
    Hello,

    I know there is already a similar thread, I did not want to hijack it,
    since the topic is slightly different.


    Debian currently provides all tools required for creating an apk (and I
    assume also an aar).

    Unfortunately it seems to be missing one tool for creating an aab:
    bundletool

    https://developer.android.com/tools/bundletool.

    I could not find it in any package, and it is not even mentioned in https://wiki.debian.org/AndroidTools

    Is there any plan to add it?
    Fortunately it is just one jar file to download from

    https://github.com/google/bundletool/releases/download/

    but it would be nicer to be able to install it like other tools.



    Strictly speaking out of topic, but I wanted also to mention the following.

    I've noticed that proguard is based on a old upstream version.
    The packaged version has trouble with class files generated by newer
    jdk; since using proguard is an optional step, this is obviously not a
    blocking issue.

    dx has a similar issue; it does not support class files generated by
    newer jdks.
    One can install d8 (for example by installing google-android-platform-36-installer); there seems not to exist a
    package like dalvik-exchange just for installing d8.


    Similarly to bundletool, I could not find anywhere r8.
    This is the successor of proguard in the android toolchain, but could
    not find it into any package.
    Again, since optimizing class files is optional, it is not a dealbraker
    for creating an application.


    PS: with --target 8 it is possible to generate class files compatible
    with the packaged proguard and dx. Unfortunately this option seems to be deprecated in jdk 21.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)