android compiles

This commit is contained in:
callebtc
2025-07-14 23:31:40 +02:00
parent 8852681c0a
commit 618bff972d
12 changed files with 470 additions and 15 deletions
+5 -2
View File
@@ -57,6 +57,8 @@ android {
}
}
dependencies {
// Core Android dependencies
implementation(libs.androidx.core.ktx)
@@ -98,8 +100,9 @@ dependencies {
implementation(libs.cbor)
// JNA for CDK FFI bindings
implementation(libs.jna)
implementation(libs.jna.platform)
//implementation(libs.jna)
//implementation(libs.jna.platform)
implementation("net.java.dev.jna:jna:5.13.0@aar")
// QR Code generation
implementation(libs.zxing.core)
+15
View File
@@ -5,3 +5,18 @@
-keep class com.bitchat.android.crypto.** { *; }
-dontwarn org.bouncycastle.**
-keep class org.bouncycastle.** { *; }
# JNA (Java Native Access) rules - Required for CDK FFI
-keep class com.sun.jna.** { *; }
-keep class * implements com.sun.jna.** { *; }
-dontwarn com.sun.jna.**
# CDK FFI bindings - Keep all uniffi generated classes
-keep class uniffi.** { *; }
-keep class uniffi.cdk_ffi.** { *; }
-dontwarn uniffi.**
# Native method preservation
-keepclasseswithmembernames class * {
native <methods>;
}
@@ -107,19 +107,19 @@ class BluetoothConnectionManager(
// Start power manager
powerManager.start()
// Start server manager
if (!serverManager.start()) {
Log.e(TAG, "Failed to start server manager")
this@BluetoothConnectionManager.isActive = false
return@launch
}
// // Start server manager
// if (!serverManager.start()) {
// Log.e(TAG, "Failed to start server manager")
// this@BluetoothConnectionManager.isActive = false
// return@launch
// }
// Start client manager
if (!clientManager.start()) {
Log.e(TAG, "Failed to start client manager")
this@BluetoothConnectionManager.isActive = false
return@launch
}
// // Start client manager
// if (!clientManager.start()) {
// Log.e(TAG, "Failed to start client manager")
// this@BluetoothConnectionManager.isActive = false
// return@launch
// }
Log.i(TAG, "Bluetooth services started successfully")
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.