接入友盟统计与 U-APM,并优化宣传页打卡点标签交互。
友盟 SDK 改为隐私同意后再初始化;宣传页标签新增滑块位移动画,超过 5 个时选中项自动滚动居中。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
36
suixinkan/App/UMengSDKAdapter.m
Normal file
36
suixinkan/App/UMengSDKAdapter.m
Normal file
@ -0,0 +1,36 @@
|
||||
//
|
||||
// UMengSDKAdapter.m
|
||||
// suixinkan
|
||||
//
|
||||
// Created by Codex on 2026/7/2.
|
||||
//
|
||||
|
||||
#import "UMengSDKAdapter.h"
|
||||
#import <UMCommon/UMCommon.h>
|
||||
#import <UMAPM/UMAPMConfig.h>
|
||||
#import <UMAPM/UMCrashConfigure.h>
|
||||
|
||||
@implementation UMengSDKAdapter
|
||||
|
||||
+ (void)configureWithAppKey:(NSString *)appKey
|
||||
channel:(NSString *)channel
|
||||
crashAndBlockMonitorEnable:(BOOL)crashAndBlockMonitorEnable
|
||||
launchMonitorEnable:(BOOL)launchMonitorEnable
|
||||
memMonitorEnable:(BOOL)memMonitorEnable
|
||||
oomMonitorEnable:(BOOL)oomMonitorEnable
|
||||
networkEnable:(BOOL)networkEnable
|
||||
logCollectEnable:(BOOL)logCollectEnable {
|
||||
UMAPMConfig *config = [UMAPMConfig defaultConfig];
|
||||
config.crashAndBlockMonitorEnable = crashAndBlockMonitorEnable;
|
||||
config.launchMonitorEnable = launchMonitorEnable;
|
||||
config.memMonitorEnable = memMonitorEnable;
|
||||
config.oomMonitorEnable = oomMonitorEnable;
|
||||
config.networkEnable = networkEnable;
|
||||
config.logCollectEnable = logCollectEnable;
|
||||
|
||||
[UMConfigure setLogEnabled:NO];
|
||||
[UMCrashConfigure setAPMConfig:config];
|
||||
[UMConfigure initWithAppkey:appKey channel:channel];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user