Commit d196bc086dc745da2a9c9c2abc7e6b621e542656

Authored by liushiyu
1 parent 17cd4549

支付功能添加

@@ -35,6 +35,8 @@ target 'metaCode' do @@ -35,6 +35,8 @@ target 'metaCode' do
35 pod 'HXPHPicker' 35 pod 'HXPHPicker'
36 #七牛 36 #七牛
37 pod 'Qiniu' 37 pod 'Qiniu'
  38 + #支付组件
  39 + pod 'CNLivePayCostModule'
38 #加载GIF 40 #加载GIF
39 pod 'SwiftGifOrigin', '~> 1.7.0' 41 pod 'SwiftGifOrigin', '~> 1.7.0'
40 #数据库存储 42 #数据库存储
@@ -145,3 +147,4 @@ post_install do |installer| @@ -145,3 +147,4 @@ post_install do |installer|
145 end 147 end
146 end 148 end
147 end 149 end
  150 +
metaCode.xcodeproj/project.pbxproj
@@ -2362,6 +2362,7 @@ @@ -2362,6 +2362,7 @@
2362 "-weak_framework", 2362 "-weak_framework",
2363 "\"SwiftUI\"", 2363 "\"SwiftUI\"",
2364 ); 2364 );
  2365 + OTHER_SWIFT_FLAGS = "$(inherited) -D COCOAPODS -Xcc -Wno-error=non-modular-include-in-framework-module";
2365 PRODUCT_BUNDLE_IDENTIFIER = com.cnlive.metaCode; 2366 PRODUCT_BUNDLE_IDENTIFIER = com.cnlive.metaCode;
2366 PRODUCT_NAME = "$(TARGET_NAME)"; 2367 PRODUCT_NAME = "$(TARGET_NAME)";
2367 PROVISIONING_PROFILE_SPECIFIER = ""; 2368 PROVISIONING_PROFILE_SPECIFIER = "";
@@ -2616,6 +2617,7 @@ @@ -2616,6 +2617,7 @@
2616 "-weak_framework", 2617 "-weak_framework",
2617 "\"SwiftUI\"", 2618 "\"SwiftUI\"",
2618 ); 2619 );
  2620 + OTHER_SWIFT_FLAGS = "$(inherited) -D COCOAPODS -Xcc -Wno-error=non-modular-include-in-framework-module";
2619 PRODUCT_BUNDLE_IDENTIFIER = com.cnlive.metaCode; 2621 PRODUCT_BUNDLE_IDENTIFIER = com.cnlive.metaCode;
2620 PRODUCT_NAME = "$(TARGET_NAME)"; 2622 PRODUCT_NAME = "$(TARGET_NAME)";
2621 PROVISIONING_PROFILE_SPECIFIER = ""; 2623 PROVISIONING_PROFILE_SPECIFIER = "";
metaCode/Classes/Other/AppDelegate.swift
@@ -9,7 +9,8 @@ import UIKit @@ -9,7 +9,8 @@ import UIKit
9 import CNLiveRequestBastKit 9 import CNLiveRequestBastKit
10 import IQKeyboardManagerSwift 10 import IQKeyboardManagerSwift
11 import CNLiveShareToolKit 11 import CNLiveShareToolKit
12 -import RangersAPM 12 +//import RangersAPM
  13 +import CNLivePayCostModule
13 14
14 @main 15 @main
15 class AppDelegate: UIResponder, UIApplicationDelegate { 16 class AppDelegate: UIResponder, UIApplicationDelegate {
@@ -48,20 +49,22 @@ class AppDelegate: UIResponder, UIApplicationDelegate { @@ -48,20 +49,22 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
48 window?.makeKeyAndVisible() 49 window?.makeKeyAndVisible()
49 50
50 ///设置APM监控SDK 51 ///设置APM监控SDK
51 - let apmConfig = RangersAPMConfig.init(appID: "591048", appToken: "8dcc7f8b0a3a4aee8ef698311ef89a62")  
52 - apmConfig.channel = "App Store"  
53 - apmConfig.deviceIDSource = .fromAPMService  
54 - apmConfig.defaultMonitors = .apmCrashMonitorSwitch  
55 - RangersAPM.setUserID(is_login ? UserInfoManager.shared.userInfo.uid : "userID")  
56 - RangersAPM.allowDebugLog { log in  
57 - print("APMPlus : %@",log)  
58 - }  
59 - RangersAPM.start(with: apmConfig) 52 +// let apmConfig = RangersAPMConfig.init(appID: "591048", appToken: "8dcc7f8b0a3a4aee8ef698311ef89a62")
  53 +// apmConfig.channel = "App Store"
  54 +// apmConfig.deviceIDSource = .fromAPMService
  55 +// apmConfig.defaultMonitors = .apmCrashMonitorSwitch
  56 +// RangersAPM.setUserID(is_login ? UserInfoManager.shared.userInfo.uid : "userID")
  57 +// RangersAPM.allowDebugLog { log in
  58 +// print("APMPlus : %@",log)
  59 +// }
  60 +// RangersAPM.start(with: apmConfig)
60 61
61 62
62 AppDelegate_configRequestManager() 63 AppDelegate_configRequestManager()
63 AppDelegate_configIQKeyboardManager() 64 AppDelegate_configIQKeyboardManager()
64 65
  66 + CNLivePayCostModule.
  67 +
65 //认证-下滑原生页数据库 68 //认证-下滑原生页数据库
66 let databasePath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first! 69 let databasePath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first!
67 let filePath = "\(databasePath)/CNLiveDownSlideModelDataBase.db" 70 let filePath = "\(databasePath)/CNLiveDownSlideModelDataBase.db"