dart-native / codegen

Generator for dart_native bindings. Codegen can transform native SDK to Flutter plugin.
BSD 3-Clause "New" or "Revised" License
79 stars 3 forks source link

odd import statements #45

Open bsutton opened 3 years ago

bsutton commented 3 years ago

I'm trying to generate code for the IOS AVFoundation.h headers.

I've managed to get it to generate code (with lots of errors and warnings as it does the generation).

However I'm seeing some odd dart import statements in the generated code:

// You can uncomment this line when this package is ready
// import 'package:fondation/foundation.dart'

So two questions: When am I meant to uncomment this lines? When is the 'package ready'? Do I just need to uncomment these lines after the code gen.

2) the import has a package statement. Does this mean that I need to generate a separate package for each set of headers in ios?

yulingtianxia commented 3 years ago
  1. When codegen can generate foundation without throw errors, we can uncomment this line. Our ultimate goal is generating all basic frameworks in iOS and Android. This is when "package ready".

  2. Yes. You need generated code recursively. If you have a plan much more better, please tell me.