
主要变更: 1. 新增 clean_localizable_optimized.py 脚本,用于清理 Localizable.strings 文件,只保留使用的 key,并移除多余空行。 2. 优化了清理逻辑,支持多语言版本的处理,提升了文件的整洁性和可维护性。 3. 生成清理报告,显示保留和删除的 key 数量及删除率。 此更新旨在提高本地化文件的管理效率,减少冗余内容。
58 lines
1.4 KiB
Ruby
58 lines
1.4 KiB
Ruby
# Uncomment the next line to define a global platform for your project
|
|
platform :ios, '13.0'
|
|
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
|
|
|
|
project 'YuMi.xcodeproj'
|
|
|
|
target 'YuMi' do
|
|
use_frameworks!
|
|
|
|
pod 'MJExtension', '3.4.2'
|
|
|
|
pod 'SDWebImage', '5.21.3'
|
|
|
|
pod 'AFNetworking'
|
|
|
|
pod 'Masonry'
|
|
|
|
pod 'YYWebImage'
|
|
pod 'SZTextView'
|
|
pod 'SDCycleScrollView'
|
|
pod 'ReactiveObjC'
|
|
pod 'MBProgressHUD'
|
|
pod 'FFPopup'
|
|
pod 'MJRefresh', '3.7.9'
|
|
pod 'IQKeyboardManager'
|
|
pod 'TZImagePickerController'
|
|
|
|
pod 'SSKeychain'
|
|
pod 'Base64'
|
|
|
|
pod 'pop'
|
|
|
|
pod 'ZLCollectionViewFlowLayout'
|
|
pod 'TABAnimated'
|
|
pod 'YuMi',:path=>'yum'
|
|
pod 'QCloudCOSXML'
|
|
pod 'TYCyclePagerView'
|
|
|
|
pod 'SnapKit', '~> 5.0'
|
|
|
|
end
|
|
|
|
post_install do |installer|
|
|
installer.generated_projects.each do |project|
|
|
project.targets.each do |target|
|
|
target.build_configurations.each do |config|
|
|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
|
|
config.build_settings['DEBUG_INFORMATION_FORMAT'] = 'dwarf-with-dsym'
|
|
config.build_settings['ENABLE_BITCODE'] = 'NO'
|
|
xcconfig_path = config.base_configuration_reference.real_path
|
|
xcconfig = File.read(xcconfig_path)
|
|
xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
|
|
File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
|
|
end
|
|
end
|
|
end
|
|
end
|