You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 27, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+18-19Lines changed: 18 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,42 +4,41 @@ This Android Studio project wraps the [Desktop Sample App](https://github.com/el
4
4
5
5
## Runtime Notes
6
6
7
-
The pre-built Erlang runtime for Android ARM/ARM64/x86 is embedded in this example git repository. These native runtime files include ErlangOTP and the exqlite nif to use SQLite on the mobile. These runtimes are generated using the CI of the [Desktop Runtime](https://github.com/elixir-desktop/runtimes) repository.
7
+
The pre-built Erlang runtime for Android ARM/ARM64/x86 is embedded in this example git repository. These native runtime files include Erlang/OTP and the exqlite nif to use SQLite on the mobile. These runtimes are generated using the CI of the [Desktop Runtime](https://github.com/elixir-desktop/runtimes) repository.
8
8
9
-
Because ErlangOTP has many native hooks for networking and cryptographics the Erlang version used to compile your App must match the pre-built binary release that is embedded. In this example that is ErlangOTP 25.0.4. This sample is shipping with a `.tool-versions` file that `asdf` will automatically use to automate this requirement.
9
+
Because Erlang/OTP has many native hooks for networking and cryptographics the Erlang version used to compile your App must match the pre-built binary release that is embedded. In this example that is Erlang/OTP 26.2.5. This sample is shipping with a `.tool-versions` file that `asdf` will automatically use to automate this requirement.
1. Install Erlang-OTP (with openssl) in the same version 26.2.5 as the bundled runtime edition:
22
+
1. Install Erlang/OTP (with openssl) in the same version as the bundled runtime edition:
25
23
26
-
```
27
-
asdf install erlang 26.2.5
28
-
asdf install elixir 1.17.2-otp-26
24
+
```shell
25
+
asdf plugin add erlang
26
+
asdf plugin add elixir
27
+
asdf plugin add nodejs
28
+
cd app && asdf install
29
29
```
30
30
31
-
1. Go to "Files -> New -> Project from Version Control" and enter this URL: https://github.com/elixir-desktop/android-example-app/
31
+
1. Go to "Files -> New -> Project from Version Control" and enter this URL: [https://github.com/elixir-desktop/android-example-app/] or open your locally cloned directory.
32
32
33
33
1. Start the App
34
34
35
-
36
35
## Customize app name and branding
37
36
38
37
Update these places with your package name:
39
38
40
39
1) App name in [strings.xml](app/src/main/res/values/strings.xml#L2) and [settings.gradle](settings.gradle)
41
40
1) Package names in [Bridge.kt:1](app/src/main/java/io/elixirdesktop/example/Bridge.kt#L1) and [MainActivity.kt:1](app/src/main/java/io/elixirdesktop/example/MainActivity.kt#L1) (rename `package io.elixirdesktop.example` ->`com.yourapp.name` or use the Android Studios refactor tool)
42
-
1) App icon: [ic_launcher_foreground.xml](app/src/main/res/drawable-v24/ic_launcher_foreground.xml) and [ic_launcher-playstore.png](app/src/main/ic_launcher-playstore.png)
41
+
1) App icon: [ic_launcher_foreground.xml](app/src/main/res/drawable-v24/ic_launcher_foreground.xml) and [ic_launcher-playstore.png](app/src/main/ic_launcher-playstore.png)
43
42
1) App colors: [colors.xml](app/src/main/res/values/colors.xml) and launcher background [ic_launcher_background.xml](app/src/main/res/values/ic_launcher_background.xml)
44
43
45
44
## Known todos
@@ -52,11 +51,11 @@ Running the app for the first time will extract the full Elixir & App runtime at
52
51
53
52
This sample only launch the elixir app and shows it in an Android WebView. There is no integration yet with the Android Clipboard, sharing or other OS capabilities. They can though easily be added to the `Bridge.kt` file when needed.
54
53
55
-
## Other notes
54
+
## Other notes
56
55
57
-
- Android specific settings, icons and metadata are all contained in this Android Studio wrapper project.
56
+
- Android specific settings, icons and metadata are all contained in this Android Studio wrapper project.
58
57
59
-
- `Bridge.kt` and the native library are doing most of the wrapping of the Elixir runtime.
58
+
- `Bridge.kt` and the native library are doing most of the wrapping of the Elixir runtime.
0 commit comments