浏览代码

CTMediator-Targets 修改-wm

wangmeng 2 年之前
父节点
当前提交
df57bcd081

+ 16 - 2
Asteria.xcodeproj/project.pbxproj

@@ -56,6 +56,7 @@
 		9A7DA6A12A0CE33500136974 /* Asteria.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9A7DA6A02A0CE33500136974 /* Asteria.xcassets */; };
 		9A8DD8C52A0B8F1700573324 /* As_GoodsSizeC.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A8DD8C42A0B8F1700573324 /* As_GoodsSizeC.m */; };
 		9A8DD8C82A0B93F700573324 /* GoodsDetailsVM.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A8DD8C72A0B93F600573324 /* GoodsDetailsVM.m */; };
+		9ACBEC212A14585300A8F97A /* CTMediator+ASTargerts.m in Sources */ = {isa = PBXBuildFile; fileRef = 9ACBEC202A14585300A8F97A /* CTMediator+ASTargerts.m */; };
 		9AD3459E2A08D545005CA070 /* GoodsDetailSrcView.m in Sources */ = {isa = PBXBuildFile; fileRef = 9AD3459D2A08D545005CA070 /* GoodsDetailSrcView.m */; };
 		9AD345A72A08D571005CA070 /* TYPageControl.m in Sources */ = {isa = PBXBuildFile; fileRef = 9AD345A32A08D571005CA070 /* TYPageControl.m */; };
 		9AD345A82A08D571005CA070 /* TYCyclePagerView.m in Sources */ = {isa = PBXBuildFile; fileRef = 9AD345A42A08D571005CA070 /* TYCyclePagerView.m */; };
