Skip to content

Commit

Permalink
update android sdk build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
ganthern committed Jan 2, 2025
1 parent d56a332 commit a6bfc52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tuta-sdk/android/sdk/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ android {
jvmTarget = "1.8"
}
sourceSets["main"].java.srcDirs(file("${layout.buildDirectory.asFile.get()}/generated-sources/tuta-sdk"))
ndkVersion = "26.1.10909125"
ndkVersion = "28.0.12674087 rc2"
}

dependencies {
Expand Down
10 changes: 7 additions & 3 deletions tuta-sdk/rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@
You need at least NDK 23

```
# 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)
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)
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 NDK version.
export ANDROID_NDK_HOME=/opt/android-sdk-linux/ndk/28.0.12674087
# add NDK toolchain to path
export PATH=${PATH}:${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/
Expand All @@ -18,7 +22,7 @@ export PATH=${PATH}:${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bi
# setup the sdk project
- open tutanota-3/tutasdk/android in Android Studio
- Ctrl + A -> Project setup -> select the NDK
- Ctrl + A -> Project Structure -> Modules -> SDK -> select the NDK
- gradle sync
# add sdk/android to the app-android project as a library
Expand Down

0 comments on commit a6bfc52

Please sign in to comment.