优化提示

master
胡健辉 2023-06-01 15:26:07 +08:00
parent 4e730d1762
commit 0722219383
6 changed files with 51 additions and 12 deletions

View File

@ -213,6 +213,7 @@
D6471BF82A2485AC0054EF34 /* Sources */, D6471BF82A2485AC0054EF34 /* Sources */,
D6471BF92A2485AC0054EF34 /* Frameworks */, D6471BF92A2485AC0054EF34 /* Frameworks */,
D6471BFA2A2485AC0054EF34 /* Resources */, D6471BFA2A2485AC0054EF34 /* Resources */,
2C2B78170F943E98E53F29C2 /* [CP] Embed Pods Frameworks */,
); );
buildRules = ( buildRules = (
); );
@ -269,6 +270,23 @@
/* End PBXResourcesBuildPhase section */ /* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */
2C2B78170F943E98E53F29C2 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-FinDemo/Pods-FinDemo-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-FinDemo/Pods-FinDemo-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-FinDemo/Pods-FinDemo-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
F52F36A7EFE87448174DEB10 /* [CP] Check Pods Manifest.lock */ = { F52F36A7EFE87448174DEB10 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase; isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;

View File

@ -8,14 +8,17 @@
#import "AppDelegate.h" #import "AppDelegate.h"
#import <FinApplet/FinApplet.h> #import <FinApplet/FinApplet.h>
/*
SDK
bundleidsdkKeysdkSecretbundleidSDK
*/
static NSString *sdkKey1 = @"22LyZEib0gLTQdU3MUauATBwgfnTCJjdr7FCnywmAEM="; static NSString *sdkKey1 = @"22LyZEib0gLTQdU3MUauATBwgfnTCJjdr7FCnywmAEM=";
static NSString *sdkSecret1 = @"bdfd76cae24d4313"; static NSString *sdkSecret1 = @"bdfd76cae24d4313";
static NSString *apiServer1 = @"https://api.finclip.com"; static NSString *apiServer1 = @"https://api.finclip.com";
//static NSString *sdkKey1 = @"";
//static NSString *sdkKey1 = @"";
static NSString *sdkKey2 = @"";
static NSString *sdkSecret2 = @"";
static NSString *apiServer2 = @"";
@interface AppDelegate () @interface AppDelegate ()
@ -32,12 +35,22 @@ static NSString *apiServer1 = @"https://api.finclip.com";
[self.window makeKeyAndVisible]; [self.window makeKeyAndVisible];
NSMutableArray *storeArrayM = [NSMutableArray array]; NSMutableArray *storeArrayM = [NSMutableArray array];
FATStoreConfig *storeConfig = [[FATStoreConfig alloc] init]; FATStoreConfig *storeConfig1 = [[FATStoreConfig alloc] init];
storeConfig.sdkKey = sdkKey1; storeConfig1.sdkKey = sdkKey1;
storeConfig.sdkSecret = sdkSecret1; storeConfig1.sdkSecret = sdkSecret1;
storeConfig.apiServer = apiServer1; storeConfig1.apiServer = apiServer1;
storeConfig.cryptType = FATApiCryptTypeSM; storeConfig1.cryptType = FATApiCryptTypeSM;
[storeArrayM addObject:storeConfig]; [storeArrayM addObject:storeConfig1];
/*
,SDK
*/
// FATStoreConfig *storeConfig2 = [[FATStoreConfig alloc] init];
// storeConfig2.sdkKey = sdkKey2;
// storeConfig2.sdkSecret = sdkSecret2;
// storeConfig2.apiServer = apiServer2;
// storeConfig2.cryptType = FATApiCryptTypeSM;
// [storeArrayM addObject:storeConfig2];
FATConfig *config = [FATConfig configWithStoreConfigs:storeArrayM]; FATConfig *config = [FATConfig configWithStoreConfigs:storeArrayM];
/* /*

View File

@ -24,7 +24,7 @@ static NSString *cellID = @"cellid";
@{@"title" : @"日志管理", @"class" : @"FinManageViewController"}, @{@"title" : @"日志管理", @"class" : @"FinManageViewController"},
@{@"title" : @"UI样式自定义", @"class" : @"FinCustomUIViewController"}, @{@"title" : @"UI样式自定义", @"class" : @"FinCustomUIViewController"},
@{@"title" : @"api自定义", @"class" : @"FinCustomApiViewController"}, @{@"title" : @"api自定义", @"class" : @"FinCustomApiViewController"},
// @{@"title" : @"", @"class" : @""}, @{@"title" : @"代理方法", @"class" : @"FinDelegateViewController"},
].mutableCopy; ].mutableCopy;
[self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:cellID]; [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:cellID];
} }

View File

@ -8,7 +8,7 @@
#import "FinManageViewController.h" #import "FinManageViewController.h"
#import <FinApplet/FinApplet.h> #import <FinApplet/FinApplet.h>
@interface FinManageViewController () @interface FinManageViewController ()<FATAppletLogDelegate>
@end @end
@ -19,6 +19,7 @@
NSArray *patchs = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSArray *patchs = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [patchs objectAtIndex:0]; NSString *documentsDirectory = [patchs objectAtIndex:0];
NSString *logDir = [documentsDirectory stringByAppendingPathComponent:@"ABC_FinClip_LogFiles"]; NSString *logDir = [documentsDirectory stringByAppendingPathComponent:@"ABC_FinClip_LogFiles"];
NSLog(@"记录日志的路径是:%@", logDir);
//levellog //levellog
[[FATClient sharedClient].logManager initLogWithLogDir:logDir logLevel:FATLogLevelDebug consoleLog:YES]; [[FATClient sharedClient].logManager initLogWithLogDir:logDir logLevel:FATLogLevelDebug consoleLog:YES];

View File

@ -33,6 +33,10 @@
*/ */
- (instancetype)init { - (instancetype)init {
if (self = [super init]) { if (self = [super init]) {
//loading便
[[FATClient sharedClient] clearMemoryCache];
[[FATClient sharedClient] clearLocalApplets];
//loading //loading
[FATClient sharedClient].config.baseLoadingViewClass = @"LoadingView"; [FATClient sharedClient].config.baseLoadingViewClass = @"LoadingView";
} }

View File

@ -113,4 +113,7 @@
NSLog(@"%@", NSStringFromSelector(_cmd)); NSLog(@"%@", NSStringFromSelector(_cmd));
} }
- (void)dealloc {
[FATClient sharedClient].lifeCycleDelegate = nil;
}
@end @end