Updated Readme
This commit is contained in:
parent
12ccab42ea
commit
cb2cfaf515
2 changed files with 20 additions and 3 deletions
11
README.md
11
README.md
|
@ -4,6 +4,8 @@ This Android Studio project wraps the [Desktop Sample App](https://github.com/el
|
|||
|
||||
## How to build & run
|
||||
|
||||
1. Install the beta OTP build *(see known issues)
|
||||
|
||||
1. Install [Android Studio](https://developer.android.com/studio) + NDK.
|
||||
|
||||
1. Go to "Files -> New -> Project from Version Control" and enter this URL: https://github.com/elixir-desktop/android-example-app/
|
||||
|
@ -18,6 +20,15 @@ This Android Studio project wraps the [Desktop Sample App](https://github.com/el
|
|||
|
||||
### Update built-in Runtime
|
||||
|
||||
To have the embedded Erlang match the one you use for compilation you can install
|
||||
the same version as the embedded:
|
||||
|
||||
```bash
|
||||
mkdir -p ~/projects/
|
||||
kerl build git https://github.com/diodechain/otp.git diode/beta 24.beta
|
||||
kerl install 24.beta ~/projects/24.beta
|
||||
```
|
||||
|
||||
The current runtime that is precompiled and sits in assets/ folder is based on dev branch of OTP currently under
|
||||
https://github.com/diodechain/otp/tree/diode/beta
|
||||
Because the included OTP apps have different versions such as `crypto-5.0.3` you can only compile this project
|
||||
|
|
12
run_mix
12
run_mix
|
@ -1,8 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
BASE=`pwd`
|
||||
# Here activate your Erlang/Elixir version, in my case this is using kerl:
|
||||
# . /Users/dominicletz/projects/24.beta/activate
|
||||
# Here activate your Erlang/Elixir version, in my case this is using kerl.
|
||||
# To have the embedded Erlang match the one you use for compilation you can install
|
||||
# the same version as the embedded:
|
||||
# mkdir -p ~/projects/
|
||||
# kerl build git https://github.com/diodechain/otp.git diode/beta 24.beta
|
||||
# kerl install 24.beta ~/projects/24.beta
|
||||
|
||||
. ~/projects/24.beta/activate
|
||||
export MIX_ENV=prod
|
||||
export MIX_TARGET=android
|
||||
|
||||
|
|
Loading…
Reference in a new issue