diff --git a/android/app/src/main/kotlin/com/example/flutter_app/MainActivity.kt b/android/app/src/main/kotlin/com/example/flutter_app/MainActivity.kt index a7c0719..5d4062d 100644 --- a/android/app/src/main/kotlin/com/example/flutter_app/MainActivity.kt +++ b/android/app/src/main/kotlin/com/example/flutter_app/MainActivity.kt @@ -127,6 +127,27 @@ class MainActivity: FlutterActivity() { val end = (call.argument("end") as? Long) ?: 0; result.success(Cwtch.getMessages(profile, handle, start, end)) } + "AcceptContact" -> { + val profile = (call.argument("ProfileOnion") as? String) ?: ""; + val handle = (call.argument("handle") as? String) ?: ""; + Cwtch.acceptContact(profile, handle); + } + "BlockContact" -> { + val profile = (call.argument("ProfileOnion") as? String) ?: ""; + val handle = (call.argument("handle") as? String) ?: ""; + Cwtch.blockContact(profile, handle); + } + "DebugResetContact" -> { + val profile = (call.argument("ProfileOnion") as? String) ?: ""; + val handle = (call.argument("handle") as? String) ?: ""; + Cwtch.debugResetContact(profile, handle); + } + "SendMessage" -> { + val profile = (call.argument("ProfileOnion") as? String) ?: ""; + val handle = (call.argument("handle") as? String) ?: ""; + val message = (call.argument("message") as? String) ?: ""; + Cwtch.sendMessage(profile, handle, message); + } "SendProfileEvent" -> { val onion = (call.argument("onion") as? String) ?: ""; val jsonEvent = (call.argument("jsonEvent") as? String) ?: ""; diff --git a/android/cwtch/cwtch.aar b/android/cwtch/cwtch.aar index 10e699d..cbde03b 100644 Binary files a/android/cwtch/cwtch.aar and b/android/cwtch/cwtch.aar differ