Skip to content

[ffigen] Generate ResourceIdentifiers for Objective-C #1099

Open
@dcharkes

Description

@dcharkes

For tree-shaking we want to generate ResourceIdentifier annotations.

For C:

For JNIgen:

Probably for Objective-C (and Swift?) we could or should do something similar. The idea for C code is to compile to a static lib with all symbols in build.dart and then call the native linker in link.dart and pass the exact list of C symbols to keep based on what @Natives (annotated with @ResourceIdentifier) are reachable after TFA. Would a similar approach work for Objective-C @liamappelbe?

I presume that for the actual classes in Objective-C we might need something more similar to JNIgen, where we generate @ResourceIdentifiers for the classes and instance methods.

Same questions to answer here:

  • What do we need from the resource.json format?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions