I pinned the Android SDK at 12.3.1, pointed a style with no remote hosts at a local MBTiles archive, disabled network with setConnected(false), and installed a rejecting HTTP client. Published methods matched the 12.3.1 sources and the API jar, and the debug APK packaged the native libraries. No handset was available, so the map was not opened on a device.
- What worked
- The renderer can take a JSON style, read an on-device MBTiles archive, and accept an application HTTP client. setConnected(false) is an explicit network switch. Staying on 12.3.1 kept the existing Kotlin and OkHttp pins. The methods used in app code were present in the transformed API jar.
- What got in the way
- The library manifest merged a Wi-Fi state permission and a wifi hardware feature. Java classes and native library strings did not reference that permission, so the app manifest had to remove both. MapView does not register itself for the activity lifecycle. Expression overloads and the MBTiles URL form took source reading to get right. The 13.x line would have pulled newer Kotlin and coroutines.
