Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Fix uniffi Android compilation errors (#1404)

Leendert de Borstba6925d14166
diff --git a/apps/mobile-app/android/.editorconfig b/apps/mobile-app/android/.editorconfig
index 43e55bcf9..cf4f7050e 100644
--- a/apps/mobile-app/android/.editorconfig
+++ b/apps/mobile-app/android/.editorconfig
@@ -20,6 +20,7 @@ ktlint_standard_public-method-documentation = true
[**/uniffi/**/*.kt]
ktlint_standard_filename = disabled
ktlint_standard_package-name = disabled
+ktlint_standard_no-wildcard-imports = disabled
# Detekt rules
detekt.style.PublicFunctionDocumentation = enabled
diff --git a/apps/mobile-app/android/app/build.gradle b/apps/mobile-app/android/app/build.gradle
index c9d5b598d..096c926ea 100644
--- a/apps/mobile-app/android/app/build.gradle
+++ b/apps/mobile-app/android/app/build.gradle
@@ -205,6 +205,9 @@ dependencies {
// Add ZXing library for QR code scanning (F-Droid compatible)
implementation("com.journeyapps:zxing-android-embedded:4.3.0")
+ // Add JNA library for UniFFI native bindings
+ implementation("net.java.dev.jna:jna:5.14.0@aar")
+
// Test dependencies
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.mockito:mockito-core:4.0.0'
@@ -300,7 +303,11 @@ detekt {
config = files("$rootProject.projectDir/detekt.yml")
baseline = file("$rootProject.projectDir/baseline.xml")
- source.setFrom(files("src/main/java"))
+ source.setFrom(
+ fileTree("src/main/java") {
+ exclude "**/uniffi/**"
+ }
+ )
reports {
html.required.set(true)
xml.required.set(true)