swift flutter 混合开发

303 阅读1分钟

 创建模块

 flutter create --template module MyFlutterProject

原生工程pod文件

platform :ios,'10.0'
inhibit_all_warnings!

# flutter module 文件路径
flutter_application_path = './MyFlutterProject'

load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')

target 'MyNativeFlutterProject' do
  
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!
 install_all_flutter_pods(flutter_application_path)

  # Pods for FlutterNative

end