PodfileKit將github上常見的iOS(Swift)第三方框架進(jìn)行了匯總,并且將框架進(jìn)行了分類,為用戶管理第三方框架提供了方便。

PodfileKit

========================
Easy Podfile !

PodfileKit將github上常見的iOS(Swift)第三方框架進(jìn)行了匯總,并且將框架進(jìn)行了分類,為用戶管理第三方框架提供了方便。

github網(wǎng)址:https://github.com/adong666666/PodfileKit

設(shè)置平臺

platform:ios,'13.0',這里的‘13.0’是App所能支持的最低iOS系統(tǒng)版本,你可以替換為‘11.0’、'12.3'、‘14.0’等版本。

平臺設(shè)置.png

指定第三方框架

pod 'ARVideoKit'指定名為‘ARVideoKit’的框架進(jìn)行下載,你可以將‘ARVideoKit’替換為‘你想要安裝的框架的名稱’。通過:git =>來指定相應(yīng)網(wǎng)址,通過:branch =>來指定相應(yīng)分支,通過commit:來指定某次提交的版本,通過:tag =>來指定某次被標(biāo)記的提交版本,通過:inhibit_warnings => true來規(guī)避單個框架的警告。當(dāng)然,pod 'ARVideoKit'之后的相關(guān)指定都可以被省略,這樣你將會下載該框架的默認(rèn)版本,一般為適合你工程的最新版本。

示例.png

框架分類

對框架進(jìn)行了分類,你也可以根據(jù)自己的喜好進(jìn)行分類。


框架分類.png

當(dāng)分類中有你需要使用的框架時,便將”#“刪除即可。


框架選擇.png

子框架

對于某些框架,如果只用到框架中部分功能,則不必下載整個框架,只需下載其子框架。


子框架.png

建立分組

你可以使用

def groupName 
 pod ...
 ...
end

來建立分組,比如某些框架是用于調(diào)試的,某些框架是用于App發(fā)布的,某些框架比較特殊等。在target之后,你需要將ProjectName替換為你項(xiàng)目的名稱。

分組.png

使用

  • 克隆本倉庫,從而拿到倉庫中的PodFile文件
  • 直接下載本倉庫中的PodFile,置于工程文件夾的目錄之下
  • 拷貝本倉庫中PodFile的內(nèi)容到你自己生成的PodFile文件中
  • 使用終端打開工程所在目錄,運(yùn)行如下命令
$ pod install

貢獻(xiàn)

  • Fork it !
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request

License

PodfileKit is released under the MIT license. See LICENSE for details.

內(nèi)容

這里因?yàn)樵诤啎椭苯咏o內(nèi)容哈:

source 'https://github.com/CocoaPods/Specs.git'
# 所支持的iOS系統(tǒng)版本
platform:ios,'13.0'
use_frameworks!
# 規(guī)避第三方庫的警告
inhibit_all_warnings!

