
主要变更: 1. 新增 clean_localizable_optimized.py 脚本,用于清理 Localizable.strings 文件,只保留使用的 key,并移除多余空行。 2. 优化了清理逻辑,支持多语言版本的处理,提升了文件的整洁性和可维护性。 3. 生成清理报告,显示保留和删除的 key 数量及删除率。 此更新旨在提高本地化文件的管理效率,减少冗余内容。
57 lines
1.4 KiB
Plaintext
57 lines
1.4 KiB
Plaintext
//
|
|
// PrefixHeader.pch
|
|
// YuMi
|
|
//
|
|
// Created by admin on 2023/3/9.
|
|
//
|
|
|
|
#ifndef PrefixHeader_pch
|
|
#define PrefixHeader_pch
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#define AppName ([[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"])
|
|
|
|
#define isEnterprise \
|
|
({BOOL isEnterprise = NO;\
|
|
if (@available(iOS 11.0, *)) {\
|
|
NSString *bundleID = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"];\
|
|
isEnterprise = [bundleID isEqualToString:@"com.hflighting.yumi"];\
|
|
}\
|
|
(isEnterprise);})
|
|
|
|
#ifdef DEBUG
|
|
#define NSLog(fmt,...) NSLog((@"%s [Line %d]" fmt),__PRETTY_FUNCTION__,__LINE__,##__VA_ARGS__)
|
|
#else
|
|
#define NSLog(...)
|
|
#endif
|
|
#import <MJRefresh/MJRefresh.h>
|
|
#import "YUMIMacroUitls.h"
|
|
#import <Masonry/Masonry.h>
|
|
#import "NSArray+Safe.h"
|
|
#import "NSMutableArray+Safe.h"
|
|
#import "UIImage+Utils.h"
|
|
#import "XNDJTDDLoadingTool.h"
|
|
#import "DJDKMIMOMColor.h"
|
|
#import "YUMIHtmlUrl.h"
|
|
#import "NSArray+Safe.h"
|
|
#import "NSString+Utils.h"
|
|
#import "UIView+Corner.h"
|
|
#import "UIView+GradientLayer.h"
|
|
#import "TTPopup.h"
|
|
#import "NSDate+DateUtils.h"
|
|
#import "NSMutableDictionary+Saft.h"
|
|
#import "NetImageView.h"
|
|
#import "AccountInfoStorage.h"
|
|
#import "YYUtility.h"
|
|
#import <MJExtension/MJExtension.h>
|
|
#import "YUMIConstant.h"
|
|
#import "YUMINNNN.h"
|
|
#import "NSObject+MJExtension.h"
|
|
#import "HttpRequestHelper.h"
|
|
#import "BSNetListenModel.h"
|
|
#import "PIBaseModel.h"
|
|
#import "PLTimeUtil.h"
|
|
#import "UIImage+ImageEffects.h"
|
|
#endif /* PrefixHeader_pch */
|