Skip to content

Commit

Permalink
Add Java and Android SDK upgrade instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
bendk committed Sep 6, 2024
1 parent 3760c22 commit ef780d4
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 14 deletions.
14 changes: 0 additions & 14 deletions docs/howtos/upgrades/android-ndk.md

This file was deleted.

47 changes: 47 additions & 0 deletions docs/howtos/upgrades/android.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Java

Our Java version should be kept in sync with the version Firefox Android is using.
Update the version number in:

- `docs/building.md`
- `libs/verify-android-ci-environment.sh`
- `taskcluster/docker/linux/Dockerfile`


# Android SDK (Software Development Kit)

The Android SDK is a set of development tools for building Android Apps.

## Compile version

This specifies what we use to build our code.
Keep this in sync with the version Firefox Android is using.
Update the version number in:

* `build.gradle`
* `taskcluster/docker/linux/Dockerfile`

## Target / minimum versions

These control which devices the library is compatible with and control which version-specific features are enabled.
Keep this in sync with the version Firefox Android is using.
Update the version number in:

* `build.gradle`

# Android NDK (Native Development Kit)

The Android NDK is the toolset we use for cross-compiling our Rust code so that Firefox Android can dynamically link to it.

* Update the version number in:
* `build.gradle` (search for `ndkVersion`)
* `taskcluster/docker/linux/Dockerfile` (search for `ANDROID_NDK_VERSION`)
* `components/support/rc_crypto/nss/nss_build_common/src/lib.rs` (search for `ANDROID_NDK_VERSION`)
* Update these docs by replacing the old version with the new one:
* docs/building.md
* docs/howtos/locally-building-jna.md
* These may need updating if the directory structure changed between this version and the last
* `libs/build-android-common.sh`: ensure the paths to the various binaries are correct.
* `components/support/rc_crypto/nss/nss_build_common/src/lib.rs`: search for
`DARWIN_X86_64_LIB_DIR` and `LINUX_X86_64_LIB_DIR`, and ensure that both point to the correct lib directory containing
`libclang_rt.builtins-x86_64-android.a`.

0 comments on commit ef780d4

Please sign in to comment.