Sunbreak

Results 198 comments of Sunbreak

If anyone interested, [cronet_flutter](https://github.com/Sunbreak/cronet_flutter) is the origin PoC of [google/cronet.dart](https://github.com/google/cronet.dart/issues), and could run in `Android/iOS` and `Windows/macOS/Linux`

Dart Native 同步/异步交互示例:https://github.com/Sunbreak/native_interop.tour Cronet的Flutter插件工程:https://github.com/Sunbreak/cronet_flutter 微信:wk2311007 我主要在做Flutter PC相关工作,有个FFI群可以多多交流~

I've tried several times: ```shell ## It works on the second build flutter clean && flutter build ios/apk --debug || flutter build ios/apk --debug ``` ``` shell ## Doesn't work...

```shell ## Doesn't work flutter build aot --debug --target-platform android-arm64 || flutter build aot --debug --target-platform android-arm64 ``` ```shell ## Doesn't work flutter build aot --debug --target-platform ios || flutter...

> I have the same problem ; do you resolved it? I've no idea what to do

Any proposal on notifying Dart side `ASYNC`hronously that `gattCharacteristic.WriteClientCharacteristicConfigurationDescriptorAsync` failed? Now we only notify `SYNC`hronously Android's failure on `writeValue`: https://github.com/woodemi/quick_blue/blob/973784ed097f61952e652a2afe093f83f7f45c40/quick_blue/android/src/main/kotlin/com/example/quick_blue/QuickBluePlugin.kt#L140-L155

Feell free to take advantage of `messageConnector/message_connector_` channel: - Android: https://github.com/woodemi/quick_blue/blob/973784ed097f61952e652a2afe093f83f7f45c40/quick_blue/android/src/main/kotlin/com/example/quick_blue/QuickBluePlugin.kt#L37 - iOS: https://github.com/woodemi/quick_blue/blob/973784ed097f61952e652a2afe093f83f7f45c40/quick_blue/ios/Classes/SwiftQuickBluePlugin.swift#L44 - macOS: https://github.com/woodemi/quick_blue/blob/973784ed097f61952e652a2afe093f83f7f45c40/quick_blue_macos/macos/Classes/QuickBlueMacosPlugin.swift#L44 - Windows: https://github.com/woodemi/quick_blue/blob/973784ed097f61952e652a2afe093f83f7f45c40/quick_blue_windows/windows/quick_blue_windows_plugin.cpp#L176-L179

Yep. The main concern is multi-thread handling of `result` object `result` is - a Java object on Android - a ObjC block on iOS - a Swift lambda object on...

> because it uses coroutines (stays on the same thread) I'm not sure about C++ coroutines, especially experimental coroutine support of C++/WinRT patched onto C++ 17 > `Using the /await...