refactor: 移除 MobLink 相关代码以简化项目结构

主要变更:
1. 从 Podfile 中移除 mob_linksdk_pro 依赖,减少项目依赖。
2. 从 AppDelegate 和相关文件中删除 MobLink 初始化及相关逻辑,清理未使用的代码。
3. 移除 ClientConfig 中的 inviteCode 属性,简化配置管理。

此更新旨在提升项目的可维护性,减少冗余依赖,确保代码结构更加清晰。
This commit is contained in:
edwinQQQ
2025-10-20 14:39:09 +08:00
parent 37e105f04f
commit 4706f4bcc6
8 changed files with 3 additions and 41 deletions

View File

@@ -54,7 +54,6 @@ target 'YuMi' do
pod 'GKCycleScrollView'
pod 'SVGAPlayer'
pod 'GoogleSignIn'
pod 'mob_linksdk_pro'
pod 'mob_sharesdk'
pod 'mob_sharesdk/ShareSDKPlatforms/Apple'
pod 'mob_sharesdk/ShareSDKExtension'

View File

@@ -54,8 +54,6 @@ PODS:
- MBProgressHUD (1.2.0)
- MJExtension (3.4.2)
- MJRefresh (3.7.9)
- mob_linksdk_pro (3.3.20):
- MOBFoundation
- mob_sharesdk (4.4.35):
- mob_sharesdk/ShareSDK (= 4.4.35)
- MOBFoundation (>= 3.2.9)
@@ -150,7 +148,6 @@ DEPENDENCIES:
- MBProgressHUD
- MJExtension (= 3.4.2)
- MJRefresh (= 3.7.9)
- mob_linksdk_pro
- mob_sharesdk
- mob_sharesdk/ShareSDKExtension
- mob_sharesdk/ShareSDKPlatforms/Apple
@@ -203,7 +200,6 @@ SPEC REPOS:
- MBProgressHUD
- MJExtension
- MJRefresh
- mob_linksdk_pro
- mob_sharesdk
- MOBFoundation
- NIMSDK_LITE
@@ -264,7 +260,6 @@ SPEC CHECKSUMS:
MBProgressHUD: 3ee5efcc380f6a79a7cc9b363dd669c5e1ae7406
MJExtension: e97d164cb411aa9795cf576093a1fa208b4a8dd8
MJRefresh: ff9e531227924c84ce459338414550a05d2aea78
mob_linksdk_pro: d6ac555e9bb8d2743a8634032a70ea1d34119a50
mob_sharesdk: 409503324d18f231dd27b4d26428c0c168b20c36
MOBFoundation: a1f193058aba95440dadeb799fb398ff92cfe45e
NIMSDK_LITE: 67f6815667acefdc8f9969f8c955b5c1fab490df
@@ -295,6 +290,6 @@ SPEC CHECKSUMS:
YYWebImage: 5f7f36aee2ae293f016d418c7d6ba05c4863e928
ZLCollectionViewFlowLayout: c99024652ce9f0c57d33ab53052c9b85e4a936b7
PODFILE CHECKSUM: d5711204ab1ef02306ef99f8becb2c93780a1210
PODFILE CHECKSUM: b0aa65c81098b0d5d2e755c0b427cfbab05d21c7
COCOAPODS: 1.16.2

View File

@@ -13735,8 +13735,6 @@
"-framework",
"\"MetalPerformanceShaders\"",
"-framework",
"\"MobLinkPro\"",
"-framework",
"\"MobileCoreServices\"",
"-framework",
"\"NIMNOS\"",
@@ -13977,8 +13975,6 @@
"-framework",
"\"MetalPerformanceShaders\"",
"-framework",
"\"MobLinkPro\"",
"-framework",
"\"MobileCoreServices\"",
"-framework",
"\"NIMNOS\"",

View File

@@ -132,13 +132,6 @@ UIKIT_EXTERN NSString * adImageName;
// [platformsRegister setupFacebookWithAppkey:@"1266232494209868" appSecret:@"c9b170b383f8be9cdf118823b8632821" displayName:YMLocalizedString(@"AppDelegate_ThirdConfig0")];
[platformsRegister setupLineAuthType:SSDKAuthorizeTypeBoth];
}];
NSString *isUpload = [[NSUserDefaults standardUserDefaults]valueForKey:@"kMobLinkUploadPrivacy"];
if (isUpload == nil){
[MobSDK uploadPrivacyPermissionStatus:YES onResult:nil];
[[NSUserDefaults standardUserDefaults] setValue:@"YES" forKey:@"kMobLinkUploadPrivacy"];
[[NSUserDefaults standardUserDefaults] synchronize];
}
}
#pragma mark -

View File

@@ -7,8 +7,6 @@
#import "AppDelegate.h"
#import <MobLinkPro/MobLink.h>
#import <MobLinkPro/MLSDKScene.h>
#import "TabbarViewController.h"
#import "BaseNavigationController.h"
#import "AppDelegate+ThirdConfig.h"
@@ -29,7 +27,7 @@
UIKIT_EXTERN NSString * const kOpenRoomNotification;
@interface AppDelegate ()<IMLSDKRestoreDelegate>
@interface AppDelegate ()
@end
@@ -114,8 +112,7 @@ void qg_VAP_Logger_handler(VAPLogLevel level, const char* file, int line, const
- (void)initUM:(UIApplication *)application
launchOptions:(NSDictionary *)launchOptions {
// MobLink
[MobLink setDelegate:self];
// MobLink
}
- (void)loadMainPage {
@@ -214,16 +211,6 @@ void qg_VAP_Logger_handler(VAPLogLevel level, const char* file, int line, const
*/
}
- (void)IMLSDKWillRestoreScene:(MLSDKScene *)scene
Restore:(void (^)(BOOL, RestoreStyle))restoreHandler {
NSString *inviteCode = scene.params[@"inviteCode"];
if (inviteCode != nil && [[AccountInfoStorage instance]getUid].length == 0){
ClientConfig *config = [ClientConfig shareConfig];
config.inviteCode = inviteCode;
}
restoreHandler(YES, MLDefault);
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
NSInteger count = [NIMSDK sharedSDK].conversationManager.allUnreadCount;
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:count];

View File

@@ -38,8 +38,6 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, copy) NSString *__nullable chatId;
///用户id推送跳转到聊天页面
@property (nonatomic, copy) NSString *__nullable pushChatId;
///邀请码,从外面进来会进入注册页面,并自动填写这个邀请码
@property(nonatomic,copy) NSString *inviteCode;
///表情---
@property (nonatomic, copy) NSString *version;
@property (nonatomic, copy) NSString *zipMd5;

View File

@@ -96,11 +96,6 @@
[self initSubViewConstraints];
[self initEvents];
[self loadAllRegions];
ClientConfig *config = [ClientConfig shareConfig];
if (config.inviteCode.length > 0){
self.inviteCode = config.inviteCode;
config.inviteCode = @"";
}
// loading
[XNDJTDDLoadingTool hideHUD];

View File

@@ -472,7 +472,6 @@ XPHomeRecommendOtherRoomViewDelegate>
header.stateLabel.textColor = [DJDKMIMOMColor secondTextColor];
header.lastUpdatedTimeLabel.textColor = [DJDKMIMOMColor secondTextColor];
self.pagingView.mainTableView.mj_header = header;
[ClientConfig shareConfig].inviteCode = @"";
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(homeVCRefreshComplete) name:@"khomeVCRefreshComplete" object:nil];
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(logOut) name:@"kInLoginVC" object:nil];