0xPolygonID/polygonid-flutter-sdk

lack of @pragma('vm:entry-point') on entry point function `Future<void> init(List? env) async` for polygonid-flutter-wrapper

Closed this issue · 3 comments

https://github.com/0xPolygonID/polygonid-flutter-sdk/blob/76dbb9b7ac61cc0b95733c92c670ed5d446273a0/polygonid-flutter-wrapper/lib/main.dart#L11C1-L20C2

In Flutter module project https://github.com/0xPolygonID/polygonid-flutter-sdk/blob/76dbb9b7ac61cc0b95733c92c670ed5d446273a0/polygonid-flutter-wrapper

If we run flutter build ios-framework with release mode,

flutter build ios-framework --no-debug --no-profile

The init() function will be stripped, can cause a error when run code like this:

flutterEngine.run(
            withEntrypoint: "init",
            libraryURI: "package:polygonid_flutter_wrapper/main.dart",
            initialRoute: nil,
            entrypointArgs: nil
        )

This issue is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 10 days.

This issue is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 10 days.

This issue was closed because it has been stalled for 10 days with no activity.