Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Commit cb2cfaf

Browse files
committed
Updated Readme
1 parent 12ccab4 commit cb2cfaf

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ This Android Studio project wraps the [Desktop Sample App](https://github.com/el
44

55
## How to build & run
66

7+
1. Install the beta OTP build *(see known issues)
8+
79
1. Install [Android Studio](https://developer.android.com/studio) + NDK.
810

911
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
1820

1921
### Update built-in Runtime
2022

23+
To have the embedded Erlang match the one you use for compilation you can install
24+
the same version as the embedded:
25+
26+
```bash
27+
mkdir -p ~/projects/
28+
kerl build git https://github.com/diodechain/otp.git diode/beta 24.beta
29+
kerl install 24.beta ~/projects/24.beta
30+
```
31+
2132
The current runtime that is precompiled and sits in assets/ folder is based on dev branch of OTP currently under
2233
https://github.com/diodechain/otp/tree/diode/beta
2334
Because the included OTP apps have different versions such as `crypto-5.0.3` you can only compile this project

run_mix

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
#!/bin/bash
2-
2+
set -e
33
BASE=`pwd`
4-
# Here activate your Erlang/Elixir version, in my case this is using kerl:
5-
# . /Users/dominicletz/projects/24.beta/activate
4+
# Here activate your Erlang/Elixir version, in my case this is using kerl.
5+
# To have the embedded Erlang match the one you use for compilation you can install
6+
# the same version as the embedded:
7+
# mkdir -p ~/projects/
8+
# kerl build git https://github.com/diodechain/otp.git diode/beta 24.beta
9+
# kerl install 24.beta ~/projects/24.beta
10+
11+
. ~/projects/24.beta/activate
612
export MIX_ENV=prod
713
export MIX_TARGET=android
814

0 commit comments

Comments
 (0)