Skip to content

explore using "aapt2 dump xmlstrings" or "aapt2 dump xmltree" for additional AndroidManifest.xml validation #34

@silbinarywolf

Description

@silbinarywolf

tldr:

  • Check if AndroidManifest.xml has android:hasCode="false", if not, then throw error saying you're missing Java files

Description

After merging #33 there is no longer any compile-time validation that you included Java files where necessary or that you've configured your AndroidManifest.xml file correctly.

For example if you have android:hasCode="false" then it's valid to not include any Java files. However if you do not include that configuration you can get the following error message when running adb install

  • Scanning Failed.: Package /data/app/base.apk code is missing

My thinking is that it would be nice to create a validation build step, based off of: src/androidbuild/builtin_options_update.zig
The idea is that we should explore calling aapt2 dump xmlstrings or aapt2 dump xmltree (or something) and check if the AndroidManifest.xml has been configured correctly.

We could also put additional AndroidManifest.xml validation rules here in the future if need be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions