android service and notifications #167

Merged
sarah merged 12 commits from androidservice into trunk 2021-06-11 22:25:55 +00:00
Owner
* needs libcwtchgo update with https://git.openprivacy.ca/flutter/libcwtch-go/pulls/51
sarah was assigned by erinn 2021-06-11 21:36:29 +00:00
erinn changed title from android service and notifications to WIP: android service and notifications 2021-06-11 21:36:50 +00:00
sarah reviewed 2021-06-11 21:39:42 +00:00
@ -222,0 +184,4 @@
val eventBus: MethodChannel = mc
override fun onReceive(context: Context, intent: Intent) {
// StringBuilder().apply {
Owner

delete?

delete?
Owner
Drone Build Status: success https://build.openprivacy.ca/flutter/flutter_app/480
sarah reviewed 2021-06-11 21:40:35 +00:00
@ -85,0 +95,4 @@
// WorkManager
// (Java only)
//implementation("androidx.work:work-runtime:$work_version")
Owner

delete?

delete?
dan reviewed 2021-06-11 21:54:54 +00:00
dan left a comment
Owner

WOW that is a lot of work. amazing.
just tiny nits

WOW that is a lot of work. amazing. just tiny nits
@ -0,0 +19,4 @@
class FlwtchWorker(context: Context, parameters: WorkerParameters) :
CoroutineWorker(context, parameters) {
private val CWTCH_EVENTBUS = "test.flutter.dev/eventBus"
Owner

lol maybe now is a good time to rename test.flutter.dev/eventBut here and in gomobile.dart

lol maybe now is a good time to rename test.flutter.dev/eventBut here and in gomobile.dart
@ -0,0 +62,4 @@
// infinite coroutine :)
while(true) {
val evt = MainActivity.AppbusEvent(Cwtch.getAppBusEvent())
//Log.i("FlwtchWorker.kt", "got appbusEvent: " + evt)
Owner

delete?

delete?
@ -0,0 +114,4 @@
// .putString("EventID", evt.EventID)
// .build()
//setProgress(data)//progress can only hold a single undelivered value so it's possible for observers to miss rapidfire updates
//Thread.sleep(200)//this is a kludge to make it mostly-work until a proper channel is implemented
Owner

deletable?

deletable?
@ -0,0 +149,4 @@
return Result.success(Data.Builder().putLong("result", Cwtch.numMessages(profile, handle)).build())
}
"GetMessage" -> {
//Log.i("MainActivivity.kt", (a.get("index")));
Owner

delete x3?

delete x3?
@ -30,3 +30,1 @@
task clean(type: Delete) {
delete rootProject.buildDir
}
//task clean(type: Delete) {
Owner

why commented?

why commented?
Owner
Drone Build Status: success https://build.openprivacy.ca/flutter/flutter_app/482
erinn changed title from WIP: android service and notifications to android service and notifications 2021-06-11 22:06:49 +00:00
Owner
Drone Build Status: success https://build.openprivacy.ca/flutter/flutter_app/483
Owner
Drone Build Status: success https://build.openprivacy.ca/flutter/flutter_app/484
sarah merged commit c606002541 into trunk 2021-06-11 22:25:54 +00:00
Sign in to join this conversation.
No description provided.