PodfileKit将github上常见的iOS(Swift)第三方框架进行了汇总,并且将框架进行了分类,为用户管理第三方框架提供了方便。

PodfileKit

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

PodfileKit将github上常见的iOS(Swift)第三方框架进行了汇总,并且将框架进行了分类,为用户管理第三方框架提供了方便。

github网址:https://github.com/adong666666/PodfileKit

设置平台

platform:ios,'13.0',这里的‘13.0’是App所能支持的最低iOS系统版本,你可以替换为‘11.0’、'12.3'、‘14.0’等版本。
平台设置.png

指定第三方框架

pod 'ARVideoKit'指定名为‘ARVideoKit’的框架进行下载,你可以将‘ARVideoKit’替换为‘你想要安装的框架的名称’。通过:git =>来指定相应网址,通过:branch =>来指定相应分支,通过commit:来指定某次提交的版本,通过:tag =>来指定某次被标记的提交版本,通过:inhibit_warnings => true来规避单个框架的警告。当然,pod 'ARVideoKit'之后的相关指定都可以被省略,这样你将会下载该框架的默认版本,一般为适合你工程的最新版本。
示例.png

框架分类

对框架进行了分类,你也可以根据自己的喜好进行分类。
框架分类.png

当分类中有你需要使用的框架时,便将”#“删除即可。
框架选择.png

子框架

对于某些框架,如果只用到框架中部分功能,则不必下载整个框架,只需下载其子框架。
子框架.png

建立分组

你可以使用

def groupName 
 pod ...
 ...
end

来建立分组,比如某些框架是用于调试的,某些框架是用于App发布的,某些框架比较特殊等。在target之后,你需要将ProjectName替换为你项目的名称。
分组.png

使用

  • 克隆本仓库,从而拿到仓库中的PodFile文件
  • 直接下载本仓库中的PodFile,置于工程文件夹的目录之下
  • 拷贝本仓库中PodFile的内容到你自己生成的PodFile文件中
  • 使用终端打开工程所在目录,运行如下命令
$ pod install

贡献

  • 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.

内容

这里因为在简书就直接给内容哈:

扫描二维码关注公众号,回复: 12645900 查看本文章
source 'https://github.com/CocoaPods/Specs.git'
# 所支持的iOS系统版本
platform:ios,'13.0'
use_frameworks!
# 规避第三方库的警告
inhibit_all_warnings!

def thirdParty
  # eg. # AR录像
  # git指定网址, branch指定分支, commit指定某次提交的版本, tag指定某次被标记的提交版本,inhibit_warnings规避单个框架的警告
  # pod 'ARVideoKit'#, :git => 'https://github.com/AFathi/ARVideoKit.git', :branch => 'swift_5', commit: "b7e1facdedd8fe16d04ef5f47c4697e89bad9f27",'~> 5.0', :tag => '1.6.0', :inhibit_warnings => true
  # 网络请求
  # pod 'Alamofire'
  # pod 'Moya'
  # pod 'AlamofireObjectMapper'
  # JSON解析
  # pod 'SwiftyJSON'
  # pod 'HandyJSON'
  # pod 'Argo'
  # pod 'Sync'
  # 检测网络状态
  # pod 'ReachabilitySwift'
  # 数据流
  # pod 'RxSwift'
  # pod 'RxCocoa'
  # pod 'ObjectMapper'
  # pod 'ReSwift'
  # pod 'ReactiveSwift'
  # pod 'ReactorKit'
  # 网络图片
  # 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'
  # 转场
  # pod 'Hero'
  # pod 'Transition'
  # pod 'Jelly'
  # 代码规范
  # pod 'SwiftLint'
  # UserDefault
  # pod 'SwiftyUserDefaults'
  # 数据库
  # pod 'SQLite.swift'
  # pod 'GRDB.swift'
  # pod 'FMDB'
  # pod 'RealmSwift'
  # pod 'YapDatabase'
  # pod 'CoreStore'
  # 扩展
  # 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'
  # 监控
  # 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'
  # 侧边栏
  # 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'
  # 机器学习视觉
  # pod 'OpenCV'
  # 反馈
  # pod 'PinpointKit'
  # 日志
  # pod 'SwiftyBeaver'
  # 加密
  # pod 'CryptoSwift'
  # pod 'RNCryptor'
  # 内购
  # 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'
  # 数学
  # pod 'Surge'
  # 多线程
  # pod "AsyncSwift"
  # pod 'Hydra'
  # pod 'BrightFutures'
  # 依赖注入
  # pod 'Swinject'
  # pod 'Typhoon'
  # 聊天
  # pod 'Chatto'
  # pod 'ChattoAdditions'
  # 信息
  # pod 'Messenger'
  # pod 'MessageKit'
  # 手机号码
  # pod 'PhoneNumberKit'
  # 函数式编程
  # pod 'Swiftz'
  # 设备
  # pod 'DeviceKit'
  # 富文本
  # pod 'BonMot'
  # pod 'SwiftRichString'
  # 人脸
  # pod 'FaceAware'
  # 地理位置
  # pod 'SwiftLocation'
  # HTML、XML
  # pod 'SwiftSoup'
  # pod 'Ono'
  # pod 'Kanna'
  # 便利 UITableViewCells, UICollectionViewCells 便利复用等
  # pod 'Reusable'
  # 本地化
  # pod 'Localize-Swift'
  # Gif支持
  # pod 'Gifu'
  # 颜色
  # pod 'DynamicColor'
  # 检测内存泄漏等
  # pod 'LifetimeTracker'
  # 表格
  # pod 'SwiftCharts'
  # 文件处理
  # pod 'FileKit'
  # pod 'Files'
  # 主题 适配暗黑模式
  # pod 'SwiftTheme'
  # 状态栏显示FPS, CPU and memory usage, device model, app and iOS versions 等信息
  # pod 'GDPerformanceView-Swift'
  # 相机 麦克风
  # pod 'HaishinKit.swift'
  # 下载
  # pod 'Tiercel'
  # 蓝牙
  # 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界面调试
  # pod 'Reveal-SDK'
  # pod 'CocoaDebug'
  # 网络调试
  # pod 'Bagel'
  # pod 'ResponseDetective'
  # 日志
  # pod 'XCGLogger'
end
  # 在这里替换你的项目名称
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系统版本
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
    end
  end
end

猜你喜欢

转载自blog.csdn.net/baidu_41816741/article/details/114272926
今日推荐