Explorar el Código

change class name

harry hace 3 años
padre
commit
cf9227c62d

+ 19 - 0
MusicVideoPlus.xcodeproj/xcshareddata/xcschemes/MusicVideoPlus.xcscheme

@@ -34,11 +34,13 @@
       buildConfiguration = "Debug"
       selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
       selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+      disableMainThreadChecker = "YES"
       launchStyle = "0"
       useCustomWorkingDirectory = "NO"
       ignoresPersistentStateOnLaunch = "NO"
       debugDocumentVersioning = "YES"
       debugServiceExtension = "internal"
+      enableGPUValidationMode = "1"
       allowLocationSimulation = "YES">
       <BuildableProductRunnable
          runnableDebuggingMode = "0">
@@ -50,6 +52,23 @@
             ReferencedContainer = "container:MusicVideoPlus.xcodeproj">
          </BuildableReference>
       </BuildableProductRunnable>
+      <AdditionalOptions>
+         <AdditionalOption
+            key = "MallocStackLogging"
+            value = ""
+            isEnabled = "YES">
+         </AdditionalOption>
+         <AdditionalOption
+            key = "PrefersMallocStackLoggingLite"
+            value = ""
+            isEnabled = "YES">
+         </AdditionalOption>
+         <AdditionalOption
+            key = "MallocScribble"
+            value = ""
+            isEnabled = "YES">
+         </AdditionalOption>
+      </AdditionalOptions>
    </LaunchAction>
    <ProfileAction
       buildConfiguration = "Release"

+ 5 - 1
MusicVideoPlus/AppDelegate.swift

@@ -5,8 +5,12 @@
 //  Created by ak on 2021/5/28.
 //
 
-import BFFramework
 import UIKit
