Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update Android setup instructions in tuta-sdk/rust README.md #8362

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions tuta-sdk/rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,30 @@
You need at least NDK 23

```
# install the android NDK
# install the Android NDK
Android Studio -> Android SDK Manager -> SDK Tools -> NDK (Side by Side) -> Install

# install the android targets for rust (part of rust-tuta pkg on dev machines)
# install the Android targets for rust (part of rust-tuta pkg on dev machines)
rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android i686-linux-android

# add ANDROID_NDK_HOME to your shell profile (.bashrc). the version depends on your NDK version.
export ANDROID_NDK_HOME=/opt/android-sdk-linux/ndk/26.1.10909125
# add ANDROID_NDK_HOME to your shell profile (.bashrc).
- the version depends on your locally installed NDK version. Check your installed NDK version in /opt/android-sdk-linux/ndk
export ANDROID_NDK_HOME=/opt/android-sdk-linux/ndk/<<your-ndk-version>>

# add NDK toolchain to path
export PATH=${PATH}:${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/

# build the sdk for android
# build the sdk for Android
./make_android.sh

# setup the sdk project
- open tutanota-3/tutasdk/android in Android Studio
# setup the tuta-sdk project
- open tutanota-3/tuta-sdk/android in Android Studio
- Ctrl + A -> Project Structure -> Modules -> SDK -> select the NDK
- gradle sync
- do a gradle sync in Android Studio

# add sdk/android to the app-android project as a library
# sync gradle in Android Studio
# setup the app-android project
- open tutanota-3/app-android in Android Studio
- do a gradle sync in Android Studio
```

## iOS
Expand Down
Loading