File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import 'dart:io';
77import 'package:ffigen/ffigen.dart' as fg;
88import 'package:logging/logging.dart' ;
99import 'package:pub_semver/pub_semver.dart' ;
10+ import 'package:swift2objc/swift2objc.dart' as swift2objc;
1011import 'package:swiftgen/swiftgen.dart' ;
1112
1213Future <void > main () async {
@@ -23,7 +24,7 @@ Future<void> main() async {
2324 ),
2425 ),
2526 inputs: const [SwiftModuleInput (module: 'AVFAudio' )],
26- include: (d) => d.name == 'AVAudioPlayer' ,
27+ include: (swift2objc. Declaration d) => d.name == 'AVAudioPlayer' ,
2728 output: Output (
2829 swiftWrapperFile: SwiftWrapperFile (
2930 path: Uri .file ('avf_audio_wrapper.swift' ),
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ dependencies:
1616 logging : ^1.3.0
1717 objective_c : ^9.1.0-dev
1818 pub_semver : ^2.2.0
19+ swift2objc : ^0.1.0
1920 swiftgen :
2021 path : ..
2122
You can’t perform that action at this time.
0 commit comments