Files
firezone/kotlin/android
dependabot[bot] ba0ee986c5 build(deps): bump net.java.dev.jna:jna from 5.17.0 to 5.18.1 in /kotlin/android (#10523)
Bumps [net.java.dev.jna:jna](https://github.com/java-native-access/jna)
from 5.17.0 to 5.18.1.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/java-native-access/jna/blob/master/CHANGES.md">net.java.dev.jna:jna's
changelog</a>.</em></p>
<blockquote>
<h1>Release 5.18.1</h1>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://redirect.github.com/java-native-access/jna/issues/1686">#1686</a>:
Fix <code>sortFields</code> race condition while getting fields - <a
href="https://github.com/bendk"><code>@​bendk</code></a>.</li>
</ul>
<h1>Release 5.18.0</h1>
<h2>Features</h2>
<ul>
<li><a
href="https://redirect.github.com/java-native-access/jna/pull/1671">#1671</a>:
Add <code>isRISCV</code> to <code>c.s.j.Platform</code> - <a
href="https://github.com/Glavo"><code>@​Glavo</code></a>.</li>
<li><a
href="https://redirect.github.com/java-native-access/jna/pull/1672">#1672</a>:
Add <code>CFLocale</code>, <code>CFLocaleCopyCurrent</code>,
<code>CFCFDateFormatter</code>, <code>CFDateFormatterStyle</code>,
<code>CFDateFormatterCreate</code> and
<code>CFDateFormatterGetFormat</code> to
<code>c.s.j.p.mac.CoreFoundation</code> - <a
href="https://github.com/dbwiddis"><code>@​dbwiddis</code></a>.</li>
<li><a
href="https://redirect.github.com/java-native-access/jna/pull/1669">#1669</a>:
Document requirement for running on JDK 24+ - <a
href="https://github.com/matthiasblaesing"><code>@​matthiasblaesing</code></a>.</li>
</ul>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://redirect.github.com/java-native-access/jna/issues/1681">#1681</a>:
Fix deadlock in Structure constructor introduced in 5.16.0 - <a
href="https://github.com/brettwooldridge"><code>@​brettwooldridge</code></a>.</li>
<li><a
href="https://redirect.github.com/java-native-access/jna/pull/1683">#1683</a>:
Fix native build error on Xcode 16.3 / Apple Clang 17 - <a
href="https://github.com/brettwooldridge"><code>@​brettwooldridge</code></a>.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="3c493c1642"><code>3c493c1</code></a>
Release 5.18.1</li>
<li><a
href="e3838d5396"><code>e3838d5</code></a>
Merge pull request <a
href="https://redirect.github.com/java-native-access/jna/issues/1680">#1680</a>
from java-native-access/dependabot/github_actions/gi...</li>
<li><a
href="5cac36169e"><code>5cac361</code></a>
Bump the github-actions group with 2 updates</li>
<li><a
href="5511f281d0"><code>5511f28</code></a>
Merge pull request <a
href="https://redirect.github.com/java-native-access/jna/issues/1687">#1687</a>
from bendk/push-yyprxvvrrttk</li>
<li><a
href="c401bca07c"><code>c401bca</code></a>
Merge pull request <a
href="https://redirect.github.com/java-native-access/jna/issues/1690">#1690</a>
from jonalmeida/patch-1</li>
<li><a
href="6e7e828eb8"><code>6e7e828</code></a>
Update recommended Android proguard rules</li>
<li><a
href="b665e9e6a2"><code>b665e9e</code></a>
Avoid threading issues in sortFields (<a
href="https://redirect.github.com/java-native-access/jna/issues/1686">#1686</a>)</li>
<li><a
href="0da700d300"><code>0da700d</code></a>
Prepare next development iteration</li>
<li><a
href="285632fa6e"><code>285632f</code></a>
Release 5.18.0</li>
<li><a
href="77fe152e75"><code>77fe152</code></a>
Support/Prepare deployment to new maven central repository</li>
<li>Additional commits viewable in <a
href="https://github.com/java-native-access/jna/compare/5.17.0...5.18.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=net.java.dev.jna:jna&package-manager=gradle&previous-version=5.17.0&new-version=5.18.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-06 16:38:31 +00:00
..
2024-03-08 01:55:27 +00:00

Firezone Android client

This README contains instructions for building and testing the Android client locally.

Dev Setup

  1. Install Rust

  2. Install Android Studio

  3. Install your JDK 17 of choice. We recommend just updating your CLI environment to use the JDK bundled in Android Studio to ensure you're using the same JDK on the CLI as Android Studio.

  4. Install the Android SDK through Android Studio.

    • Open Android studio, go to Android Studio > Preferences
    • Search for sdk
    • Find the Android SDK nav item under System Settings and select
    • Click the Edit button next to the Android SDK Location field
    • Follow the steps presented to install Android SDK
  5. Install NDK using Android Studio

    To see which version is installed, make sure to select the Show Package Details checkbox in the Android SDK settings page in Android Studio

    Android SDK Tools

    Make sure the correct NDK version is installed by looking at: ./app/build.gradle.kts

  6. Set the following properties in your local.properties file:

    sdk.dir=/Users/<username>/Library/Android/sdk
    
  7. Make sure the following Rust targets are installed into the correct toolchain.

    aarch64-linux-android
    arm-linux-androideabi
    armv7-linux-androideabi
    i686-linux-android
    x86_64-linux-android
    

    Ensure you've activated the correct toolchain version for your local environment with rustup default <toolchain> (find this from the root /rust/rust-toolchain.toml file), then run:

    rustup target add aarch64-linux-android arm-linux-androideabi armv7-linux-androideabi i686-linux-android x86_64-linux-android
    
  8. Perform a test build: ./gradlew assembleDebug.

If you get errors about rustc or cargo not being found, it can help to explicitly specify the path to these in your shell environment. For example:

# ~/.zprofile or ~/.bash_profile
export RUST_ANDROID_GRADLE_RUSTC_COMMAND=$HOME/.cargo/bin/rustc
export RUST_ANDROID_GRADLE_CARGO_COMMAND=$HOME/.cargo/bin/cargo

Release Setup

We release from GitHub CI, so this shouldn't be necessary. But if you're looking to test the release variant locally:

  1. Download the keystore from 1Pass and save to app/.signing/keystore.jks dir.
  2. Download firebase credentials from 1Pass and save to app/.signing/firebase.json
  3. Now you can execute the *Release tasks with:
export KEYSTORE_PATH="$(pwd)/app/.signing/keystore.jks"
export FIREBASE_CREDENTIALS_PATH="$(pwd)/app/.signing/firebase.json"
HISTCONTROL=ignorespace # prevents saving the next line in shell history
 KEYSTORE_PASSWORD='keystore_password' KEYSTORE_KEY_PASSWORD='keystore_key_password' ./gradlew assembleRelease

Logs

To see all connlib related logs via ADB use:

adb logcat --format color "connlib *:S"

This will show logs of all levels from the connlib tag and silence logs from other tags (*:S).