chipweinberger / dart_ui_isolate

A flutter plugin that lets you run `dart:ui` in an isolate.
The Unlicense
14 stars 1 forks source link

Build Error - cannot find symbol DartUiIsolatePlugin #1

Closed rlueders closed 9 months ago

rlueders commented 9 months ago

I tried switching from Flutter Isolate to this new package, but get the following error when building the project.

error: cannot find symbol flutterEngine.getPlugins().add(new com.lib.dart_ui_isolate.dart_ui_isolate.DartUiIsolatePlugin()); ^ symbol: class DartUiIsolatePlugin location: package com.lib.dart_ui_isolate.dart_ui_isolate

chipweinberger commented 9 months ago

ya i didn't test android yet.

wanna help? open a pr?

rlueders commented 9 months ago

I'm seeing build errors on IOS as well. I will stick with the Flutter Isolate plugin for now.

ARC Semantic Issue (Xcode): No known class method for selector 'lookupGeneratedPluginRegistrant' /.pub-cache/hosted/pub.dev/dart_ui_isolate-1.0.0/ios/Classes/DartUiIsolatePlugin.m:69:26

ARC Semantic Issue (Xcode): No known instance method for selector 'registerWithRegistry:' /.pub-cache/hosted/pub.dev/dart_ui_isolate-1.0.0/ios/Classes/DartUiIsolatePlugin.m:69:59

chipweinberger commented 9 months ago

ok i'll fix it.

you can copy any missing code from flutter_isolate

The main reason for this package is that it supports FlutterEngineGroup which saves 100s of megabytes of memory.

So this package will be better than flutter_isolate.

The isolates also spawn much faster.

chipweinberger commented 9 months ago

Ive fixed the build errors in 1.1.0.

I have not tested it yet though on iOS and Android. I've only tested macOS so far, which works.