-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathREADME.txt
More file actions
34 lines (32 loc) · 1.16 KB
/
README.txt
File metadata and controls
34 lines (32 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Installing
==========
0. Set up Android Studio.
1. Clone the repo (with submodules):
git clone --recursive git@github.com:IDKJava/the-elements.git
2. Build the protobuf compiler:
-- cd protobuf
-- ./autogen.sh
-- ./configure
-- make -j
-- Confirm protobuf/src/protoc exists.
3. Download the Android NDK.
4. Set ANDROID_HOME and ANDROID_NDK_HOME env variables.
5. Set IDKJAVA_KEYSTORE to point to the keystore file location, and
IDKJAVA_KEYALIAS to the key alias within the keystore.
6. 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
=======
1. git pull
2. 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/.