1. 基础适配升级:将iOS最低版本提升至15.5,更新Podfile与Xcode配置 2. 导航栈优化:使用push替代go保留路由栈,重构路由重定向逻辑 3. 多场景崩溃防护: - 新增目录获取降级逻辑,适配异常环境 - 增加上下文挂载检查,防止PostFrame回调崩溃 - 完善Hive初始化与Box访问的异常处理,实现空操作降级 4. 体验优化: - 修复摇一摇权限开关逻辑,更新个人中心文案 - 新增请求超时保护与异常提示 - 优化分享/保存相册的模拟器兼容处理 - 重构引导页与初始化流程,修复数据丢失问题 5. 代码清理:移除重复路由注册,优化Widget预览页面生命周期 6. 细节优化:更新微信联系方式展示样式,完善日签与备份服务逻辑
48 lines
1.4 KiB
Ruby
48 lines
1.4 KiB
Ruby
# Uncomment this line to define a global platform for your project
|
|
platform :ios, '15.5'
|
|
|
|
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
|
|
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
|
|
|
|
project 'Runner', {
|
|
'Debug' => :debug,
|
|
'Profile' => :release,
|
|
'Release' => :release,
|
|
}
|
|
|
|
def flutter_root
|
|
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
|
|
unless File.exist?(generated_xcode_build_settings_path)
|
|
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
|
|
end
|
|
|
|
File.foreach(generated_xcode_build_settings_path) do |line|
|
|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
|
|
return matches[1].strip if matches
|
|
end
|
|
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
|
|
end
|
|
|
|
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
|
|
|
|
flutter_ios_podfile_setup
|
|
|
|
target 'Runner' do
|
|
use_frameworks!
|
|
|
|
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
|
|
target 'RunnerTests' do
|
|
inherit! :search_paths
|
|
end
|
|
end
|
|
|
|
target 'XianyanWidgetExtension' do
|
|
use_frameworks!
|
|
end
|
|
|
|
post_install do |installer|
|
|
installer.pods_project.targets.each do |target|
|
|
flutter_additional_ios_build_settings(target)
|
|
end
|
|
end
|