You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.