
Pass in the minimum iOS and MacOS version. Roll dart-lang/native deps. Related issues: * https://github.com/flutter/flutter/issues/145104 * Relevant discussion: https://github.com/flutter/flutter/pull/148504
27 lines
753 B
Cheetah
27 lines
753 B
Cheetah
import 'package:native_toolchain_c/native_toolchain_c.dart';
|
|
import 'package:logging/logging.dart';
|
|
import 'package:native_assets_cli/native_assets_cli.dart';
|
|
|
|
const packageName = '{{projectName}}';
|
|
|
|
void main(List<String> args) async {
|
|
await build(args, (config, output) async {
|
|
final packageName = config.packageName;
|
|
final cbuilder = CBuilder.library(
|
|
name: packageName,
|
|
assetName: '${packageName}_bindings_generated.dart',
|
|
sources: [
|
|
'src/$packageName.c',
|
|
],
|
|
dartBuildFiles: ['hook/build.dart'],
|
|
);
|
|
await cbuilder.run(
|
|
config: config,
|
|
output: output,
|
|
logger: Logger('')
|
|
..level = Level.ALL
|
|
..onRecord.listen((record) => print(record.message)),
|
|
);
|
|
});
|
|
}
|