@@ -186,8 +187,6 @@
 		81C3B45029F669C900D79294 /* ColorDefine.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ColorDefine.h; sourceTree = "<group>"; };
 		81C3B45329F66C1700D79294 /* UIView+PublicInit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "UIView+PublicInit.h"; sourceTree = "<group>"; };
 		81C3B45429F66C1700D79294 /* UIView+PublicInit.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "UIView+PublicInit.m"; sourceTree = "<group>"; };
-		9A2027F32A137B6A00FF4DAF /* Asteria.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Asteria.entitlements; sourceTree = "<group>"; };
-		9A2027F42A137B8600FF4DAF /* AuthenticationServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AuthenticationServices.framework; path = System/Library/Frameworks/AuthenticationServices.framework; sourceTree = SDKROOT; };
 		81E257EC2A120756004EEF71 /* ASUserCenterTopView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ASUserCenterTopView.h; sourceTree = "<group>"; };
 		81E257ED2A120756004EEF71 /* ASUserCenterTopView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ASUserCenterTopView.m; sourceTree = "<group>"; };
 		81E257F12A120975004EEF71 /* ASUserBaseInfoView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ASUserBaseInfoView.h; sourceTree = "<group>"; };
@@ -196,6 +195,8 @@
 		81E257F82A122AC6004EEF71 /* ASUI.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = ASUI.xcassets; sourceTree = "<group>"; };
 		81E257FB2A12340E004EEF71 /* ASEnterItemV.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ASEnterItemV.h; sourceTree = "<group>"; };
 		81E257FC2A12340E004EEF71 /* ASEnterItemV.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ASEnterItemV.m; sourceTree = "<group>"; };
+		9A2027F32A137B6A00FF4DAF /* Asteria.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Asteria.entitlements; sourceTree = "<group>"; };
+		9A2027F42A137B8600FF4DAF /* AuthenticationServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AuthenticationServices.framework; path = System/Library/Frameworks/AuthenticationServices.framework; sourceTree = SDKROOT; };
 		9A337E362A04EE1A00D058A5 /* Target_B.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Target_B.m; sourceTree = "<group>"; };
 		9A337E372A04EE1A00D058A5 /* Target_B.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Target_B.h; sourceTree = "<group>"; };
 		9A337E382A04EE1A00D058A5 /* BViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BViewController.h; sourceTree = "<group>"; };
@@ -214,6 +215,8 @@
 		9A8DD8C42A0B8F1700573324 /* As_GoodsSizeC.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = As_GoodsSizeC.m; sourceTree = "<group>"; };
 		9A8DD8C62A0B93F600573324 /* GoodsDetailsVM.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GoodsDetailsVM.h; sourceTree = "<group>"; };
 		9A8DD8C72A0B93F600573324 /* GoodsDetailsVM.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GoodsDetailsVM.m; sourceTree = "<group>"; };
+		9ACBEC1F2A14585300A8F97A /* CTMediator+ASTargerts.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CTMediator+ASTargerts.h"; sourceTree = "<group>"; };
+		9ACBEC202A14585300A8F97A /* CTMediator+ASTargerts.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "CTMediator+ASTargerts.m"; sourceTree = "<group>"; };
 		9AD3459C2A08D545005CA070 /* GoodsDetailSrcView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GoodsDetailSrcView.h; sourceTree = "<group>"; };
 		9AD3459D2A08D545005CA070 /* GoodsDetailSrcView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GoodsDetailSrcView.m; sourceTree = "<group>"; };
 		9AD345A12A08D571005CA070 /* TYCyclePagerView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TYCyclePagerView.h; sourceTree = "<group>"; };
@@ -427,6 +430,7 @@
 		8172449C29F3B2ED005FA9C9 /* Asteria */ = {
 			isa = PBXGroup;
 			children = (
+				9ACBEC1E2A1457E800A8F97A /* CTMediatoaTargets */,
 				9A2027F32A137B6A00FF4DAF /* Asteria.entitlements */,
 				81C3B44F29F6699900D79294 /* PreFixHeader.h */,
 				9A8DD8CC2A0B9E0C00573324 /* Assets */,
@@ -631,6 +635,15 @@
 			path = Assets;
 			sourceTree = "<group>";
 		};
+		9ACBEC1E2A1457E800A8F97A /* CTMediatoaTargets */ = {
+			isa = PBXGroup;
+			children = (
+				9ACBEC1F2A14585300A8F97A /* CTMediator+ASTargerts.h */,
+				9ACBEC202A14585300A8F97A /* CTMediator+ASTargerts.m */,
+			);
+			path = CTMediatoaTargets;
+			sourceTree = "<group>";
+		};
 		9AD3459F2A08D55D005CA070 /* Banner */ = {
 			isa = PBXGroup;
 			children = (
@@ -1109,6 +1122,7 @@
 				9AD346042A08D60F005CA070 /* ZFKVOController.m in Sources */,
 				9A8DD8C82A0B93F700573324 /* GoodsDetailsVM.m in Sources */,
 				9AD346132A08D60F005CA070 /* ZFLoadingView.m in Sources */,
+				9ACBEC212A14585300A8F97A /* CTMediator+ASTargerts.m in Sources */,
 				8134C1AD2A13094F006EB0EC /* Target_userCenter.m in Sources */,
 				81E257F32A120975004EEF71 /* ASUserBaseInfoView.m in Sources */,
 				8172449F29F3B2ED005FA9C9 /* AppDelegate.m in Sources */,

+ 24 - 0
Asteria/CTMediatoaTargets/CTMediator+ASTargerts.h

@@ -0,0 +1,24 @@
+//
+//  CTMediator+ASTargerts.h
+//  Asteria
+//
+//  Created by 王猛 on 2023/5/17.
+//
+
+#import <CTMediator/CTMediator.h>
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface CTMediator (ASTargerts)
+-(UIViewController *)B_viewControllerWithContentText:(NSDictionary *)params;
+
+///商品详情页面
+-(UIViewController *)Goods_GoodsDetaileC:(NSDictionary *)params;
+
+///登录页面
+-(UIViewController *)Login_LoginC:(NSDictionary *)params;
+-(UIViewController *)getUserCenterVc:(NSDictionary *)params;
+@end
+
+NS_ASSUME_NONNULL_END

+ 28 - 0
Asteria/CTMediatoaTargets/CTMediator+ASTargerts.m

@@ -0,0 +1,28 @@
+//
+//  CTMediator+ASTargerts.m
+//  Asteria
+//
+//  Created by 王猛 on 2023/5/17.
+//
+
+#import "CTMediator+ASTargerts.h"
+
+@implementation CTMediator (ASTargerts)
+
+
+-(UIViewController *)Goods_GoodsDetaileC:(NSDictionary *)params{
+    return [self performTarget:@"Goods" action:@"GoodsDetaileC" params:params shouldCacheTarget:NO];
+}
+
+-(UIViewController *)Login_LoginC:(NSDictionary *)params{
+    return [self performTarget:@"Login" action:@"AS_LoginC" params:params shouldCacheTarget:NO];
+}
+
+
+-(UIViewController *)B_viewControllerWithContentText:(NSDictionary *)params{
+    return [self performTarget:@"B" action:@"viewController" params:params shouldCacheTarget:NO];
+}
+-(UIViewController *)getUserCenterVc:(NSDictionary *)params{
+    return [self performTarget:@"B" action:@"viewController" params:params shouldCacheTarget:NO];
+}
+@end

+ 1 - 0
Asteria/PreFixHeader.h

@@ -13,6 +13,7 @@
 #import "UIColor+AS.h"
 #import "ColorDefine.h"
 #import "SizeDefine.h"
+#import "CTMediator+ASTargerts.h"
 
 ///基础库的导入内容
 #import <WMBase/WMBase.h>

+ 1 - 0
Podfile

@@ -24,6 +24,7 @@ target 'Asteria' do
   pod 'Toast'
   # 检测网络状态
   pod 'Reachability'
+  pod 'CTMediator'
 
   #评价---星星
   pod 'HCSStarRatingView', '~> 1.5'

+ 2 - 1
Podfile.lock

@@ -1130,6 +1130,7 @@ PODS:
 DEPENDENCIES:
   - AFNetworking
   - Bugly
+  - CTMediator
   - FBSDKLoginKit
   - FirebaseAnalytics
   - FirebaseCore
@@ -1244,6 +1245,6 @@ SPEC CHECKSUMS:
   YTKNetwork: c16be90b06be003de9e9cd0d3b187cc8eaf35c04
   YYCache: 8105b6638f5e849296c71f331ff83891a4942952
 
-PODFILE CHECKSUM: c0099ce859b6bca3267c56f1bb17e4c866385446
+PODFILE CHECKSUM: 9e16269a21fd5c9c1688e530bba69cffe563a650
 
 COCOAPODS: 1.12.1

+ 2 - 1
Pods/Manifest.lock

@@ -1130,6 +1130,7 @@ PODS:
 DEPENDENCIES:
   - AFNetworking
   - Bugly
+  - CTMediator
   - FBSDKLoginKit
   - FirebaseAnalytics
   - FirebaseCore
@@ -1244,6 +1245,6 @@ SPEC CHECKSUMS:
   YTKNetwork: c16be90b06be003de9e9cd0d3b187cc8eaf35c04
   YYCache: 8105b6638f5e849296c71f331ff83891a4942952
 
-PODFILE CHECKSUM: c0099ce859b6bca3267c56f1bb17e4c866385446
+PODFILE CHECKSUM: 9e16269a21fd5c9c1688e530bba69cffe563a650
 
 COCOAPODS: 1.12.1

文件差异内容过多而无法显示
+ 14541 - 14540
Pods/Pods.xcodeproj/project.pbxproj


+ 0 - 1
Pods/Target Support Files/WMBase/WMBase-umbrella.h

@@ -10,7 +10,6 @@
 #endif
 #endif
 
-#import "CTMediator+Targets.h"
 #import "TT_GeneralProfile.h"
 #import "UCMBaseC.h"
 #import "UCMHttpRequest.h"