mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 03:05:20 +00:00
android compiles
This commit is contained in:
@@ -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)
|
||||
|
||||
Vendored
+15
@@ -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.
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user