Hi there, I have an ejected app which needs to run on Android in a restricted environment. I need to build an APK which bundles all assets, including JS bundle, image, font and everything into the APK, so that the app doesn’t need to download anything whatsoever on load or at any other point. I.e., it never does OTA updates, never talks to the CDN in the first place, and has everything it needs bundled into the app.
How do I do this? I’m not at all clear from docs: how or whether to use
expo publish to do this; how to get it to copy assets from the
expo project into the
app/src/main/assets directory (or somewhere else if appropriate) as it doesn’t seem to be doing that, despite setting
assetBundlePatterns appropriately; how to put
assets directory URLs into the
manifest; how to make sure it publishes the JS bundle locally; how to use MainActivity.java’s
publishedUrl to point to the JS bundle; etc.
Anyone done this before? Could you perhaps give some ideas, a walkthrough, or point to some docs? None of the expo docs seem to do this all the way through.