Installing
- Set up Android Studio.
- Clone the repo (with submodules):
git clone --recursive git@github.com:IDKJava/the-elements.git
- Build the protobuf compiler:
-- cd protobuf
-- ./autogen.sh
-- ./configure
-- make -j
-- Confirm protobuf/src/protoc exists.
- Download the Android NDK.
- Set ANDROID_HOME and ANDROID_NDK_HOME env variables.
- Set IDKJAVA_KEYSTORE to point to the keystore file location, and
IDKJAVA_KEYALIAS to the key alias within the keystore.
- If using Android Studio GUI to build the gradle project, then create
a local.properties file at the top level with ndk.dir=path/to/ndk
to ensure that the gradle spawned under Android Studio can find the NDK.
Updating
- git pull
- DON'T FORGET:
git submodule sync
This will receive any changes to submodule HEAD.
Building an APK (gradle)
The root of the repository contains a gradlew shell wrapper.
To build a debug build:
-- ./gradlew assembleDebug
To build a release build:
-- ./gradlew assembleRelease
-- Respond to the password prompts for keystore signing
The built apk will be outputted to TheElements-dev/build/outputs/apk/.