def thirdParty
  # eg. # AR錄像
  # git指定網(wǎng)址, branch指定分支, commit指定某次提交的版本, tag指定某次被標(biāo)記的提交版本,inhibit_warnings規(guī)避單個框架的警告
  # pod 'ARVideoKit'#, :git => 'https://github.com/AFathi/ARVideoKit.git', :branch => 'swift_5', commit: "b7e1facdedd8fe16d04ef5f47c4697e89bad9f27",'~> 5.0', :tag => '1.6.0', :inhibit_warnings => true
  # 網(wǎng)絡(luò)請求
  # pod 'Alamofire'
  # pod 'Moya'
  # pod 'AlamofireObjectMapper'
  # JSON解析
  # pod 'SwiftyJSON'
  # pod 'HandyJSON'
  # pod 'Argo'
  # pod 'Sync'
  # 檢測網(wǎng)絡(luò)狀態(tài)
  # pod 'ReachabilitySwift'
  # 數(shù)據(jù)流
  # pod 'RxSwift'
  # pod 'RxCocoa'
  # pod 'ObjectMapper'
  # pod 'ReSwift'
  # pod 'ReactiveSwift'
  # pod 'ReactorKit'
  # 網(wǎng)絡(luò)圖片
  # pod 'Kingfisher'
  # 布局
  # pod 'SnapKit'
  # pod 'Cartography'
  # pod 'Neon'
  # pod 'AnimatedCollectionViewLayout'
  # pod "BouncyLayout"
  # pod 'TangramKit'
  # pod 'TinyConstraints'
  # pod 'LayoutKit'
  # pod 'SteviaLayout'
  # 動畫
  # pod 'Spring', :git => 'https://github.com/MengTo/Spring.git'
  # pod 'lottie-ios'
  # pod 'ViewAnimator'
  # pod 'Advance'
  # pod 'Pastel'
  # pod 'YapAnimator'
  # 轉(zhuǎn)場
  # pod 'Hero'
  # pod 'Transition'
  # pod 'Jelly'
  # 代碼規(guī)范
  # pod 'SwiftLint'
  # UserDefault
  # pod 'SwiftyUserDefaults'
  # 數(shù)據(jù)庫
  # pod 'SQLite.swift'
  # pod 'GRDB.swift'
  # pod 'FMDB'
  # pod 'RealmSwift'
  # pod 'YapDatabase'
  # pod 'CoreStore'
  # 擴(kuò)展
  # pod 'SwifterSwift'
  ## pod 'SwifterSwift/SwiftStdlib'
  ## pod 'SwifterSwift/Foundation'
  ## pod 'SwifterSwift/UIKit'
  ## pod 'SwifterSwift/AppKit'
  ## pod 'SwifterSwift/MapKit'
  ## pod 'SwifterSwift/CoreGraphics'
  ## pod 'SwifterSwift/CoreLocation'
  ## pod 'SwifterSwift/SpriteKit'
  ## pod 'SwifterSwift/SceneKit'
  ## pod 'SwifterSwift/StoreKit'
  ## pod 'SwifterSwift/Dispatch'
  # pod 'Then'
  ### Use 'SwiftUIX'
  # pod 'EZSwiftExtensions'
  # Resources(圖片、顏色、本地化字符串)
  # pod 'R.swift'
  # pod 'SwiftGen'
  # 監(jiān)控
  # pod 'Crashlytics'
  # pod 'Fabric'
  # pod 'Bugly'
  # 綁定
  # pod 'bond'
  # 提示框
  # pod 'JGProgressHUD'
  # pod 'SwiftMessages'
  # pod 'SwiftEntryKit'
  # pod 'SPPermissions'
  # pod 'NotificationBanner'
  # pod 'Whisper'
  # pod 'PopupDialog'
  # pod 'Toast-Swift'
  # 側(cè)邊欄
  # pod 'SideMenu'
  # pod 'YALSideMenu'
  # 下拉菜單
  # pod 'BTNavigationDropdownMenu'
  # 分頁菜單
  # pod 'Parchment'
  # pod 'Tabman'
  # UI控件
  # pod 'LYEmptyView'
  # pod 'CollectionKit'
  # pod 'DifferenceKit'
  # pod 'ACBadge'
  # pod 'LTMorphingLabel'
  # pod 'SkeletonView'
  # pod 'NVActivityIndicatorView'
  # pod 'FSPagerView'
  # pod 'TextFieldEffects'
  # pod 'SwipeCellKit'
  # pod 'ScrollableGraphView'
  # pod 'SCLAlertView'
  # pod 'SkyFloatingLabelTextField'
  # pod 'ActiveLabel'
  # pod 'MarqueeLabel'
  # pod 'DOFavoriteButton'
  # pod 'Persei' # top menu for UITableView / UICollectionView / UIScrollView
  # pod 'XLActionController'
  # pod 'LNPopupController'
  # pod 'CHIPageControl'
  # pod 'EasyTipView'
  # pod 'CardParts'
  # pod 'PMAlertController'
  # pod 'Segmentio'
  # pod 'HGCircularSlider'
  # pod 'ZLSwipeableViewSwift'
  # pod 'ALCameraViewController'
  # pod 'SwiftSpinner'
  # pod 'Cosmos'
  # 掃描
  # pod 'BarcodeScanner'
  # 二維碼
  # pod 'EFQRCode'
  # 掃描文件
  # pod 'WeScan'
  # 取色器
  # pod 'ColorSlider'
  # 提示軟件更新
  # pod 'Siren'
  # 機(jī)器學(xué)習(xí)視覺
  # pod 'OpenCV'
  # 反饋
  # pod 'PinpointKit'
  # 日志
  # pod 'SwiftyBeaver'
  # 加密
  # pod 'CryptoSwift'
  # pod 'RNCryptor'
  # 內(nèi)購
  # pod 'SwiftyStoreKit'
  # 日歷
  # pod 'JTAppleCalendar'
  # pod 'CVCalendar'
  # 圖像處理
  # pod 'Nuke'
  # pod 'Macaw'
  # 圖片拾取
  # pod 'ImagePicker'
  # pod 'ZLPhotoBrowser'
  # pod 'YPImagePicker'
  # pod 'SKPhotoBrowser'
  # 測試
  # pod 'Quick'
  # pod 'Nimble'
  # Storyboard和xib
  # pod 'IBAnimatable'
  # 時間
  # pod 'SwiftDate'
  # 緩存
  # pod 'HanekeSwift'
  # pod 'Disk'
  # pod 'Cache'
  # 數(shù)學(xué)
  # pod 'Surge'
  # 多線程
  # pod "AsyncSwift"
  # pod 'Hydra'
  # pod 'BrightFutures'
  # 依賴注入
  # pod 'Swinject'
  # pod 'Typhoon'
  # 聊天
  # pod 'Chatto'
  # pod 'ChattoAdditions'
  # 信息
  # pod 'Messenger'
  # pod 'MessageKit'
  # 手機(jī)號碼
  # pod 'PhoneNumberKit'
  # 函數(shù)式編程
  # pod 'Swiftz'
  # 設(shè)備
  # pod 'DeviceKit'
  # 富文本
  # pod 'BonMot'
  # pod 'SwiftRichString'
  # 人臉
  # pod 'FaceAware'
  # 地理位置
  # pod 'SwiftLocation'
  # HTML、XML
  # pod 'SwiftSoup'
  # pod 'Ono'
  # pod 'Kanna'
  # 便利 UITableViewCells, UICollectionViewCells 便利復(fù)用等
  # pod 'Reusable'
  # 本地化
  # pod 'Localize-Swift'
  # Gif支持
  # pod 'Gifu'
  # 顏色
  # pod 'DynamicColor'
  # 檢測內(nèi)存泄漏等
  # pod 'LifetimeTracker'
  # 表格
  # pod 'SwiftCharts'
  # 文件處理
  # pod 'FileKit'
  # pod 'Files'
  # 主題 適配暗黑模式
  # pod 'SwiftTheme'
  # 狀態(tài)欄顯示FPS, CPU and memory usage, device model, app and iOS versions 等信息
  # pod 'GDPerformanceView-Swift'
  # 相機(jī) 麥克風(fēng)
  # pod 'HaishinKit.swift'
  # 下載
  # pod 'Tiercel'
  # 藍(lán)牙
  # pod 'BluetoothKit'
  # 壓縮
  # pod 'Zip'
  # 鑰匙串
  # pod 'KeychainSwift'
  # 社會化分享
  # pod 'UMengUshare'
  ## pod 'UMengUShare/UI'
  ## pod 'UMengUShare/Social/ReducedWeChat'
  ## pod 'UMengUShare/Social/ReducedQQ'
end

def project
end

def debug
  # App界面調(diào)試
  # pod 'Reveal-SDK'
  # pod 'CocoaDebug'
  # 網(wǎng)絡(luò)調(diào)試
  # pod 'Bagel'
  # pod 'ResponseDetective'
  # 日志
  # pod 'XCGLogger'
end
  # 在這里替換你的項(xiàng)目名稱
target "ProjectName" do
  thirdParty
  project
  debug
end

post_install do |installer_representation|
  installer_representation.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      # 所支持的iOS系統(tǒng)版本
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
    end
  end
end
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容