Android#
The 'Android' Target#
Wonkey uses the android NDK (native development kit) to build android apps.
Setting up for Android development#
-
Install Android Studio and make sure it works, ie: you can build and run one of the simple template projects on a device or emulator.
Android Studio is available here: Android Studio. -
Install the 'NDK' (native development kit) using Android Studio via 'SDK Manager->SDK Tools'.
-
Install the Android 7.0 (Nougat) SDK Platform (API Level 24) using Android Studio via 'SDK Manager'.
-
Edit your Wonkey
bin/windows/env_windows.txt
file and change the ndk-bundle 'PATH' setting so it points to the NDK. Or, you can just add the ndk-bundle directory to your system PATH.
Please note: Use the filebin/macos/env_macos.txt
on macOS andbin/linux/env_linux.txt
on Linux. -
Fire up the Wide IDE and select 'Build -> Update/Rebuild Modules -> Android'.
Alternatively you can (re-)build the android modules on the command-line:
wake mods -clean -target=android -config=debug
wake mods -clean -target=android -config=release
Building an Android app#
-
Build your app in Wide using 'Build -> Build Only' with 'Build Target -> Android' selected.
-
Open the generated Android Studio project (at myapp.products/Android) in Android Studio.
Attention
I recommend disabling the following Android Studio setting for Wonkey development:
File -> Settings -> Build, Execution, Deployment -> Instant Run -> Enable Instant Run
With this enabled, Android Studio doesn't seem to notice when external project files change.