Change directory management

This commit is contained in:
problematicconsumer
2023-10-26 13:51:20 +03:30
parent d4a4c3484a
commit f85163476d
10 changed files with 98 additions and 94 deletions

View File

@@ -34,12 +34,9 @@ class MethodHandler(private val scope: CoroutineScope) : FlutterPlugin,
}
override fun onAttachedToEngine(flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) {
val taskQueue = flutterPluginBinding.binaryMessenger.makeBackgroundTaskQueue()
channel = MethodChannel(
flutterPluginBinding.binaryMessenger,
channelName,
StandardMethodCodec.INSTANCE,
taskQueue
)
channel!!.setMethodCallHandler(this)
}

View File

@@ -33,7 +33,7 @@ class PlatformSettingsHandler : FlutterPlugin, MethodChannel.MethodCallHandler,
private lateinit var ignoreRequestResult: MethodChannel.Result
companion object {
const val channelName = "com.hiddify.app/platform.settings"
const val channelName = "app.hiddify.com/platform"
const val REQUEST_IGNORE_BATTERY_OPTIMIZATIONS = 44
val gson = Gson()