Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mobile][photos] register platform channel router

Priyanshu Dangare3604cc8e2538
diff --git a/mobile/apps/photos/plugins/ente_photos_platform/android/src/main/kotlin/io/ente/photos/platform/PhotosPlatformPlugin.kt b/mobile/apps/photos/plugins/ente_photos_platform/android/src/main/kotlin/io/ente/photos/platform/PhotosPlatformPlugin.kt
index 4cce8e9769..d74ed15e94 100644
--- a/mobile/apps/photos/plugins/ente_photos_platform/android/src/main/kotlin/io/ente/photos/platform/PhotosPlatformPlugin.kt
+++ b/mobile/apps/photos/plugins/ente_photos_platform/android/src/main/kotlin/io/ente/photos/platform/PhotosPlatformPlugin.kt
@@ -1,20 +1,20 @@
package io.ente.photos.platform
-import io.ente.photos.platform.flutter.DeviceHealthChannelAdapter
+import io.ente.photos.platform.flutter.PhotosPlatformChannelRouter
import io.ente.photos.platform.flutter.ProcessLockChannelAdapter
import io.flutter.embedding.engine.plugins.FlutterPlugin
class PhotosPlatformPlugin : FlutterPlugin {
- private val deviceHealthAdapter = DeviceHealthChannelAdapter()
+ private val channelRouter = PhotosPlatformChannelRouter()
private val processLockAdapter = ProcessLockChannelAdapter()
override fun onAttachedToEngine(binding: FlutterPlugin.FlutterPluginBinding) {
- deviceHealthAdapter.attach(binding)
+ channelRouter.attach(binding)
processLockAdapter.attach(binding)
}
override fun onDetachedFromEngine(binding: FlutterPlugin.FlutterPluginBinding) {
- deviceHealthAdapter.detach()
+ channelRouter.detach()
processLockAdapter.detach()
}
}