Browse Source

update podspec

wenweiwei 3 years ago
parent
commit
08005ce294
3 changed files with 47 additions and 49 deletions
  1. 1 2
      Example/BFCommonKit/ViewController.swift
  2. 32 32
      Example/Podfile
  3. 14 15
      Example/Podfile.lock

+ 1 - 2
Example/BFCommonKit/ViewController.swift

@@ -8,7 +8,7 @@
 
 import UIKit
 import BFCommonKit
-class ViewController: PQBaseViewController {
+class ViewController: UIViewController {
 
     override func viewDidLoad() {
         super.viewDidLoad()
@@ -17,7 +17,6 @@ class ViewController: PQBaseViewController {
         btn.frame = CGRect.init(x: 100, y: 100, width: 100, height: 100)
         btn.backgroundColor = UIColor.hexColor(hexadecimal: "#3DC1C1")
         view.addSubview(btn)
-        leftBackButton()
     }
 
     override func didReceiveMemoryWarning() {

+ 32 - 32
Example/Podfile

@@ -5,38 +5,38 @@ platform :ios, '10.0'
 target 'BFCommonKit_Example' do
   pod 'BFCommonKit', :path => '../'
 
-  post_install do |installer|
-    
-    remove_swift_ui("./Pods/Kingfisher/Sources/General/KFOptionsSetter.swift")
-    remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/KFImage.swift")
-    remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/ImageBinder.swift")
-    remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/KFImageOptions.swift")
-    remove_swift_ui_realm("./Pods/RealmSwift/RealmSwift/SwiftUI.swift")
-#    remove_RealmSwift_swift_ui
-    installer.pods_project.targets.each do |target|
-      target.build_configurations.each do |config|
-        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
-      end
-    end
-  end
-  
-def remove_swift_ui(code_file)
-  code_text = File.read(code_file)
-  code_text.gsub!(/#if canImport\(SwiftUI\) && canImport\(Combine\)(\n)/,"#if canImport(SwiftUI) && canImport(Combine) && (arch(arm64) || arch(x86_64))\n")
-  system("rm -rf " + code_file)
-  aFile = File.new(code_file, 'w+')
-  aFile.syswrite(code_text)
-  aFile.close()
-end
-
-def remove_swift_ui_realm (code_file)
-  code_text = File.read(code_file)
-  code_text.gsub!(/#if canImport\(SwiftUI\) && canImport\(Combine\) && swif/,'#if canImport(SwiftUI) && canImport(Combine) && (arch(arm64) || arch(x86_64)) && swif')
-  system("rm -rf " + code_file)
-  aFile = File.new(code_file, 'w+')
-  aFile.syswrite(code_text)
-  aFile.close()
-end
+#  post_install do |installer|
+#    
+#    remove_swift_ui("./Pods/Kingfisher/Sources/General/KFOptionsSetter.swift")
+#    remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/KFImage.swift")
+#    remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/ImageBinder.swift")
+#    remove_swift_ui("./Pods/Kingfisher/Sources/SwiftUI/KFImageOptions.swift")
+#    remove_swift_ui_realm("./Pods/RealmSwift/RealmSwift/SwiftUI.swift")
+##    remove_RealmSwift_swift_ui
+#    installer.pods_project.targets.each do |target|
+#      target.build_configurations.each do |config|
+#        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
+#      end
+#    end
+#  end
+#
+#def remove_swift_ui(code_file)
+#  code_text = File.read(code_file)
+#  code_text.gsub!(/#if canImport\(SwiftUI\) && canImport\(Combine\)(\n)/,"#if canImport(SwiftUI) && canImport(Combine) && (arch(arm64) || arch(x86_64))\n")
+#  system("rm -rf " + code_file)
+#  aFile = File.new(code_file, 'w+')
+#  aFile.syswrite(code_text)
+#  aFile.close()
+#end
+#
+#def remove_swift_ui_realm (code_file)
+#  code_text = File.read(code_file)
+#  code_text.gsub!(/#if canImport\(SwiftUI\) && canImport\(Combine\) && swif/,'#if canImport(SwiftUI) && canImport(Combine) && (arch(arm64) || arch(x86_64)) && swif')
+#  system("rm -rf " + code_file)
+#  aFile = File.new(code_file, 'w+')
+#  aFile.syswrite(code_text)
+#  aFile.close()
+#end
   target 'BFCommonKit_Tests' do
     inherit! :search_paths
   end

+ 14 - 15
Example/Podfile.lock

@@ -1,25 +1,24 @@
 PODS:
   - Alamofire (5.4.4)
-  - BFCommonKit (1.5.0):
-    - BFCommonKit/BFBase (= 1.5.0)
-    - BFCommonKit/BFCategorys (= 1.5.0)
-    - BFCommonKit/BFConfig (= 1.5.0)
-    - BFCommonKit/BFDebug (= 1.5.0)
-    - BFCommonKit/BFEnums (= 1.5.0)
-    - BFCommonKit/BFUtility (= 1.5.0)
-  - BFCommonKit/BFBase (1.5.0):
+  - BFCommonKit (1.5.2):
+    - BFCommonKit/BFBase (= 1.5.2)
+    - BFCommonKit/BFCategorys (= 1.5.2)
+    - BFCommonKit/BFConfig (= 1.5.2)
+    - BFCommonKit/BFEnums (= 1.5.2)
+    - BFCommonKit/BFUtility (= 1.5.2)
+  - BFCommonKit/BFBase (1.5.2):
     - Alamofire (= 5.4.4)
     - BFCommonKit/BFCategorys
     - BFCommonKit/BFConfig
     - BFCommonKit/BFUtility
     - SnapKit (= 5.0.1)
-  - BFCommonKit/BFCategorys (1.5.0):
+  - BFCommonKit/BFCategorys (1.5.2):
     - KingfisherWebP (= 1.3.0)
-  - BFCommonKit/BFConfig (1.5.0)
-  - BFCommonKit/BFDebug (1.5.0):
+  - BFCommonKit/BFConfig (1.5.2):
     - BFCommonKit/BFCategorys
-  - BFCommonKit/BFEnums (1.5.0)
-  - BFCommonKit/BFUtility (1.5.0):
+    - BFCommonKit/BFEnums
+  - BFCommonKit/BFEnums (1.5.2)
+  - BFCommonKit/BFUtility (1.5.2):
     - Alamofire (= 5.4.4)
     - BFCommonKit/BFCategorys
     - BFCommonKit/BFConfig
@@ -63,7 +62,7 @@ EXTERNAL SOURCES:
 
 SPEC CHECKSUMS:
   Alamofire: f3b09a368f1582ab751b3fff5460276e0d2cf5c9
-  BFCommonKit: 8afeb14571a71f9ba92d82507976ca2bce899dc1
+  BFCommonKit: ec15384f735bbd393fdd653740604f21356edda3
   KeychainAccess: c0c4f7f38f6fc7bbe58f5702e25f7bd2f65abf51
   Kingfisher: 016c8b653a35add51dd34a3aba36b580041acc74
   KingfisherWebP: dec17a5eb1af2658791bde1f93ae9a853678f826
@@ -71,6 +70,6 @@ SPEC CHECKSUMS:
   SnapKit: 97b92857e3df3a0c71833cce143274bf6ef8e5eb
   Toast-Swift: 9b6a70f28b3bf0b96c40d46c0c4b9d6639846711
 
-PODFILE CHECKSUM: 5c138dc5d174c9336dd4473cb26265c7619334aa
+PODFILE CHECKSUM: fd1b20f56952d87658f4bfdd521ed9e96cd560a3
 
 COCOAPODS: 1.11.2