This is the native 'tealeaf' platform for android devices
-
Install android tools, then download and unpack android-ndk-r9b
-
Export path: export ANDROID_HOME=/home/USERNAME/Android/Sdk export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools export PATH=$PATH:/path/to/ndk-r9b/android-ndk-r9b
-
Install and configure NDK tools with installed SDK Manger (see 1)
Debugging with specific sgning keys might be required by some APIs and plugins or sign release build just:
- set up environment variables and use:
export DEVKIT_ANDROID_KEYSTORE='path/to/your/keystore'
export DEVKIT_ANDROID_STOREPASS='your keystore pass'
export DEVKIT_ANDROID_KEYPASS='your alias pass'
export DEVKIT_ANDROID_KEY='you alias name'
- Sign apk
To debug with specific keys
devkit debug native-android --signing true
For releasedevkit release native-android
Do not update barista submodule. Current source code requires specific commit f2356f0
description:
do: touch ~/.android/repositories.cfg and install required sdk with sdkmanager or install required sdk with Android Studio
AttributeError: 'NoneType' object has no attribute 'groups'
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
do:
- Make sure you select correct Xcode.app path with
xcode-select -print-path
- Point xcode-select to the Xcode Developer directory using the following command
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
More at nodejs/node-gyp#569
#After you have made some changes in native-android go to devkit-core repositoty updated native-android submodule:
- git submodule update --init --force --remote
- git add .
- git commit -m "updates of native-android"
- git push origin YOURBRANCH
Next plugins are made as Gradle library projects and can be edited in Android Studio:
Gameplay
Gamecircle
Facebook
Please note that these plugins library projects are not imported as project modules, instead they are imported as AAR (Android archive) which contain necessary source code and resources. You can see this in android/config.json of each library project plugin This requires to rebuild .aar file after plugin source code has been modified with proces: Import project into Android Studio -> Add changes -> Build -> Rebuild project. This will rebuild .aar file, the path to which is already in config.json.