瀏覽代碼

1.添加测试

wenweiwei 3 年之前
父節點
當前提交
49df984741

+ 9 - 3
BFFramework/Classes/Enums/Enums.swift

@@ -117,7 +117,7 @@ public enum PAGESOURCE: String {
     case sp_reproduce_fatherDetailList = "speedApp-videoDetail_reproduceCollection_father" // 再制作父列表页面
     // add by ak
     case sp_speedApp_upload2Compose = "speedApp-upload2Compose" // 上传转创作
-    
+
     /*************** 卡点视频相关pageSource ***************/
     case sp_stuck_selectMaterial = "speedApp-selectSyncedUpMaterial" // 卡点视频素材选择页
     case sp_stuck_selectSynceedUpMusic = "speedApp-selectSynceedUpMusic" // 卡点视频音乐选择页
@@ -223,7 +223,7 @@ enum objectType: String {
     case speedApp_clickButton_addMusic // 「创作工具页」:添加音乐 - 按钮点击
     case speedApp_viewButton_addMusicTip // 创作工具页」:添加音乐提示 - 按钮曝光
     case speedApp_clickButton_addMusicTip // 「创作工具页」:添加音乐提示 - 按钮点击
-    
+
     /*************** 卡点视频相关objectType ***************/
     case ot_click_syncedUpMusic = "speedApp_clickButton_syncedUpMusic" // 弹出面板中点击「卡点视频」按键
     case ot_view_selectSyncedUpMaterial = "speedApp_viewWindow_selectSyncedUpMaterial" // 曝光上报:卡点视频素材选择页
@@ -250,7 +250,6 @@ enum objectType: String {
     case ot_click_shareWechat = "speedApp_clickButton_shareWechat" // 点击上报:分享微信
     case ot_click_shareWechatMoment = "speedApp_clickButton_shareWechatMoment" // 点击上报:分享朋友圈
     case ot_click_finished = "speedApp_clickButton_finished" // 点击上报:完成
-
 }
 
 // MARK: - 视频上报类型
@@ -724,4 +723,11 @@ public enum videoFromScene: Int {
     case stuckPoint = 5 // 卡点视频制作
 }
 
+// MARK: - 风格
 
+/// 风格
+enum styleColor: String {
+    case nomal = "#F1034D"
+    case green = "#3DC1C1"
+    case red = "#EE0051"
+}

+ 1 - 1
BFFramework/Classes/Stuckpoint/Controller/PQStuckPointMaterialController.swift

@@ -93,7 +93,7 @@ public class PQStuckPointMaterialController: PQBaseViewController {
         let choseLineView = UIView(frame: CGRect(x: 0, y: 0, width: 25, height: 2))
         choseLineView.frame.origin.y = (navHeadImageView?.frame.maxY ?? 0) - 5
         choseLineView.center.x = choseLocalVideoBtn.center.x
-        choseLineView.backgroundColor = UIColor.hexColor(hexadecimal: "#EE0051")
+        choseLineView.backgroundColor = UIColor.hexColor(hexadecimal: PQConfigUtil.shared.styleColor.rawValue)
         return choseLineView
     }()
 

+ 25 - 0
BFFramework/Classes/Utils/PQConfigUtil.swift

@@ -0,0 +1,25 @@
+//
+//  PQConfigUtil.swift
+//  BFFramework
+//
+//  Created by SanW on 2021/6/4.
+//
+
+import UIKit
+
+public class PQConfigUtil: NSObject {
+    public static let shared = PQConfigUtil()
+    var styleColor: styleColor = .green
+
+    override private init() {
+        super.init()
+    }
+
+    override public func copy() -> Any {
+        return self
+    }
+
+    override public func mutableCopy() -> Any {
+        return self
+    }
+}

+ 8 - 0
Example/BFFramework.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>IDEDidComputeMac32BitWarning</key>
+	<true/>
+</dict>
+</plist>

+ 0 - 1
Example/BFFramework/ViewController.swift

@@ -18,7 +18,6 @@ class ViewController: UIViewController {
         view.backgroundColor = .white
 
         navigationItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", style: UIBarButtonItemStyle.plain, target: self, action: Selector(("next:")))
- 
         let btn = UIButton(type: .contactAdd)
         btn.frame =  CGRect(x: 100, y: 100, width: 100, height: 100)
         view.addSubview(btn)

+ 1 - 1
Example/Podfile.lock

@@ -78,4 +78,4 @@ SPEC CHECKSUMS:
 
 PODFILE CHECKSUM: fbceb8d678f3260ea2e79f17e99b626365bfef4d
 
-COCOAPODS: 1.10.1
+COCOAPODS: 1.10.0

+ 1 - 1
Example/Pods/Manifest.lock

@@ -78,4 +78,4 @@ SPEC CHECKSUMS:
 
 PODFILE CHECKSUM: fbceb8d678f3260ea2e79f17e99b626365bfef4d
 
-COCOAPODS: 1.10.1
+COCOAPODS: 1.10.0

文件差異過大導致無法顯示
+ 1191 - 1186
Example/Pods/Pods.xcodeproj/project.pbxproj


部分文件因文件數量過多而無法顯示