diff --git a/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/InputService.kt b/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/InputService.kt index fa6a348c1..2db376230 100644 --- a/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/InputService.kt +++ b/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/InputService.kt @@ -1,5 +1,11 @@ package com.carriez.flutter_hbb +/** + * Handle remote input and dispatch android gesture + * + * Inspired by [droidVNC-NG] https://github.com/bk138/droidVNC-NG + */ + import android.accessibilityservice.AccessibilityService import android.accessibilityservice.GestureDescription import android.content.Context diff --git a/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/MainActivity.kt b/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/MainActivity.kt index bb4e85c89..3cc105bfa 100644 --- a/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/MainActivity.kt +++ b/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/MainActivity.kt @@ -1,5 +1,12 @@ package com.carriez.flutter_hbb +/** + * Handle events from flutter + * Request MediaProjection permission + * + * Inspired by [droidVNC-NG] https://github.com/bk138/droidVNC-NG + */ + import android.app.Activity import android.content.ComponentName import android.content.Context diff --git a/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/MainService.kt b/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/MainService.kt index dc86cea45..a71541cd8 100644 --- a/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/MainService.kt +++ b/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/MainService.kt @@ -1,8 +1,11 @@ +package com.carriez.flutter_hbb + /** * Capture screen,get video and audio,send to rust. - * Handle notification + * Dispatch notifications + * + * Inspired by [droidVNC-NG] https://github.com/bk138/droidVNC-NG */ -package com.carriez.flutter_hbb import android.Manifest import android.annotation.SuppressLint