+
+@_exported import BFUIKit
+@_exported import BFFramework
+
+
 @main
 class AppDelegate: UIResponder, UIApplicationDelegate {
     var window: UIWindow?

+ 1 - 1
MusicVideoPlus/Classes/Modules/Base/Controllers/MVBaseController.swift

@@ -127,7 +127,7 @@ public class MVBaseController: UIViewController, UIGestureRecognizerDelegate {
 
     override public func viewWillDisappear(_ animated: Bool) {
         super.viewWillDisappear(animated)
-//        PQLoadingHUB.shared.dismissHUB()
+//        BFLoadingHUB.shared.dismissHUB()
     }
 
     override public func viewDidDisappear(_ animated: Bool) {

+ 2 - 1
MusicVideoPlus/Classes/Modules/Base/Views/PQServerProtocalView.swift

@@ -7,6 +7,7 @@
 
 import BFFramework
 import UIKit
+import BFUIKit
 
 // MARK: - 应用服务协议
 
@@ -249,7 +250,7 @@ public class PQBandingPhoneRemindView: UIView {
         paragraphStyle.lineSpacing = 3.0
         paragraphStyle.alignment = .center
         remindData.attributedTitle = NSMutableAttributedString(string: "您的账号已被封禁,\(remindTitle)\n有疑问可拨打客服电话:\n0731-85676658 18519777009", attributes: [NSAttributedString.Key.font: UIFont.systemFont(ofSize: 14), NSAttributedString.Key.foregroundColor: UIColor.hexColor(hexadecimal: "#666666"), NSAttributedString.Key.paragraphStyle: paragraphStyle])
-        let remindView = PQUploadRemindView(frame: CGRect(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth))
+        let remindView = BFUploadRemindView(frame: CGRect(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth))
         UIApplication.shared.keyWindow?.addSubview(remindView)
         remindView.remindData = remindData
     }

+ 9 - 7
MusicVideoPlus/Classes/Modules/Home/Controllers/MVHomeController.swift

@@ -6,6 +6,7 @@
 //  首界面
 
 import BFFramework
+
 class MVHomeController: MVBaseController {
     var jumpType: Int = 1 // 跳转类型 type: 1-我的作品 2-再创作 3-卡点视频
     var jumpVideoData: PQVideoListModel?
@@ -80,9 +81,10 @@ class MVHomeController: MVBaseController {
         collectionView.delaysContentTouches = false
         return collectionView
     }()
+    
     //网络错误提示
-    lazy var emptyRemindView: PQEmptyRemindView = {
-        let emptyRemindView = PQEmptyRemindView(frame: CGRect(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth))
+    lazy var emptyRemindView: BFEmptyRemindView = {
+        let emptyRemindView = BFEmptyRemindView(frame: CGRect(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth))
         emptyRemindView.fullRefreshBloc = { [weak self] _, _ in
             self?.getData()
             
@@ -169,11 +171,11 @@ class MVHomeController: MVBaseController {
 
     func getData() {
  
-        PQLoadingHUB.shared.showHUB(superView:view)
+        BFLoadingHUB.shared.showHUB(superView:view)
         MVHomeViewModel.getHomeHotVideos { [weak self] hotVideos, msg in
             if(msg == nil){
                 BFLog(1, message: "hotVideos count is :\(hotVideos.count)")
-                PQLoadingHUB.shared.dismissHUB(superView:(self?.view)!)
+                BFLoadingHUB.shared.dismissHUB(superView:(self?.view)!)
                 self?.showNetworkError(isHidden: true)
                 self?.refreshData(hotVideos: hotVideos)
             }else{
@@ -272,7 +274,7 @@ class MVHomeController: MVBaseController {
             protocalView.tag = cProtocalViewTag
             protocalView.remindBlock = { [weak self] sender, webUrl in
                 if sender == nil, webUrl != nil {
-                    let detail = PQBaseWebViewController()
+                    let detail = BFBaseWebViewController()
                     detail.baseUrl = webUrl
                     self?.navigationController?.pushViewController(detail, animated: true)
                 }
@@ -348,7 +350,7 @@ class MVHomeController: MVBaseController {
         if !isNetConnected() {
  
             
-            PQUploadRemindView.showUploadRemindView(title:"似乎已断开与互联网的连接", summary: "", canMoreOpration:true,confirmTitle: "重新连接",cancelTitle:"取消", confirmColor:UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)) { sender, _ in
+            BFUploadRemindView.showUploadRemindView(title:"似乎已断开与互联网的连接", summary: "", canMoreOpration:true,confirmTitle: "重新连接",cancelTitle:"取消", confirmColor:UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)) { sender, _ in
                 if sender.tag == 2 {
                     openAppSetting()
                 }
@@ -388,7 +390,7 @@ class MVHomeController: MVBaseController {
                 }
             }
             remindView.remindBlock = { [weak self] _, webUrl in
-                let detail = PQBaseWebViewController()
+                let detail = BFBaseWebViewController()
                 detail.baseUrl = webUrl
                 self?.navigationController?.pushViewController(detail, animated: true)
             }

+ 1 - 1
MusicVideoPlus/Classes/Modules/Login/Controllers/MVLoginController.swift

@@ -230,7 +230,7 @@ extension MVLoginController: TYAttributedLabelDelegate {
                 link = cPrivacy
             }
         }
-        let detail = PQBaseWebViewController()
+        let detail = BFBaseWebViewController()
         detail.modalPresentationStyle = .fullScreen
         detail.baseUrl = link
         present(detail, animated: true, completion: nil)

+ 3 - 3
MusicVideoPlus/Classes/Modules/Mine/Controllers/MVMineProductController.swift

@@ -8,7 +8,7 @@
 import BFFramework
 import UIKit
 
-class MVMineProductController: PQBaseViewController {
+class MVMineProductController: BFBaseViewController {
     var itemsList: [PQVideoListModel] = Array<PQVideoListModel>.init()
     var pageNum: Int = 1
     let margin: CGFloat = 14
@@ -84,7 +84,7 @@ class MVMineProductController: PQBaseViewController {
     /// - Parameter isRefresh: <#isRefresh description#>
     /// - Returns: <#description#>
     func loadRequestData(isRefresh: Bool = true) {
-        PQLoadingHUB.shared.showHUB(superView:view)
+        BFLoadingHUB.shared.showHUB(superView:view)
         if isRefresh {
             pageNum = 1
         } else {
@@ -119,7 +119,7 @@ class MVMineProductController: PQBaseViewController {
             if (videoList?.count ?? 0) < 20, videoList != nil {
                 self?.collectionView.mj_footer?.endRefreshingWithNoMoreData()
             }
-            PQLoadingHUB.shared.dismissHUB(superView:(self?.view ?? UIView()))
+            BFLoadingHUB.shared.dismissHUB(superView:(self?.view ?? UIView()))
            
         }
     }

+ 1 - 1
MusicVideoPlus/Classes/Modules/Mine/Controllers/MVPlayViewController.swift

@@ -9,7 +9,7 @@ import BFFramework
 import UIKit
 import WechatOpenSDK
 
-class MVPlayViewController: PQBaseViewController {
+class MVPlayViewController: BFBaseViewController {
     var itemsList: [PQVideoListModel] = Array<PQVideoListModel>.init()
     var pageNum: Int = 1
     var currentIndex: IndexPath?

+ 3 - 2
MusicVideoPlus/Classes/Modules/Setting/Controllers/MVSettingController.swift

@@ -7,6 +7,7 @@
 
 import UIKit
 import BFFramework
+
 class MVSettingController: MVBaseController{
 
     //tips 1
@@ -80,7 +81,7 @@ class MVSettingController: MVBaseController{
         let remindData:PQBaseModel = PQBaseModel()
         remindData.title = "退出?"
         
-        let remindView = PQRemindView(frame: CGRect(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth))
+        let remindView = BFRemindView(frame: CGRect(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth))
         UIApplication.shared.keyWindow?.addSubview(remindView)
         remindView.remindData = remindData
         remindView.remindBlock = { [weak self] sender, _ in
@@ -132,7 +133,7 @@ extension MVSettingController: TYAttributedLabelDelegate {
                 link = cPrivacy
             }
         }
-        let detail = PQBaseWebViewController()
+        let detail = BFBaseWebViewController()
         detail.baseUrl = link
         navigationController?.pushViewController(detail, animated: true)
     }