瀏覽代碼

no message

nanxinlin 6 年之前
父節點
當前提交
ce83c10539
共有 100 個文件被更改,包括 1173 次插入14438 次删除
  1. 4 3
      RainbowPlanetSwift/Podfile
  2. 1 1
      RainbowPlanetSwift/Podfile.lock
  3. 911 0
      RainbowPlanet/RainbowPlanet.xcodeproj/project.pbxproj
  4. 1 1
      RainbowPlanetOC/RainbowPlanetOC.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  5. 0 0
      RainbowPlanet/RainbowPlanet.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
  6. 1 1
      RainbowPlanetOC/RainbowPlanetOC.xcworkspace/contents.xcworkspacedata
  7. 0 0
      RainbowPlanet/RainbowPlanet.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
  8. 2 2
      RainbowPlanetSwift/RainbowPlanetSwift/AppDelegate.swift
  9. 0 0
      RainbowPlanet/RainbowPlanet/Assets.xcassets/AppIcon.appiconset/Contents.json
  10. 0 0
      RainbowPlanet/RainbowPlanet/Assets.xcassets/Contents.json
  11. 0 0
      RainbowPlanet/RainbowPlanet/Base.lproj/LaunchScreen.storyboard
  12. 0 0
      RainbowPlanet/RainbowPlanet/Base.lproj/Main.storyboard
  13. 30 0
      RainbowPlanet/RainbowPlanet/Base/RootNavigationController/RootNavigationController.swift
  14. 54 0
      RainbowPlanet/RainbowPlanet/Base/RootTabbarController/RootTabbarController.swift
  15. 21 0
      RainbowPlanet/RainbowPlanet/Base/RootView/RootView.swift
  16. 30 0
      RainbowPlanet/RainbowPlanet/Base/RootViewController/RootViewController.swift
  17. 30 0
      RainbowPlanet/RainbowPlanet/Base/RootWebViewController/RootWebViewController.swift
  18. 0 0
      RainbowPlanet/RainbowPlanet/Info.plist
  19. 30 0
      RainbowPlanet/RainbowPlanet/Modules/MineModule/Mine/ViewController/MineViewController.swift
  20. 30 0
      RainbowPlanet/RainbowPlanet/Modules/ShoppingCartModule/ShoppingCart/ViewController/ShoppingCartViewController.swift
  21. 16 0
      RainbowPlanet/RainbowPlanet/Modules/ShoppingMallModule/ShoppingMall/ViewController/ShoppingViewController.swift
  22. 3 2
      RainbowPlanetSwift/RainbowPlanetSwift/ViewController.swift
  23. 0 0
      RainbowPlanet/RainbowPlanetTests/Info.plist
  24. 5 5
      RainbowPlanetSwift/RainbowPlanetSwiftTests/RainbowPlanetSwiftTests.swift
  25. 0 0
      RainbowPlanet/RainbowPlanetUITests/Info.plist
  26. 4 4
      RainbowPlanetSwift/RainbowPlanetSwiftUITests/RainbowPlanetSwiftUITests.swift
  27. 0 44
      RainbowPlanetOC/Podfile
  28. 0 89
      RainbowPlanetOC/Podfile.lock
  29. 0 37
      RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFCompatibilityMacros.h
  30. 0 304
      RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.h
  31. 0 372
      RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.m
  32. 0 216
      RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFNetworkReachabilityManager.h
  33. 0 266
      RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFNetworkReachabilityManager.m
  34. 0 41
      RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFNetworking.h
  35. 0 154
      RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFSecurityPolicy.h
  36. 0 344
      RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFSecurityPolicy.m
  37. 0 479
      RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFURLRequestSerialization.h
  38. 0 1398
      RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFURLRequestSerialization.m
  39. 0 310
      RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFURLResponseSerialization.h
  40. 0 817
      RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFURLResponseSerialization.m
  41. 0 501
      RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFURLSessionManager.h
  42. 0 1238
      RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFURLSessionManager.m
  43. 0 19
      RainbowPlanetOC/Pods/AFNetworking/LICENSE
  44. 0 322
      RainbowPlanetOC/Pods/AFNetworking/README.md
  45. 0 160
      RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/AFAutoPurgingImageCache.h
  46. 0 205
      RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/AFAutoPurgingImageCache.m
  47. 0 171
      RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/AFImageDownloader.h
  48. 0 409
      RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/AFImageDownloader.m
  49. 0 103
      RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.h
  50. 0 259
      RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.m
  51. 0 48
      RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.h
  52. 0 114
      RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.m
  53. 0 175
      RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.h
  54. 0 302
      RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.m
  55. 0 35
      RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIImage+AFNetworking.h
  56. 0 109
      RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.h
  57. 0 160
      RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.m
  58. 0 42
      RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIKit+AFNetworking.h
  59. 0 64
      RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.h
  60. 0 126
      RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.m
  61. 0 53
      RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.h
  62. 0 113
      RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.m
  63. 0 80
      RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.h
  64. 0 157
      RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.m
  65. 0 19
      RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/CYLConstants.h
  66. 0 93
      RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/CYLPlusButton.h
  67. 0 97
      RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/CYLPlusButton.m
  68. 0 22
      RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/CYLTabBar.h
  69. 0 476
      RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/CYLTabBar.m
  70. 0 135
      RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/CYLTabBarController.h
  71. 0 548
      RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/CYLTabBarController.m
  72. 0 27
      RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/UIControl+CYLTabBarControllerExtention.h
  73. 0 133
      RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/UIControl+CYLTabBarControllerExtention.m
  74. 0 15
      RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/UITabBarItem+CYLTabBarControllerExtention.h
  75. 0 57
      RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/UITabBarItem+CYLTabBarControllerExtention.m
  76. 0 25
      RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/UIView+CYLTabBarControllerExtention.h
  77. 0 142
      RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/UIView+CYLTabBarControllerExtention.m
  78. 0 123
      RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/UIViewController+CYLTabBarControllerExtention.h
  79. 0 298
      RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/UIViewController+CYLTabBarControllerExtention.m
  80. 0 19
      RainbowPlanetOC/Pods/CYLTabBarController/LICENSE
  81. 0 939
      RainbowPlanetOC/Pods/CYLTabBarController/README.md
  82. 0 36
      RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Associations/FBAssociationManager.h
  83. 0 207
      RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Associations/FBAssociationManager.mm
  84. 0 25
      RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Associations/Internal/FBAssociationManager+Internal.h
  85. 0 29
      RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Detector/FBNodeEnumerator.h
  86. 0 62
      RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Detector/FBNodeEnumerator.mm
  87. 0 17
      RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Detector/FBRetainCycleDetector+Internal.h
  88. 0 86
      RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Detector/FBRetainCycleDetector.h
  89. 0 294
      RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Detector/FBRetainCycleDetector.mm
  90. 0 33
      RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/FBRetainCycleUtils.h
  91. 0 66
      RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/FBRetainCycleUtils.m
  92. 0 36
      RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Filtering/FBStandardGraphEdgeFilters.h
  93. 0 74
      RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Filtering/FBStandardGraphEdgeFilters.mm
  94. 0 86
      RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Graph/FBObjectGraphConfiguration.h
  95. 0 55
      RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Graph/FBObjectGraphConfiguration.m
  96. 0 20
      RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Graph/FBObjectiveCBlock.h
  97. 0 100
      RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Graph/FBObjectiveCBlock.m
  98. 0 59
      RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Graph/FBObjectiveCGraphElement.h
  99. 0 130
      RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Graph/FBObjectiveCGraphElement.mm
  100. 0 0
      RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Graph/FBObjectiveCObject.h

+ 4 - 3
RainbowPlanetSwift/Podfile

@@ -6,7 +6,7 @@ platform :ios, '9.0'
 inhibit_all_warnings!
 use_frameworks!
 
-target 'RainbowPlanetSwift' do
+target 'RainbowPlanet' do
 # 网络请求
 pod 'Alamofire'
 pod 'Moya/RxSwift'
@@ -86,9 +86,10 @@ pod 'UMCShare/Social/ReducedSina'
 pod 'Bugly'
 
 #=====================百度地图===========
-#百度地图
-#pod 'BaiduMapKit'
+
 #百度地图定位SDK
 pod 'BMKLocationKit'
+#百度地图
+#pod 'BaiduMapKit'
 
 end 

+ 1 - 1
RainbowPlanetSwift/Podfile.lock

@@ -151,6 +151,6 @@ SPEC CHECKSUMS:
   UMCShare: 552b29753f1b4da87b51d96545ed19e6263df397
   XLPagerTabStrip: 22d4c58200d7c105e0e407ab6bfd01a5d85014be
 
-PODFILE CHECKSUM: df6b15d35feee31bf263c118ceb59dd92e1df2f5
+PODFILE CHECKSUM: fe35392f47cbe31de96ff7d51d9797d0079cd08a
 
 COCOAPODS: 1.5.3

+ 911 - 0
RainbowPlanet/RainbowPlanet.xcodeproj/project.pbxproj

@@ -0,0 +1,911 @@
+// !$*UTF8*$!
+{
+	archiveVersion = 1;
+	classes = {
+	};
+	objectVersion = 50;
+	objects = {
+
+/* Begin PBXBuildFile section */
+		80FB2D3361E2CF97A0ED8090 /* Pods_RainbowPlanet.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 75AF51003C98E1AF94B14775 /* Pods_RainbowPlanet.framework */; };
+		A7AE0120222E760500F521EA /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7AE011F222E760500F521EA /* AppDelegate.swift */; };
+		A7AE0122222E760500F521EA /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7AE0121222E760500F521EA /* ViewController.swift */; };
+		A7AE0125222E760500F521EA /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A7AE0123222E760500F521EA /* Main.storyboard */; };
+		A7AE0127222E760500F521EA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A7AE0126222E760500F521EA /* Assets.xcassets */; };
+		A7AE012A222E760500F521EA /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A7AE0128222E760500F521EA /* LaunchScreen.storyboard */; };
+		A7AE0135222E760500F521EA /* RainbowPlanetTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7AE0134222E760500F521EA /* RainbowPlanetTests.swift */; };
+		A7AE0140222E760500F521EA /* RainbowPlanetUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7AE013F222E760500F521EA /* RainbowPlanetUITests.swift */; };
+		A7AE0151222E76EB00F521EA /* RootViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7AE0150222E76EB00F521EA /* RootViewController.swift */; };
+		A7AE0154222E774C00F521EA /* RootWebViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7AE0153222E774C00F521EA /* RootWebViewController.swift */; };
+		A7AE0157222E77A700F521EA /* RootNavigationController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7AE0156222E77A700F521EA /* RootNavigationController.swift */; };
+		A7AE015A222E7B4800F521EA /* RootTabbarController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7AE0159222E7B4800F521EA /* RootTabbarController.swift */; };
+		A7AE015D222E7BC000F521EA /* RootView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7AE015C222E7BC000F521EA /* RootView.swift */; };
+		A7AE0169222E7D2800F521EA /* ShoppingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7AE0167222E7D2800F521EA /* ShoppingViewController.swift */; };
+		A7AE0170222E7D5400F521EA /* ShoppingCartViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7AE016E222E7D5400F521EA /* ShoppingCartViewController.swift */; };
+		A7AE0174222E7D6000F521EA /* MineViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7AE0172222E7D6000F521EA /* MineViewController.swift */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+		A7AE0131222E760500F521EA /* PBXContainerItemProxy */ = {
+			isa = PBXContainerItemProxy;
+			containerPortal = A7AE0114222E760400F521EA /* Project object */;
+			proxyType = 1;
+			remoteGlobalIDString = A7AE011B222E760500F521EA;
+			remoteInfo = RainbowPlanet;
+		};
+		A7AE013C222E760500F521EA /* PBXContainerItemProxy */ = {
+			isa = PBXContainerItemProxy;
+			containerPortal = A7AE0114222E760400F521EA /* Project object */;
+			proxyType = 1;
+			remoteGlobalIDString = A7AE011B222E760500F521EA;
+			remoteInfo = RainbowPlanet;
+		};
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXFileReference section */
+		1DD1CA03D797EC66156C1CB4 /* Pods-RainbowPlanet.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RainbowPlanet.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RainbowPlanet/Pods-RainbowPlanet.debug.xcconfig"; sourceTree = "<group>"; };
+		75AF51003C98E1AF94B14775 /* Pods_RainbowPlanet.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RainbowPlanet.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+		8640BD6BD0F44B0788BBD034 /* Pods-RainbowPlanet.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RainbowPlanet.release.xcconfig"; path = "Pods/Target Support Files/Pods-RainbowPlanet/Pods-RainbowPlanet.release.xcconfig"; sourceTree = "<group>"; };
+		A7AE011C222E760500F521EA /* RainbowPlanet.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RainbowPlanet.app; sourceTree = BUILT_PRODUCTS_DIR; };
+		A7AE011F222E760500F521EA /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
+		A7AE0121222E760500F521EA /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
+		A7AE0124222E760500F521EA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
+		A7AE0126222E760500F521EA /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
+		A7AE0129222E760500F521EA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
+		A7AE012B222E760500F521EA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+		A7AE0130222E760500F521EA /* RainbowPlanetTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RainbowPlanetTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+		A7AE0134222E760500F521EA /* RainbowPlanetTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RainbowPlanetTests.swift; sourceTree = "<group>"; };
+		A7AE0136222E760500F521EA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+		A7AE013B222E760500F521EA /* RainbowPlanetUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RainbowPlanetUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+		A7AE013F222E760500F521EA /* RainbowPlanetUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RainbowPlanetUITests.swift; sourceTree = "<group>"; };
+		A7AE0141222E760500F521EA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+		A7AE0150222E76EB00F521EA /* RootViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RootViewController.swift; sourceTree = "<group>"; };
+		A7AE0153222E774C00F521EA /* RootWebViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RootWebViewController.swift; sourceTree = "<group>"; };
+		A7AE0156222E77A700F521EA /* RootNavigationController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RootNavigationController.swift; sourceTree = "<group>"; };
+		A7AE0159222E7B4800F521EA /* RootTabbarController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RootTabbarController.swift; sourceTree = "<group>"; };
+		A7AE015C222E7BC000F521EA /* RootView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RootView.swift; sourceTree = "<group>"; };
+		A7AE0167222E7D2800F521EA /* ShoppingViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShoppingViewController.swift; sourceTree = "<group>"; };
+		A7AE016E222E7D5400F521EA /* ShoppingCartViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShoppingCartViewController.swift; sourceTree = "<group>"; };
+		A7AE0172222E7D6000F521EA /* MineViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MineViewController.swift; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+		A7AE0119222E760500F521EA /* Frameworks */ = {
+			isa = PBXFrameworksBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				80FB2D3361E2CF97A0ED8090 /* Pods_RainbowPlanet.framework in Frameworks */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+		A7AE012D222E760500F521EA /* Frameworks */ = {
+			isa = PBXFrameworksBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+		A7AE0138222E760500F521EA /* Frameworks */ = {
+			isa = PBXFrameworksBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+		5D12B634780AFE570E29BF0F /* Frameworks */ = {
+			isa = PBXGroup;
+			children = (
+				75AF51003C98E1AF94B14775 /* Pods_RainbowPlanet.framework */,
+			);
+			name = Frameworks;
+			sourceTree = "<group>";
+		};
+		7D599B292E3928B151ECFF01 /* Pods */ = {
+			isa = PBXGroup;
+			children = (
+				1DD1CA03D797EC66156C1CB4 /* Pods-RainbowPlanet.debug.xcconfig */,
+				8640BD6BD0F44B0788BBD034 /* Pods-RainbowPlanet.release.xcconfig */,
+			);
+			name = Pods;
+			sourceTree = "<group>";
+		};
+		A7AE0113222E760400F521EA = {
+			isa = PBXGroup;
+			children = (
+				A7AE011E222E760500F521EA /* RainbowPlanet */,
+				A7AE0133222E760500F521EA /* RainbowPlanetTests */,
+				A7AE013E222E760500F521EA /* RainbowPlanetUITests */,
+				A7AE011D222E760500F521EA /* Products */,
+				7D599B292E3928B151ECFF01 /* Pods */,
+				5D12B634780AFE570E29BF0F /* Frameworks */,
+			);
+			sourceTree = "<group>";
+		};
+		A7AE011D222E760500F521EA /* Products */ = {
+			isa = PBXGroup;
+			children = (
+				A7AE011C222E760500F521EA /* RainbowPlanet.app */,
+				A7AE0130222E760500F521EA /* RainbowPlanetTests.xctest */,
+				A7AE013B222E760500F521EA /* RainbowPlanetUITests.xctest */,
+			);
+			name = Products;
+			sourceTree = "<group>";
+		};
+		A7AE011E222E760500F521EA /* RainbowPlanet */ = {
+			isa = PBXGroup;
+			children = (
+				A7AE014D222E76A100F521EA /* AppDelegate */,
+				A7AE014E222E76AC00F521EA /* Base */,
+				A7AE015E222E7BDD00F521EA /* Modules */,
+				A7AE0121222E760500F521EA /* ViewController.swift */,
+				A7AE0123222E760500F521EA /* Main.storyboard */,
+				A7AE0126222E760500F521EA /* Assets.xcassets */,
+				A7AE0128222E760500F521EA /* LaunchScreen.storyboard */,
+				A7AE012B222E760500F521EA /* Info.plist */,
+			);
+			path = RainbowPlanet;
+			sourceTree = "<group>";
+		};
+		A7AE0133222E760500F521EA /* RainbowPlanetTests */ = {
+			isa = PBXGroup;
+			children = (
+				A7AE0134222E760500F521EA /* RainbowPlanetTests.swift */,
+				A7AE0136222E760500F521EA /* Info.plist */,
+			);
+			path = RainbowPlanetTests;
+			sourceTree = "<group>";
+		};
+		A7AE013E222E760500F521EA /* RainbowPlanetUITests */ = {
+			isa = PBXGroup;
+			children = (
+				A7AE013F222E760500F521EA /* RainbowPlanetUITests.swift */,
+				A7AE0141222E760500F521EA /* Info.plist */,
+			);
+			path = RainbowPlanetUITests;
+			sourceTree = "<group>";
+		};
+		A7AE014D222E76A100F521EA /* AppDelegate */ = {
+			isa = PBXGroup;
+			children = (
+				A7AE011F222E760500F521EA /* AppDelegate.swift */,
+			);
+			path = AppDelegate;
+			sourceTree = "<group>";
+		};
+		A7AE014E222E76AC00F521EA /* Base */ = {
+			isa = PBXGroup;
+			children = (
+				A7AE0158222E77AA00F521EA /* RootTabbarController */,
+				A7AE0155222E777300F521EA /* RootNavigationController */,
+				A7AE0152222E76F400F521EA /* RootWebViewController */,
+				A7AE014F222E76C700F521EA /* RootViewController */,
+				A7AE015B222E7BA400F521EA /* RootView */,
+			);
+			path = Base;
+			sourceTree = "<group>";
+		};
+		A7AE014F222E76C700F521EA /* RootViewController */ = {
+			isa = PBXGroup;
+			children = (
+				A7AE0150222E76EB00F521EA /* RootViewController.swift */,
+			);
+			path = RootViewController;
+			sourceTree = "<group>";
+		};
+		A7AE0152222E76F400F521EA /* RootWebViewController */ = {
+			isa = PBXGroup;
+			children = (
+				A7AE0153222E774C00F521EA /* RootWebViewController.swift */,
+			);
+			path = RootWebViewController;
+			sourceTree = "<group>";
+		};
+		A7AE0155222E777300F521EA /* RootNavigationController */ = {
+			isa = PBXGroup;
+			children = (
+				A7AE0156222E77A700F521EA /* RootNavigationController.swift */,
+			);
+			path = RootNavigationController;
+			sourceTree = "<group>";
+		};
+		A7AE0158222E77AA00F521EA /* RootTabbarController */ = {
+			isa = PBXGroup;
+			children = (
+				A7AE0159222E7B4800F521EA /* RootTabbarController.swift */,
+			);
+			path = RootTabbarController;
+			sourceTree = "<group>";
+		};
+		A7AE015B222E7BA400F521EA /* RootView */ = {
+			isa = PBXGroup;
+			children = (
+				A7AE015C222E7BC000F521EA /* RootView.swift */,
+			);
+			path = RootView;
+			sourceTree = "<group>";
+		};
+		A7AE015E222E7BDD00F521EA /* Modules */ = {
+			isa = PBXGroup;
+			children = (
+				A7AE0162222E7C4D00F521EA /* RegisterLoginModule */,
+				A7AE0163222E7C7C00F521EA /* CommonModule */,
+				A7AE0161222E7C1A00F521EA /* ShoppingMallModule */,
+				A7AE0160222E7BFE00F521EA /* ShoppingCartModule */,
+				A7AE015F222E7BFA00F521EA /* MineModule */,
+			);
+			path = Modules;
+			sourceTree = "<group>";
+		};
+		A7AE015F222E7BFA00F521EA /* MineModule */ = {
+			isa = PBXGroup;
+			children = (
+				A7AE0164222E7CBC00F521EA /* Mine */,
+			);
+			path = MineModule;
+			sourceTree = "<group>";
+		};
+		A7AE0160222E7BFE00F521EA /* ShoppingCartModule */ = {
+			isa = PBXGroup;
+			children = (
+				A7AE0165222E7CD600F521EA /* ShoppingCart */,
+			);
+			path = ShoppingCartModule;
+			sourceTree = "<group>";
+		};
+		A7AE0161222E7C1A00F521EA /* ShoppingMallModule */ = {
+			isa = PBXGroup;
+			children = (
+				A7AE0166222E7CE000F521EA /* ShoppingMall */,
+			);
+			path = ShoppingMallModule;
+			sourceTree = "<group>";
+		};
+		A7AE0162222E7C4D00F521EA /* RegisterLoginModule */ = {
+			isa = PBXGroup;
+			children = (
+			);
+			path = RegisterLoginModule;
+			sourceTree = "<group>";
+		};
+		A7AE0163222E7C7C00F521EA /* CommonModule */ = {
+			isa = PBXGroup;
+			children = (
+			);
+			path = CommonModule;
+			sourceTree = "<group>";
+		};
+		A7AE0164222E7CBC00F521EA /* Mine */ = {
+			isa = PBXGroup;
+			children = (
+				A7AE016D222E7D4600F521EA /* ViewController */,
+			);
+			path = Mine;
+			sourceTree = "<group>";
+		};
+		A7AE0165222E7CD600F521EA /* ShoppingCart */ = {
+			isa = PBXGroup;
+			children = (
+				A7AE016C222E7D3B00F521EA /* ViewController */,
+			);
+			path = ShoppingCart;
+			sourceTree = "<group>";
+		};
+		A7AE0166222E7CE000F521EA /* ShoppingMall */ = {
+			isa = PBXGroup;
+			children = (
+				A7AE016B222E7D2B00F521EA /* ViewController */,
+			);
+			path = ShoppingMall;
+			sourceTree = "<group>";
+		};
+		A7AE016B222E7D2B00F521EA /* ViewController */ = {
+			isa = PBXGroup;
+			children = (
+				A7AE0167222E7D2800F521EA /* ShoppingViewController.swift */,
+			);
+			path = ViewController;
+			sourceTree = "<group>";
+		};
+		A7AE016C222E7D3B00F521EA /* ViewController */ = {
+			isa = PBXGroup;
+			children = (
+				A7AE016E222E7D5400F521EA /* ShoppingCartViewController.swift */,
+			);
+			path = ViewController;
+			sourceTree = "<group>";
+		};
+		A7AE016D222E7D4600F521EA /* ViewController */ = {
+			isa = PBXGroup;
+			children = (
+				A7AE0172222E7D6000F521EA /* MineViewController.swift */,
+			);
+			path = ViewController;
+			sourceTree = "<group>";
+		};
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+		A7AE011B222E760500F521EA /* RainbowPlanet */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = A7AE0144222E760500F521EA /* Build configuration list for PBXNativeTarget "RainbowPlanet" */;
+			buildPhases = (
+				8127BCB7B14A2FEE0C53A4B1 /* [CP] Check Pods Manifest.lock */,
+				A7AE0118222E760500F521EA /* Sources */,
+				A7AE0119222E760500F521EA /* Frameworks */,
+				A7AE011A222E760500F521EA /* Resources */,
+				B325D4054C9A78844470B0EE /* [CP] Embed Pods Frameworks */,
+				1CC9154061F9A8006EE90A73 /* [CP] Copy Pods Resources */,
+			);
+			buildRules = (
+			);
+			dependencies = (
+			);
+			name = RainbowPlanet;
+			productName = RainbowPlanet;
+			productReference = A7AE011C222E760500F521EA /* RainbowPlanet.app */;
+			productType = "com.apple.product-type.application";
+		};
+		A7AE012F222E760500F521EA /* RainbowPlanetTests */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = A7AE0147222E760500F521EA /* Build configuration list for PBXNativeTarget "RainbowPlanetTests" */;
+			buildPhases = (
+				A7AE012C222E760500F521EA /* Sources */,
+				A7AE012D222E760500F521EA /* Frameworks */,
+				A7AE012E222E760500F521EA /* Resources */,
+			);
+			buildRules = (
+			);
+			dependencies = (
+				A7AE0132222E760500F521EA /* PBXTargetDependency */,
+			);
+			name = RainbowPlanetTests;
+			productName = RainbowPlanetTests;
+			productReference = A7AE0130222E760500F521EA /* RainbowPlanetTests.xctest */;
+			productType = "com.apple.product-type.bundle.unit-test";
+		};
+		A7AE013A222E760500F521EA /* RainbowPlanetUITests */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = A7AE014A222E760500F521EA /* Build configuration list for PBXNativeTarget "RainbowPlanetUITests" */;
+			buildPhases = (
+				A7AE0137222E760500F521EA /* Sources */,
+				A7AE0138222E760500F521EA /* Frameworks */,
+				A7AE0139222E760500F521EA /* Resources */,
+			);
+			buildRules = (
+			);
+			dependencies = (
+				A7AE013D222E760500F521EA /* PBXTargetDependency */,
+			);
+			name = RainbowPlanetUITests;
+			productName = RainbowPlanetUITests;
+			productReference = A7AE013B222E760500F521EA /* RainbowPlanetUITests.xctest */;
+			productType = "com.apple.product-type.bundle.ui-testing";
+		};
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+		A7AE0114222E760400F521EA /* Project object */ = {
+			isa = PBXProject;
+			attributes = {
+				LastSwiftUpdateCheck = 1010;
+				LastUpgradeCheck = 1010;
+				ORGANIZATIONNAME = "南鑫林";
+				TargetAttributes = {
+					A7AE011B222E760500F521EA = {
+						CreatedOnToolsVersion = 10.1;
+					};
+					A7AE012F222E760500F521EA = {
+						CreatedOnToolsVersion = 10.1;
+						TestTargetID = A7AE011B222E760500F521EA;
+					};
+					A7AE013A222E760500F521EA = {
+						CreatedOnToolsVersion = 10.1;
+						TestTargetID = A7AE011B222E760500F521EA;
+					};
+				};
+			};
+			buildConfigurationList = A7AE0117222E760400F521EA /* Build configuration list for PBXProject "RainbowPlanet" */;
+			compatibilityVersion = "Xcode 9.3";
+			developmentRegion = en;
+			hasScannedForEncodings = 0;
+			knownRegions = (
+				en,
+				Base,
+			);
+			mainGroup = A7AE0113222E760400F521EA;
+			productRefGroup = A7AE011D222E760500F521EA /* Products */;
+			projectDirPath = "";
+			projectRoot = "";
+			targets = (
+				A7AE011B222E760500F521EA /* RainbowPlanet */,
+				A7AE012F222E760500F521EA /* RainbowPlanetTests */,
+				A7AE013A222E760500F521EA /* RainbowPlanetUITests */,
+			);
+		};
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+		A7AE011A222E760500F521EA /* Resources */ = {
+			isa = PBXResourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				A7AE012A222E760500F521EA /* LaunchScreen.storyboard in Resources */,
+				A7AE0127222E760500F521EA /* Assets.xcassets in Resources */,
+				A7AE0125222E760500F521EA /* Main.storyboard in Resources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+		A7AE012E222E760500F521EA /* Resources */ = {
+			isa = PBXResourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+		A7AE0139222E760500F521EA /* Resources */ = {
+			isa = PBXResourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+		1CC9154061F9A8006EE90A73 /* [CP] Copy Pods Resources */ = {
+			isa = PBXShellScriptBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			inputFileListPaths = (
+			);
+			inputPaths = (
+				"${SRCROOT}/Pods/Target Support Files/Pods-RainbowPlanet/Pods-RainbowPlanet-resources.sh",
+				"${PODS_ROOT}/UMCCommonLog/UMCommonLog/UMCommonLog.bundle",
+				"${PODS_ROOT}/UMCShare/UMShare/UMSocialUI/UMSocialSDKResources.bundle",
+			);
+			name = "[CP] Copy Pods Resources";
+			outputFileListPaths = (
+			);
+			outputPaths = (
+				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/UMCommonLog.bundle",
+				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/UMSocialSDKResources.bundle",
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+			shellPath = /bin/sh;
+			shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RainbowPlanet/Pods-RainbowPlanet-resources.sh\"\n";
+			showEnvVarsInLog = 0;
+		};
+		8127BCB7B14A2FEE0C53A4B1 /* [CP] Check Pods Manifest.lock */ = {
+			isa = PBXShellScriptBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			inputFileListPaths = (
+			);
+			inputPaths = (
+				"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+				"${PODS_ROOT}/Manifest.lock",
+			);
+			name = "[CP] Check Pods Manifest.lock";
+			outputFileListPaths = (
+			);
+			outputPaths = (
+				"$(DERIVED_FILE_DIR)/Pods-RainbowPlanet-checkManifestLockResult.txt",
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+			shellPath = /bin/sh;
+			shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n    # print error to STDERR\n    echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n    exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+			showEnvVarsInLog = 0;
+		};
+		B325D4054C9A78844470B0EE /* [CP] Embed Pods Frameworks */ = {
+			isa = PBXShellScriptBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			inputFileListPaths = (
+			);
+			inputPaths = (
+				"${SRCROOT}/Pods/Target Support Files/Pods-RainbowPlanet/Pods-RainbowPlanet-frameworks.sh",
+				"${BUILT_PRODUCTS_DIR}/Alamofire/Alamofire.framework",
+				"${BUILT_PRODUCTS_DIR}/CryptoSwift/CryptoSwift.framework",
+				"${BUILT_PRODUCTS_DIR}/DeviceKit/DeviceKit.framework",
+				"${BUILT_PRODUCTS_DIR}/ESTabBarController-swift/ESTabBarController_swift.framework",
+				"${BUILT_PRODUCTS_DIR}/FSPagerView/FSPagerView.framework",
+				"${BUILT_PRODUCTS_DIR}/FWPopupView/FWPopupView.framework",
+				"${BUILT_PRODUCTS_DIR}/IQKeyboardManagerSwift/IQKeyboardManagerSwift.framework",
+				"${BUILT_PRODUCTS_DIR}/Kingfisher/Kingfisher.framework",
+				"${BUILT_PRODUCTS_DIR}/MBProgressHUD/MBProgressHUD.framework",
+				"${BUILT_PRODUCTS_DIR}/MJRefresh/MJRefresh.framework",
+				"${BUILT_PRODUCTS_DIR}/Moya/Moya.framework",
+				"${BUILT_PRODUCTS_DIR}/ObjectMapper/ObjectMapper.framework",
+				"${BUILT_PRODUCTS_DIR}/PPBadgeViewSwift/PPBadgeViewSwift.framework",
+				"${BUILT_PRODUCTS_DIR}/Result/Result.framework",
+				"${BUILT_PRODUCTS_DIR}/RxAtomic/RxAtomic.framework",
+				"${BUILT_PRODUCTS_DIR}/RxCocoa/RxCocoa.framework",
+				"${BUILT_PRODUCTS_DIR}/RxSwift/RxSwift.framework",
+				"${BUILT_PRODUCTS_DIR}/SnapKit/SnapKit.framework",
+				"${BUILT_PRODUCTS_DIR}/SwiftDate/SwiftDate.framework",
+				"${BUILT_PRODUCTS_DIR}/SwiftyJSON/SwiftyJSON.framework",
+				"${BUILT_PRODUCTS_DIR}/SwiftyStarRatingView/SwiftyStarRatingView.framework",
+				"${BUILT_PRODUCTS_DIR}/XLPagerTabStrip/XLPagerTabStrip.framework",
+			);
+			name = "[CP] Embed Pods Frameworks";
+			outputFileListPaths = (
+			);
+			outputPaths = (
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Alamofire.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CryptoSwift.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/DeviceKit.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ESTabBarController_swift.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FSPagerView.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FWPopupView.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IQKeyboardManagerSwift.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Kingfisher.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MBProgressHUD.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MJRefresh.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Moya.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ObjectMapper.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/PPBadgeViewSwift.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Result.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxAtomic.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxCocoa.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxSwift.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SnapKit.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftDate.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftyJSON.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftyStarRatingView.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/XLPagerTabStrip.framework",
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+			shellPath = /bin/sh;
+			shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RainbowPlanet/Pods-RainbowPlanet-frameworks.sh\"\n";
+			showEnvVarsInLog = 0;
+		};
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+		A7AE0118222E760500F521EA /* Sources */ = {
+			isa = PBXSourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				A7AE0122222E760500F521EA /* ViewController.swift in Sources */,
+				A7AE015A222E7B4800F521EA /* RootTabbarController.swift in Sources */,
+				A7AE0170222E7D5400F521EA /* ShoppingCartViewController.swift in Sources */,
+				A7AE0120222E760500F521EA /* AppDelegate.swift in Sources */,
+				A7AE0151222E76EB00F521EA /* RootViewController.swift in Sources */,
+				A7AE015D222E7BC000F521EA /* RootView.swift in Sources */,
+				A7AE0157222E77A700F521EA /* RootNavigationController.swift in Sources */,
+				A7AE0169222E7D2800F521EA /* ShoppingViewController.swift in Sources */,
+				A7AE0154222E774C00F521EA /* RootWebViewController.swift in Sources */,
+				A7AE0174222E7D6000F521EA /* MineViewController.swift in Sources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+		A7AE012C222E760500F521EA /* Sources */ = {
+			isa = PBXSourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				A7AE0135222E760500F521EA /* RainbowPlanetTests.swift in Sources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+		A7AE0137222E760500F521EA /* Sources */ = {
+			isa = PBXSourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				A7AE0140222E760500F521EA /* RainbowPlanetUITests.swift in Sources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+		A7AE0132222E760500F521EA /* PBXTargetDependency */ = {
+			isa = PBXTargetDependency;
+			target = A7AE011B222E760500F521EA /* RainbowPlanet */;
+			targetProxy = A7AE0131222E760500F521EA /* PBXContainerItemProxy */;
+		};
+		A7AE013D222E760500F521EA /* PBXTargetDependency */ = {
+			isa = PBXTargetDependency;
+			target = A7AE011B222E760500F521EA /* RainbowPlanet */;
+			targetProxy = A7AE013C222E760500F521EA /* PBXContainerItemProxy */;
+		};
+/* End PBXTargetDependency section */
+
+/* Begin PBXVariantGroup section */
+		A7AE0123222E760500F521EA /* Main.storyboard */ = {
+			isa = PBXVariantGroup;
+			children = (
+				A7AE0124222E760500F521EA /* Base */,
+			);
+			name = Main.storyboard;
+			sourceTree = "<group>";
+		};
+		A7AE0128222E760500F521EA /* LaunchScreen.storyboard */ = {
+			isa = PBXVariantGroup;
+			children = (
+				A7AE0129222E760500F521EA /* Base */,
+			);
+			name = LaunchScreen.storyboard;
+			sourceTree = "<group>";
+		};
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+		A7AE0142222E760500F521EA /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				CLANG_ANALYZER_NONNULL = YES;
+				CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+				CLANG_CXX_LIBRARY = "libc++";
+				CLANG_ENABLE_MODULES = YES;
+				CLANG_ENABLE_OBJC_ARC = YES;
+				CLANG_ENABLE_OBJC_WEAK = YES;
+				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+				CLANG_WARN_BOOL_CONVERSION = YES;
+				CLANG_WARN_COMMA = YES;
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
+				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+				CLANG_WARN_EMPTY_BODY = YES;
+				CLANG_WARN_ENUM_CONVERSION = YES;
+				CLANG_WARN_INFINITE_RECURSION = YES;
+				CLANG_WARN_INT_CONVERSION = YES;
+				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+				CLANG_WARN_STRICT_PROTOTYPES = YES;
+				CLANG_WARN_SUSPICIOUS_MOVE = YES;
+				CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+				CLANG_WARN_UNREACHABLE_CODE = YES;
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+				CODE_SIGN_IDENTITY = "iPhone Developer";
+				COPY_PHASE_STRIP = NO;
+				DEBUG_INFORMATION_FORMAT = dwarf;
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
+				ENABLE_TESTABILITY = YES;
+				GCC_C_LANGUAGE_STANDARD = gnu11;
+				GCC_DYNAMIC_NO_PIC = NO;
+				GCC_NO_COMMON_BLOCKS = YES;
+				GCC_OPTIMIZATION_LEVEL = 0;
+				GCC_PREPROCESSOR_DEFINITIONS = (
+					"DEBUG=1",
+					"$(inherited)",
+				);
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+				GCC_WARN_UNUSED_FUNCTION = YES;
+				GCC_WARN_UNUSED_VARIABLE = YES;
+				IPHONEOS_DEPLOYMENT_TARGET = 12.1;
+				MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
+				MTL_FAST_MATH = YES;
+				ONLY_ACTIVE_ARCH = YES;
+				SDKROOT = iphoneos;
+				SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+			};
+			name = Debug;
+		};
+		A7AE0143222E760500F521EA /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				CLANG_ANALYZER_NONNULL = YES;
+				CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+				CLANG_CXX_LIBRARY = "libc++";
+				CLANG_ENABLE_MODULES = YES;
+				CLANG_ENABLE_OBJC_ARC = YES;
+				CLANG_ENABLE_OBJC_WEAK = YES;
+				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+				CLANG_WARN_BOOL_CONVERSION = YES;
+				CLANG_WARN_COMMA = YES;
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
+				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+				CLANG_WARN_EMPTY_BODY = YES;
+				CLANG_WARN_ENUM_CONVERSION = YES;
+				CLANG_WARN_INFINITE_RECURSION = YES;
+				CLANG_WARN_INT_CONVERSION = YES;
+				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+				CLANG_WARN_STRICT_PROTOTYPES = YES;
+				CLANG_WARN_SUSPICIOUS_MOVE = YES;
+				CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+				CLANG_WARN_UNREACHABLE_CODE = YES;
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+				CODE_SIGN_IDENTITY = "iPhone Developer";
+				COPY_PHASE_STRIP = NO;
+				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+				ENABLE_NS_ASSERTIONS = NO;
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
+				GCC_C_LANGUAGE_STANDARD = gnu11;
+				GCC_NO_COMMON_BLOCKS = YES;
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+				GCC_WARN_UNUSED_FUNCTION = YES;
+				GCC_WARN_UNUSED_VARIABLE = YES;
+				IPHONEOS_DEPLOYMENT_TARGET = 12.1;
+				MTL_ENABLE_DEBUG_INFO = NO;
+				MTL_FAST_MATH = YES;
+				SDKROOT = iphoneos;
+				SWIFT_COMPILATION_MODE = wholemodule;
+				SWIFT_OPTIMIZATION_LEVEL = "-O";
+				VALIDATE_PRODUCT = YES;
+			};
+			name = Release;
+		};
+		A7AE0145222E760500F521EA /* Debug */ = {
+			isa = XCBuildConfiguration;
+			baseConfigurationReference = 1DD1CA03D797EC66156C1CB4 /* Pods-RainbowPlanet.debug.xcconfig */;
+			buildSettings = {
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				CODE_SIGN_STYLE = Automatic;
+				INFOPLIST_FILE = RainbowPlanet/Info.plist;
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/Frameworks",
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = com.nanxinlin.RainbowPlanet;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_VERSION = 4.2;
+				TARGETED_DEVICE_FAMILY = "1,2";
+			};
+			name = Debug;
+		};
+		A7AE0146222E760500F521EA /* Release */ = {
+			isa = XCBuildConfiguration;
+			baseConfigurationReference = 8640BD6BD0F44B0788BBD034 /* Pods-RainbowPlanet.release.xcconfig */;
+			buildSettings = {
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				CODE_SIGN_STYLE = Automatic;
+				INFOPLIST_FILE = RainbowPlanet/Info.plist;
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/Frameworks",
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = com.nanxinlin.RainbowPlanet;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_VERSION = 4.2;
+				TARGETED_DEVICE_FAMILY = "1,2";
+			};
+			name = Release;
+		};
+		A7AE0148222E760500F521EA /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+				BUNDLE_LOADER = "$(TEST_HOST)";
+				CODE_SIGN_STYLE = Automatic;
+				INFOPLIST_FILE = RainbowPlanetTests/Info.plist;
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/Frameworks",
+					"@loader_path/Frameworks",
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = com.nanxinlin.RainbowPlanetTests;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_VERSION = 4.2;
+				TARGETED_DEVICE_FAMILY = "1,2";
+				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RainbowPlanet.app/RainbowPlanet";
+			};
+			name = Debug;
+		};
+		A7AE0149222E760500F521EA /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+				BUNDLE_LOADER = "$(TEST_HOST)";
+				CODE_SIGN_STYLE = Automatic;
+				INFOPLIST_FILE = RainbowPlanetTests/Info.plist;
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/Frameworks",
+					"@loader_path/Frameworks",
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = com.nanxinlin.RainbowPlanetTests;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_VERSION = 4.2;
+				TARGETED_DEVICE_FAMILY = "1,2";
+				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RainbowPlanet.app/RainbowPlanet";
+			};
+			name = Release;
+		};
+		A7AE014B222E760500F521EA /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+				CODE_SIGN_STYLE = Automatic;
+				INFOPLIST_FILE = RainbowPlanetUITests/Info.plist;
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/Frameworks",
+					"@loader_path/Frameworks",
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = com.nanxinlin.RainbowPlanetUITests;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_VERSION = 4.2;
+				TARGETED_DEVICE_FAMILY = "1,2";
+				TEST_TARGET_NAME = RainbowPlanet;
+			};
+			name = Debug;
+		};
+		A7AE014C222E760500F521EA /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+				CODE_SIGN_STYLE = Automatic;
+				INFOPLIST_FILE = RainbowPlanetUITests/Info.plist;
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/Frameworks",
+					"@loader_path/Frameworks",
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = com.nanxinlin.RainbowPlanetUITests;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_VERSION = 4.2;
+				TARGETED_DEVICE_FAMILY = "1,2";
+				TEST_TARGET_NAME = RainbowPlanet;
+			};
+			name = Release;
+		};
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+		A7AE0117222E760400F521EA /* Build configuration list for PBXProject "RainbowPlanet" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				A7AE0142222E760500F521EA /* Debug */,
+				A7AE0143222E760500F521EA /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+		A7AE0144222E760500F521EA /* Build configuration list for PBXNativeTarget "RainbowPlanet" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				A7AE0145222E760500F521EA /* Debug */,
+				A7AE0146222E760500F521EA /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+		A7AE0147222E760500F521EA /* Build configuration list for PBXNativeTarget "RainbowPlanetTests" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				A7AE0148222E760500F521EA /* Debug */,
+				A7AE0149222E760500F521EA /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+		A7AE014A222E760500F521EA /* Build configuration list for PBXNativeTarget "RainbowPlanetUITests" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				A7AE014B222E760500F521EA /* Debug */,
+				A7AE014C222E760500F521EA /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+/* End XCConfigurationList section */
+	};
+	rootObject = A7AE0114222E760400F521EA /* Project object */;
+}

+ 1 - 1
RainbowPlanetOC/RainbowPlanetOC.xcodeproj/project.xcworkspace/contents.xcworkspacedata

@@ -2,6 +2,6 @@
 <Workspace
    version = "1.0">
    <FileRef
-      location = "self:RainbowPlanetOC.xcodeproj">
+      location = "self:RainbowPlanet.xcodeproj">
    </FileRef>
 </Workspace>

RainbowPlanetOC/RainbowPlanetOC.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist → RainbowPlanet/RainbowPlanet.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist


+ 1 - 1
RainbowPlanetOC/RainbowPlanetOC.xcworkspace/contents.xcworkspacedata

@@ -2,7 +2,7 @@
 <Workspace
    version = "1.0">
    <FileRef
-      location = "group:RainbowPlanetOC.xcodeproj">
+      location = "group:RainbowPlanet.xcodeproj">
    </FileRef>
    <FileRef
       location = "group:Pods/Pods.xcodeproj">

RainbowPlanetOC/RainbowPlanetOC.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist → RainbowPlanet/RainbowPlanet.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist


+ 2 - 2
RainbowPlanetSwift/RainbowPlanetSwift/AppDelegate.swift

@@ -1,8 +1,8 @@
 //
 //  AppDelegate.swift
-//  RainbowPlanetSwift
+//  RainbowPlanet
 //
-//  Created by 南鑫林 on 2019/3/4.
+//  Created by 南鑫林 on 2019/3/5.
 //  Copyright © 2019 南鑫林. All rights reserved.
 //
 

RainbowPlanetOC/RainbowPlanetOC/Assets.xcassets/AppIcon.appiconset/Contents.json → RainbowPlanet/RainbowPlanet/Assets.xcassets/AppIcon.appiconset/Contents.json


RainbowPlanetOC/RainbowPlanetOC/Assets.xcassets/Contents.json → RainbowPlanet/RainbowPlanet/Assets.xcassets/Contents.json


RainbowPlanetOC/RainbowPlanetOC/Base.lproj/LaunchScreen.storyboard → RainbowPlanet/RainbowPlanet/Base.lproj/LaunchScreen.storyboard


RainbowPlanetSwift/RainbowPlanetSwift/Base.lproj/Main.storyboard → RainbowPlanet/RainbowPlanet/Base.lproj/Main.storyboard


+ 30 - 0
RainbowPlanet/RainbowPlanet/Base/RootNavigationController/RootNavigationController.swift

@@ -0,0 +1,30 @@
+//
+//  RootNavigationController.swift
+//  RainbowPlanet
+//
+//  Created by 南鑫林 on 2019/3/5.
+//  Copyright © 2019 南鑫林. All rights reserved.
+//
+
+import UIKit
+
+class RootNavigationController: UINavigationController {
+
+    override func viewDidLoad() {
+        super.viewDidLoad()
+
+        // Do any additional setup after loading the view.
+    }
+    
+
+    /*
+    // MARK: - Navigation
+
+    // In a storyboard-based application, you will often want to do a little preparation before navigation
+    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
+        // Get the new view controller using segue.destination.
+        // Pass the selected object to the new view controller.
+    }
+    */
+
+}

+ 54 - 0
RainbowPlanet/RainbowPlanet/Base/RootTabbarController/RootTabbarController.swift

@@ -0,0 +1,54 @@
+//
+//  RootTabbarController.swift
+//  RainbowPlanet
+//
+//  Created by 南鑫林 on 2019/3/5.
+//  Copyright © 2019 南鑫林. All rights reserved.
+//
+
+import UIKit
+import ESTabBarController_swift
+
+class RootTabbarController: NSObject {
+
+    private static let _sharedInstance = RootTabbarController()
+
+    private override init() {} // 私有化init方法
+
+    class func shared() -> RootTabbarController {
+        return _sharedInstance
+    }
+
+    public lazy var tabBarController: ESTabBarController = {
+        let tabBarController = ESTabBarController()
+        let v1 = ShoppingViewController()
+        let v2 = ShoppingCartViewController()
+        let v3 = MineViewController()
+        v1.tabBarItem = ESTabBarItem.init(TabBarItemContentView(),title: "商城", image: UIImage(named: ""), selectedImage: UIImage(named: ""))
+        v2.tabBarItem = ESTabBarItem.init(TabBarItemContentView(),title: "购物车", image: UIImage(named: ""), selectedImage: UIImage(named: ""))
+        v3.tabBarItem = ESTabBarItem.init(TabBarItemContentView(),title: "我的", image: UIImage(named: ""), selectedImage: UIImage(named: ""))
+
+        let n1 = RootNavigationController.init(rootViewController: v1)
+        let n2 = RootNavigationController.init(rootViewController: v2)
+        let n3 = RootNavigationController.init(rootViewController: v3)
+
+        tabBarController.viewControllers = [n1, n2, n3]
+
+        return tabBarController
+    }()
+}
+
+class TabBarItemContentView: ESTabBarItemContentView {
+
+    override init(frame: CGRect) {
+        super.init(frame: frame)
+        textColor = UIColor.init(white: 175.0 / 255.0, alpha: 1.0)
+        highlightTextColor = UIColor.init(red: 254/255.0, green: 73/255.0, blue: 42/255.0, alpha: 1.0)
+//        iconColor = UIColor.init(white: 175.0 / 255.0, alpha: 1.0)
+//        highlightIconColor = UIColor.init(red: 254/255.0, green: 73/255.0, blue: 42/255.0, alpha: 1.0)
+    }
+
+    public required init?(coder aDecoder: NSCoder) {
+        fatalError("init(coder:) has not been implemented")
+    }
+}

+ 21 - 0
RainbowPlanet/RainbowPlanet/Base/RootView/RootView.swift

@@ -0,0 +1,21 @@
+//
+//  RootView.swift
+//  RainbowPlanet
+//
+//  Created by 南鑫林 on 2019/3/5.
+//  Copyright © 2019 南鑫林. All rights reserved.
+//
+
+import UIKit
+
+class RootView: UIView {
+
+    /*
+    // Only override draw() if you perform custom drawing.
+    // An empty implementation adversely affects performance during animation.
+    override func draw(_ rect: CGRect) {
+        // Drawing code
+    }
+    */
+
+}

+ 30 - 0
RainbowPlanet/RainbowPlanet/Base/RootViewController/RootViewController.swift

@@ -0,0 +1,30 @@
+//
+//  RootViewController.swift
+//  RainbowPlanet
+//
+//  Created by 南鑫林 on 2019/3/5.
+//  Copyright © 2019 南鑫林. All rights reserved.
+//
+
+import UIKit
+
+class RootViewController: UIViewController {
+
+    override func viewDidLoad() {
+        super.viewDidLoad()
+
+        // Do any additional setup after loading the view.
+    }
+    
+
+    /*
+    // MARK: - Navigation
+
+    // In a storyboard-based application, you will often want to do a little preparation before navigation
+    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
+        // Get the new view controller using segue.destination.
+        // Pass the selected object to the new view controller.
+    }
+    */
+
+}

+ 30 - 0
RainbowPlanet/RainbowPlanet/Base/RootWebViewController/RootWebViewController.swift

@@ -0,0 +1,30 @@
+//
+//  RootWebViewController.swift
+//  RainbowPlanet
+//
+//  Created by 南鑫林 on 2019/3/5.
+//  Copyright © 2019 南鑫林. All rights reserved.
+//
+
+import UIKit
+
+class RootWebViewController: RootViewController {
+
+    override func viewDidLoad() {
+        super.viewDidLoad()
+
+        // Do any additional setup after loading the view.
+    }
+    
+
+    /*
+    // MARK: - Navigation
+
+    // In a storyboard-based application, you will often want to do a little preparation before navigation
+    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
+        // Get the new view controller using segue.destination.
+        // Pass the selected object to the new view controller.
+    }
+    */
+
+}

RainbowPlanetOC/RainbowPlanetOC/Info.plist → RainbowPlanet/RainbowPlanet/Info.plist


+ 30 - 0
RainbowPlanet/RainbowPlanet/Modules/MineModule/Mine/ViewController/MineViewController.swift

@@ -0,0 +1,30 @@
+//
+//  MineViewController.swift
+//  RainbowPlanet
+//
+//  Created by 南鑫林 on 2019/3/5.
+//  Copyright © 2019 南鑫林. All rights reserved.
+//
+
+import UIKit
+
+class MineViewController: RootViewController {
+
+    override func viewDidLoad() {
+        super.viewDidLoad()
+
+        // Do any additional setup after loading the view.
+    }
+
+
+    /*
+    // MARK: - Navigation
+
+    // In a storyboard-based application, you will often want to do a little preparation before navigation
+    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
+        // Get the new view controller using segue.destination.
+        // Pass the selected object to the new view controller.
+    }
+    */
+
+}

+ 30 - 0
RainbowPlanet/RainbowPlanet/Modules/ShoppingCartModule/ShoppingCart/ViewController/ShoppingCartViewController.swift

@@ -0,0 +1,30 @@
+//
+//  ShoppingCartViewController.swift
+//  RainbowPlanet
+//
+//  Created by 南鑫林 on 2019/3/5.
+//  Copyright © 2019 南鑫林. All rights reserved.
+//
+
+import UIKit
+
+class ShoppingCartViewController: RootViewController {
+
+    override func viewDidLoad() {
+        super.viewDidLoad()
+
+        // Do any additional setup after loading the view.
+    }
+
+
+    /*
+    // MARK: - Navigation
+
+    // In a storyboard-based application, you will often want to do a little preparation before navigation
+    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
+        // Get the new view controller using segue.destination.
+        // Pass the selected object to the new view controller.
+    }
+    */
+
+}

+ 16 - 0
RainbowPlanet/RainbowPlanet/Modules/ShoppingMallModule/ShoppingMall/ViewController/ShoppingViewController.swift

@@ -0,0 +1,16 @@
+//
+//  ShoppingViewController.swift
+//  RainbowPlanet
+//
+//  Created by 南鑫林 on 2019/3/5.
+//  Copyright © 2019 南鑫林. All rights reserved.
+//
+
+import UIKit
+
+class ShoppingViewController: RootViewController {
+
+    override func viewDidLoad() {
+        super.viewDidLoad()
+    }
+}

+ 3 - 2
RainbowPlanetSwift/RainbowPlanetSwift/ViewController.swift

@@ -1,12 +1,13 @@
 //
 //  ViewController.swift
-//  RainbowPlanetSwift
+//  RainbowPlanet
 //
-//  Created by 南鑫林 on 2019/3/4.
+//  Created by 南鑫林 on 2019/3/5.
 //  Copyright © 2019 南鑫林. All rights reserved.
 //
 
 import UIKit
+
 class ViewController: UIViewController {
 
     override func viewDidLoad() {

RainbowPlanetOC/RainbowPlanetOCTests/Info.plist → RainbowPlanet/RainbowPlanetTests/Info.plist


+ 5 - 5
RainbowPlanetSwift/RainbowPlanetSwiftTests/RainbowPlanetSwiftTests.swift

@@ -1,15 +1,15 @@
 //
-//  RainbowPlanetSwiftTests.swift
-//  RainbowPlanetSwiftTests
+//  RainbowPlanetTests.swift
+//  RainbowPlanetTests
 //
-//  Created by 南鑫林 on 2019/3/4.
+//  Created by 南鑫林 on 2019/3/5.
 //  Copyright © 2019 南鑫林. All rights reserved.
 //
 
 import XCTest
-@testable import RainbowPlanetSwift
+@testable import RainbowPlanet
 
-class RainbowPlanetSwiftTests: XCTestCase {
+class RainbowPlanetTests: XCTestCase {
 
     override func setUp() {
         // Put setup code here. This method is called before the invocation of each test method in the class.

RainbowPlanetOC/RainbowPlanetOCUITests/Info.plist → RainbowPlanet/RainbowPlanetUITests/Info.plist


+ 4 - 4
RainbowPlanetSwift/RainbowPlanetSwiftUITests/RainbowPlanetSwiftUITests.swift

@@ -1,14 +1,14 @@
 //
-//  RainbowPlanetSwiftUITests.swift
-//  RainbowPlanetSwiftUITests
+//  RainbowPlanetUITests.swift
+//  RainbowPlanetUITests
 //
-//  Created by 南鑫林 on 2019/3/4.
+//  Created by 南鑫林 on 2019/3/5.
 //  Copyright © 2019 南鑫林. All rights reserved.
 //
 
 import XCTest
 
-class RainbowPlanetSwiftUITests: XCTestCase {
+class RainbowPlanetUITests: XCTestCase {
 
     override func setUp() {
         // Put setup code here. This method is called before the invocation of each test method in the class.

+ 0 - 44
RainbowPlanetOC/Podfile

@@ -1,44 +0,0 @@
-=begin
-这里写注释
-=end
-
-platform :ios, '9.0'
-
-target 'RainbowPlanetOC' do
-
-# 网络请求
-pod 'AFNetworking'
-pod 'YTKNetwork'
-
-# 图片加载
-pod 'SDWebImage'
-pod 'SDWebImage/GIF'
-
-# 下来刷新上啦加载
-pod 'MJRefresh'
-
-# json解析
-pod 'MJExtension'
-
-# 加载提示框
-pod 'MBProgressHUD'
-
-# 布局约束
-pod 'Masonry'
-
-# 键盘
-pod 'IQKeyboardManager'
-
-# 轮播图
-pod 'SDCycleScrollView'
-
-# 分段导航栏
-pod 'MJCSegmentInterface'
-
-# tabbar
-pod 'CYLTabBarController'
-
-# 内存泄露检测工具
-pod 'MLeaksFinder'
-
-end

+ 0 - 89
RainbowPlanetOC/Podfile.lock

@@ -1,89 +0,0 @@
-PODS:
-  - AFNetworking (3.2.1):
-    - AFNetworking/NSURLSession (= 3.2.1)
-    - AFNetworking/Reachability (= 3.2.1)
-    - AFNetworking/Security (= 3.2.1)
-    - AFNetworking/Serialization (= 3.2.1)
-    - AFNetworking/UIKit (= 3.2.1)
-  - AFNetworking/NSURLSession (3.2.1):
-    - AFNetworking/Reachability
-    - AFNetworking/Security
-    - AFNetworking/Serialization
-  - AFNetworking/Reachability (3.2.1)
-  - AFNetworking/Security (3.2.1)
-  - AFNetworking/Serialization (3.2.1)
-  - AFNetworking/UIKit (3.2.1):
-    - AFNetworking/NSURLSession
-  - CYLTabBarController (1.17.22)
-  - FBRetainCycleDetector (0.1.4)
-  - FLAnimatedImage (1.0.12)
-  - IQKeyboardManager (6.2.0)
-  - Masonry (1.1.0)
-  - MBProgressHUD (1.1.0)
-  - MJCSegmentInterface (1.9.6)
-  - MJExtension (3.0.15.1)
-  - MJRefresh (3.1.15.7)
-  - MLeaksFinder (1.0.0):
-    - FBRetainCycleDetector
-  - SDCycleScrollView (1.75):
-    - SDWebImage (>= 4.0.0)
-  - SDWebImage (4.4.5):
-    - SDWebImage/Core (= 4.4.5)
-  - SDWebImage/Core (4.4.5)
-  - SDWebImage/GIF (4.4.5):
-    - FLAnimatedImage (~> 1.0)
-    - SDWebImage/Core
-  - YTKNetwork (2.0.4):
-    - AFNetworking (~> 3.0)
-
-DEPENDENCIES:
-  - AFNetworking
-  - CYLTabBarController
-  - IQKeyboardManager
-  - Masonry
-  - MBProgressHUD
-  - MJCSegmentInterface
-  - MJExtension
-  - MJRefresh
-  - MLeaksFinder
-  - SDCycleScrollView
-  - SDWebImage
-  - SDWebImage/GIF
-  - YTKNetwork
-
-SPEC REPOS:
-  https://github.com/cocoapods/specs.git:
-    - AFNetworking
-    - CYLTabBarController
-    - FBRetainCycleDetector
-    - FLAnimatedImage
-    - IQKeyboardManager
-    - Masonry
-    - MBProgressHUD
-    - MJCSegmentInterface
-    - MJExtension
-    - MJRefresh
-    - MLeaksFinder
-    - SDCycleScrollView
-    - SDWebImage
-    - YTKNetwork
-
-SPEC CHECKSUMS:
-  AFNetworking: b6f891fdfaed196b46c7a83cf209e09697b94057
-  CYLTabBarController: 35784c2969383583d11cc56ff5abce078f19d94a
-  FBRetainCycleDetector: 46f8179bbb1c587deee3ea838a1a3ee02acf5015
-  FLAnimatedImage: 4a0b56255d9b05f18b6dd7ee06871be5d3b89e31
-  IQKeyboardManager: 6194101620b73af5e67900b8f89707a99de0b804
-  Masonry: 678fab65091a9290e40e2832a55e7ab731aad201
-  MBProgressHUD: e7baa36a220447d8aeb12769bf0585582f3866d9
-  MJCSegmentInterface: 00eb48a674716d9dbecb16494e9fe082870fff16
-  MJExtension: 19bc33ce2eee2d319760f5622562cf581a6ff756
-  MJRefresh: 697f8ec75ebdbe9207767bb682cf0f51b0d8a41f
-  MLeaksFinder: 8c435bd2f6d070af18cff082b503b21adc130fc0
-  SDCycleScrollView: 884b88f0266dd4708a0e1934975c69cb971707b1
-  SDWebImage: ecc03494e973b93b80213649d32175f8d2d17d4d
-  YTKNetwork: df8a7a5597bda1664a4efaa7ef871a818a887fe0
-
-PODFILE CHECKSUM: d81bcadb3c23a47225c69a78cbdcd93b708a6002
-
-COCOAPODS: 1.5.3

+ 0 - 37
RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFCompatibilityMacros.h

@@ -1,37 +0,0 @@
-// AFCompatibilityMacros.h
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#ifndef AFCompatibilityMacros_h
-#define AFCompatibilityMacros_h
-
-#ifdef API_UNAVAILABLE
-    #define AF_API_UNAVAILABLE(x) API_UNAVAILABLE(x)
-#else
-    #define AF_API_UNAVAILABLE(x)
-#endif // API_UNAVAILABLE
-
-#if __has_warning("-Wunguarded-availability-new")
-    #define AF_CAN_USE_AT_AVAILABLE 1
-#else
-    #define AF_CAN_USE_AT_AVAILABLE 0
-#endif
-
-#endif /* AFCompatibilityMacros_h */

+ 0 - 304
RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.h

@@ -1,304 +0,0 @@
-// AFHTTPSessionManager.h
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import <Foundation/Foundation.h>
-#if !TARGET_OS_WATCH
-#import <SystemConfiguration/SystemConfiguration.h>
-#endif
-#import <TargetConditionals.h>
-
-#if TARGET_OS_IOS || TARGET_OS_WATCH || TARGET_OS_TV
-#import <MobileCoreServices/MobileCoreServices.h>
-#else
-#import <CoreServices/CoreServices.h>
-#endif
-
-#import "AFURLSessionManager.h"
-
-/**
- `AFHTTPSessionManager` is a subclass of `AFURLSessionManager` with convenience methods for making HTTP requests. When a `baseURL` is provided, requests made with the `GET` / `POST` / et al. convenience methods can be made with relative paths.
-
- ## Subclassing Notes
-
- Developers targeting iOS 7 or Mac OS X 10.9 or later that deal extensively with a web service are encouraged to subclass `AFHTTPSessionManager`, providing a class method that returns a shared singleton object on which authentication and other configuration can be shared across the application.
-
- For developers targeting iOS 6 or Mac OS X 10.8 or earlier, `AFHTTPRequestOperationManager` may be used to similar effect.
-
- ## Methods to Override
-
- To change the behavior of all data task operation construction, which is also used in the `GET` / `POST` / et al. convenience methods, override `dataTaskWithRequest:uploadProgress:downloadProgress:completionHandler:`.
-
- ## Serialization
-
- Requests created by an HTTP client will contain default headers and encode parameters according to the `requestSerializer` property, which is an object conforming to `<AFURLRequestSerialization>`.
-
- Responses received from the server are automatically validated and serialized by the `responseSerializers` property, which is an object conforming to `<AFURLResponseSerialization>`
-
- ## URL Construction Using Relative Paths
-
- For HTTP convenience methods, the request serializer constructs URLs from the path relative to the `-baseURL`, using `NSURL +URLWithString:relativeToURL:`, when provided. If `baseURL` is `nil`, `path` needs to resolve to a valid `NSURL` object using `NSURL +URLWithString:`.
-
- Below are a few examples of how `baseURL` and relative paths interact:
-
-    NSURL *baseURL = [NSURL URLWithString:@"http://example.com/v1/"];
-    [NSURL URLWithString:@"foo" relativeToURL:baseURL];                  // http://example.com/v1/foo
-    [NSURL URLWithString:@"foo?bar=baz" relativeToURL:baseURL];          // http://example.com/v1/foo?bar=baz
-    [NSURL URLWithString:@"/foo" relativeToURL:baseURL];                 // http://example.com/foo
-    [NSURL URLWithString:@"foo/" relativeToURL:baseURL];                 // http://example.com/v1/foo
-    [NSURL URLWithString:@"/foo/" relativeToURL:baseURL];                // http://example.com/foo/
-    [NSURL URLWithString:@"http://example2.com/" relativeToURL:baseURL]; // http://example2.com/
-
- Also important to note is that a trailing slash will be added to any `baseURL` without one. This would otherwise cause unexpected behavior when constructing URLs using paths without a leading slash.
-
- @warning Managers for background sessions must be owned for the duration of their use. This can be accomplished by creating an application-wide or shared singleton instance.
- */
-
-NS_ASSUME_NONNULL_BEGIN
-
-@interface AFHTTPSessionManager : AFURLSessionManager <NSSecureCoding, NSCopying>
-
-/**
- The URL used to construct requests from relative paths in methods like `requestWithMethod:URLString:parameters:`, and the `GET` / `POST` / et al. convenience methods.
- */
-@property (readonly, nonatomic, strong, nullable) NSURL *baseURL;
-
-/**
- Requests created with `requestWithMethod:URLString:parameters:` & `multipartFormRequestWithMethod:URLString:parameters:constructingBodyWithBlock:` are constructed with a set of default headers using a parameter serialization specified by this property. By default, this is set to an instance of `AFHTTPRequestSerializer`, which serializes query string parameters for `GET`, `HEAD`, and `DELETE` requests, or otherwise URL-form-encodes HTTP message bodies.
-
- @warning `requestSerializer` must not be `nil`.
- */
-@property (nonatomic, strong) AFHTTPRequestSerializer <AFURLRequestSerialization> * requestSerializer;
-
-/**
- Responses sent from the server in data tasks created with `dataTaskWithRequest:success:failure:` and run using the `GET` / `POST` / et al. convenience methods are automatically validated and serialized by the response serializer. By default, this property is set to an instance of `AFJSONResponseSerializer`.
-
- @warning `responseSerializer` must not be `nil`.
- */
-@property (nonatomic, strong) AFHTTPResponseSerializer <AFURLResponseSerialization> * responseSerializer;
-
-///-------------------------------
-/// @name Managing Security Policy
-///-------------------------------
-
-/**
- The security policy used by created session to evaluate server trust for secure connections. `AFURLSessionManager` uses the `defaultPolicy` unless otherwise specified. A security policy configured with `AFSSLPinningModePublicKey` or `AFSSLPinningModeCertificate` can only be applied on a session manager initialized with a secure base URL (i.e. https). Applying a security policy with pinning enabled on an insecure session manager throws an `Invalid Security Policy` exception.
- */
-@property (nonatomic, strong) AFSecurityPolicy *securityPolicy;
-
-///---------------------
-/// @name Initialization
-///---------------------
-
-/**
- Creates and returns an `AFHTTPSessionManager` object.
- */
-+ (instancetype)manager;
-
-/**
- Initializes an `AFHTTPSessionManager` object with the specified base URL.
-
- @param url The base URL for the HTTP client.
-
- @return The newly-initialized HTTP client
- */
-- (instancetype)initWithBaseURL:(nullable NSURL *)url;
-
-/**
- Initializes an `AFHTTPSessionManager` object with the specified base URL.
-
- This is the designated initializer.
-
- @param url The base URL for the HTTP client.
- @param configuration The configuration used to create the managed session.
-
- @return The newly-initialized HTTP client
- */
-- (instancetype)initWithBaseURL:(nullable NSURL *)url
-           sessionConfiguration:(nullable NSURLSessionConfiguration *)configuration NS_DESIGNATED_INITIALIZER;
-
-///---------------------------
-/// @name Making HTTP Requests
-///---------------------------
-
-/**
- Creates and runs an `NSURLSessionDataTask` with a `GET` request.
-
- @param URLString The URL string used to create the request URL.
- @param parameters The parameters to be encoded according to the client request serializer.
- @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer.
- @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred.
-
- @see -dataTaskWithRequest:completionHandler:
- */
-- (nullable NSURLSessionDataTask *)GET:(NSString *)URLString
-                   parameters:(nullable id)parameters
-                      success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success
-                      failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure DEPRECATED_ATTRIBUTE;
-
-
-/**
- Creates and runs an `NSURLSessionDataTask` with a `GET` request.
-
- @param URLString The URL string used to create the request URL.
- @param parameters The parameters to be encoded according to the client request serializer.
- @param downloadProgress A block object to be executed when the download progress is updated. Note this block is called on the session queue, not the main queue.
- @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer.
- @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred.
-
- @see -dataTaskWithRequest:uploadProgress:downloadProgress:completionHandler:
- */
-- (nullable NSURLSessionDataTask *)GET:(NSString *)URLString
-                            parameters:(nullable id)parameters
-                              progress:(nullable void (^)(NSProgress *downloadProgress))downloadProgress
-                               success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success
-                               failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;
-
-/**
- Creates and runs an `NSURLSessionDataTask` with a `HEAD` request.
-
- @param URLString The URL string used to create the request URL.
- @param parameters The parameters to be encoded according to the client request serializer.
- @param success A block object to be executed when the task finishes successfully. This block has no return value and takes a single arguments: the data task.
- @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred.
-
- @see -dataTaskWithRequest:completionHandler:
- */
-- (nullable NSURLSessionDataTask *)HEAD:(NSString *)URLString
-                    parameters:(nullable id)parameters
-                       success:(nullable void (^)(NSURLSessionDataTask *task))success
-                       failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;
-
-/**
- Creates and runs an `NSURLSessionDataTask` with a `POST` request.
-
- @param URLString The URL string used to create the request URL.
- @param parameters The parameters to be encoded according to the client request serializer.
- @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer.
- @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred.
-
- @see -dataTaskWithRequest:completionHandler:
- */
-- (nullable NSURLSessionDataTask *)POST:(NSString *)URLString
-                    parameters:(nullable id)parameters
-                       success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success
-                       failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure DEPRECATED_ATTRIBUTE;
-
-/**
- Creates and runs an `NSURLSessionDataTask` with a `POST` request.
-
- @param URLString The URL string used to create the request URL.
- @param parameters The parameters to be encoded according to the client request serializer.
- @param uploadProgress A block object to be executed when the upload progress is updated. Note this block is called on the session queue, not the main queue.
- @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer.
- @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred.
-
- @see -dataTaskWithRequest:uploadProgress:downloadProgress:completionHandler:
- */
-- (nullable NSURLSessionDataTask *)POST:(NSString *)URLString
-                             parameters:(nullable id)parameters
-                               progress:(nullable void (^)(NSProgress *uploadProgress))uploadProgress
-                                success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success
-                                failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;
-
-/**
- Creates and runs an `NSURLSessionDataTask` with a multipart `POST` request.
-
- @param URLString The URL string used to create the request URL.
- @param parameters The parameters to be encoded according to the client request serializer.
- @param block A block that takes a single argument and appends data to the HTTP body. The block argument is an object adopting the `AFMultipartFormData` protocol.
- @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer.
- @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred.
-
- @see -dataTaskWithRequest:completionHandler:
- */
-- (nullable NSURLSessionDataTask *)POST:(NSString *)URLString
-                    parameters:(nullable id)parameters
-     constructingBodyWithBlock:(nullable void (^)(id <AFMultipartFormData> formData))block
-                       success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success
-                       failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure DEPRECATED_ATTRIBUTE;
-
-/**
- Creates and runs an `NSURLSessionDataTask` with a multipart `POST` request.
-
- @param URLString The URL string used to create the request URL.
- @param parameters The parameters to be encoded according to the client request serializer.
- @param block A block that takes a single argument and appends data to the HTTP body. The block argument is an object adopting the `AFMultipartFormData` protocol.
- @param uploadProgress A block object to be executed when the upload progress is updated. Note this block is called on the session queue, not the main queue.
- @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer.
- @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred.
-
- @see -dataTaskWithRequest:uploadProgress:downloadProgress:completionHandler:
- */
-- (nullable NSURLSessionDataTask *)POST:(NSString *)URLString
-                             parameters:(nullable id)parameters
-              constructingBodyWithBlock:(nullable void (^)(id <AFMultipartFormData> formData))block
-                               progress:(nullable void (^)(NSProgress *uploadProgress))uploadProgress
-                                success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success
-                                failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;
-
-/**
- Creates and runs an `NSURLSessionDataTask` with a `PUT` request.
-
- @param URLString The URL string used to create the request URL.
- @param parameters The parameters to be encoded according to the client request serializer.
- @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer.
- @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred.
-
- @see -dataTaskWithRequest:completionHandler:
- */
-- (nullable NSURLSessionDataTask *)PUT:(NSString *)URLString
-                   parameters:(nullable id)parameters
-                      success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success
-                      failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;
-
-/**
- Creates and runs an `NSURLSessionDataTask` with a `PATCH` request.
-
- @param URLString The URL string used to create the request URL.
- @param parameters The parameters to be encoded according to the client request serializer.
- @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer.
- @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred.
-
- @see -dataTaskWithRequest:completionHandler:
- */
-- (nullable NSURLSessionDataTask *)PATCH:(NSString *)URLString
-                     parameters:(nullable id)parameters
-                        success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success
-                        failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;
-
-/**
- Creates and runs an `NSURLSessionDataTask` with a `DELETE` request.
-
- @param URLString The URL string used to create the request URL.
- @param parameters The parameters to be encoded according to the client request serializer.
- @param success A block object to be executed when the task finishes successfully. This block has no return value and takes two arguments: the data task, and the response object created by the client response serializer.
- @param failure A block object to be executed when the task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a two arguments: the data task and the error describing the network or parsing error that occurred.
-
- @see -dataTaskWithRequest:completionHandler:
- */
-- (nullable NSURLSessionDataTask *)DELETE:(NSString *)URLString
-                      parameters:(nullable id)parameters
-                         success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success
-                         failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;
-
-@end
-
-NS_ASSUME_NONNULL_END

+ 0 - 372
RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.m

@@ -1,372 +0,0 @@
-// AFHTTPSessionManager.m
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import "AFHTTPSessionManager.h"
-
-#import "AFURLRequestSerialization.h"
-#import "AFURLResponseSerialization.h"
-
-#import <Availability.h>
-#import <TargetConditionals.h>
-#import <Security/Security.h>
-
-#import <netinet/in.h>
-#import <netinet6/in6.h>
-#import <arpa/inet.h>
-#import <ifaddrs.h>
-#import <netdb.h>
-
-#if TARGET_OS_IOS || TARGET_OS_TV
-#import <UIKit/UIKit.h>
-#elif TARGET_OS_WATCH
-#import <WatchKit/WatchKit.h>
-#endif
-
-@interface AFHTTPSessionManager ()
-@property (readwrite, nonatomic, strong) NSURL *baseURL;
-@end
-
-@implementation AFHTTPSessionManager
-@dynamic responseSerializer;
-
-+ (instancetype)manager {
-    return [[[self class] alloc] initWithBaseURL:nil];
-}
-
-- (instancetype)init {
-    return [self initWithBaseURL:nil];
-}
-
-- (instancetype)initWithBaseURL:(NSURL *)url {
-    return [self initWithBaseURL:url sessionConfiguration:nil];
-}
-
-- (instancetype)initWithSessionConfiguration:(NSURLSessionConfiguration *)configuration {
-    return [self initWithBaseURL:nil sessionConfiguration:configuration];
-}
-
-- (instancetype)initWithBaseURL:(NSURL *)url
-           sessionConfiguration:(NSURLSessionConfiguration *)configuration
-{
-    self = [super initWithSessionConfiguration:configuration];
-    if (!self) {
-        return nil;
-    }
-
-    // Ensure terminal slash for baseURL path, so that NSURL +URLWithString:relativeToURL: works as expected
-    if ([[url path] length] > 0 && ![[url absoluteString] hasSuffix:@"/"]) {
-        url = [url URLByAppendingPathComponent:@""];
-    }
-
-    self.baseURL = url;
-
-    self.requestSerializer = [AFHTTPRequestSerializer serializer];
-    self.responseSerializer = [AFJSONResponseSerializer serializer];
-
-    return self;
-}
-
-#pragma mark -
-
-- (void)setRequestSerializer:(AFHTTPRequestSerializer <AFURLRequestSerialization> *)requestSerializer {
-    NSParameterAssert(requestSerializer);
-
-    _requestSerializer = requestSerializer;
-}
-
-- (void)setResponseSerializer:(AFHTTPResponseSerializer <AFURLResponseSerialization> *)responseSerializer {
-    NSParameterAssert(responseSerializer);
-
-    [super setResponseSerializer:responseSerializer];
-}
-
-@dynamic securityPolicy;
-
-- (void)setSecurityPolicy:(AFSecurityPolicy *)securityPolicy {
-    if (securityPolicy.SSLPinningMode != AFSSLPinningModeNone && ![self.baseURL.scheme isEqualToString:@"https"]) {
-        NSString *pinningMode = @"Unknown Pinning Mode";
-        switch (securityPolicy.SSLPinningMode) {
-            case AFSSLPinningModeNone:        pinningMode = @"AFSSLPinningModeNone"; break;
-            case AFSSLPinningModeCertificate: pinningMode = @"AFSSLPinningModeCertificate"; break;
-            case AFSSLPinningModePublicKey:   pinningMode = @"AFSSLPinningModePublicKey"; break;
-        }
-        NSString *reason = [NSString stringWithFormat:@"A security policy configured with `%@` can only be applied on a manager with a secure base URL (i.e. https)", pinningMode];
-        @throw [NSException exceptionWithName:@"Invalid Security Policy" reason:reason userInfo:nil];
-    }
-
-    [super setSecurityPolicy:securityPolicy];
-}
-
-#pragma mark -
-
-- (NSURLSessionDataTask *)GET:(NSString *)URLString
-                   parameters:(id)parameters
-                      success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
-                      failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure
-{
-
-    return [self GET:URLString parameters:parameters progress:nil success:success failure:failure];
-}
-
-- (NSURLSessionDataTask *)GET:(NSString *)URLString
-                   parameters:(id)parameters
-                     progress:(void (^)(NSProgress * _Nonnull))downloadProgress
-                      success:(void (^)(NSURLSessionDataTask * _Nonnull, id _Nullable))success
-                      failure:(void (^)(NSURLSessionDataTask * _Nullable, NSError * _Nonnull))failure
-{
-
-    NSURLSessionDataTask *dataTask = [self dataTaskWithHTTPMethod:@"GET"
-                                                        URLString:URLString
-                                                       parameters:parameters
-                                                   uploadProgress:nil
-                                                 downloadProgress:downloadProgress
-                                                          success:success
-                                                          failure:failure];
-
-    [dataTask resume];
-
-    return dataTask;
-}
-
-- (NSURLSessionDataTask *)HEAD:(NSString *)URLString
-                    parameters:(id)parameters
-                       success:(void (^)(NSURLSessionDataTask *task))success
-                       failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure
-{
-    NSURLSessionDataTask *dataTask = [self dataTaskWithHTTPMethod:@"HEAD" URLString:URLString parameters:parameters uploadProgress:nil downloadProgress:nil success:^(NSURLSessionDataTask *task, __unused id responseObject) {
-        if (success) {
-            success(task);
-        }
-    } failure:failure];
-
-    [dataTask resume];
-
-    return dataTask;
-}
-
-- (NSURLSessionDataTask *)POST:(NSString *)URLString
-                    parameters:(id)parameters
-                       success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
-                       failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure
-{
-    return [self POST:URLString parameters:parameters progress:nil success:success failure:failure];
-}
-
-- (NSURLSessionDataTask *)POST:(NSString *)URLString
-                    parameters:(id)parameters
-                      progress:(void (^)(NSProgress * _Nonnull))uploadProgress
-                       success:(void (^)(NSURLSessionDataTask * _Nonnull, id _Nullable))success
-                       failure:(void (^)(NSURLSessionDataTask * _Nullable, NSError * _Nonnull))failure
-{
-    NSURLSessionDataTask *dataTask = [self dataTaskWithHTTPMethod:@"POST" URLString:URLString parameters:parameters uploadProgress:uploadProgress downloadProgress:nil success:success failure:failure];
-
-    [dataTask resume];
-
-    return dataTask;
-}
-
-- (NSURLSessionDataTask *)POST:(NSString *)URLString
-                    parameters:(nullable id)parameters
-     constructingBodyWithBlock:(nullable void (^)(id<AFMultipartFormData> _Nonnull))block
-                       success:(nullable void (^)(NSURLSessionDataTask * _Nonnull, id _Nullable))success
-                       failure:(nullable void (^)(NSURLSessionDataTask * _Nullable, NSError * _Nonnull))failure
-{
-    return [self POST:URLString parameters:parameters constructingBodyWithBlock:block progress:nil success:success failure:failure];
-}
-
-- (NSURLSessionDataTask *)POST:(NSString *)URLString
-                    parameters:(id)parameters
-     constructingBodyWithBlock:(void (^)(id <AFMultipartFormData> formData))block
-                      progress:(nullable void (^)(NSProgress * _Nonnull))uploadProgress
-                       success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
-                       failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure
-{
-    NSError *serializationError = nil;
-    NSMutableURLRequest *request = [self.requestSerializer multipartFormRequestWithMethod:@"POST" URLString:[[NSURL URLWithString:URLString relativeToURL:self.baseURL] absoluteString] parameters:parameters constructingBodyWithBlock:block error:&serializationError];
-    if (serializationError) {
-        if (failure) {
-            dispatch_async(self.completionQueue ?: dispatch_get_main_queue(), ^{
-                failure(nil, serializationError);
-            });
-        }
-
-        return nil;
-    }
-
-    __block NSURLSessionDataTask *task = [self uploadTaskWithStreamedRequest:request progress:uploadProgress completionHandler:^(NSURLResponse * __unused response, id responseObject, NSError *error) {
-        if (error) {
-            if (failure) {
-                failure(task, error);
-            }
-        } else {
-            if (success) {
-                success(task, responseObject);
-            }
-        }
-    }];
-
-    [task resume];
-
-    return task;
-}
-
-- (NSURLSessionDataTask *)PUT:(NSString *)URLString
-                   parameters:(id)parameters
-                      success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
-                      failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure
-{
-    NSURLSessionDataTask *dataTask = [self dataTaskWithHTTPMethod:@"PUT" URLString:URLString parameters:parameters uploadProgress:nil downloadProgress:nil success:success failure:failure];
-
-    [dataTask resume];
-
-    return dataTask;
-}
-
-- (NSURLSessionDataTask *)PATCH:(NSString *)URLString
-                     parameters:(id)parameters
-                        success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
-                        failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure
-{
-    NSURLSessionDataTask *dataTask = [self dataTaskWithHTTPMethod:@"PATCH" URLString:URLString parameters:parameters uploadProgress:nil downloadProgress:nil success:success failure:failure];
-
-    [dataTask resume];
-
-    return dataTask;
-}
-
-- (NSURLSessionDataTask *)DELETE:(NSString *)URLString
-                      parameters:(id)parameters
-                         success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
-                         failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure
-{
-    NSURLSessionDataTask *dataTask = [self dataTaskWithHTTPMethod:@"DELETE" URLString:URLString parameters:parameters uploadProgress:nil downloadProgress:nil success:success failure:failure];
-
-    [dataTask resume];
-
-    return dataTask;
-}
-
-- (NSURLSessionDataTask *)dataTaskWithHTTPMethod:(NSString *)method
-                                       URLString:(NSString *)URLString
-                                      parameters:(id)parameters
-                                  uploadProgress:(nullable void (^)(NSProgress *uploadProgress)) uploadProgress
-                                downloadProgress:(nullable void (^)(NSProgress *downloadProgress)) downloadProgress
-                                         success:(void (^)(NSURLSessionDataTask *, id))success
-                                         failure:(void (^)(NSURLSessionDataTask *, NSError *))failure
-{
-    NSError *serializationError = nil;
-    NSMutableURLRequest *request = [self.requestSerializer requestWithMethod:method URLString:[[NSURL URLWithString:URLString relativeToURL:self.baseURL] absoluteString] parameters:parameters error:&serializationError];
-    if (serializationError) {
-        if (failure) {
-            dispatch_async(self.completionQueue ?: dispatch_get_main_queue(), ^{
-                failure(nil, serializationError);
-            });
-        }
-
-        return nil;
-    }
-
-    __block NSURLSessionDataTask *dataTask = nil;
-    dataTask = [self dataTaskWithRequest:request
-                          uploadProgress:uploadProgress
-                        downloadProgress:downloadProgress
-                       completionHandler:^(NSURLResponse * __unused response, id responseObject, NSError *error) {
-        if (error) {
-            if (failure) {
-                failure(dataTask, error);
-            }
-        } else {
-            if (success) {
-                success(dataTask, responseObject);
-            }
-        }
-    }];
-
-    return dataTask;
-}
-
-#pragma mark - NSObject
-
-- (NSString *)description {
-    return [NSString stringWithFormat:@"<%@: %p, baseURL: %@, session: %@, operationQueue: %@>", NSStringFromClass([self class]), self, [self.baseURL absoluteString], self.session, self.operationQueue];
-}
-
-#pragma mark - NSSecureCoding
-
-+ (BOOL)supportsSecureCoding {
-    return YES;
-}
-
-- (instancetype)initWithCoder:(NSCoder *)decoder {
-    NSURL *baseURL = [decoder decodeObjectOfClass:[NSURL class] forKey:NSStringFromSelector(@selector(baseURL))];
-    NSURLSessionConfiguration *configuration = [decoder decodeObjectOfClass:[NSURLSessionConfiguration class] forKey:@"sessionConfiguration"];
-    if (!configuration) {
-        NSString *configurationIdentifier = [decoder decodeObjectOfClass:[NSString class] forKey:@"identifier"];
-        if (configurationIdentifier) {
-#if (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1100)
-            configuration = [NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier:configurationIdentifier];
-#else
-            configuration = [NSURLSessionConfiguration backgroundSessionConfiguration:configurationIdentifier];
-#endif
-        }
-    }
-
-    self = [self initWithBaseURL:baseURL sessionConfiguration:configuration];
-    if (!self) {
-        return nil;
-    }
-
-    self.requestSerializer = [decoder decodeObjectOfClass:[AFHTTPRequestSerializer class] forKey:NSStringFromSelector(@selector(requestSerializer))];
-    self.responseSerializer = [decoder decodeObjectOfClass:[AFHTTPResponseSerializer class] forKey:NSStringFromSelector(@selector(responseSerializer))];
-    AFSecurityPolicy *decodedPolicy = [decoder decodeObjectOfClass:[AFSecurityPolicy class] forKey:NSStringFromSelector(@selector(securityPolicy))];
-    if (decodedPolicy) {
-        self.securityPolicy = decodedPolicy;
-    }
-
-    return self;
-}
-
-- (void)encodeWithCoder:(NSCoder *)coder {
-    [super encodeWithCoder:coder];
-
-    [coder encodeObject:self.baseURL forKey:NSStringFromSelector(@selector(baseURL))];
-    if ([self.session.configuration conformsToProtocol:@protocol(NSCoding)]) {
-        [coder encodeObject:self.session.configuration forKey:@"sessionConfiguration"];
-    } else {
-        [coder encodeObject:self.session.configuration.identifier forKey:@"identifier"];
-    }
-    [coder encodeObject:self.requestSerializer forKey:NSStringFromSelector(@selector(requestSerializer))];
-    [coder encodeObject:self.responseSerializer forKey:NSStringFromSelector(@selector(responseSerializer))];
-    [coder encodeObject:self.securityPolicy forKey:NSStringFromSelector(@selector(securityPolicy))];
-}
-
-#pragma mark - NSCopying
-
-- (instancetype)copyWithZone:(NSZone *)zone {
-    AFHTTPSessionManager *HTTPClient = [[[self class] allocWithZone:zone] initWithBaseURL:self.baseURL sessionConfiguration:self.session.configuration];
-
-    HTTPClient.requestSerializer = [self.requestSerializer copyWithZone:zone];
-    HTTPClient.responseSerializer = [self.responseSerializer copyWithZone:zone];
-    HTTPClient.securityPolicy = [self.securityPolicy copyWithZone:zone];
-    return HTTPClient;
-}
-
-@end

+ 0 - 216
RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFNetworkReachabilityManager.h

@@ -1,216 +0,0 @@
-// AFNetworkReachabilityManager.h
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import <Foundation/Foundation.h>
-
-#if !TARGET_OS_WATCH
-#import <SystemConfiguration/SystemConfiguration.h>
-
-typedef NS_ENUM(NSInteger, AFNetworkReachabilityStatus) {
-    AFNetworkReachabilityStatusUnknown          = -1,
-    AFNetworkReachabilityStatusNotReachable     = 0,
-    AFNetworkReachabilityStatusReachableViaWWAN = 1,
-    AFNetworkReachabilityStatusReachableViaWiFi = 2,
-};
-
-NS_ASSUME_NONNULL_BEGIN
-
-/**
- `AFNetworkReachabilityManager` monitors the reachability of domains, and addresses for both WWAN and WiFi network interfaces.
-
- Reachability can be used to determine background information about why a network operation failed, or to trigger a network operation retrying when a connection is established. It should not be used to prevent a user from initiating a network request, as it's possible that an initial request may be required to establish reachability.
-
- See Apple's Reachability Sample Code ( https://developer.apple.com/library/ios/samplecode/reachability/ )
-
- @warning Instances of `AFNetworkReachabilityManager` must be started with `-startMonitoring` before reachability status can be determined.
- */
-@interface AFNetworkReachabilityManager : NSObject
-
-/**
- The current network reachability status.
- */
-@property (readonly, nonatomic, assign) AFNetworkReachabilityStatus networkReachabilityStatus;
-
-/**
- Whether or not the network is currently reachable.
- */
-@property (readonly, nonatomic, assign, getter = isReachable) BOOL reachable;
-
-/**
- Whether or not the network is currently reachable via WWAN.
- */
-@property (readonly, nonatomic, assign, getter = isReachableViaWWAN) BOOL reachableViaWWAN;
-
-/**
- Whether or not the network is currently reachable via WiFi.
- */
-@property (readonly, nonatomic, assign, getter = isReachableViaWiFi) BOOL reachableViaWiFi;
-
-///---------------------
-/// @name Initialization
-///---------------------
-
-/**
- Returns the shared network reachability manager.
- */
-+ (instancetype)sharedManager;
-
-/**
- Creates and returns a network reachability manager with the default socket address.
- 
- @return An initialized network reachability manager, actively monitoring the default socket address.
- */
-+ (instancetype)manager;
-
-/**
- Creates and returns a network reachability manager for the specified domain.
-
- @param domain The domain used to evaluate network reachability.
-
- @return An initialized network reachability manager, actively monitoring the specified domain.
- */
-+ (instancetype)managerForDomain:(NSString *)domain;
-
-/**
- Creates and returns a network reachability manager for the socket address.
-
- @param address The socket address (`sockaddr_in6`) used to evaluate network reachability.
-
- @return An initialized network reachability manager, actively monitoring the specified socket address.
- */
-+ (instancetype)managerForAddress:(const void *)address;
-
-/**
- Initializes an instance of a network reachability manager from the specified reachability object.
-
- @param reachability The reachability object to monitor.
-
- @return An initialized network reachability manager, actively monitoring the specified reachability.
- */
-- (instancetype)initWithReachability:(SCNetworkReachabilityRef)reachability NS_DESIGNATED_INITIALIZER;
-
-/**
- *  Unavailable initializer
- */
-+ (instancetype)new NS_UNAVAILABLE;
-
-/**
- *  Unavailable initializer
- */
-- (instancetype)init NS_UNAVAILABLE;
-
-///--------------------------------------------------
-/// @name Starting & Stopping Reachability Monitoring
-///--------------------------------------------------
-
-/**
- Starts monitoring for changes in network reachability status.
- */
-- (void)startMonitoring;
-
-/**
- Stops monitoring for changes in network reachability status.
- */
-- (void)stopMonitoring;
-
-///-------------------------------------------------
-/// @name Getting Localized Reachability Description
-///-------------------------------------------------
-
-/**
- Returns a localized string representation of the current network reachability status.
- */
-- (NSString *)localizedNetworkReachabilityStatusString;
-
-///---------------------------------------------------
-/// @name Setting Network Reachability Change Callback
-///---------------------------------------------------
-
-/**
- Sets a callback to be executed when the network availability of the `baseURL` host changes.
-
- @param block A block object to be executed when the network availability of the `baseURL` host changes.. This block has no return value and takes a single argument which represents the various reachability states from the device to the `baseURL`.
- */
-- (void)setReachabilityStatusChangeBlock:(nullable void (^)(AFNetworkReachabilityStatus status))block;
-
-@end
-
-///----------------
-/// @name Constants
-///----------------
-
-/**
- ## Network Reachability
-
- The following constants are provided by `AFNetworkReachabilityManager` as possible network reachability statuses.
-
- enum {
- AFNetworkReachabilityStatusUnknown,
- AFNetworkReachabilityStatusNotReachable,
- AFNetworkReachabilityStatusReachableViaWWAN,
- AFNetworkReachabilityStatusReachableViaWiFi,
- }
-
- `AFNetworkReachabilityStatusUnknown`
- The `baseURL` host reachability is not known.
-
- `AFNetworkReachabilityStatusNotReachable`
- The `baseURL` host cannot be reached.
-
- `AFNetworkReachabilityStatusReachableViaWWAN`
- The `baseURL` host can be reached via a cellular connection, such as EDGE or GPRS.
-
- `AFNetworkReachabilityStatusReachableViaWiFi`
- The `baseURL` host can be reached via a Wi-Fi connection.
-
- ### Keys for Notification UserInfo Dictionary
-
- Strings that are used as keys in a `userInfo` dictionary in a network reachability status change notification.
-
- `AFNetworkingReachabilityNotificationStatusItem`
- A key in the userInfo dictionary in a `AFNetworkingReachabilityDidChangeNotification` notification.
- The corresponding value is an `NSNumber` object representing the `AFNetworkReachabilityStatus` value for the current reachability status.
- */
-
-///--------------------
-/// @name Notifications
-///--------------------
-
-/**
- Posted when network reachability changes.
- This notification assigns no notification object. The `userInfo` dictionary contains an `NSNumber` object under the `AFNetworkingReachabilityNotificationStatusItem` key, representing the `AFNetworkReachabilityStatus` value for the current network reachability.
-
- @warning In order for network reachability to be monitored, include the `SystemConfiguration` framework in the active target's "Link Binary With Library" build phase, and add `#import <SystemConfiguration/SystemConfiguration.h>` to the header prefix of the project (`Prefix.pch`).
- */
-FOUNDATION_EXPORT NSString * const AFNetworkingReachabilityDidChangeNotification;
-FOUNDATION_EXPORT NSString * const AFNetworkingReachabilityNotificationStatusItem;
-
-///--------------------
-/// @name Functions
-///--------------------
-
-/**
- Returns a localized string representation of an `AFNetworkReachabilityStatus` value.
- */
-FOUNDATION_EXPORT NSString * AFStringFromNetworkReachabilityStatus(AFNetworkReachabilityStatus status);
-
-NS_ASSUME_NONNULL_END
-#endif

+ 0 - 266
RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFNetworkReachabilityManager.m

@@ -1,266 +0,0 @@
-// AFNetworkReachabilityManager.m
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import "AFNetworkReachabilityManager.h"
-#if !TARGET_OS_WATCH
-
-#import <netinet/in.h>
-#import <netinet6/in6.h>
-#import <arpa/inet.h>
-#import <ifaddrs.h>
-#import <netdb.h>
-
-NSString * const AFNetworkingReachabilityDidChangeNotification = @"com.alamofire.networking.reachability.change";
-NSString * const AFNetworkingReachabilityNotificationStatusItem = @"AFNetworkingReachabilityNotificationStatusItem";
-
-typedef void (^AFNetworkReachabilityStatusBlock)(AFNetworkReachabilityStatus status);
-
-NSString * AFStringFromNetworkReachabilityStatus(AFNetworkReachabilityStatus status) {
-    switch (status) {
-        case AFNetworkReachabilityStatusNotReachable:
-            return NSLocalizedStringFromTable(@"Not Reachable", @"AFNetworking", nil);
-        case AFNetworkReachabilityStatusReachableViaWWAN:
-            return NSLocalizedStringFromTable(@"Reachable via WWAN", @"AFNetworking", nil);
-        case AFNetworkReachabilityStatusReachableViaWiFi:
-            return NSLocalizedStringFromTable(@"Reachable via WiFi", @"AFNetworking", nil);
-        case AFNetworkReachabilityStatusUnknown:
-        default:
-            return NSLocalizedStringFromTable(@"Unknown", @"AFNetworking", nil);
-    }
-}
-
-static AFNetworkReachabilityStatus AFNetworkReachabilityStatusForFlags(SCNetworkReachabilityFlags flags) {
-    BOOL isReachable = ((flags & kSCNetworkReachabilityFlagsReachable) != 0);
-    BOOL needsConnection = ((flags & kSCNetworkReachabilityFlagsConnectionRequired) != 0);
-    BOOL canConnectionAutomatically = (((flags & kSCNetworkReachabilityFlagsConnectionOnDemand ) != 0) || ((flags & kSCNetworkReachabilityFlagsConnectionOnTraffic) != 0));
-    BOOL canConnectWithoutUserInteraction = (canConnectionAutomatically && (flags & kSCNetworkReachabilityFlagsInterventionRequired) == 0);
-    BOOL isNetworkReachable = (isReachable && (!needsConnection || canConnectWithoutUserInteraction));
-
-    AFNetworkReachabilityStatus status = AFNetworkReachabilityStatusUnknown;
-    if (isNetworkReachable == NO) {
-        status = AFNetworkReachabilityStatusNotReachable;
-    }
-#if	TARGET_OS_IPHONE
-    else if ((flags & kSCNetworkReachabilityFlagsIsWWAN) != 0) {
-        status = AFNetworkReachabilityStatusReachableViaWWAN;
-    }
-#endif
-    else {
-        status = AFNetworkReachabilityStatusReachableViaWiFi;
-    }
-
-    return status;
-}
-
-/**
- * Queue a status change notification for the main thread.
- *
- * This is done to ensure that the notifications are received in the same order
- * as they are sent. If notifications are sent directly, it is possible that
- * a queued notification (for an earlier status condition) is processed after
- * the later update, resulting in the listener being left in the wrong state.
- */
-static void AFPostReachabilityStatusChange(SCNetworkReachabilityFlags flags, AFNetworkReachabilityStatusBlock block) {
-    AFNetworkReachabilityStatus status = AFNetworkReachabilityStatusForFlags(flags);
-    dispatch_async(dispatch_get_main_queue(), ^{
-        if (block) {
-            block(status);
-        }
-        NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
-        NSDictionary *userInfo = @{ AFNetworkingReachabilityNotificationStatusItem: @(status) };
-        [notificationCenter postNotificationName:AFNetworkingReachabilityDidChangeNotification object:nil userInfo:userInfo];
-    });
-}
-
-static void AFNetworkReachabilityCallback(SCNetworkReachabilityRef __unused target, SCNetworkReachabilityFlags flags, void *info) {
-    AFPostReachabilityStatusChange(flags, (__bridge AFNetworkReachabilityStatusBlock)info);
-}
-
-
-static const void * AFNetworkReachabilityRetainCallback(const void *info) {
-    return Block_copy(info);
-}
-
-static void AFNetworkReachabilityReleaseCallback(const void *info) {
-    if (info) {
-        Block_release(info);
-    }
-}
-
-@interface AFNetworkReachabilityManager ()
-@property (readonly, nonatomic, assign) SCNetworkReachabilityRef networkReachability;
-@property (readwrite, nonatomic, assign) AFNetworkReachabilityStatus networkReachabilityStatus;
-@property (readwrite, nonatomic, copy) AFNetworkReachabilityStatusBlock networkReachabilityStatusBlock;
-@end
-
-@implementation AFNetworkReachabilityManager
-
-+ (instancetype)sharedManager {
-    static AFNetworkReachabilityManager *_sharedManager = nil;
-    static dispatch_once_t onceToken;
-    dispatch_once(&onceToken, ^{
-        _sharedManager = [self manager];
-    });
-
-    return _sharedManager;
-}
-
-+ (instancetype)managerForDomain:(NSString *)domain {
-    SCNetworkReachabilityRef reachability = SCNetworkReachabilityCreateWithName(kCFAllocatorDefault, [domain UTF8String]);
-
-    AFNetworkReachabilityManager *manager = [[self alloc] initWithReachability:reachability];
-    
-    CFRelease(reachability);
-
-    return manager;
-}
-
-+ (instancetype)managerForAddress:(const void *)address {
-    SCNetworkReachabilityRef reachability = SCNetworkReachabilityCreateWithAddress(kCFAllocatorDefault, (const struct sockaddr *)address);
-    AFNetworkReachabilityManager *manager = [[self alloc] initWithReachability:reachability];
-
-    CFRelease(reachability);
-    
-    return manager;
-}
-
-+ (instancetype)manager
-{
-#if (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 90000) || (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)
-    struct sockaddr_in6 address;
-    bzero(&address, sizeof(address));
-    address.sin6_len = sizeof(address);
-    address.sin6_family = AF_INET6;
-#else
-    struct sockaddr_in address;
-    bzero(&address, sizeof(address));
-    address.sin_len = sizeof(address);
-    address.sin_family = AF_INET;
-#endif
-    return [self managerForAddress:&address];
-}
-
-- (instancetype)initWithReachability:(SCNetworkReachabilityRef)reachability {
-    self = [super init];
-    if (!self) {
-        return nil;
-    }
-
-    _networkReachability = CFRetain(reachability);
-    self.networkReachabilityStatus = AFNetworkReachabilityStatusUnknown;
-
-    return self;
-}
-
-- (instancetype)init
-{
-    @throw [NSException exceptionWithName:NSGenericException
-                                   reason:@"`-init` unavailable. Use `-initWithReachability:` instead"
-                                 userInfo:nil];
-    return nil;
-}
-
-- (void)dealloc {
-    [self stopMonitoring];
-    
-    if (_networkReachability != NULL) {
-        CFRelease(_networkReachability);
-    }
-}
-
-#pragma mark -
-
-- (BOOL)isReachable {
-    return [self isReachableViaWWAN] || [self isReachableViaWiFi];
-}
-
-- (BOOL)isReachableViaWWAN {
-    return self.networkReachabilityStatus == AFNetworkReachabilityStatusReachableViaWWAN;
-}
-
-- (BOOL)isReachableViaWiFi {
-    return self.networkReachabilityStatus == AFNetworkReachabilityStatusReachableViaWiFi;
-}
-
-#pragma mark -
-
-- (void)startMonitoring {
-    [self stopMonitoring];
-
-    if (!self.networkReachability) {
-        return;
-    }
-
-    __weak __typeof(self)weakSelf = self;
-    AFNetworkReachabilityStatusBlock callback = ^(AFNetworkReachabilityStatus status) {
-        __strong __typeof(weakSelf)strongSelf = weakSelf;
-
-        strongSelf.networkReachabilityStatus = status;
-        if (strongSelf.networkReachabilityStatusBlock) {
-            strongSelf.networkReachabilityStatusBlock(status);
-        }
-
-    };
-
-    SCNetworkReachabilityContext context = {0, (__bridge void *)callback, AFNetworkReachabilityRetainCallback, AFNetworkReachabilityReleaseCallback, NULL};
-    SCNetworkReachabilitySetCallback(self.networkReachability, AFNetworkReachabilityCallback, &context);
-    SCNetworkReachabilityScheduleWithRunLoop(self.networkReachability, CFRunLoopGetMain(), kCFRunLoopCommonModes);
-
-    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0),^{
-        SCNetworkReachabilityFlags flags;
-        if (SCNetworkReachabilityGetFlags(self.networkReachability, &flags)) {
-            AFPostReachabilityStatusChange(flags, callback);
-        }
-    });
-}
-
-- (void)stopMonitoring {
-    if (!self.networkReachability) {
-        return;
-    }
-
-    SCNetworkReachabilityUnscheduleFromRunLoop(self.networkReachability, CFRunLoopGetMain(), kCFRunLoopCommonModes);
-}
-
-#pragma mark -
-
-- (NSString *)localizedNetworkReachabilityStatusString {
-    return AFStringFromNetworkReachabilityStatus(self.networkReachabilityStatus);
-}
-
-#pragma mark -
-
-- (void)setReachabilityStatusChangeBlock:(void (^)(AFNetworkReachabilityStatus status))block {
-    self.networkReachabilityStatusBlock = block;
-}
-
-#pragma mark - NSKeyValueObserving
-
-+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key {
-    if ([key isEqualToString:@"reachable"] || [key isEqualToString:@"reachableViaWWAN"] || [key isEqualToString:@"reachableViaWiFi"]) {
-        return [NSSet setWithObject:@"networkReachabilityStatus"];
-    }
-
-    return [super keyPathsForValuesAffectingValueForKey:key];
-}
-
-@end
-#endif

+ 0 - 41
RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFNetworking.h

@@ -1,41 +0,0 @@
-// AFNetworking.h
-//
-// Copyright (c) 2013 AFNetworking (http://afnetworking.com/)
-// 
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-// 
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import <Foundation/Foundation.h>
-#import <Availability.h>
-#import <TargetConditionals.h>
-
-#ifndef _AFNETWORKING_
-    #define _AFNETWORKING_
-
-    #import "AFURLRequestSerialization.h"
-    #import "AFURLResponseSerialization.h"
-    #import "AFSecurityPolicy.h"
-
-#if !TARGET_OS_WATCH
-    #import "AFNetworkReachabilityManager.h"
-#endif
-
-    #import "AFURLSessionManager.h"
-    #import "AFHTTPSessionManager.h"
-
-#endif /* _AFNETWORKING_ */

+ 0 - 154
RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFSecurityPolicy.h

@@ -1,154 +0,0 @@
-// AFSecurityPolicy.h
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import <Foundation/Foundation.h>
-#import <Security/Security.h>
-
-typedef NS_ENUM(NSUInteger, AFSSLPinningMode) {
-    AFSSLPinningModeNone,
-    AFSSLPinningModePublicKey,
-    AFSSLPinningModeCertificate,
-};
-
-/**
- `AFSecurityPolicy` evaluates server trust against pinned X.509 certificates and public keys over secure connections.
-
- Adding pinned SSL certificates to your app helps prevent man-in-the-middle attacks and other vulnerabilities. Applications dealing with sensitive customer data or financial information are strongly encouraged to route all communication over an HTTPS connection with SSL pinning configured and enabled.
- */
-
-NS_ASSUME_NONNULL_BEGIN
-
-@interface AFSecurityPolicy : NSObject <NSSecureCoding, NSCopying>
-
-/**
- The criteria by which server trust should be evaluated against the pinned SSL certificates. Defaults to `AFSSLPinningModeNone`.
- */
-@property (readonly, nonatomic, assign) AFSSLPinningMode SSLPinningMode;
-
-/**
- The certificates used to evaluate server trust according to the SSL pinning mode. 
-
-  By default, this property is set to any (`.cer`) certificates included in the target compiling AFNetworking. Note that if you are using AFNetworking as embedded framework, no certificates will be pinned by default. Use `certificatesInBundle` to load certificates from your target, and then create a new policy by calling `policyWithPinningMode:withPinnedCertificates`.
- 
- Note that if pinning is enabled, `evaluateServerTrust:forDomain:` will return true if any pinned certificate matches.
- */
-@property (nonatomic, strong, nullable) NSSet <NSData *> *pinnedCertificates;
-
-/**
- Whether or not to trust servers with an invalid or expired SSL certificates. Defaults to `NO`.
- */
-@property (nonatomic, assign) BOOL allowInvalidCertificates;
-
-/**
- Whether or not to validate the domain name in the certificate's CN field. Defaults to `YES`.
- */
-@property (nonatomic, assign) BOOL validatesDomainName;
-
-///-----------------------------------------
-/// @name Getting Certificates from the Bundle
-///-----------------------------------------
-
-/**
- Returns any certificates included in the bundle. If you are using AFNetworking as an embedded framework, you must use this method to find the certificates you have included in your app bundle, and use them when creating your security policy by calling `policyWithPinningMode:withPinnedCertificates`.
-
- @return The certificates included in the given bundle.
- */
-+ (NSSet <NSData *> *)certificatesInBundle:(NSBundle *)bundle;
-
-///-----------------------------------------
-/// @name Getting Specific Security Policies
-///-----------------------------------------
-
-/**
- Returns the shared default security policy, which does not allow invalid certificates, validates domain name, and does not validate against pinned certificates or public keys.
-
- @return The default security policy.
- */
-+ (instancetype)defaultPolicy;
-
-///---------------------
-/// @name Initialization
-///---------------------
-
-/**
- Creates and returns a security policy with the specified pinning mode.
-
- @param pinningMode The SSL pinning mode.
-
- @return A new security policy.
- */
-+ (instancetype)policyWithPinningMode:(AFSSLPinningMode)pinningMode;
-
-/**
- Creates and returns a security policy with the specified pinning mode.
-
- @param pinningMode The SSL pinning mode.
- @param pinnedCertificates The certificates to pin against.
-
- @return A new security policy.
- */
-+ (instancetype)policyWithPinningMode:(AFSSLPinningMode)pinningMode withPinnedCertificates:(NSSet <NSData *> *)pinnedCertificates;
-
-///------------------------------
-/// @name Evaluating Server Trust
-///------------------------------
-
-/**
- Whether or not the specified server trust should be accepted, based on the security policy.
-
- This method should be used when responding to an authentication challenge from a server.
-
- @param serverTrust The X.509 certificate trust of the server.
- @param domain The domain of serverTrust. If `nil`, the domain will not be validated.
-
- @return Whether or not to trust the server.
- */
-- (BOOL)evaluateServerTrust:(SecTrustRef)serverTrust
-                  forDomain:(nullable NSString *)domain;
-
-@end
-
-NS_ASSUME_NONNULL_END
-
-///----------------
-/// @name Constants
-///----------------
-
-/**
- ## SSL Pinning Modes
-
- The following constants are provided by `AFSSLPinningMode` as possible SSL pinning modes.
-
- enum {
- AFSSLPinningModeNone,
- AFSSLPinningModePublicKey,
- AFSSLPinningModeCertificate,
- }
-
- `AFSSLPinningModeNone`
- Do not used pinned certificates to validate servers.
-
- `AFSSLPinningModePublicKey`
- Validate host certificates against public keys of pinned certificates.
-
- `AFSSLPinningModeCertificate`
- Validate host certificates against pinned certificates.
-*/

+ 0 - 344
RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFSecurityPolicy.m

@@ -1,344 +0,0 @@
-// AFSecurityPolicy.m
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import "AFSecurityPolicy.h"
-
-#import <AssertMacros.h>
-
-#if !TARGET_OS_IOS && !TARGET_OS_WATCH && !TARGET_OS_TV
-static NSData * AFSecKeyGetData(SecKeyRef key) {
-    CFDataRef data = NULL;
-
-    __Require_noErr_Quiet(SecItemExport(key, kSecFormatUnknown, kSecItemPemArmour, NULL, &data), _out);
-
-    return (__bridge_transfer NSData *)data;
-
-_out:
-    if (data) {
-        CFRelease(data);
-    }
-
-    return nil;
-}
-#endif
-
-static BOOL AFSecKeyIsEqualToKey(SecKeyRef key1, SecKeyRef key2) {
-#if TARGET_OS_IOS || TARGET_OS_WATCH || TARGET_OS_TV
-    return [(__bridge id)key1 isEqual:(__bridge id)key2];
-#else
-    return [AFSecKeyGetData(key1) isEqual:AFSecKeyGetData(key2)];
-#endif
-}
-
-static id AFPublicKeyForCertificate(NSData *certificate) {
-    id allowedPublicKey = nil;
-    SecCertificateRef allowedCertificate;
-    SecPolicyRef policy = nil;
-    SecTrustRef allowedTrust = nil;
-    SecTrustResultType result;
-
-    allowedCertificate = SecCertificateCreateWithData(NULL, (__bridge CFDataRef)certificate);
-    __Require_Quiet(allowedCertificate != NULL, _out);
-
-    policy = SecPolicyCreateBasicX509();
-    __Require_noErr_Quiet(SecTrustCreateWithCertificates(allowedCertificate, policy, &allowedTrust), _out);
-    __Require_noErr_Quiet(SecTrustEvaluate(allowedTrust, &result), _out);
-
-    allowedPublicKey = (__bridge_transfer id)SecTrustCopyPublicKey(allowedTrust);
-
-_out:
-    if (allowedTrust) {
-        CFRelease(allowedTrust);
-    }
-
-    if (policy) {
-        CFRelease(policy);
-    }
-
-    if (allowedCertificate) {
-        CFRelease(allowedCertificate);
-    }
-
-    return allowedPublicKey;
-}
-
-static BOOL AFServerTrustIsValid(SecTrustRef serverTrust) {
-    BOOL isValid = NO;
-    SecTrustResultType result;
-    __Require_noErr_Quiet(SecTrustEvaluate(serverTrust, &result), _out);
-
-    isValid = (result == kSecTrustResultUnspecified || result == kSecTrustResultProceed);
-
-_out:
-    return isValid;
-}
-
-static NSArray * AFCertificateTrustChainForServerTrust(SecTrustRef serverTrust) {
-    CFIndex certificateCount = SecTrustGetCertificateCount(serverTrust);
-    NSMutableArray *trustChain = [NSMutableArray arrayWithCapacity:(NSUInteger)certificateCount];
-
-    for (CFIndex i = 0; i < certificateCount; i++) {
-        SecCertificateRef certificate = SecTrustGetCertificateAtIndex(serverTrust, i);
-        [trustChain addObject:(__bridge_transfer NSData *)SecCertificateCopyData(certificate)];
-    }
-
-    return [NSArray arrayWithArray:trustChain];
-}
-
-static NSArray * AFPublicKeyTrustChainForServerTrust(SecTrustRef serverTrust) {
-    SecPolicyRef policy = SecPolicyCreateBasicX509();
-    CFIndex certificateCount = SecTrustGetCertificateCount(serverTrust);
-    NSMutableArray *trustChain = [NSMutableArray arrayWithCapacity:(NSUInteger)certificateCount];
-    for (CFIndex i = 0; i < certificateCount; i++) {
-        SecCertificateRef certificate = SecTrustGetCertificateAtIndex(serverTrust, i);
-
-        SecCertificateRef someCertificates[] = {certificate};
-        CFArrayRef certificates = CFArrayCreate(NULL, (const void **)someCertificates, 1, NULL);
-
-        SecTrustRef trust;
-        __Require_noErr_Quiet(SecTrustCreateWithCertificates(certificates, policy, &trust), _out);
-
-        SecTrustResultType result;
-        __Require_noErr_Quiet(SecTrustEvaluate(trust, &result), _out);
-
-        [trustChain addObject:(__bridge_transfer id)SecTrustCopyPublicKey(trust)];
-
-    _out:
-        if (trust) {
-            CFRelease(trust);
-        }
-
-        if (certificates) {
-            CFRelease(certificates);
-        }
-
-        continue;
-    }
-    CFRelease(policy);
-
-    return [NSArray arrayWithArray:trustChain];
-}
-
-#pragma mark -
-
-@interface AFSecurityPolicy()
-@property (readwrite, nonatomic, assign) AFSSLPinningMode SSLPinningMode;
-@property (readwrite, nonatomic, strong) NSSet *pinnedPublicKeys;
-@end
-
-@implementation AFSecurityPolicy
-
-+ (NSSet *)certificatesInBundle:(NSBundle *)bundle {
-    NSArray *paths = [bundle pathsForResourcesOfType:@"cer" inDirectory:@"."];
-
-    NSMutableSet *certificates = [NSMutableSet setWithCapacity:[paths count]];
-    for (NSString *path in paths) {
-        NSData *certificateData = [NSData dataWithContentsOfFile:path];
-        [certificates addObject:certificateData];
-    }
-
-    return [NSSet setWithSet:certificates];
-}
-
-+ (NSSet *)defaultPinnedCertificates {
-    static NSSet *_defaultPinnedCertificates = nil;
-    static dispatch_once_t onceToken;
-    dispatch_once(&onceToken, ^{
-        NSBundle *bundle = [NSBundle bundleForClass:[self class]];
-        _defaultPinnedCertificates = [self certificatesInBundle:bundle];
-    });
-
-    return _defaultPinnedCertificates;
-}
-
-+ (instancetype)defaultPolicy {
-    AFSecurityPolicy *securityPolicy = [[self alloc] init];
-    securityPolicy.SSLPinningMode = AFSSLPinningModeNone;
-
-    return securityPolicy;
-}
-
-+ (instancetype)policyWithPinningMode:(AFSSLPinningMode)pinningMode {
-    return [self policyWithPinningMode:pinningMode withPinnedCertificates:[self defaultPinnedCertificates]];
-}
-
-+ (instancetype)policyWithPinningMode:(AFSSLPinningMode)pinningMode withPinnedCertificates:(NSSet *)pinnedCertificates {
-    AFSecurityPolicy *securityPolicy = [[self alloc] init];
-    securityPolicy.SSLPinningMode = pinningMode;
-
-    [securityPolicy setPinnedCertificates:pinnedCertificates];
-
-    return securityPolicy;
-}
-
-- (instancetype)init {
-    self = [super init];
-    if (!self) {
-        return nil;
-    }
-
-    self.validatesDomainName = YES;
-
-    return self;
-}
-
-- (void)setPinnedCertificates:(NSSet *)pinnedCertificates {
-    _pinnedCertificates = pinnedCertificates;
-
-    if (self.pinnedCertificates) {
-        NSMutableSet *mutablePinnedPublicKeys = [NSMutableSet setWithCapacity:[self.pinnedCertificates count]];
-        for (NSData *certificate in self.pinnedCertificates) {
-            id publicKey = AFPublicKeyForCertificate(certificate);
-            if (!publicKey) {
-                continue;
-            }
-            [mutablePinnedPublicKeys addObject:publicKey];
-        }
-        self.pinnedPublicKeys = [NSSet setWithSet:mutablePinnedPublicKeys];
-    } else {
-        self.pinnedPublicKeys = nil;
-    }
-}
-
-#pragma mark -
-
-- (BOOL)evaluateServerTrust:(SecTrustRef)serverTrust
-                  forDomain:(NSString *)domain
-{
-    if (domain && self.allowInvalidCertificates && self.validatesDomainName && (self.SSLPinningMode == AFSSLPinningModeNone || [self.pinnedCertificates count] == 0)) {
-        // https://developer.apple.com/library/mac/documentation/NetworkingInternet/Conceptual/NetworkingTopics/Articles/OverridingSSLChainValidationCorrectly.html
-        //  According to the docs, you should only trust your provided certs for evaluation.
-        //  Pinned certificates are added to the trust. Without pinned certificates,
-        //  there is nothing to evaluate against.
-        //
-        //  From Apple Docs:
-        //          "Do not implicitly trust self-signed certificates as anchors (kSecTrustOptionImplicitAnchors).
-        //           Instead, add your own (self-signed) CA certificate to the list of trusted anchors."
-        NSLog(@"In order to validate a domain name for self signed certificates, you MUST use pinning.");
-        return NO;
-    }
-
-    NSMutableArray *policies = [NSMutableArray array];
-    if (self.validatesDomainName) {
-        [policies addObject:(__bridge_transfer id)SecPolicyCreateSSL(true, (__bridge CFStringRef)domain)];
-    } else {
-        [policies addObject:(__bridge_transfer id)SecPolicyCreateBasicX509()];
-    }
-
-    SecTrustSetPolicies(serverTrust, (__bridge CFArrayRef)policies);
-
-    if (self.SSLPinningMode == AFSSLPinningModeNone) {
-        return self.allowInvalidCertificates || AFServerTrustIsValid(serverTrust);
-    } else if (!AFServerTrustIsValid(serverTrust) && !self.allowInvalidCertificates) {
-        return NO;
-    }
-
-    switch (self.SSLPinningMode) {
-        case AFSSLPinningModeNone:
-        default:
-            return NO;
-        case AFSSLPinningModeCertificate: {
-            NSMutableArray *pinnedCertificates = [NSMutableArray array];
-            for (NSData *certificateData in self.pinnedCertificates) {
-                [pinnedCertificates addObject:(__bridge_transfer id)SecCertificateCreateWithData(NULL, (__bridge CFDataRef)certificateData)];
-            }
-            SecTrustSetAnchorCertificates(serverTrust, (__bridge CFArrayRef)pinnedCertificates);
-
-            if (!AFServerTrustIsValid(serverTrust)) {
-                return NO;
-            }
-
-            // obtain the chain after being validated, which *should* contain the pinned certificate in the last position (if it's the Root CA)
-            NSArray *serverCertificates = AFCertificateTrustChainForServerTrust(serverTrust);
-            
-            for (NSData *trustChainCertificate in [serverCertificates reverseObjectEnumerator]) {
-                if ([self.pinnedCertificates containsObject:trustChainCertificate]) {
-                    return YES;
-                }
-            }
-            
-            return NO;
-        }
-        case AFSSLPinningModePublicKey: {
-            NSUInteger trustedPublicKeyCount = 0;
-            NSArray *publicKeys = AFPublicKeyTrustChainForServerTrust(serverTrust);
-
-            for (id trustChainPublicKey in publicKeys) {
-                for (id pinnedPublicKey in self.pinnedPublicKeys) {
-                    if (AFSecKeyIsEqualToKey((__bridge SecKeyRef)trustChainPublicKey, (__bridge SecKeyRef)pinnedPublicKey)) {
-                        trustedPublicKeyCount += 1;
-                    }
-                }
-            }
-            return trustedPublicKeyCount > 0;
-        }
-    }
-    
-    return NO;
-}
-
-#pragma mark - NSKeyValueObserving
-
-+ (NSSet *)keyPathsForValuesAffectingPinnedPublicKeys {
-    return [NSSet setWithObject:@"pinnedCertificates"];
-}
-
-#pragma mark - NSSecureCoding
-
-+ (BOOL)supportsSecureCoding {
-    return YES;
-}
-
-- (instancetype)initWithCoder:(NSCoder *)decoder {
-
-    self = [self init];
-    if (!self) {
-        return nil;
-    }
-
-    self.SSLPinningMode = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(SSLPinningMode))] unsignedIntegerValue];
-    self.allowInvalidCertificates = [decoder decodeBoolForKey:NSStringFromSelector(@selector(allowInvalidCertificates))];
-    self.validatesDomainName = [decoder decodeBoolForKey:NSStringFromSelector(@selector(validatesDomainName))];
-    self.pinnedCertificates = [decoder decodeObjectOfClass:[NSArray class] forKey:NSStringFromSelector(@selector(pinnedCertificates))];
-
-    return self;
-}
-
-- (void)encodeWithCoder:(NSCoder *)coder {
-    [coder encodeObject:[NSNumber numberWithUnsignedInteger:self.SSLPinningMode] forKey:NSStringFromSelector(@selector(SSLPinningMode))];
-    [coder encodeBool:self.allowInvalidCertificates forKey:NSStringFromSelector(@selector(allowInvalidCertificates))];
-    [coder encodeBool:self.validatesDomainName forKey:NSStringFromSelector(@selector(validatesDomainName))];
-    [coder encodeObject:self.pinnedCertificates forKey:NSStringFromSelector(@selector(pinnedCertificates))];
-}
-
-#pragma mark - NSCopying
-
-- (instancetype)copyWithZone:(NSZone *)zone {
-    AFSecurityPolicy *securityPolicy = [[[self class] allocWithZone:zone] init];
-    securityPolicy.SSLPinningMode = self.SSLPinningMode;
-    securityPolicy.allowInvalidCertificates = self.allowInvalidCertificates;
-    securityPolicy.validatesDomainName = self.validatesDomainName;
-    securityPolicy.pinnedCertificates = [self.pinnedCertificates copyWithZone:zone];
-
-    return securityPolicy;
-}
-
-@end

文件差異過大導致無法顯示
+ 0 - 479
RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFURLRequestSerialization.h


文件差異過大導致無法顯示
+ 0 - 1398
RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFURLRequestSerialization.m


+ 0 - 310
RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFURLResponseSerialization.h

@@ -1,310 +0,0 @@
-// AFURLResponseSerialization.h
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import <Foundation/Foundation.h>
-#import <CoreGraphics/CoreGraphics.h>
-
-NS_ASSUME_NONNULL_BEGIN
-
-/**
- The `AFURLResponseSerialization` protocol is adopted by an object that decodes data into a more useful object representation, according to details in the server response. Response serializers may additionally perform validation on the incoming response and data.
-
- For example, a JSON response serializer may check for an acceptable status code (`2XX` range) and content type (`application/json`), decoding a valid JSON response into an object.
- */
-@protocol AFURLResponseSerialization <NSObject, NSSecureCoding, NSCopying>
-
-/**
- The response object decoded from the data associated with a specified response.
-
- @param response The response to be processed.
- @param data The response data to be decoded.
- @param error The error that occurred while attempting to decode the response data.
-
- @return The object decoded from the specified response data.
- */
-- (nullable id)responseObjectForResponse:(nullable NSURLResponse *)response
-                           data:(nullable NSData *)data
-                          error:(NSError * _Nullable __autoreleasing *)error NS_SWIFT_NOTHROW;
-
-@end
-
-#pragma mark -
-
-/**
- `AFHTTPResponseSerializer` conforms to the `AFURLRequestSerialization` & `AFURLResponseSerialization` protocols, offering a concrete base implementation of query string / URL form-encoded parameter serialization and default request headers, as well as response status code and content type validation.
-
- Any request or response serializer dealing with HTTP is encouraged to subclass `AFHTTPResponseSerializer` in order to ensure consistent default behavior.
- */
-@interface AFHTTPResponseSerializer : NSObject <AFURLResponseSerialization>
-
-- (instancetype)init;
-
-@property (nonatomic, assign) NSStringEncoding stringEncoding DEPRECATED_MSG_ATTRIBUTE("The string encoding is never used. AFHTTPResponseSerializer only validates status codes and content types but does not try to decode the received data in any way.");
-
-/**
- Creates and returns a serializer with default configuration.
- */
-+ (instancetype)serializer;
-
-///-----------------------------------------
-/// @name Configuring Response Serialization
-///-----------------------------------------
-
-/**
- The acceptable HTTP status codes for responses. When non-`nil`, responses with status codes not contained by the set will result in an error during validation.
-
- See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
- */
-@property (nonatomic, copy, nullable) NSIndexSet *acceptableStatusCodes;
-
-/**
- The acceptable MIME types for responses. When non-`nil`, responses with a `Content-Type` with MIME types that do not intersect with the set will result in an error during validation.
- */
-@property (nonatomic, copy, nullable) NSSet <NSString *> *acceptableContentTypes;
-
-/**
- Validates the specified response and data.
-
- In its base implementation, this method checks for an acceptable status code and content type. Subclasses may wish to add other domain-specific checks.
-
- @param response The response to be validated.
- @param data The data associated with the response.
- @param error The error that occurred while attempting to validate the response.
-
- @return `YES` if the response is valid, otherwise `NO`.
- */
-- (BOOL)validateResponse:(nullable NSHTTPURLResponse *)response
-                    data:(nullable NSData *)data
-                   error:(NSError * _Nullable __autoreleasing *)error;
-
-@end
-
-#pragma mark -
-
-
-/**
- `AFJSONResponseSerializer` is a subclass of `AFHTTPResponseSerializer` that validates and decodes JSON responses.
-
- By default, `AFJSONResponseSerializer` accepts the following MIME types, which includes the official standard, `application/json`, as well as other commonly-used types:
-
- - `application/json`
- - `text/json`
- - `text/javascript`
-
- In RFC 7159 - Section 8.1, it states that JSON text is required to be encoded in UTF-8, UTF-16, or UTF-32, and the default encoding is UTF-8. NSJSONSerialization provides support for all the encodings listed in the specification, and recommends UTF-8 for efficiency. Using an unsupported encoding will result in serialization error. See the `NSJSONSerialization` documentation for more details.
- */
-@interface AFJSONResponseSerializer : AFHTTPResponseSerializer
-
-- (instancetype)init;
-
-/**
- Options for reading the response JSON data and creating the Foundation objects. For possible values, see the `NSJSONSerialization` documentation section "NSJSONReadingOptions". `0` by default.
- */
-@property (nonatomic, assign) NSJSONReadingOptions readingOptions;
-
-/**
- Whether to remove keys with `NSNull` values from response JSON. Defaults to `NO`.
- */
-@property (nonatomic, assign) BOOL removesKeysWithNullValues;
-
-/**
- Creates and returns a JSON serializer with specified reading and writing options.
-
- @param readingOptions The specified JSON reading options.
- */
-+ (instancetype)serializerWithReadingOptions:(NSJSONReadingOptions)readingOptions;
-
-@end
-
-#pragma mark -
-
-/**
- `AFXMLParserResponseSerializer` is a subclass of `AFHTTPResponseSerializer` that validates and decodes XML responses as an `NSXMLParser` objects.
-
- By default, `AFXMLParserResponseSerializer` accepts the following MIME types, which includes the official standard, `application/xml`, as well as other commonly-used types:
-
- - `application/xml`
- - `text/xml`
- */
-@interface AFXMLParserResponseSerializer : AFHTTPResponseSerializer
-
-@end
-
-#pragma mark -
-
-#ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
-
-/**
- `AFXMLDocumentResponseSerializer` is a subclass of `AFHTTPResponseSerializer` that validates and decodes XML responses as an `NSXMLDocument` objects.
-
- By default, `AFXMLDocumentResponseSerializer` accepts the following MIME types, which includes the official standard, `application/xml`, as well as other commonly-used types:
-
- - `application/xml`
- - `text/xml`
- */
-@interface AFXMLDocumentResponseSerializer : AFHTTPResponseSerializer
-
-- (instancetype)init;
-
-/**
- Input and output options specifically intended for `NSXMLDocument` objects. For possible values, see the `NSXMLDocument` documentation section "Input and Output Options". `0` by default.
- */
-@property (nonatomic, assign) NSUInteger options;
-
-/**
- Creates and returns an XML document serializer with the specified options.
-
- @param mask The XML document options.
- */
-+ (instancetype)serializerWithXMLDocumentOptions:(NSUInteger)mask;
-
-@end
-
-#endif
-
-#pragma mark -
-
-/**
- `AFPropertyListResponseSerializer` is a subclass of `AFHTTPResponseSerializer` that validates and decodes XML responses as an `NSXMLDocument` objects.
-
- By default, `AFPropertyListResponseSerializer` accepts the following MIME types:
-
- - `application/x-plist`
- */
-@interface AFPropertyListResponseSerializer : AFHTTPResponseSerializer
-
-- (instancetype)init;
-
-/**
- The property list format. Possible values are described in "NSPropertyListFormat".
- */
-@property (nonatomic, assign) NSPropertyListFormat format;
-
-/**
- The property list reading options. Possible values are described in "NSPropertyListMutabilityOptions."
- */
-@property (nonatomic, assign) NSPropertyListReadOptions readOptions;
-
-/**
- Creates and returns a property list serializer with a specified format, read options, and write options.
-
- @param format The property list format.
- @param readOptions The property list reading options.
- */
-+ (instancetype)serializerWithFormat:(NSPropertyListFormat)format
-                         readOptions:(NSPropertyListReadOptions)readOptions;
-
-@end
-
-#pragma mark -
-
-/**
- `AFImageResponseSerializer` is a subclass of `AFHTTPResponseSerializer` that validates and decodes image responses.
-
- By default, `AFImageResponseSerializer` accepts the following MIME types, which correspond to the image formats supported by UIImage or NSImage:
-
- - `image/tiff`
- - `image/jpeg`
- - `image/gif`
- - `image/png`
- - `image/ico`
- - `image/x-icon`
- - `image/bmp`
- - `image/x-bmp`
- - `image/x-xbitmap`
- - `image/x-win-bitmap`
- */
-@interface AFImageResponseSerializer : AFHTTPResponseSerializer
-
-#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH
-/**
- The scale factor used when interpreting the image data to construct `responseImage`. Specifying a scale factor of 1.0 results in an image whose size matches the pixel-based dimensions of the image. Applying a different scale factor changes the size of the image as reported by the size property. This is set to the value of scale of the main screen by default, which automatically scales images for retina displays, for instance.
- */
-@property (nonatomic, assign) CGFloat imageScale;
-
-/**
- Whether to automatically inflate response image data for compressed formats (such as PNG or JPEG). Enabling this can significantly improve drawing performance on iOS when used with `setCompletionBlockWithSuccess:failure:`, as it allows a bitmap representation to be constructed in the background rather than on the main thread. `YES` by default.
- */
-@property (nonatomic, assign) BOOL automaticallyInflatesResponseImage;
-#endif
-
-@end
-
-#pragma mark -
-
-/**
- `AFCompoundSerializer` is a subclass of `AFHTTPResponseSerializer` that delegates the response serialization to the first `AFHTTPResponseSerializer` object that returns an object for `responseObjectForResponse:data:error:`, falling back on the default behavior of `AFHTTPResponseSerializer`. This is useful for supporting multiple potential types and structures of server responses with a single serializer.
- */
-@interface AFCompoundResponseSerializer : AFHTTPResponseSerializer
-
-/**
- The component response serializers.
- */
-@property (readonly, nonatomic, copy) NSArray <id<AFURLResponseSerialization>> *responseSerializers;
-
-/**
- Creates and returns a compound serializer comprised of the specified response serializers.
-
- @warning Each response serializer specified must be a subclass of `AFHTTPResponseSerializer`, and response to `-validateResponse:data:error:`.
- */
-+ (instancetype)compoundSerializerWithResponseSerializers:(NSArray <id<AFURLResponseSerialization>> *)responseSerializers;
-
-@end
-
-///----------------
-/// @name Constants
-///----------------
-
-/**
- ## Error Domains
-
- The following error domain is predefined.
-
- - `NSString * const AFURLResponseSerializationErrorDomain`
-
- ### Constants
-
- `AFURLResponseSerializationErrorDomain`
- AFURLResponseSerializer errors. Error codes for `AFURLResponseSerializationErrorDomain` correspond to codes in `NSURLErrorDomain`.
- */
-FOUNDATION_EXPORT NSString * const AFURLResponseSerializationErrorDomain;
-
-/**
- ## User info dictionary keys
-
- These keys may exist in the user info dictionary, in addition to those defined for NSError.
-
- - `NSString * const AFNetworkingOperationFailingURLResponseErrorKey`
- - `NSString * const AFNetworkingOperationFailingURLResponseDataErrorKey`
-
- ### Constants
-
- `AFNetworkingOperationFailingURLResponseErrorKey`
- The corresponding value is an `NSURLResponse` containing the response of the operation associated with an error. This key is only present in the `AFURLResponseSerializationErrorDomain`.
-
- `AFNetworkingOperationFailingURLResponseDataErrorKey`
- The corresponding value is an `NSData` containing the original data of the operation associated with an error. This key is only present in the `AFURLResponseSerializationErrorDomain`.
- */
-FOUNDATION_EXPORT NSString * const AFNetworkingOperationFailingURLResponseErrorKey;
-
-FOUNDATION_EXPORT NSString * const AFNetworkingOperationFailingURLResponseDataErrorKey;
-
-NS_ASSUME_NONNULL_END

+ 0 - 817
RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFURLResponseSerialization.m

@@ -1,817 +0,0 @@
-// AFURLResponseSerialization.m
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import "AFURLResponseSerialization.h"
-
-#import <TargetConditionals.h>
-
-#if TARGET_OS_IOS
-#import <UIKit/UIKit.h>
-#elif TARGET_OS_WATCH
-#import <WatchKit/WatchKit.h>
-#elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED)
-#import <Cocoa/Cocoa.h>
-#endif
-
-NSString * const AFURLResponseSerializationErrorDomain = @"com.alamofire.error.serialization.response";
-NSString * const AFNetworkingOperationFailingURLResponseErrorKey = @"com.alamofire.serialization.response.error.response";
-NSString * const AFNetworkingOperationFailingURLResponseDataErrorKey = @"com.alamofire.serialization.response.error.data";
-
-static NSError * AFErrorWithUnderlyingError(NSError *error, NSError *underlyingError) {
-    if (!error) {
-        return underlyingError;
-    }
-
-    if (!underlyingError || error.userInfo[NSUnderlyingErrorKey]) {
-        return error;
-    }
-
-    NSMutableDictionary *mutableUserInfo = [error.userInfo mutableCopy];
-    mutableUserInfo[NSUnderlyingErrorKey] = underlyingError;
-
-    return [[NSError alloc] initWithDomain:error.domain code:error.code userInfo:mutableUserInfo];
-}
-
-static BOOL AFErrorOrUnderlyingErrorHasCodeInDomain(NSError *error, NSInteger code, NSString *domain) {
-    if ([error.domain isEqualToString:domain] && error.code == code) {
-        return YES;
-    } else if (error.userInfo[NSUnderlyingErrorKey]) {
-        return AFErrorOrUnderlyingErrorHasCodeInDomain(error.userInfo[NSUnderlyingErrorKey], code, domain);
-    }
-
-    return NO;
-}
-
-static id AFJSONObjectByRemovingKeysWithNullValues(id JSONObject, NSJSONReadingOptions readingOptions) {
-    if ([JSONObject isKindOfClass:[NSArray class]]) {
-        NSMutableArray *mutableArray = [NSMutableArray arrayWithCapacity:[(NSArray *)JSONObject count]];
-        for (id value in (NSArray *)JSONObject) {
-            [mutableArray addObject:AFJSONObjectByRemovingKeysWithNullValues(value, readingOptions)];
-        }
-
-        return (readingOptions & NSJSONReadingMutableContainers) ? mutableArray : [NSArray arrayWithArray:mutableArray];
-    } else if ([JSONObject isKindOfClass:[NSDictionary class]]) {
-        NSMutableDictionary *mutableDictionary = [NSMutableDictionary dictionaryWithDictionary:JSONObject];
-        for (id <NSCopying> key in [(NSDictionary *)JSONObject allKeys]) {
-            id value = (NSDictionary *)JSONObject[key];
-            if (!value || [value isEqual:[NSNull null]]) {
-                [mutableDictionary removeObjectForKey:key];
-            } else if ([value isKindOfClass:[NSArray class]] || [value isKindOfClass:[NSDictionary class]]) {
-                mutableDictionary[key] = AFJSONObjectByRemovingKeysWithNullValues(value, readingOptions);
-            }
-        }
-
-        return (readingOptions & NSJSONReadingMutableContainers) ? mutableDictionary : [NSDictionary dictionaryWithDictionary:mutableDictionary];
-    }
-
-    return JSONObject;
-}
-
-@implementation AFHTTPResponseSerializer
-
-+ (instancetype)serializer {
-    return [[self alloc] init];
-}
-
-- (instancetype)init {
-    self = [super init];
-    if (!self) {
-        return nil;
-    }
-
-    self.acceptableStatusCodes = [NSIndexSet indexSetWithIndexesInRange:NSMakeRange(200, 100)];
-    self.acceptableContentTypes = nil;
-
-    return self;
-}
-
-#pragma mark -
-
-- (BOOL)validateResponse:(NSHTTPURLResponse *)response
-                    data:(NSData *)data
-                   error:(NSError * __autoreleasing *)error
-{
-    BOOL responseIsValid = YES;
-    NSError *validationError = nil;
-
-    if (response && [response isKindOfClass:[NSHTTPURLResponse class]]) {
-        if (self.acceptableContentTypes && ![self.acceptableContentTypes containsObject:[response MIMEType]] &&
-            !([response MIMEType] == nil && [data length] == 0)) {
-
-            if ([data length] > 0 && [response URL]) {
-                NSMutableDictionary *mutableUserInfo = [@{
-                                                          NSLocalizedDescriptionKey: [NSString stringWithFormat:NSLocalizedStringFromTable(@"Request failed: unacceptable content-type: %@", @"AFNetworking", nil), [response MIMEType]],
-                                                          NSURLErrorFailingURLErrorKey:[response URL],
-                                                          AFNetworkingOperationFailingURLResponseErrorKey: response,
-                                                        } mutableCopy];
-                if (data) {
-                    mutableUserInfo[AFNetworkingOperationFailingURLResponseDataErrorKey] = data;
-                }
-
-                validationError = AFErrorWithUnderlyingError([NSError errorWithDomain:AFURLResponseSerializationErrorDomain code:NSURLErrorCannotDecodeContentData userInfo:mutableUserInfo], validationError);
-            }
-
-            responseIsValid = NO;
-        }
-
-        if (self.acceptableStatusCodes && ![self.acceptableStatusCodes containsIndex:(NSUInteger)response.statusCode] && [response URL]) {
-            NSMutableDictionary *mutableUserInfo = [@{
-                                               NSLocalizedDescriptionKey: [NSString stringWithFormat:NSLocalizedStringFromTable(@"Request failed: %@ (%ld)", @"AFNetworking", nil), [NSHTTPURLResponse localizedStringForStatusCode:response.statusCode], (long)response.statusCode],
-                                               NSURLErrorFailingURLErrorKey:[response URL],
-                                               AFNetworkingOperationFailingURLResponseErrorKey: response,
-                                       } mutableCopy];
-
-            if (data) {
-                mutableUserInfo[AFNetworkingOperationFailingURLResponseDataErrorKey] = data;
-            }
-
-            validationError = AFErrorWithUnderlyingError([NSError errorWithDomain:AFURLResponseSerializationErrorDomain code:NSURLErrorBadServerResponse userInfo:mutableUserInfo], validationError);
-
-            responseIsValid = NO;
-        }
-    }
-
-    if (error && !responseIsValid) {
-        *error = validationError;
-    }
-
-    return responseIsValid;
-}
-
-#pragma mark - AFURLResponseSerialization
-
-- (id)responseObjectForResponse:(NSURLResponse *)response
-                           data:(NSData *)data
-                          error:(NSError *__autoreleasing *)error
-{
-    [self validateResponse:(NSHTTPURLResponse *)response data:data error:error];
-
-    return data;
-}
-
-#pragma mark - NSSecureCoding
-
-+ (BOOL)supportsSecureCoding {
-    return YES;
-}
-
-- (instancetype)initWithCoder:(NSCoder *)decoder {
-    self = [self init];
-    if (!self) {
-        return nil;
-    }
-
-    self.acceptableStatusCodes = [decoder decodeObjectOfClass:[NSIndexSet class] forKey:NSStringFromSelector(@selector(acceptableStatusCodes))];
-    self.acceptableContentTypes = [decoder decodeObjectOfClass:[NSIndexSet class] forKey:NSStringFromSelector(@selector(acceptableContentTypes))];
-
-    return self;
-}
-
-- (void)encodeWithCoder:(NSCoder *)coder {
-    [coder encodeObject:self.acceptableStatusCodes forKey:NSStringFromSelector(@selector(acceptableStatusCodes))];
-    [coder encodeObject:self.acceptableContentTypes forKey:NSStringFromSelector(@selector(acceptableContentTypes))];
-}
-
-#pragma mark - NSCopying
-
-- (instancetype)copyWithZone:(NSZone *)zone {
-    AFHTTPResponseSerializer *serializer = [[[self class] allocWithZone:zone] init];
-    serializer.acceptableStatusCodes = [self.acceptableStatusCodes copyWithZone:zone];
-    serializer.acceptableContentTypes = [self.acceptableContentTypes copyWithZone:zone];
-
-    return serializer;
-}
-
-@end
-
-#pragma mark -
-
-@implementation AFJSONResponseSerializer
-
-+ (instancetype)serializer {
-    return [self serializerWithReadingOptions:(NSJSONReadingOptions)0];
-}
-
-+ (instancetype)serializerWithReadingOptions:(NSJSONReadingOptions)readingOptions {
-    AFJSONResponseSerializer *serializer = [[self alloc] init];
-    serializer.readingOptions = readingOptions;
-
-    return serializer;
-}
-
-- (instancetype)init {
-    self = [super init];
-    if (!self) {
-        return nil;
-    }
-
-    self.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript", nil];
-
-    return self;
-}
-
-#pragma mark - AFURLResponseSerialization
-
-- (id)responseObjectForResponse:(NSURLResponse *)response
-                           data:(NSData *)data
-                          error:(NSError *__autoreleasing *)error
-{
-    if (![self validateResponse:(NSHTTPURLResponse *)response data:data error:error]) {
-        if (!error || AFErrorOrUnderlyingErrorHasCodeInDomain(*error, NSURLErrorCannotDecodeContentData, AFURLResponseSerializationErrorDomain)) {
-            return nil;
-        }
-    }
-
-    // Workaround for behavior of Rails to return a single space for `head :ok` (a workaround for a bug in Safari), which is not interpreted as valid input by NSJSONSerialization.
-    // See https://github.com/rails/rails/issues/1742
-    BOOL isSpace = [data isEqualToData:[NSData dataWithBytes:" " length:1]];
-    
-    if (data.length == 0 || isSpace) {
-        return nil;
-    }
-    
-    NSError *serializationError = nil;
-    
-    id responseObject = [NSJSONSerialization JSONObjectWithData:data options:self.readingOptions error:&serializationError];
-
-    if (!responseObject)
-    {
-        if (error) {
-            *error = AFErrorWithUnderlyingError(serializationError, *error);
-        }
-        return nil;
-    }
-    
-    if (self.removesKeysWithNullValues) {
-        return AFJSONObjectByRemovingKeysWithNullValues(responseObject, self.readingOptions);
-    }
-
-    return responseObject;
-}
-
-#pragma mark - NSSecureCoding
-
-- (instancetype)initWithCoder:(NSCoder *)decoder {
-    self = [super initWithCoder:decoder];
-    if (!self) {
-        return nil;
-    }
-
-    self.readingOptions = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(readingOptions))] unsignedIntegerValue];
-    self.removesKeysWithNullValues = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(removesKeysWithNullValues))] boolValue];
-
-    return self;
-}
-
-- (void)encodeWithCoder:(NSCoder *)coder {
-    [super encodeWithCoder:coder];
-
-    [coder encodeObject:@(self.readingOptions) forKey:NSStringFromSelector(@selector(readingOptions))];
-    [coder encodeObject:@(self.removesKeysWithNullValues) forKey:NSStringFromSelector(@selector(removesKeysWithNullValues))];
-}
-
-#pragma mark - NSCopying
-
-- (instancetype)copyWithZone:(NSZone *)zone {
-    AFJSONResponseSerializer *serializer = [super copyWithZone:zone];
-    serializer.readingOptions = self.readingOptions;
-    serializer.removesKeysWithNullValues = self.removesKeysWithNullValues;
-
-    return serializer;
-}
-
-@end
-
-#pragma mark -
-
-@implementation AFXMLParserResponseSerializer
-
-+ (instancetype)serializer {
-    AFXMLParserResponseSerializer *serializer = [[self alloc] init];
-
-    return serializer;
-}
-
-- (instancetype)init {
-    self = [super init];
-    if (!self) {
-        return nil;
-    }
-
-    self.acceptableContentTypes = [[NSSet alloc] initWithObjects:@"application/xml", @"text/xml", nil];
-
-    return self;
-}
-
-#pragma mark - AFURLResponseSerialization
-
-- (id)responseObjectForResponse:(NSHTTPURLResponse *)response
-                           data:(NSData *)data
-                          error:(NSError *__autoreleasing *)error
-{
-    if (![self validateResponse:(NSHTTPURLResponse *)response data:data error:error]) {
-        if (!error || AFErrorOrUnderlyingErrorHasCodeInDomain(*error, NSURLErrorCannotDecodeContentData, AFURLResponseSerializationErrorDomain)) {
-            return nil;
-        }
-    }
-
-    return [[NSXMLParser alloc] initWithData:data];
-}
-
-@end
-
-#pragma mark -
-
-#ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
-
-@implementation AFXMLDocumentResponseSerializer
-
-+ (instancetype)serializer {
-    return [self serializerWithXMLDocumentOptions:0];
-}
-
-+ (instancetype)serializerWithXMLDocumentOptions:(NSUInteger)mask {
-    AFXMLDocumentResponseSerializer *serializer = [[self alloc] init];
-    serializer.options = mask;
-
-    return serializer;
-}
-
-- (instancetype)init {
-    self = [super init];
-    if (!self) {
-        return nil;
-    }
-
-    self.acceptableContentTypes = [[NSSet alloc] initWithObjects:@"application/xml", @"text/xml", nil];
-
-    return self;
-}
-
-#pragma mark - AFURLResponseSerialization
-
-- (id)responseObjectForResponse:(NSURLResponse *)response
-                           data:(NSData *)data
-                          error:(NSError *__autoreleasing *)error
-{
-    if (![self validateResponse:(NSHTTPURLResponse *)response data:data error:error]) {
-        if (!error || AFErrorOrUnderlyingErrorHasCodeInDomain(*error, NSURLErrorCannotDecodeContentData, AFURLResponseSerializationErrorDomain)) {
-            return nil;
-        }
-    }
-
-    NSError *serializationError = nil;
-    NSXMLDocument *document = [[NSXMLDocument alloc] initWithData:data options:self.options error:&serializationError];
-
-    if (!document)
-    {
-        if (error) {
-            *error = AFErrorWithUnderlyingError(serializationError, *error);
-        }
-        return nil;
-    }
-    
-    return document;
-}
-
-#pragma mark - NSSecureCoding
-
-- (instancetype)initWithCoder:(NSCoder *)decoder {
-    self = [super initWithCoder:decoder];
-    if (!self) {
-        return nil;
-    }
-
-    self.options = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(options))] unsignedIntegerValue];
-
-    return self;
-}
-
-- (void)encodeWithCoder:(NSCoder *)coder {
-    [super encodeWithCoder:coder];
-
-    [coder encodeObject:@(self.options) forKey:NSStringFromSelector(@selector(options))];
-}
-
-#pragma mark - NSCopying
-
-- (instancetype)copyWithZone:(NSZone *)zone {
-    AFXMLDocumentResponseSerializer *serializer = [super copyWithZone:zone];
-    serializer.options = self.options;
-
-    return serializer;
-}
-
-@end
-
-#endif
-
-#pragma mark -
-
-@implementation AFPropertyListResponseSerializer
-
-+ (instancetype)serializer {
-    return [self serializerWithFormat:NSPropertyListXMLFormat_v1_0 readOptions:0];
-}
-
-+ (instancetype)serializerWithFormat:(NSPropertyListFormat)format
-                         readOptions:(NSPropertyListReadOptions)readOptions
-{
-    AFPropertyListResponseSerializer *serializer = [[self alloc] init];
-    serializer.format = format;
-    serializer.readOptions = readOptions;
-
-    return serializer;
-}
-
-- (instancetype)init {
-    self = [super init];
-    if (!self) {
-        return nil;
-    }
-
-    self.acceptableContentTypes = [[NSSet alloc] initWithObjects:@"application/x-plist", nil];
-
-    return self;
-}
-
-#pragma mark - AFURLResponseSerialization
-
-- (id)responseObjectForResponse:(NSURLResponse *)response
-                           data:(NSData *)data
-                          error:(NSError *__autoreleasing *)error
-{
-    if (![self validateResponse:(NSHTTPURLResponse *)response data:data error:error]) {
-        if (!error || AFErrorOrUnderlyingErrorHasCodeInDomain(*error, NSURLErrorCannotDecodeContentData, AFURLResponseSerializationErrorDomain)) {
-            return nil;
-        }
-    }
-
-    if (!data) {
-        return nil;
-    }
-    
-    NSError *serializationError = nil;
-    
-    id responseObject = [NSPropertyListSerialization propertyListWithData:data options:self.readOptions format:NULL error:&serializationError];
-    
-    if (!responseObject)
-    {
-        if (error) {
-            *error = AFErrorWithUnderlyingError(serializationError, *error);
-        }
-        return nil;
-    }
-
-    return responseObject;
-}
-
-#pragma mark - NSSecureCoding
-
-- (instancetype)initWithCoder:(NSCoder *)decoder {
-    self = [super initWithCoder:decoder];
-    if (!self) {
-        return nil;
-    }
-
-    self.format = (NSPropertyListFormat)[[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(format))] unsignedIntegerValue];
-    self.readOptions = [[decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(readOptions))] unsignedIntegerValue];
-
-    return self;
-}
-
-- (void)encodeWithCoder:(NSCoder *)coder {
-    [super encodeWithCoder:coder];
-
-    [coder encodeObject:@(self.format) forKey:NSStringFromSelector(@selector(format))];
-    [coder encodeObject:@(self.readOptions) forKey:NSStringFromSelector(@selector(readOptions))];
-}
-
-#pragma mark - NSCopying
-
-- (instancetype)copyWithZone:(NSZone *)zone {
-    AFPropertyListResponseSerializer *serializer = [super copyWithZone:zone];
-    serializer.format = self.format;
-    serializer.readOptions = self.readOptions;
-
-    return serializer;
-}
-
-@end
-
-#pragma mark -
-
-#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH
-#import <CoreGraphics/CoreGraphics.h>
-#import <UIKit/UIKit.h>
-
-@interface UIImage (AFNetworkingSafeImageLoading)
-+ (UIImage *)af_safeImageWithData:(NSData *)data;
-@end
-
-static NSLock* imageLock = nil;
-
-@implementation UIImage (AFNetworkingSafeImageLoading)
-
-+ (UIImage *)af_safeImageWithData:(NSData *)data {
-    UIImage* image = nil;
-    static dispatch_once_t onceToken;
-    dispatch_once(&onceToken, ^{
-        imageLock = [[NSLock alloc] init];
-    });
-    
-    [imageLock lock];
-    image = [UIImage imageWithData:data];
-    [imageLock unlock];
-    return image;
-}
-
-@end
-
-static UIImage * AFImageWithDataAtScale(NSData *data, CGFloat scale) {
-    UIImage *image = [UIImage af_safeImageWithData:data];
-    if (image.images) {
-        return image;
-    }
-    
-    return [[UIImage alloc] initWithCGImage:[image CGImage] scale:scale orientation:image.imageOrientation];
-}
-
-static UIImage * AFInflatedImageFromResponseWithDataAtScale(NSHTTPURLResponse *response, NSData *data, CGFloat scale) {
-    if (!data || [data length] == 0) {
-        return nil;
-    }
-
-    CGImageRef imageRef = NULL;
-    CGDataProviderRef dataProvider = CGDataProviderCreateWithCFData((__bridge CFDataRef)data);
-
-    if ([response.MIMEType isEqualToString:@"image/png"]) {
-        imageRef = CGImageCreateWithPNGDataProvider(dataProvider,  NULL, true, kCGRenderingIntentDefault);
-    } else if ([response.MIMEType isEqualToString:@"image/jpeg"]) {
-        imageRef = CGImageCreateWithJPEGDataProvider(dataProvider, NULL, true, kCGRenderingIntentDefault);
-
-        if (imageRef) {
-            CGColorSpaceRef imageColorSpace = CGImageGetColorSpace(imageRef);
-            CGColorSpaceModel imageColorSpaceModel = CGColorSpaceGetModel(imageColorSpace);
-
-            // CGImageCreateWithJPEGDataProvider does not properly handle CMKY, so fall back to AFImageWithDataAtScale
-            if (imageColorSpaceModel == kCGColorSpaceModelCMYK) {
-                CGImageRelease(imageRef);
-                imageRef = NULL;
-            }
-        }
-    }
-
-    CGDataProviderRelease(dataProvider);
-
-    UIImage *image = AFImageWithDataAtScale(data, scale);
-    if (!imageRef) {
-        if (image.images || !image) {
-            return image;
-        }
-
-        imageRef = CGImageCreateCopy([image CGImage]);
-        if (!imageRef) {
-            return nil;
-        }
-    }
-
-    size_t width = CGImageGetWidth(imageRef);
-    size_t height = CGImageGetHeight(imageRef);
-    size_t bitsPerComponent = CGImageGetBitsPerComponent(imageRef);
-
-    if (width * height > 1024 * 1024 || bitsPerComponent > 8) {
-        CGImageRelease(imageRef);
-
-        return image;
-    }
-
-    // CGImageGetBytesPerRow() calculates incorrectly in iOS 5.0, so defer to CGBitmapContextCreate
-    size_t bytesPerRow = 0;
-    CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
-    CGColorSpaceModel colorSpaceModel = CGColorSpaceGetModel(colorSpace);
-    CGBitmapInfo bitmapInfo = CGImageGetBitmapInfo(imageRef);
-
-    if (colorSpaceModel == kCGColorSpaceModelRGB) {
-        uint32_t alpha = (bitmapInfo & kCGBitmapAlphaInfoMask);
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wassign-enum"
-        if (alpha == kCGImageAlphaNone) {
-            bitmapInfo &= ~kCGBitmapAlphaInfoMask;
-            bitmapInfo |= kCGImageAlphaNoneSkipFirst;
-        } else if (!(alpha == kCGImageAlphaNoneSkipFirst || alpha == kCGImageAlphaNoneSkipLast)) {
-            bitmapInfo &= ~kCGBitmapAlphaInfoMask;
-            bitmapInfo |= kCGImageAlphaPremultipliedFirst;
-        }
-#pragma clang diagnostic pop
-    }
-
-    CGContextRef context = CGBitmapContextCreate(NULL, width, height, bitsPerComponent, bytesPerRow, colorSpace, bitmapInfo);
-
-    CGColorSpaceRelease(colorSpace);
-
-    if (!context) {
-        CGImageRelease(imageRef);
-
-        return image;
-    }
-
-    CGContextDrawImage(context, CGRectMake(0.0f, 0.0f, width, height), imageRef);
-    CGImageRef inflatedImageRef = CGBitmapContextCreateImage(context);
-
-    CGContextRelease(context);
-
-    UIImage *inflatedImage = [[UIImage alloc] initWithCGImage:inflatedImageRef scale:scale orientation:image.imageOrientation];
-
-    CGImageRelease(inflatedImageRef);
-    CGImageRelease(imageRef);
-
-    return inflatedImage;
-}
-#endif
-
-
-@implementation AFImageResponseSerializer
-
-- (instancetype)init {
-    self = [super init];
-    if (!self) {
-        return nil;
-    }
-
-    self.acceptableContentTypes = [[NSSet alloc] initWithObjects:@"image/tiff", @"image/jpeg", @"image/gif", @"image/png", @"image/ico", @"image/x-icon", @"image/bmp", @"image/x-bmp", @"image/x-xbitmap", @"image/x-win-bitmap", nil];
-
-#if TARGET_OS_IOS || TARGET_OS_TV
-    self.imageScale = [[UIScreen mainScreen] scale];
-    self.automaticallyInflatesResponseImage = YES;
-#elif TARGET_OS_WATCH
-    self.imageScale = [[WKInterfaceDevice currentDevice] screenScale];
-    self.automaticallyInflatesResponseImage = YES;
-#endif
-
-    return self;
-}
-
-#pragma mark - AFURLResponseSerializer
-
-- (id)responseObjectForResponse:(NSURLResponse *)response
-                           data:(NSData *)data
-                          error:(NSError *__autoreleasing *)error
-{
-    if (![self validateResponse:(NSHTTPURLResponse *)response data:data error:error]) {
-        if (!error || AFErrorOrUnderlyingErrorHasCodeInDomain(*error, NSURLErrorCannotDecodeContentData, AFURLResponseSerializationErrorDomain)) {
-            return nil;
-        }
-    }
-
-#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH
-    if (self.automaticallyInflatesResponseImage) {
-        return AFInflatedImageFromResponseWithDataAtScale((NSHTTPURLResponse *)response, data, self.imageScale);
-    } else {
-        return AFImageWithDataAtScale(data, self.imageScale);
-    }
-#else
-    // Ensure that the image is set to it's correct pixel width and height
-    NSBitmapImageRep *bitimage = [[NSBitmapImageRep alloc] initWithData:data];
-    NSImage *image = [[NSImage alloc] initWithSize:NSMakeSize([bitimage pixelsWide], [bitimage pixelsHigh])];
-    [image addRepresentation:bitimage];
-
-    return image;
-#endif
-
-    return nil;
-}
-
-#pragma mark - NSSecureCoding
-
-- (instancetype)initWithCoder:(NSCoder *)decoder {
-    self = [super initWithCoder:decoder];
-    if (!self) {
-        return nil;
-    }
-
-#if TARGET_OS_IOS  || TARGET_OS_TV || TARGET_OS_WATCH
-    NSNumber *imageScale = [decoder decodeObjectOfClass:[NSNumber class] forKey:NSStringFromSelector(@selector(imageScale))];
-#if CGFLOAT_IS_DOUBLE
-    self.imageScale = [imageScale doubleValue];
-#else
-    self.imageScale = [imageScale floatValue];
-#endif
-
-    self.automaticallyInflatesResponseImage = [decoder decodeBoolForKey:NSStringFromSelector(@selector(automaticallyInflatesResponseImage))];
-#endif
-
-    return self;
-}
-
-- (void)encodeWithCoder:(NSCoder *)coder {
-    [super encodeWithCoder:coder];
-
-#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH
-    [coder encodeObject:@(self.imageScale) forKey:NSStringFromSelector(@selector(imageScale))];
-    [coder encodeBool:self.automaticallyInflatesResponseImage forKey:NSStringFromSelector(@selector(automaticallyInflatesResponseImage))];
-#endif
-}
-
-#pragma mark - NSCopying
-
-- (instancetype)copyWithZone:(NSZone *)zone {
-    AFImageResponseSerializer *serializer = [super copyWithZone:zone];
-
-#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH
-    serializer.imageScale = self.imageScale;
-    serializer.automaticallyInflatesResponseImage = self.automaticallyInflatesResponseImage;
-#endif
-
-    return serializer;
-}
-
-@end
-
-#pragma mark -
-
-@interface AFCompoundResponseSerializer ()
-@property (readwrite, nonatomic, copy) NSArray *responseSerializers;
-@end
-
-@implementation AFCompoundResponseSerializer
-
-+ (instancetype)compoundSerializerWithResponseSerializers:(NSArray *)responseSerializers {
-    AFCompoundResponseSerializer *serializer = [[self alloc] init];
-    serializer.responseSerializers = responseSerializers;
-
-    return serializer;
-}
-
-#pragma mark - AFURLResponseSerialization
-
-- (id)responseObjectForResponse:(NSURLResponse *)response
-                           data:(NSData *)data
-                          error:(NSError *__autoreleasing *)error
-{
-    for (id <AFURLResponseSerialization> serializer in self.responseSerializers) {
-        if (![serializer isKindOfClass:[AFHTTPResponseSerializer class]]) {
-            continue;
-        }
-
-        NSError *serializerError = nil;
-        id responseObject = [serializer responseObjectForResponse:response data:data error:&serializerError];
-        if (responseObject) {
-            if (error) {
-                *error = AFErrorWithUnderlyingError(serializerError, *error);
-            }
-
-            return responseObject;
-        }
-    }
-
-    return [super responseObjectForResponse:response data:data error:error];
-}
-
-#pragma mark - NSSecureCoding
-
-- (instancetype)initWithCoder:(NSCoder *)decoder {
-    self = [super initWithCoder:decoder];
-    if (!self) {
-        return nil;
-    }
-
-    self.responseSerializers = [decoder decodeObjectOfClass:[NSArray class] forKey:NSStringFromSelector(@selector(responseSerializers))];
-
-    return self;
-}
-
-- (void)encodeWithCoder:(NSCoder *)coder {
-    [super encodeWithCoder:coder];
-
-    [coder encodeObject:self.responseSerializers forKey:NSStringFromSelector(@selector(responseSerializers))];
-}
-
-#pragma mark - NSCopying
-
-- (instancetype)copyWithZone:(NSZone *)zone {
-    AFCompoundResponseSerializer *serializer = [super copyWithZone:zone];
-    serializer.responseSerializers = self.responseSerializers;
-
-    return serializer;
-}
-
-@end

文件差異過大導致無法顯示
+ 0 - 501
RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFURLSessionManager.h


文件差異過大導致無法顯示
+ 0 - 1238
RainbowPlanetOC/Pods/AFNetworking/AFNetworking/AFURLSessionManager.m


+ 0 - 19
RainbowPlanetOC/Pods/AFNetworking/LICENSE

@@ -1,19 +0,0 @@
-Copyright (c) 2011-2016 Alamofire Software Foundation (http://alamofire.org/)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.

+ 0 - 322
RainbowPlanetOC/Pods/AFNetworking/README.md

@@ -1,322 +0,0 @@
-<p align="center" >
-  <img src="https://raw.github.com/AFNetworking/AFNetworking/assets/afnetworking-logo.png" alt="AFNetworking" title="AFNetworking">
-</p>
-
-[![Build Status](https://travis-ci.org/AFNetworking/AFNetworking.svg)](https://travis-ci.org/AFNetworking/AFNetworking)
-[![codecov.io](https://codecov.io/github/AFNetworking/AFNetworking/coverage.svg?branch=master)](https://codecov.io/github/AFNetworking/AFNetworking?branch=master)
-[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/AFNetworking.svg)](https://img.shields.io/cocoapods/v/AFNetworking.svg)
-[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
-[![Platform](https://img.shields.io/cocoapods/p/AFNetworking.svg?style=flat)](http://cocoadocs.org/docsets/AFNetworking)
-[![Twitter](https://img.shields.io/badge/twitter-@AFNetworking-blue.svg?style=flat)](http://twitter.com/AFNetworking)
-
-AFNetworking is a delightful networking library for iOS, macOS, watchOS, and tvOS. It's built on top of the [Foundation URL Loading System](http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/URLLoadingSystem/URLLoadingSystem.html), extending the powerful high-level networking abstractions built into Cocoa. It has a modular architecture with well-designed, feature-rich APIs that are a joy to use.
-
-Perhaps the most important feature of all, however, is the amazing community of developers who use and contribute to AFNetworking every day. AFNetworking powers some of the most popular and critically-acclaimed apps on the iPhone, iPad, and Mac.
-
-Choose AFNetworking for your next project, or migrate over your existing projects—you'll be happy you did!
-
-## How To Get Started
-
-- [Download AFNetworking](https://github.com/AFNetworking/AFNetworking/archive/master.zip) and try out the included Mac and iPhone example apps
-- Read the ["Getting Started" guide](https://github.com/AFNetworking/AFNetworking/wiki/Getting-Started-with-AFNetworking), [FAQ](https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-FAQ), or [other articles on the Wiki](https://github.com/AFNetworking/AFNetworking/wiki)
-- Check out the [documentation](http://cocoadocs.org/docsets/AFNetworking/) for a comprehensive look at all of the APIs available in AFNetworking
-- Read the [AFNetworking 3.0 Migration Guide](https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-3.0-Migration-Guide) for an overview of the architectural changes from 2.0.
-
-## Communication
-
-- If you **need help**, use [Stack Overflow](http://stackoverflow.com/questions/tagged/afnetworking). (Tag 'afnetworking')
-- If you'd like to **ask a general question**, use [Stack Overflow](http://stackoverflow.com/questions/tagged/afnetworking).
-- If you **found a bug**, _and can provide steps to reliably reproduce it_, open an issue.
-- If you **have a feature request**, open an issue.
-- If you **want to contribute**, submit a pull request.
-
-## Installation
-AFNetworking supports multiple methods for installing the library in a project.
-
-## Installation with CocoaPods
-
-[CocoaPods](http://cocoapods.org) is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like AFNetworking in your projects. See the ["Getting Started" guide for more information](https://github.com/AFNetworking/AFNetworking/wiki/Getting-Started-with-AFNetworking). You can install it with the following command:
-
-```bash
-$ gem install cocoapods
-```
-
-> CocoaPods 0.39.0+ is required to build AFNetworking 3.0.0+.
-
-#### Podfile
-
-To integrate AFNetworking into your Xcode project using CocoaPods, specify it in your `Podfile`:
-
-```ruby
-source 'https://github.com/CocoaPods/Specs.git'
-platform :ios, '8.0'
-
-target 'TargetName' do
-pod 'AFNetworking', '~> 3.0'
-end
-```
-
-Then, run the following command:
-
-```bash
-$ pod install
-```
-
-### Installation with Carthage
-
-[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
-
-You can install Carthage with [Homebrew](http://brew.sh/) using the following command:
-
-```bash
-$ brew update
-$ brew install carthage
-```
-
-To integrate AFNetworking into your Xcode project using Carthage, specify it in your `Cartfile`:
-
-```ogdl
-github "AFNetworking/AFNetworking" ~> 3.0
-```
-
-Run `carthage` to build the framework and drag the built `AFNetworking.framework` into your Xcode project.
-
-## Requirements
-
-| AFNetworking Version | Minimum iOS Target  | Minimum macOS Target  | Minimum watchOS Target  | Minimum tvOS Target  |                                   Notes                                   |
-|:--------------------:|:---------------------------:|:----------------------------:|:----------------------------:|:----------------------------:|:-------------------------------------------------------------------------:|
-| 3.x | iOS 7 | OS X 10.9 | watchOS 2.0 | tvOS 9.0 | Xcode 7+ is required. `NSURLConnectionOperation` support has been removed. |
-| 2.6 -> 2.6.3 | iOS 7 | OS X 10.9 | watchOS 2.0 | n/a | Xcode 7+ is required. |
-| 2.0 -> 2.5.4 | iOS 6 | OS X 10.8 | n/a | n/a | Xcode 5+ is required. `NSURLSession` subspec requires iOS 7 or OS X 10.9. |
-| 1.x | iOS 5 | Mac OS X 10.7 | n/a | n/a |
-| 0.10.x | iOS 4 | Mac OS X 10.6 | n/a | n/a |
-
-(macOS projects must support [64-bit with modern Cocoa runtime](https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtVersionsPlatforms.html)).
-
-> Programming in Swift? Try [Alamofire](https://github.com/Alamofire/Alamofire) for a more conventional set of APIs.
-
-## Architecture
-
-### NSURLSession
-
-- `AFURLSessionManager`
-- `AFHTTPSessionManager`
-
-### Serialization
-
-* `<AFURLRequestSerialization>`
-  - `AFHTTPRequestSerializer`
-  - `AFJSONRequestSerializer`
-  - `AFPropertyListRequestSerializer`
-* `<AFURLResponseSerialization>`
-  - `AFHTTPResponseSerializer`
-  - `AFJSONResponseSerializer`
-  - `AFXMLParserResponseSerializer`
-  - `AFXMLDocumentResponseSerializer` _(macOS)_
-  - `AFPropertyListResponseSerializer`
-  - `AFImageResponseSerializer`
-  - `AFCompoundResponseSerializer`
-
-### Additional Functionality
-
-- `AFSecurityPolicy`
-- `AFNetworkReachabilityManager`
-
-## Usage
-
-### AFURLSessionManager
-
-`AFURLSessionManager` creates and manages an `NSURLSession` object based on a specified `NSURLSessionConfiguration` object, which conforms to `<NSURLSessionTaskDelegate>`, `<NSURLSessionDataDelegate>`, `<NSURLSessionDownloadDelegate>`, and `<NSURLSessionDelegate>`.
-
-#### Creating a Download Task
-
-```objective-c
-NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];
-AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration];
-
-NSURL *URL = [NSURL URLWithString:@"http://example.com/download.zip"];
-NSURLRequest *request = [NSURLRequest requestWithURL:URL];
-
-NSURLSessionDownloadTask *downloadTask = [manager downloadTaskWithRequest:request progress:nil destination:^NSURL *(NSURL *targetPath, NSURLResponse *response) {
-    NSURL *documentsDirectoryURL = [[NSFileManager defaultManager] URLForDirectory:NSDocumentDirectory inDomain:NSUserDomainMask appropriateForURL:nil create:NO error:nil];
-    return [documentsDirectoryURL URLByAppendingPathComponent:[response suggestedFilename]];
-} completionHandler:^(NSURLResponse *response, NSURL *filePath, NSError *error) {
-    NSLog(@"File downloaded to: %@", filePath);
-}];
-[downloadTask resume];
-```
-
-#### Creating an Upload Task
-
-```objective-c
-NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];
-AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration];
-
-NSURL *URL = [NSURL URLWithString:@"http://example.com/upload"];
-NSURLRequest *request = [NSURLRequest requestWithURL:URL];
-
-NSURL *filePath = [NSURL fileURLWithPath:@"file://path/to/image.png"];
-NSURLSessionUploadTask *uploadTask = [manager uploadTaskWithRequest:request fromFile:filePath progress:nil completionHandler:^(NSURLResponse *response, id responseObject, NSError *error) {
-    if (error) {
-        NSLog(@"Error: %@", error);
-    } else {
-        NSLog(@"Success: %@ %@", response, responseObject);
-    }
-}];
-[uploadTask resume];
-```
-
-#### Creating an Upload Task for a Multi-Part Request, with Progress
-
-```objective-c
-NSMutableURLRequest *request = [[AFHTTPRequestSerializer serializer] multipartFormRequestWithMethod:@"POST" URLString:@"http://example.com/upload" parameters:nil constructingBodyWithBlock:^(id<AFMultipartFormData> formData) {
-        [formData appendPartWithFileURL:[NSURL fileURLWithPath:@"file://path/to/image.jpg"] name:@"file" fileName:@"filename.jpg" mimeType:@"image/jpeg" error:nil];
-    } error:nil];
-
-AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]];
-
-NSURLSessionUploadTask *uploadTask;
-uploadTask = [manager
-              uploadTaskWithStreamedRequest:request
-              progress:^(NSProgress * _Nonnull uploadProgress) {
-                  // This is not called back on the main queue.
-                  // You are responsible for dispatching to the main queue for UI updates
-                  dispatch_async(dispatch_get_main_queue(), ^{
-                      //Update the progress view
-                      [progressView setProgress:uploadProgress.fractionCompleted];
-                  });
-              }
-              completionHandler:^(NSURLResponse * _Nonnull response, id  _Nullable responseObject, NSError * _Nullable error) {
-                  if (error) {
-                      NSLog(@"Error: %@", error);
-                  } else {
-                      NSLog(@"%@ %@", response, responseObject);
-                  }
-              }];
-
-[uploadTask resume];
-```
-
-#### Creating a Data Task
-
-```objective-c
-NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];
-AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration];
-
-NSURL *URL = [NSURL URLWithString:@"http://httpbin.org/get"];
-NSURLRequest *request = [NSURLRequest requestWithURL:URL];
-
-NSURLSessionDataTask *dataTask = [manager dataTaskWithRequest:request completionHandler:^(NSURLResponse *response, id responseObject, NSError *error) {
-    if (error) {
-        NSLog(@"Error: %@", error);
-    } else {
-        NSLog(@"%@ %@", response, responseObject);
-    }
-}];
-[dataTask resume];
-```
-
----
-
-### Request Serialization
-
-Request serializers create requests from URL strings, encoding parameters as either a query string or HTTP body.
-
-```objective-c
-NSString *URLString = @"http://example.com";
-NSDictionary *parameters = @{@"foo": @"bar", @"baz": @[@1, @2, @3]};
-```
-
-#### Query String Parameter Encoding
-
-```objective-c
-[[AFHTTPRequestSerializer serializer] requestWithMethod:@"GET" URLString:URLString parameters:parameters error:nil];
-```
-
-    GET http://example.com?foo=bar&baz[]=1&baz[]=2&baz[]=3
-
-#### URL Form Parameter Encoding
-
-```objective-c
-[[AFHTTPRequestSerializer serializer] requestWithMethod:@"POST" URLString:URLString parameters:parameters error:nil];
-```
-
-    POST http://example.com/
-    Content-Type: application/x-www-form-urlencoded
-
-    foo=bar&baz[]=1&baz[]=2&baz[]=3
-
-#### JSON Parameter Encoding
-
-```objective-c
-[[AFJSONRequestSerializer serializer] requestWithMethod:@"POST" URLString:URLString parameters:parameters error:nil];
-```
-
-    POST http://example.com/
-    Content-Type: application/json
-
-    {"foo": "bar", "baz": [1,2,3]}
-
----
-
-### Network Reachability Manager
-
-`AFNetworkReachabilityManager` monitors the reachability of domains, and addresses for both WWAN and WiFi network interfaces.
-
-* Do not use Reachability to determine if the original request should be sent.
-	* You should try to send it.
-* You can use Reachability to determine when a request should be automatically retried.
-	* Although it may still fail, a Reachability notification that the connectivity is available is a good time to retry something.
-* Network reachability is a useful tool for determining why a request might have failed.
-	* After a network request has failed, telling the user they're offline is better than giving them a more technical but accurate error, such as "request timed out."
-
-See also [WWDC 2012 session 706, "Networking Best Practices."](https://developer.apple.com/videos/play/wwdc2012-706/).
-
-#### Shared Network Reachability
-
-```objective-c
-[[AFNetworkReachabilityManager sharedManager] setReachabilityStatusChangeBlock:^(AFNetworkReachabilityStatus status) {
-    NSLog(@"Reachability: %@", AFStringFromNetworkReachabilityStatus(status));
-}];
-
-[[AFNetworkReachabilityManager sharedManager] startMonitoring];
-```
-
----
-
-### Security Policy
-
-`AFSecurityPolicy` evaluates server trust against pinned X.509 certificates and public keys over secure connections.
-
-Adding pinned SSL certificates to your app helps prevent man-in-the-middle attacks and other vulnerabilities. Applications dealing with sensitive customer data or financial information are strongly encouraged to route all communication over an HTTPS connection with SSL pinning configured and enabled.
-
-#### Allowing Invalid SSL Certificates
-
-```objective-c
-AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
-manager.securityPolicy.allowInvalidCertificates = YES; // not recommended for production
-```
-
----
-
-## Unit Tests
-
-AFNetworking includes a suite of unit tests within the Tests subdirectory. These tests can be run simply be executed the test action on the platform framework you would like to test.
-
-## Credits
-
-AFNetworking is owned and maintained by the [Alamofire Software Foundation](http://alamofire.org).
-
-AFNetworking was originally created by [Scott Raymond](https://github.com/sco/) and [Mattt Thompson](https://github.com/mattt/) in the development of [Gowalla for iPhone](http://en.wikipedia.org/wiki/Gowalla).
-
-AFNetworking's logo was designed by [Alan Defibaugh](http://www.alandefibaugh.com/).
-
-And most of all, thanks to AFNetworking's [growing list of contributors](https://github.com/AFNetworking/AFNetworking/contributors).
-
-### Security Disclosure
-
-If you believe you have identified a security vulnerability with AFNetworking, you should report it as soon as possible via email to security@alamofire.org. Please do not post it to a public issue tracker.
-
-## License
-
-AFNetworking is released under the MIT license. See [LICENSE](https://github.com/AFNetworking/AFNetworking/blob/master/LICENSE) for details.

+ 0 - 160
RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/AFAutoPurgingImageCache.h

@@ -1,160 +0,0 @@
-// AFAutoPurgingImageCache.h
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import <TargetConditionals.h>
-#import <Foundation/Foundation.h>
-
-#if TARGET_OS_IOS || TARGET_OS_TV
-#import <UIKit/UIKit.h>
-
-NS_ASSUME_NONNULL_BEGIN
-
-/**
- The `AFImageCache` protocol defines a set of APIs for adding, removing and fetching images from a cache synchronously.
- */
-@protocol AFImageCache <NSObject>
-
-/**
- Adds the image to the cache with the given identifier.
-
- @param image The image to cache.
- @param identifier The unique identifier for the image in the cache.
- */
-- (void)addImage:(UIImage *)image withIdentifier:(NSString *)identifier;
-
-/**
- Removes the image from the cache matching the given identifier.
-
- @param identifier The unique identifier for the image in the cache.
-
- @return A BOOL indicating whether or not the image was removed from the cache.
- */
-- (BOOL)removeImageWithIdentifier:(NSString *)identifier;
-
-/**
- Removes all images from the cache.
-
- @return A BOOL indicating whether or not all images were removed from the cache.
- */
-- (BOOL)removeAllImages;
-
-/**
- Returns the image in the cache associated with the given identifier.
-
- @param identifier The unique identifier for the image in the cache.
-
- @return An image for the matching identifier, or nil.
- */
-- (nullable UIImage *)imageWithIdentifier:(NSString *)identifier;
-@end
-
-
-/**
- The `ImageRequestCache` protocol extends the `ImageCache` protocol by adding methods for adding, removing and fetching images from a cache given an `NSURLRequest` and additional identifier.
- */
-@protocol AFImageRequestCache <AFImageCache>
-
-/**
- Asks if the image should be cached using an identifier created from the request and additional identifier.
- 
- @param image The image to be cached.
- @param request The unique URL request identifing the image asset.
- @param identifier The additional identifier to apply to the URL request to identify the image.
- 
- @return A BOOL indicating whether or not the image should be added to the cache. YES will cache, NO will prevent caching.
- */
-- (BOOL)shouldCacheImage:(UIImage *)image forRequest:(NSURLRequest *)request withAdditionalIdentifier:(nullable NSString *)identifier;
-
-/**
- Adds the image to the cache using an identifier created from the request and additional identifier.
-
- @param image The image to cache.
- @param request The unique URL request identifing the image asset.
- @param identifier The additional identifier to apply to the URL request to identify the image.
- */
-- (void)addImage:(UIImage *)image forRequest:(NSURLRequest *)request withAdditionalIdentifier:(nullable NSString *)identifier;
-
-/**
- Removes the image from the cache using an identifier created from the request and additional identifier.
-
- @param request The unique URL request identifing the image asset.
- @param identifier The additional identifier to apply to the URL request to identify the image.
- 
- @return A BOOL indicating whether or not all images were removed from the cache.
- */
-- (BOOL)removeImageforRequest:(NSURLRequest *)request withAdditionalIdentifier:(nullable NSString *)identifier;
-
-/**
- Returns the image from the cache associated with an identifier created from the request and additional identifier.
-
- @param request The unique URL request identifing the image asset.
- @param identifier The additional identifier to apply to the URL request to identify the image.
-
- @return An image for the matching request and identifier, or nil.
- */
-- (nullable UIImage *)imageforRequest:(NSURLRequest *)request withAdditionalIdentifier:(nullable NSString *)identifier;
-
-@end
-
-/**
- The `AutoPurgingImageCache` in an in-memory image cache used to store images up to a given memory capacity. When the memory capacity is reached, the image cache is sorted by last access date, then the oldest image is continuously purged until the preferred memory usage after purge is met. Each time an image is accessed through the cache, the internal access date of the image is updated.
- */
-@interface AFAutoPurgingImageCache : NSObject <AFImageRequestCache>
-
-/**
- The total memory capacity of the cache in bytes.
- */
-@property (nonatomic, assign) UInt64 memoryCapacity;
-
-/**
- The preferred memory usage after purge in bytes. During a purge, images will be purged until the memory capacity drops below this limit.
- */
-@property (nonatomic, assign) UInt64 preferredMemoryUsageAfterPurge;
-
-/**
- The current total memory usage in bytes of all images stored within the cache.
- */
-@property (nonatomic, assign, readonly) UInt64 memoryUsage;
-
-/**
- Initialies the `AutoPurgingImageCache` instance with default values for memory capacity and preferred memory usage after purge limit. `memoryCapcity` defaults to `100 MB`. `preferredMemoryUsageAfterPurge` defaults to `60 MB`.
-
- @return The new `AutoPurgingImageCache` instance.
- */
-- (instancetype)init;
-
-/**
- Initialies the `AutoPurgingImageCache` instance with the given memory capacity and preferred memory usage
- after purge limit.
-
- @param memoryCapacity The total memory capacity of the cache in bytes.
- @param preferredMemoryCapacity The preferred memory usage after purge in bytes.
-
- @return The new `AutoPurgingImageCache` instance.
- */
-- (instancetype)initWithMemoryCapacity:(UInt64)memoryCapacity preferredMemoryCapacity:(UInt64)preferredMemoryCapacity;
-
-@end
-
-NS_ASSUME_NONNULL_END
-
-#endif
-

+ 0 - 205
RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/AFAutoPurgingImageCache.m

@@ -1,205 +0,0 @@
-// AFAutoPurgingImageCache.m
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import <TargetConditionals.h>
-
-#if TARGET_OS_IOS || TARGET_OS_TV 
-
-#import "AFAutoPurgingImageCache.h"
-
-@interface AFCachedImage : NSObject
-
-@property (nonatomic, strong) UIImage *image;
-@property (nonatomic, strong) NSString *identifier;
-@property (nonatomic, assign) UInt64 totalBytes;
-@property (nonatomic, strong) NSDate *lastAccessDate;
-@property (nonatomic, assign) UInt64 currentMemoryUsage;
-
-@end
-
-@implementation AFCachedImage
-
--(instancetype)initWithImage:(UIImage *)image identifier:(NSString *)identifier {
-    if (self = [self init]) {
-        self.image = image;
-        self.identifier = identifier;
-
-        CGSize imageSize = CGSizeMake(image.size.width * image.scale, image.size.height * image.scale);
-        CGFloat bytesPerPixel = 4.0;
-        CGFloat bytesPerSize = imageSize.width * imageSize.height;
-        self.totalBytes = (UInt64)bytesPerPixel * (UInt64)bytesPerSize;
-        self.lastAccessDate = [NSDate date];
-    }
-    return self;
-}
-
-- (UIImage*)accessImage {
-    self.lastAccessDate = [NSDate date];
-    return self.image;
-}
-
-- (NSString *)description {
-    NSString *descriptionString = [NSString stringWithFormat:@"Idenfitier: %@  lastAccessDate: %@ ", self.identifier, self.lastAccessDate];
-    return descriptionString;
-
-}
-
-@end
-
-@interface AFAutoPurgingImageCache ()
-@property (nonatomic, strong) NSMutableDictionary <NSString* , AFCachedImage*> *cachedImages;
-@property (nonatomic, assign) UInt64 currentMemoryUsage;
-@property (nonatomic, strong) dispatch_queue_t synchronizationQueue;
-@end
-
-@implementation AFAutoPurgingImageCache
-
-- (instancetype)init {
-    return [self initWithMemoryCapacity:100 * 1024 * 1024 preferredMemoryCapacity:60 * 1024 * 1024];
-}
-
-- (instancetype)initWithMemoryCapacity:(UInt64)memoryCapacity preferredMemoryCapacity:(UInt64)preferredMemoryCapacity {
-    if (self = [super init]) {
-        self.memoryCapacity = memoryCapacity;
-        self.preferredMemoryUsageAfterPurge = preferredMemoryCapacity;
-        self.cachedImages = [[NSMutableDictionary alloc] init];
-
-        NSString *queueName = [NSString stringWithFormat:@"com.alamofire.autopurgingimagecache-%@", [[NSUUID UUID] UUIDString]];
-        self.synchronizationQueue = dispatch_queue_create([queueName cStringUsingEncoding:NSASCIIStringEncoding], DISPATCH_QUEUE_CONCURRENT);
-
-        [[NSNotificationCenter defaultCenter]
-         addObserver:self
-         selector:@selector(removeAllImages)
-         name:UIApplicationDidReceiveMemoryWarningNotification
-         object:nil];
-
-    }
-    return self;
-}
-
-- (void)dealloc {
-    [[NSNotificationCenter defaultCenter] removeObserver:self];
-}
-
-- (UInt64)memoryUsage {
-    __block UInt64 result = 0;
-    dispatch_sync(self.synchronizationQueue, ^{
-        result = self.currentMemoryUsage;
-    });
-    return result;
-}
-
-- (void)addImage:(UIImage *)image withIdentifier:(NSString *)identifier {
-    dispatch_barrier_async(self.synchronizationQueue, ^{
-        AFCachedImage *cacheImage = [[AFCachedImage alloc] initWithImage:image identifier:identifier];
-
-        AFCachedImage *previousCachedImage = self.cachedImages[identifier];
-        if (previousCachedImage != nil) {
-            self.currentMemoryUsage -= previousCachedImage.totalBytes;
-        }
-
-        self.cachedImages[identifier] = cacheImage;
-        self.currentMemoryUsage += cacheImage.totalBytes;
-    });
-
-    dispatch_barrier_async(self.synchronizationQueue, ^{
-        if (self.currentMemoryUsage > self.memoryCapacity) {
-            UInt64 bytesToPurge = self.currentMemoryUsage - self.preferredMemoryUsageAfterPurge;
-            NSMutableArray <AFCachedImage*> *sortedImages = [NSMutableArray arrayWithArray:self.cachedImages.allValues];
-            NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"lastAccessDate"
-                                                                           ascending:YES];
-            [sortedImages sortUsingDescriptors:@[sortDescriptor]];
-
-            UInt64 bytesPurged = 0;
-
-            for (AFCachedImage *cachedImage in sortedImages) {
-                [self.cachedImages removeObjectForKey:cachedImage.identifier];
-                bytesPurged += cachedImage.totalBytes;
-                if (bytesPurged >= bytesToPurge) {
-                    break ;
-                }
-            }
-            self.currentMemoryUsage -= bytesPurged;
-        }
-    });
-}
-
-- (BOOL)removeImageWithIdentifier:(NSString *)identifier {
-    __block BOOL removed = NO;
-    dispatch_barrier_sync(self.synchronizationQueue, ^{
-        AFCachedImage *cachedImage = self.cachedImages[identifier];
-        if (cachedImage != nil) {
-            [self.cachedImages removeObjectForKey:identifier];
-            self.currentMemoryUsage -= cachedImage.totalBytes;
-            removed = YES;
-        }
-    });
-    return removed;
-}
-
-- (BOOL)removeAllImages {
-    __block BOOL removed = NO;
-    dispatch_barrier_sync(self.synchronizationQueue, ^{
-        if (self.cachedImages.count > 0) {
-            [self.cachedImages removeAllObjects];
-            self.currentMemoryUsage = 0;
-            removed = YES;
-        }
-    });
-    return removed;
-}
-
-- (nullable UIImage *)imageWithIdentifier:(NSString *)identifier {
-    __block UIImage *image = nil;
-    dispatch_sync(self.synchronizationQueue, ^{
-        AFCachedImage *cachedImage = self.cachedImages[identifier];
-        image = [cachedImage accessImage];
-    });
-    return image;
-}
-
-- (void)addImage:(UIImage *)image forRequest:(NSURLRequest *)request withAdditionalIdentifier:(NSString *)identifier {
-    [self addImage:image withIdentifier:[self imageCacheKeyFromURLRequest:request withAdditionalIdentifier:identifier]];
-}
-
-- (BOOL)removeImageforRequest:(NSURLRequest *)request withAdditionalIdentifier:(NSString *)identifier {
-    return [self removeImageWithIdentifier:[self imageCacheKeyFromURLRequest:request withAdditionalIdentifier:identifier]];
-}
-
-- (nullable UIImage *)imageforRequest:(NSURLRequest *)request withAdditionalIdentifier:(NSString *)identifier {
-    return [self imageWithIdentifier:[self imageCacheKeyFromURLRequest:request withAdditionalIdentifier:identifier]];
-}
-
-- (NSString *)imageCacheKeyFromURLRequest:(NSURLRequest *)request withAdditionalIdentifier:(NSString *)additionalIdentifier {
-    NSString *key = request.URL.absoluteString;
-    if (additionalIdentifier != nil) {
-        key = [key stringByAppendingString:additionalIdentifier];
-    }
-    return key;
-}
-
-- (BOOL)shouldCacheImage:(UIImage *)image forRequest:(NSURLRequest *)request withAdditionalIdentifier:(nullable NSString *)identifier {
-    return YES;
-}
-
-@end
-
-#endif

+ 0 - 171
RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/AFImageDownloader.h

@@ -1,171 +0,0 @@
-// AFImageDownloader.h
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import <TargetConditionals.h>
-
-#if TARGET_OS_IOS || TARGET_OS_TV 
-
-#import <Foundation/Foundation.h>
-#import "AFAutoPurgingImageCache.h"
-#import "AFHTTPSessionManager.h"
-
-NS_ASSUME_NONNULL_BEGIN
-
-typedef NS_ENUM(NSInteger, AFImageDownloadPrioritization) {
-    AFImageDownloadPrioritizationFIFO,
-    AFImageDownloadPrioritizationLIFO
-};
-
-/**
- The `AFImageDownloadReceipt` is an object vended by the `AFImageDownloader` when starting a data task. It can be used to cancel active tasks running on the `AFImageDownloader` session. As a general rule, image data tasks should be cancelled using the `AFImageDownloadReceipt` instead of calling `cancel` directly on the `task` itself. The `AFImageDownloader` is optimized to handle duplicate task scenarios as well as pending versus active downloads.
- */
-@interface AFImageDownloadReceipt : NSObject
-
-/**
- The data task created by the `AFImageDownloader`.
-*/
-@property (nonatomic, strong) NSURLSessionDataTask *task;
-
-/**
- The unique identifier for the success and failure blocks when duplicate requests are made.
- */
-@property (nonatomic, strong) NSUUID *receiptID;
-@end
-
-/** The `AFImageDownloader` class is responsible for downloading images in parallel on a prioritized queue. Incoming downloads are added to the front or back of the queue depending on the download prioritization. Each downloaded image is cached in the underlying `NSURLCache` as well as the in-memory image cache. By default, any download request with a cached image equivalent in the image cache will automatically be served the cached image representation.
- */
-@interface AFImageDownloader : NSObject
-
-/**
- The image cache used to store all downloaded images in. `AFAutoPurgingImageCache` by default.
- */
-@property (nonatomic, strong, nullable) id <AFImageRequestCache> imageCache;
-
-/**
- The `AFHTTPSessionManager` used to download images. By default, this is configured with an `AFImageResponseSerializer`, and a shared `NSURLCache` for all image downloads.
- */
-@property (nonatomic, strong) AFHTTPSessionManager *sessionManager;
-
-/**
- Defines the order prioritization of incoming download requests being inserted into the queue. `AFImageDownloadPrioritizationFIFO` by default.
- */
-@property (nonatomic, assign) AFImageDownloadPrioritization downloadPrioritizaton;
-
-/**
- The shared default instance of `AFImageDownloader` initialized with default values.
- */
-+ (instancetype)defaultInstance;
-
-/**
- Creates a default `NSURLCache` with common usage parameter values.
-
- @returns The default `NSURLCache` instance.
- */
-+ (NSURLCache *)defaultURLCache;
-
-/**
- The default `NSURLSessionConfiguration` with common usage parameter values.
- */
-+ (NSURLSessionConfiguration *)defaultURLSessionConfiguration;
-
-/**
- Default initializer
-
- @return An instance of `AFImageDownloader` initialized with default values.
- */
-- (instancetype)init;
-
-/**
- Initializer with specific `URLSessionConfiguration`
- 
- @param configuration The `NSURLSessionConfiguration` to be be used
- 
- @return An instance of `AFImageDownloader` initialized with default values and custom `NSURLSessionConfiguration`
- */
-- (instancetype)initWithSessionConfiguration:(NSURLSessionConfiguration *)configuration;
-
-/**
- Initializes the `AFImageDownloader` instance with the given session manager, download prioritization, maximum active download count and image cache.
-
- @param sessionManager The session manager to use to download images.
- @param downloadPrioritization The download prioritization of the download queue.
- @param maximumActiveDownloads  The maximum number of active downloads allowed at any given time. Recommend `4`.
- @param imageCache The image cache used to store all downloaded images in.
-
- @return The new `AFImageDownloader` instance.
- */
-- (instancetype)initWithSessionManager:(AFHTTPSessionManager *)sessionManager
-                downloadPrioritization:(AFImageDownloadPrioritization)downloadPrioritization
-                maximumActiveDownloads:(NSInteger)maximumActiveDownloads
-                            imageCache:(nullable id <AFImageRequestCache>)imageCache;
-
-/**
- Creates a data task using the `sessionManager` instance for the specified URL request.
-
- If the same data task is already in the queue or currently being downloaded, the success and failure blocks are
- appended to the already existing task. Once the task completes, all success or failure blocks attached to the
- task are executed in the order they were added.
-
- @param request The URL request.
- @param success A block to be executed when the image data task finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the image created from the response data of request. If the image was returned from cache, the response parameter will be `nil`.
- @param failure A block object to be executed when the image data task finishes unsuccessfully, or that finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the error object describing the network or parsing error that occurred.
-
- @return The image download receipt for the data task if available. `nil` if the image is stored in the cache.
- cache and the URL request cache policy allows the cache to be used.
- */
-- (nullable AFImageDownloadReceipt *)downloadImageForURLRequest:(NSURLRequest *)request
-                                                        success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse  * _Nullable response, UIImage *responseObject))success
-                                                        failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure;
-
-/**
- Creates a data task using the `sessionManager` instance for the specified URL request.
-
- If the same data task is already in the queue or currently being downloaded, the success and failure blocks are
- appended to the already existing task. Once the task completes, all success or failure blocks attached to the
- task are executed in the order they were added.
-
- @param request The URL request.
- @param receiptID The identifier to use for the download receipt that will be created for this request. This must be a unique identifier that does not represent any other request.
- @param success A block to be executed when the image data task finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the image created from the response data of request. If the image was returned from cache, the response parameter will be `nil`.
- @param failure A block object to be executed when the image data task finishes unsuccessfully, or that finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the error object describing the network or parsing error that occurred.
-
- @return The image download receipt for the data task if available. `nil` if the image is stored in the cache.
- cache and the URL request cache policy allows the cache to be used.
- */
-- (nullable AFImageDownloadReceipt *)downloadImageForURLRequest:(NSURLRequest *)request
-                                                 withReceiptID:(NSUUID *)receiptID
-                                                        success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse  * _Nullable response, UIImage *responseObject))success
-                                                        failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure;
-
-/**
- Cancels the data task in the receipt by removing the corresponding success and failure blocks and cancelling the data task if necessary.
-
- If the data task is pending in the queue, it will be cancelled if no other success and failure blocks are registered with the data task. If the data task is currently executing or is already completed, the success and failure blocks are removed and will not be called when the task finishes.
-
- @param imageDownloadReceipt The image download receipt to cancel.
- */
-- (void)cancelTaskForImageDownloadReceipt:(AFImageDownloadReceipt *)imageDownloadReceipt;
-
-@end
-
-#endif
-
-NS_ASSUME_NONNULL_END

+ 0 - 409
RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/AFImageDownloader.m

@@ -1,409 +0,0 @@
-// AFImageDownloader.m
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import <TargetConditionals.h>
-
-#if TARGET_OS_IOS || TARGET_OS_TV
-
-#import "AFImageDownloader.h"
-#import "AFHTTPSessionManager.h"
-
-@interface AFImageDownloaderResponseHandler : NSObject
-@property (nonatomic, strong) NSUUID *uuid;
-@property (nonatomic, copy) void (^successBlock)(NSURLRequest*, NSHTTPURLResponse*, UIImage*);
-@property (nonatomic, copy) void (^failureBlock)(NSURLRequest*, NSHTTPURLResponse*, NSError*);
-@end
-
-@implementation AFImageDownloaderResponseHandler
-
-- (instancetype)initWithUUID:(NSUUID *)uuid
-                     success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *responseObject))success
-                     failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure {
-    if (self = [self init]) {
-        self.uuid = uuid;
-        self.successBlock = success;
-        self.failureBlock = failure;
-    }
-    return self;
-}
-
-- (NSString *)description {
-    return [NSString stringWithFormat: @"<AFImageDownloaderResponseHandler>UUID: %@", [self.uuid UUIDString]];
-}
-
-@end
-
-@interface AFImageDownloaderMergedTask : NSObject
-@property (nonatomic, strong) NSString *URLIdentifier;
-@property (nonatomic, strong) NSUUID *identifier;
-@property (nonatomic, strong) NSURLSessionDataTask *task;
-@property (nonatomic, strong) NSMutableArray <AFImageDownloaderResponseHandler*> *responseHandlers;
-
-@end
-
-@implementation AFImageDownloaderMergedTask
-
-- (instancetype)initWithURLIdentifier:(NSString *)URLIdentifier identifier:(NSUUID *)identifier task:(NSURLSessionDataTask *)task {
-    if (self = [self init]) {
-        self.URLIdentifier = URLIdentifier;
-        self.task = task;
-        self.identifier = identifier;
-        self.responseHandlers = [[NSMutableArray alloc] init];
-    }
-    return self;
-}
-
-- (void)addResponseHandler:(AFImageDownloaderResponseHandler*)handler {
-    [self.responseHandlers addObject:handler];
-}
-
-- (void)removeResponseHandler:(AFImageDownloaderResponseHandler*)handler {
-    [self.responseHandlers removeObject:handler];
-}
-
-@end
-
-@implementation AFImageDownloadReceipt
-
-- (instancetype)initWithReceiptID:(NSUUID *)receiptID task:(NSURLSessionDataTask *)task {
-    if (self = [self init]) {
-        self.receiptID = receiptID;
-        self.task = task;
-    }
-    return self;
-}
-
-@end
-
-@interface AFImageDownloader ()
-
-@property (nonatomic, strong) dispatch_queue_t synchronizationQueue;
-@property (nonatomic, strong) dispatch_queue_t responseQueue;
-
-@property (nonatomic, assign) NSInteger maximumActiveDownloads;
-@property (nonatomic, assign) NSInteger activeRequestCount;
-
-@property (nonatomic, strong) NSMutableArray *queuedMergedTasks;
-@property (nonatomic, strong) NSMutableDictionary *mergedTasks;
-
-@end
-
-@implementation AFImageDownloader
-
-+ (NSURLCache *)defaultURLCache {
-    
-    // It's been discovered that a crash will occur on certain versions
-    // of iOS if you customize the cache.
-    //
-    // More info can be found here: https://devforums.apple.com/message/1102182#1102182
-    //
-    // When iOS 7 support is dropped, this should be modified to use
-    // NSProcessInfo methods instead.
-    if ([[[UIDevice currentDevice] systemVersion] compare:@"8.2" options:NSNumericSearch] == NSOrderedAscending) {
-        return [NSURLCache sharedURLCache];
-    }
-    return [[NSURLCache alloc] initWithMemoryCapacity:20 * 1024 * 1024
-                                         diskCapacity:150 * 1024 * 1024
-                                             diskPath:@"com.alamofire.imagedownloader"];
-}
-
-+ (NSURLSessionConfiguration *)defaultURLSessionConfiguration {
-    NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];
-
-    //TODO set the default HTTP headers
-
-    configuration.HTTPShouldSetCookies = YES;
-    configuration.HTTPShouldUsePipelining = NO;
-
-    configuration.requestCachePolicy = NSURLRequestUseProtocolCachePolicy;
-    configuration.allowsCellularAccess = YES;
-    configuration.timeoutIntervalForRequest = 60.0;
-    configuration.URLCache = [AFImageDownloader defaultURLCache];
-
-    return configuration;
-}
-
-- (instancetype)init {
-    NSURLSessionConfiguration *defaultConfiguration = [self.class defaultURLSessionConfiguration];
-    return [self initWithSessionConfiguration:defaultConfiguration];
-}
-
-- (instancetype)initWithSessionConfiguration:(NSURLSessionConfiguration *)configuration {
-    AFHTTPSessionManager *sessionManager = [[AFHTTPSessionManager alloc] initWithSessionConfiguration:configuration];
-    sessionManager.responseSerializer = [AFImageResponseSerializer serializer];
-
-    return [self initWithSessionManager:sessionManager
-                 downloadPrioritization:AFImageDownloadPrioritizationFIFO
-                 maximumActiveDownloads:4
-                             imageCache:[[AFAutoPurgingImageCache alloc] init]];
-}
-
-- (instancetype)initWithSessionManager:(AFHTTPSessionManager *)sessionManager
-                downloadPrioritization:(AFImageDownloadPrioritization)downloadPrioritization
-                maximumActiveDownloads:(NSInteger)maximumActiveDownloads
-                            imageCache:(id <AFImageRequestCache>)imageCache {
-    if (self = [super init]) {
-        self.sessionManager = sessionManager;
-
-        self.downloadPrioritizaton = downloadPrioritization;
-        self.maximumActiveDownloads = maximumActiveDownloads;
-        self.imageCache = imageCache;
-
-        self.queuedMergedTasks = [[NSMutableArray alloc] init];
-        self.mergedTasks = [[NSMutableDictionary alloc] init];
-        self.activeRequestCount = 0;
-
-        NSString *name = [NSString stringWithFormat:@"com.alamofire.imagedownloader.synchronizationqueue-%@", [[NSUUID UUID] UUIDString]];
-        self.synchronizationQueue = dispatch_queue_create([name cStringUsingEncoding:NSASCIIStringEncoding], DISPATCH_QUEUE_SERIAL);
-
-        name = [NSString stringWithFormat:@"com.alamofire.imagedownloader.responsequeue-%@", [[NSUUID UUID] UUIDString]];
-        self.responseQueue = dispatch_queue_create([name cStringUsingEncoding:NSASCIIStringEncoding], DISPATCH_QUEUE_CONCURRENT);
-    }
-
-    return self;
-}
-
-+ (instancetype)defaultInstance {
-    static AFImageDownloader *sharedInstance = nil;
-    static dispatch_once_t onceToken;
-    dispatch_once(&onceToken, ^{
-        sharedInstance = [[self alloc] init];
-    });
-    return sharedInstance;
-}
-
-- (nullable AFImageDownloadReceipt *)downloadImageForURLRequest:(NSURLRequest *)request
-                                                        success:(void (^)(NSURLRequest * _Nonnull, NSHTTPURLResponse * _Nullable, UIImage * _Nonnull))success
-                                                        failure:(void (^)(NSURLRequest * _Nonnull, NSHTTPURLResponse * _Nullable, NSError * _Nonnull))failure {
-    return [self downloadImageForURLRequest:request withReceiptID:[NSUUID UUID] success:success failure:failure];
-}
-
-- (nullable AFImageDownloadReceipt *)downloadImageForURLRequest:(NSURLRequest *)request
-                                                  withReceiptID:(nonnull NSUUID *)receiptID
-                                                        success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse  * _Nullable response, UIImage *responseObject))success
-                                                        failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure {
-    __block NSURLSessionDataTask *task = nil;
-    dispatch_sync(self.synchronizationQueue, ^{
-        NSString *URLIdentifier = request.URL.absoluteString;
-        if (URLIdentifier == nil) {
-            if (failure) {
-                NSError *error = [NSError errorWithDomain:NSURLErrorDomain code:NSURLErrorBadURL userInfo:nil];
-                dispatch_async(dispatch_get_main_queue(), ^{
-                    failure(request, nil, error);
-                });
-            }
-            return;
-        }
-
-        // 1) Append the success and failure blocks to a pre-existing request if it already exists
-        AFImageDownloaderMergedTask *existingMergedTask = self.mergedTasks[URLIdentifier];
-        if (existingMergedTask != nil) {
-            AFImageDownloaderResponseHandler *handler = [[AFImageDownloaderResponseHandler alloc] initWithUUID:receiptID success:success failure:failure];
-            [existingMergedTask addResponseHandler:handler];
-            task = existingMergedTask.task;
-            return;
-        }
-
-        // 2) Attempt to load the image from the image cache if the cache policy allows it
-        switch (request.cachePolicy) {
-            case NSURLRequestUseProtocolCachePolicy:
-            case NSURLRequestReturnCacheDataElseLoad:
-            case NSURLRequestReturnCacheDataDontLoad: {
-                UIImage *cachedImage = [self.imageCache imageforRequest:request withAdditionalIdentifier:nil];
-                if (cachedImage != nil) {
-                    if (success) {
-                        dispatch_async(dispatch_get_main_queue(), ^{
-                            success(request, nil, cachedImage);
-                        });
-                    }
-                    return;
-                }
-                break;
-            }
-            default:
-                break;
-        }
-
-        // 3) Create the request and set up authentication, validation and response serialization
-        NSUUID *mergedTaskIdentifier = [NSUUID UUID];
-        NSURLSessionDataTask *createdTask;
-        __weak __typeof__(self) weakSelf = self;
-
-        createdTask = [self.sessionManager
-                       dataTaskWithRequest:request
-                       uploadProgress:nil
-                       downloadProgress:nil
-                       completionHandler:^(NSURLResponse * _Nonnull response, id  _Nullable responseObject, NSError * _Nullable error) {
-                           dispatch_async(self.responseQueue, ^{
-                               __strong __typeof__(weakSelf) strongSelf = weakSelf;
-                               AFImageDownloaderMergedTask *mergedTask = strongSelf.mergedTasks[URLIdentifier];
-                               if ([mergedTask.identifier isEqual:mergedTaskIdentifier]) {
-                                   mergedTask = [strongSelf safelyRemoveMergedTaskWithURLIdentifier:URLIdentifier];
-                                   if (error) {
-                                       for (AFImageDownloaderResponseHandler *handler in mergedTask.responseHandlers) {
-                                           if (handler.failureBlock) {
-                                               dispatch_async(dispatch_get_main_queue(), ^{
-                                                   handler.failureBlock(request, (NSHTTPURLResponse*)response, error);
-                                               });
-                                           }
-                                       }
-                                   } else {
-                                       if ([strongSelf.imageCache shouldCacheImage:responseObject forRequest:request withAdditionalIdentifier:nil]) {
-                                           [strongSelf.imageCache addImage:responseObject forRequest:request withAdditionalIdentifier:nil];
-                                       }
-
-                                       for (AFImageDownloaderResponseHandler *handler in mergedTask.responseHandlers) {
-                                           if (handler.successBlock) {
-                                               dispatch_async(dispatch_get_main_queue(), ^{
-                                                   handler.successBlock(request, (NSHTTPURLResponse*)response, responseObject);
-                                               });
-                                           }
-                                       }
-                                       
-                                   }
-                               }
-                               [strongSelf safelyDecrementActiveTaskCount];
-                               [strongSelf safelyStartNextTaskIfNecessary];
-                           });
-                       }];
-
-        // 4) Store the response handler for use when the request completes
-        AFImageDownloaderResponseHandler *handler = [[AFImageDownloaderResponseHandler alloc] initWithUUID:receiptID
-                                                                                                   success:success
-                                                                                                   failure:failure];
-        AFImageDownloaderMergedTask *mergedTask = [[AFImageDownloaderMergedTask alloc]
-                                                   initWithURLIdentifier:URLIdentifier
-                                                   identifier:mergedTaskIdentifier
-                                                   task:createdTask];
-        [mergedTask addResponseHandler:handler];
-        self.mergedTasks[URLIdentifier] = mergedTask;
-
-        // 5) Either start the request or enqueue it depending on the current active request count
-        if ([self isActiveRequestCountBelowMaximumLimit]) {
-            [self startMergedTask:mergedTask];
-        } else {
-            [self enqueueMergedTask:mergedTask];
-        }
-
-        task = mergedTask.task;
-    });
-    if (task) {
-        return [[AFImageDownloadReceipt alloc] initWithReceiptID:receiptID task:task];
-    } else {
-        return nil;
-    }
-}
-
-- (void)cancelTaskForImageDownloadReceipt:(AFImageDownloadReceipt *)imageDownloadReceipt {
-    dispatch_sync(self.synchronizationQueue, ^{
-        NSString *URLIdentifier = imageDownloadReceipt.task.originalRequest.URL.absoluteString;
-        AFImageDownloaderMergedTask *mergedTask = self.mergedTasks[URLIdentifier];
-        NSUInteger index = [mergedTask.responseHandlers indexOfObjectPassingTest:^BOOL(AFImageDownloaderResponseHandler * _Nonnull handler, __unused NSUInteger idx, __unused BOOL * _Nonnull stop) {
-            return handler.uuid == imageDownloadReceipt.receiptID;
-        }];
-
-        if (index != NSNotFound) {
-            AFImageDownloaderResponseHandler *handler = mergedTask.responseHandlers[index];
-            [mergedTask removeResponseHandler:handler];
-            NSString *failureReason = [NSString stringWithFormat:@"ImageDownloader cancelled URL request: %@",imageDownloadReceipt.task.originalRequest.URL.absoluteString];
-            NSDictionary *userInfo = @{NSLocalizedFailureReasonErrorKey:failureReason};
-            NSError *error = [NSError errorWithDomain:NSURLErrorDomain code:NSURLErrorCancelled userInfo:userInfo];
-            if (handler.failureBlock) {
-                dispatch_async(dispatch_get_main_queue(), ^{
-                    handler.failureBlock(imageDownloadReceipt.task.originalRequest, nil, error);
-                });
-            }
-        }
-
-        if (mergedTask.responseHandlers.count == 0 && mergedTask.task.state == NSURLSessionTaskStateSuspended) {
-            [mergedTask.task cancel];
-            [self removeMergedTaskWithURLIdentifier:URLIdentifier];
-        }
-    });
-}
-
-- (AFImageDownloaderMergedTask*)safelyRemoveMergedTaskWithURLIdentifier:(NSString *)URLIdentifier {
-    __block AFImageDownloaderMergedTask *mergedTask = nil;
-    dispatch_sync(self.synchronizationQueue, ^{
-        mergedTask = [self removeMergedTaskWithURLIdentifier:URLIdentifier];
-    });
-    return mergedTask;
-}
-
-//This method should only be called from safely within the synchronizationQueue
-- (AFImageDownloaderMergedTask *)removeMergedTaskWithURLIdentifier:(NSString *)URLIdentifier {
-    AFImageDownloaderMergedTask *mergedTask = self.mergedTasks[URLIdentifier];
-    [self.mergedTasks removeObjectForKey:URLIdentifier];
-    return mergedTask;
-}
-
-- (void)safelyDecrementActiveTaskCount {
-    dispatch_sync(self.synchronizationQueue, ^{
-        if (self.activeRequestCount > 0) {
-            self.activeRequestCount -= 1;
-        }
-    });
-}
-
-- (void)safelyStartNextTaskIfNecessary {
-    dispatch_sync(self.synchronizationQueue, ^{
-        if ([self isActiveRequestCountBelowMaximumLimit]) {
-            while (self.queuedMergedTasks.count > 0) {
-                AFImageDownloaderMergedTask *mergedTask = [self dequeueMergedTask];
-                if (mergedTask.task.state == NSURLSessionTaskStateSuspended) {
-                    [self startMergedTask:mergedTask];
-                    break;
-                }
-            }
-        }
-    });
-}
-
-- (void)startMergedTask:(AFImageDownloaderMergedTask *)mergedTask {
-    [mergedTask.task resume];
-    ++self.activeRequestCount;
-}
-
-- (void)enqueueMergedTask:(AFImageDownloaderMergedTask *)mergedTask {
-    switch (self.downloadPrioritizaton) {
-        case AFImageDownloadPrioritizationFIFO:
-            [self.queuedMergedTasks addObject:mergedTask];
-            break;
-        case AFImageDownloadPrioritizationLIFO:
-            [self.queuedMergedTasks insertObject:mergedTask atIndex:0];
-            break;
-    }
-}
-
-- (AFImageDownloaderMergedTask *)dequeueMergedTask {
-    AFImageDownloaderMergedTask *mergedTask = nil;
-    mergedTask = [self.queuedMergedTasks firstObject];
-    [self.queuedMergedTasks removeObject:mergedTask];
-    return mergedTask;
-}
-
-- (BOOL)isActiveRequestCountBelowMaximumLimit {
-    return self.activeRequestCount < self.maximumActiveDownloads;
-}
-
-@end
-
-#endif

+ 0 - 103
RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.h

@@ -1,103 +0,0 @@
-// AFNetworkActivityIndicatorManager.h
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import <Foundation/Foundation.h>
-
-#import <TargetConditionals.h>
-
-#if TARGET_OS_IOS
-
-#import <UIKit/UIKit.h>
-
-NS_ASSUME_NONNULL_BEGIN
-
-/**
- `AFNetworkActivityIndicatorManager` manages the state of the network activity indicator in the status bar. When enabled, it will listen for notifications indicating that a session task has started or finished, and start or stop animating the indicator accordingly. The number of active requests is incremented and decremented much like a stack or a semaphore, and the activity indicator will animate so long as that number is greater than zero.
-
- You should enable the shared instance of `AFNetworkActivityIndicatorManager` when your application finishes launching. In `AppDelegate application:didFinishLaunchingWithOptions:` you can do so with the following code:
-
-    [[AFNetworkActivityIndicatorManager sharedManager] setEnabled:YES];
-
- By setting `enabled` to `YES` for `sharedManager`, the network activity indicator will show and hide automatically as requests start and finish. You should not ever need to call `incrementActivityCount` or `decrementActivityCount` yourself.
-
- See the Apple Human Interface Guidelines section about the Network Activity Indicator for more information:
- http://developer.apple.com/library/iOS/#documentation/UserExperience/Conceptual/MobileHIG/UIElementGuidelines/UIElementGuidelines.html#//apple_ref/doc/uid/TP40006556-CH13-SW44
- */
-NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.")
-@interface AFNetworkActivityIndicatorManager : NSObject
-
-/**
- A Boolean value indicating whether the manager is enabled.
-
- If YES, the manager will change status bar network activity indicator according to network operation notifications it receives. The default value is NO.
- */
-@property (nonatomic, assign, getter = isEnabled) BOOL enabled;
-
-/**
- A Boolean value indicating whether the network activity indicator manager is currently active.
-*/
-@property (readonly, nonatomic, assign, getter=isNetworkActivityIndicatorVisible) BOOL networkActivityIndicatorVisible;
-
-/**
- A time interval indicating the minimum duration of networking activity that should occur before the activity indicator is displayed. The default value 1 second. If the network activity indicator should be displayed immediately when network activity occurs, this value should be set to 0 seconds.
- 
- Apple's HIG describes the following:
-
- > Display the network activity indicator to provide feedback when your app accesses the network for more than a couple of seconds. If the operation finishes sooner than that, you don’t have to show the network activity indicator, because the indicator is likely to disappear before users notice its presence.
-
- */
-@property (nonatomic, assign) NSTimeInterval activationDelay;
-
-/**
- A time interval indicating the duration of time of no networking activity required before the activity indicator is disabled. This allows for continuous display of the network activity indicator across multiple requests. The default value is 0.17 seconds.
- */
-
-@property (nonatomic, assign) NSTimeInterval completionDelay;
-
-/**
- Returns the shared network activity indicator manager object for the system.
-
- @return The systemwide network activity indicator manager.
- */
-+ (instancetype)sharedManager;
-
-/**
- Increments the number of active network requests. If this number was zero before incrementing, this will start animating the status bar network activity indicator.
- */
-- (void)incrementActivityCount;
-
-/**
- Decrements the number of active network requests. If this number becomes zero after decrementing, this will stop animating the status bar network activity indicator.
- */
-- (void)decrementActivityCount;
-
-/**
- Set the a custom method to be executed when the network activity indicator manager should be hidden/shown. By default, this is null, and the UIApplication Network Activity Indicator will be managed automatically. If this block is set, it is the responsiblity of the caller to manager the network activity indicator going forward.
-
- @param block A block to be executed when the network activity indicator status changes.
- */
-- (void)setNetworkingActivityActionWithBlock:(nullable void (^)(BOOL networkActivityIndicatorVisible))block;
-
-@end
-
-NS_ASSUME_NONNULL_END
-
-#endif

+ 0 - 259
RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/AFNetworkActivityIndicatorManager.m

@@ -1,259 +0,0 @@
-// AFNetworkActivityIndicatorManager.m
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import "AFNetworkActivityIndicatorManager.h"
-
-#if TARGET_OS_IOS
-#import "AFURLSessionManager.h"
-
-typedef NS_ENUM(NSInteger, AFNetworkActivityManagerState) {
-    AFNetworkActivityManagerStateNotActive,
-    AFNetworkActivityManagerStateDelayingStart,
-    AFNetworkActivityManagerStateActive,
-    AFNetworkActivityManagerStateDelayingEnd
-};
-
-static NSTimeInterval const kDefaultAFNetworkActivityManagerActivationDelay = 1.0;
-static NSTimeInterval const kDefaultAFNetworkActivityManagerCompletionDelay = 0.17;
-
-static NSURLRequest * AFNetworkRequestFromNotification(NSNotification *notification) {
-    if ([[notification object] respondsToSelector:@selector(originalRequest)]) {
-        return [(NSURLSessionTask *)[notification object] originalRequest];
-    } else {
-        return nil;
-    }
-}
-
-typedef void (^AFNetworkActivityActionBlock)(BOOL networkActivityIndicatorVisible);
-
-@interface AFNetworkActivityIndicatorManager ()
-@property (readwrite, nonatomic, assign) NSInteger activityCount;
-@property (readwrite, nonatomic, strong) NSTimer *activationDelayTimer;
-@property (readwrite, nonatomic, strong) NSTimer *completionDelayTimer;
-@property (readonly, nonatomic, getter = isNetworkActivityOccurring) BOOL networkActivityOccurring;
-@property (nonatomic, copy) AFNetworkActivityActionBlock networkActivityActionBlock;
-@property (nonatomic, assign) AFNetworkActivityManagerState currentState;
-@property (nonatomic, assign, getter=isNetworkActivityIndicatorVisible) BOOL networkActivityIndicatorVisible;
-
-- (void)updateCurrentStateForNetworkActivityChange;
-@end
-
-@implementation AFNetworkActivityIndicatorManager
-
-+ (instancetype)sharedManager {
-    static AFNetworkActivityIndicatorManager *_sharedManager = nil;
-    static dispatch_once_t oncePredicate;
-    dispatch_once(&oncePredicate, ^{
-        _sharedManager = [[self alloc] init];
-    });
-
-    return _sharedManager;
-}
-
-- (instancetype)init {
-    self = [super init];
-    if (!self) {
-        return nil;
-    }
-    self.currentState = AFNetworkActivityManagerStateNotActive;
-    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkRequestDidStart:) name:AFNetworkingTaskDidResumeNotification object:nil];
-    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkRequestDidFinish:) name:AFNetworkingTaskDidSuspendNotification object:nil];
-    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkRequestDidFinish:) name:AFNetworkingTaskDidCompleteNotification object:nil];
-    self.activationDelay = kDefaultAFNetworkActivityManagerActivationDelay;
-    self.completionDelay = kDefaultAFNetworkActivityManagerCompletionDelay;
-
-    return self;
-}
-
-- (void)dealloc {
-    [[NSNotificationCenter defaultCenter] removeObserver:self];
-
-    [_activationDelayTimer invalidate];
-    [_completionDelayTimer invalidate];
-}
-
-- (void)setEnabled:(BOOL)enabled {
-    _enabled = enabled;
-    if (enabled == NO) {
-        [self setCurrentState:AFNetworkActivityManagerStateNotActive];
-    }
-}
-
-- (void)setNetworkingActivityActionWithBlock:(void (^)(BOOL networkActivityIndicatorVisible))block {
-    self.networkActivityActionBlock = block;
-}
-
-- (BOOL)isNetworkActivityOccurring {
-    @synchronized(self) {
-        return self.activityCount > 0;
-    }
-}
-
-- (void)setNetworkActivityIndicatorVisible:(BOOL)networkActivityIndicatorVisible {
-    if (_networkActivityIndicatorVisible != networkActivityIndicatorVisible) {
-        [self willChangeValueForKey:@"networkActivityIndicatorVisible"];
-        @synchronized(self) {
-             _networkActivityIndicatorVisible = networkActivityIndicatorVisible;
-        }
-        [self didChangeValueForKey:@"networkActivityIndicatorVisible"];
-        if (self.networkActivityActionBlock) {
-            self.networkActivityActionBlock(networkActivityIndicatorVisible);
-        } else {
-            [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:networkActivityIndicatorVisible];
-        }
-    }
-}
-
-- (void)setActivityCount:(NSInteger)activityCount {
-	@synchronized(self) {
-		_activityCount = activityCount;
-	}
-
-    dispatch_async(dispatch_get_main_queue(), ^{
-        [self updateCurrentStateForNetworkActivityChange];
-    });
-}
-
-- (void)incrementActivityCount {
-    [self willChangeValueForKey:@"activityCount"];
-	@synchronized(self) {
-		_activityCount++;
-	}
-    [self didChangeValueForKey:@"activityCount"];
-
-    dispatch_async(dispatch_get_main_queue(), ^{
-        [self updateCurrentStateForNetworkActivityChange];
-    });
-}
-
-- (void)decrementActivityCount {
-    [self willChangeValueForKey:@"activityCount"];
-	@synchronized(self) {
-		_activityCount = MAX(_activityCount - 1, 0);
-	}
-    [self didChangeValueForKey:@"activityCount"];
-
-    dispatch_async(dispatch_get_main_queue(), ^{
-        [self updateCurrentStateForNetworkActivityChange];
-    });
-}
-
-- (void)networkRequestDidStart:(NSNotification *)notification {
-    if ([AFNetworkRequestFromNotification(notification) URL]) {
-        [self incrementActivityCount];
-    }
-}
-
-- (void)networkRequestDidFinish:(NSNotification *)notification {
-    if ([AFNetworkRequestFromNotification(notification) URL]) {
-        [self decrementActivityCount];
-    }
-}
-
-#pragma mark - Internal State Management
-- (void)setCurrentState:(AFNetworkActivityManagerState)currentState {
-    @synchronized(self) {
-        if (_currentState != currentState) {
-            [self willChangeValueForKey:@"currentState"];
-            _currentState = currentState;
-            switch (currentState) {
-                case AFNetworkActivityManagerStateNotActive:
-                    [self cancelActivationDelayTimer];
-                    [self cancelCompletionDelayTimer];
-                    [self setNetworkActivityIndicatorVisible:NO];
-                    break;
-                case AFNetworkActivityManagerStateDelayingStart:
-                    [self startActivationDelayTimer];
-                    break;
-                case AFNetworkActivityManagerStateActive:
-                    [self cancelCompletionDelayTimer];
-                    [self setNetworkActivityIndicatorVisible:YES];
-                    break;
-                case AFNetworkActivityManagerStateDelayingEnd:
-                    [self startCompletionDelayTimer];
-                    break;
-            }
-            [self didChangeValueForKey:@"currentState"];
-        }
-        
-    }
-}
-
-- (void)updateCurrentStateForNetworkActivityChange {
-    if (self.enabled) {
-        switch (self.currentState) {
-            case AFNetworkActivityManagerStateNotActive:
-                if (self.isNetworkActivityOccurring) {
-                    [self setCurrentState:AFNetworkActivityManagerStateDelayingStart];
-                }
-                break;
-            case AFNetworkActivityManagerStateDelayingStart:
-                //No op. Let the delay timer finish out.
-                break;
-            case AFNetworkActivityManagerStateActive:
-                if (!self.isNetworkActivityOccurring) {
-                    [self setCurrentState:AFNetworkActivityManagerStateDelayingEnd];
-                }
-                break;
-            case AFNetworkActivityManagerStateDelayingEnd:
-                if (self.isNetworkActivityOccurring) {
-                    [self setCurrentState:AFNetworkActivityManagerStateActive];
-                }
-                break;
-        }
-    }
-}
-
-- (void)startActivationDelayTimer {
-    self.activationDelayTimer = [NSTimer
-                                 timerWithTimeInterval:self.activationDelay target:self selector:@selector(activationDelayTimerFired) userInfo:nil repeats:NO];
-    [[NSRunLoop mainRunLoop] addTimer:self.activationDelayTimer forMode:NSRunLoopCommonModes];
-}
-
-- (void)activationDelayTimerFired {
-    if (self.networkActivityOccurring) {
-        [self setCurrentState:AFNetworkActivityManagerStateActive];
-    } else {
-        [self setCurrentState:AFNetworkActivityManagerStateNotActive];
-    }
-}
-
-- (void)startCompletionDelayTimer {
-    [self.completionDelayTimer invalidate];
-    self.completionDelayTimer = [NSTimer timerWithTimeInterval:self.completionDelay target:self selector:@selector(completionDelayTimerFired) userInfo:nil repeats:NO];
-    [[NSRunLoop mainRunLoop] addTimer:self.completionDelayTimer forMode:NSRunLoopCommonModes];
-}
-
-- (void)completionDelayTimerFired {
-    [self setCurrentState:AFNetworkActivityManagerStateNotActive];
-}
-
-- (void)cancelActivationDelayTimer {
-    [self.activationDelayTimer invalidate];
-}
-
-- (void)cancelCompletionDelayTimer {
-    [self.completionDelayTimer invalidate];
-}
-
-@end
-
-#endif

+ 0 - 48
RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.h

@@ -1,48 +0,0 @@
-// UIActivityIndicatorView+AFNetworking.h
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import <Foundation/Foundation.h>
-
-#import <TargetConditionals.h>
-
-#if TARGET_OS_IOS || TARGET_OS_TV
-
-#import <UIKit/UIKit.h>
-
-/**
- This category adds methods to the UIKit framework's `UIActivityIndicatorView` class. The methods in this category provide support for automatically starting and stopping animation depending on the loading state of a session task.
- */
-@interface UIActivityIndicatorView (AFNetworking)
-
-///----------------------------------
-/// @name Animating for Session Tasks
-///----------------------------------
-
-/**
- Binds the animating state to the state of the specified task.
-
- @param task The task. If `nil`, automatic updating from any previously specified operation will be disabled.
- */
-- (void)setAnimatingWithStateOfTask:(nullable NSURLSessionTask *)task;
-
-@end
-
-#endif

+ 0 - 114
RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.m

@@ -1,114 +0,0 @@
-// UIActivityIndicatorView+AFNetworking.m
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import "UIActivityIndicatorView+AFNetworking.h"
-#import <objc/runtime.h>
-
-#if TARGET_OS_IOS || TARGET_OS_TV
-
-#import "AFURLSessionManager.h"
-
-@interface AFActivityIndicatorViewNotificationObserver : NSObject
-@property (readonly, nonatomic, weak) UIActivityIndicatorView *activityIndicatorView;
-- (instancetype)initWithActivityIndicatorView:(UIActivityIndicatorView *)activityIndicatorView;
-
-- (void)setAnimatingWithStateOfTask:(NSURLSessionTask *)task;
-
-@end
-
-@implementation UIActivityIndicatorView (AFNetworking)
-
-- (AFActivityIndicatorViewNotificationObserver *)af_notificationObserver {
-    AFActivityIndicatorViewNotificationObserver *notificationObserver = objc_getAssociatedObject(self, @selector(af_notificationObserver));
-    if (notificationObserver == nil) {
-        notificationObserver = [[AFActivityIndicatorViewNotificationObserver alloc] initWithActivityIndicatorView:self];
-        objc_setAssociatedObject(self, @selector(af_notificationObserver), notificationObserver, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
-    }
-    return notificationObserver;
-}
-
-- (void)setAnimatingWithStateOfTask:(NSURLSessionTask *)task {
-    [[self af_notificationObserver] setAnimatingWithStateOfTask:task];
-}
-
-@end
-
-@implementation AFActivityIndicatorViewNotificationObserver
-
-- (instancetype)initWithActivityIndicatorView:(UIActivityIndicatorView *)activityIndicatorView
-{
-    self = [super init];
-    if (self) {
-        _activityIndicatorView = activityIndicatorView;
-    }
-    return self;
-}
-
-- (void)setAnimatingWithStateOfTask:(NSURLSessionTask *)task {
-    NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
-
-    [notificationCenter removeObserver:self name:AFNetworkingTaskDidResumeNotification object:nil];
-    [notificationCenter removeObserver:self name:AFNetworkingTaskDidSuspendNotification object:nil];
-    [notificationCenter removeObserver:self name:AFNetworkingTaskDidCompleteNotification object:nil];
-    
-    if (task) {
-        if (task.state != NSURLSessionTaskStateCompleted) {
-            UIActivityIndicatorView *activityIndicatorView = self.activityIndicatorView;
-            if (task.state == NSURLSessionTaskStateRunning) {
-                [activityIndicatorView startAnimating];
-            } else {
-                [activityIndicatorView stopAnimating];
-            }
-
-            [notificationCenter addObserver:self selector:@selector(af_startAnimating) name:AFNetworkingTaskDidResumeNotification object:task];
-            [notificationCenter addObserver:self selector:@selector(af_stopAnimating) name:AFNetworkingTaskDidCompleteNotification object:task];
-            [notificationCenter addObserver:self selector:@selector(af_stopAnimating) name:AFNetworkingTaskDidSuspendNotification object:task];
-        }
-    }
-}
-
-#pragma mark -
-
-- (void)af_startAnimating {
-    dispatch_async(dispatch_get_main_queue(), ^{
-        [self.activityIndicatorView startAnimating];
-    });
-}
-
-- (void)af_stopAnimating {
-    dispatch_async(dispatch_get_main_queue(), ^{
-        [self.activityIndicatorView stopAnimating];
-    });
-}
-
-#pragma mark -
-
-- (void)dealloc {
-    NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
-    
-    [notificationCenter removeObserver:self name:AFNetworkingTaskDidCompleteNotification object:nil];
-    [notificationCenter removeObserver:self name:AFNetworkingTaskDidResumeNotification object:nil];
-    [notificationCenter removeObserver:self name:AFNetworkingTaskDidSuspendNotification object:nil];
-}
-
-@end
-
-#endif

+ 0 - 175
RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.h

@@ -1,175 +0,0 @@
-// UIButton+AFNetworking.h
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import <Foundation/Foundation.h>
-
-#import <TargetConditionals.h>
-
-#if TARGET_OS_IOS || TARGET_OS_TV
-
-#import <UIKit/UIKit.h>
-
-NS_ASSUME_NONNULL_BEGIN
-
-@class AFImageDownloader;
-
-/**
- This category adds methods to the UIKit framework's `UIButton` class. The methods in this category provide support for loading remote images and background images asynchronously from a URL.
-
- @warning Compound values for control `state` (such as `UIControlStateHighlighted | UIControlStateDisabled`) are unsupported.
- */
-@interface UIButton (AFNetworking)
-
-///------------------------------------
-/// @name Accessing the Image Downloader
-///------------------------------------
-
-/**
- Set the shared image downloader used to download images.
-
- @param imageDownloader The shared image downloader used to download images.
-*/
-+ (void)setSharedImageDownloader:(AFImageDownloader *)imageDownloader;
-
-/**
- The shared image downloader used to download images.
- */
-+ (AFImageDownloader *)sharedImageDownloader;
-
-///--------------------
-/// @name Setting Image
-///--------------------
-
-/**
- Asynchronously downloads an image from the specified URL, and sets it as the image for the specified state once the request is finished. Any previous image request for the receiver will be cancelled.
-
-  If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished.
-
- @param state The control state.
- @param url The URL used for the image request.
- */
-- (void)setImageForState:(UIControlState)state
-                 withURL:(NSURL *)url;
-
-/**
- Asynchronously downloads an image from the specified URL, and sets it as the image for the specified state once the request is finished. Any previous image request for the receiver will be cancelled.
-
- If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished.
-
- @param state The control state.
- @param url The URL used for the image request.
- @param placeholderImage The image to be set initially, until the image request finishes. If `nil`, the button will not change its image until the image request finishes.
- */
-- (void)setImageForState:(UIControlState)state
-                 withURL:(NSURL *)url
-        placeholderImage:(nullable UIImage *)placeholderImage;
-
-/**
- Asynchronously downloads an image from the specified URL request, and sets it as the image for the specified state once the request is finished. Any previous image request for the receiver will be cancelled.
-
- If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished.
-
- If a success block is specified, it is the responsibility of the block to set the image of the button before returning. If no success block is specified, the default behavior of setting the image with `setImage:forState:` is applied.
-
- @param state The control state.
- @param urlRequest The URL request used for the image request.
- @param placeholderImage The image to be set initially, until the image request finishes. If `nil`, the button will not change its image until the image request finishes.
- @param success A block to be executed when the image data task finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the image created from the response data of request. If the image was returned from cache, the response parameter will be `nil`.
- @param failure A block object to be executed when the image data task finishes unsuccessfully, or that finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the error object describing the network or parsing error that occurred.
- */
-- (void)setImageForState:(UIControlState)state
-          withURLRequest:(NSURLRequest *)urlRequest
-        placeholderImage:(nullable UIImage *)placeholderImage
-                 success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *image))success
-                 failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure;
-
-
-///-------------------------------
-/// @name Setting Background Image
-///-------------------------------
-
-/**
- Asynchronously downloads an image from the specified URL, and sets it as the background image for the specified state once the request is finished. Any previous background image request for the receiver will be cancelled.
-
- If the background image is cached locally, the background image is set immediately, otherwise the specified placeholder background image will be set immediately, and then the remote background image will be set once the request is finished.
-
- @param state The control state.
- @param url The URL used for the background image request.
- */
-- (void)setBackgroundImageForState:(UIControlState)state
-                           withURL:(NSURL *)url;
-
-/**
- Asynchronously downloads an image from the specified URL, and sets it as the background image for the specified state once the request is finished. Any previous image request for the receiver will be cancelled.
-
- If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished.
-
- @param state The control state.
- @param url The URL used for the background image request.
- @param placeholderImage The background image to be set initially, until the background image request finishes. If `nil`, the button will not change its background image until the background image request finishes.
- */
-- (void)setBackgroundImageForState:(UIControlState)state
-                           withURL:(NSURL *)url
-                  placeholderImage:(nullable UIImage *)placeholderImage;
-
-/**
- Asynchronously downloads an image from the specified URL request, and sets it as the image for the specified state once the request is finished. Any previous image request for the receiver will be cancelled.
-
- If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished.
-
- If a success block is specified, it is the responsibility of the block to set the image of the button before returning. If no success block is specified, the default behavior of setting the image with `setBackgroundImage:forState:` is applied.
-
- @param state The control state.
- @param urlRequest The URL request used for the image request.
- @param placeholderImage The background image to be set initially, until the background image request finishes. If `nil`, the button will not change its background image until the background image request finishes.
- @param success A block to be executed when the image data task finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the image created from the response data of request. If the image was returned from cache, the response parameter will be `nil`.
- @param failure A block object to be executed when the image data task finishes unsuccessfully, or that finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the error object describing the network or parsing error that occurred.
- */
-- (void)setBackgroundImageForState:(UIControlState)state
-                    withURLRequest:(NSURLRequest *)urlRequest
-                  placeholderImage:(nullable UIImage *)placeholderImage
-                           success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *image))success
-                           failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure;
-
-
-///------------------------------
-/// @name Canceling Image Loading
-///------------------------------
-
-/**
- Cancels any executing image task for the specified control state of the receiver, if one exists.
-
- @param state The control state.
- */
-- (void)cancelImageDownloadTaskForState:(UIControlState)state;
-
-/**
- Cancels any executing background image task for the specified control state of the receiver, if one exists.
-
- @param state The control state.
- */
-- (void)cancelBackgroundImageDownloadTaskForState:(UIControlState)state;
-
-@end
-
-NS_ASSUME_NONNULL_END
-
-#endif

+ 0 - 302
RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIButton+AFNetworking.m

@@ -1,302 +0,0 @@
-// UIButton+AFNetworking.m
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import "UIButton+AFNetworking.h"
-
-#import <objc/runtime.h>
-
-#if TARGET_OS_IOS || TARGET_OS_TV
-
-#import "UIImageView+AFNetworking.h"
-#import "AFImageDownloader.h"
-
-@interface UIButton (_AFNetworking)
-@end
-
-@implementation UIButton (_AFNetworking)
-
-#pragma mark -
-
-static char AFImageDownloadReceiptNormal;
-static char AFImageDownloadReceiptHighlighted;
-static char AFImageDownloadReceiptSelected;
-static char AFImageDownloadReceiptDisabled;
-
-static const char * af_imageDownloadReceiptKeyForState(UIControlState state) {
-    switch (state) {
-        case UIControlStateHighlighted:
-            return &AFImageDownloadReceiptHighlighted;
-        case UIControlStateSelected:
-            return &AFImageDownloadReceiptSelected;
-        case UIControlStateDisabled:
-            return &AFImageDownloadReceiptDisabled;
-        case UIControlStateNormal:
-        default:
-            return &AFImageDownloadReceiptNormal;
-    }
-}
-
-- (AFImageDownloadReceipt *)af_imageDownloadReceiptForState:(UIControlState)state {
-    return (AFImageDownloadReceipt *)objc_getAssociatedObject(self, af_imageDownloadReceiptKeyForState(state));
-}
-
-- (void)af_setImageDownloadReceipt:(AFImageDownloadReceipt *)imageDownloadReceipt
-                           forState:(UIControlState)state
-{
-    objc_setAssociatedObject(self, af_imageDownloadReceiptKeyForState(state), imageDownloadReceipt, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
-}
-
-#pragma mark -
-
-static char AFBackgroundImageDownloadReceiptNormal;
-static char AFBackgroundImageDownloadReceiptHighlighted;
-static char AFBackgroundImageDownloadReceiptSelected;
-static char AFBackgroundImageDownloadReceiptDisabled;
-
-static const char * af_backgroundImageDownloadReceiptKeyForState(UIControlState state) {
-    switch (state) {
-        case UIControlStateHighlighted:
-            return &AFBackgroundImageDownloadReceiptHighlighted;
-        case UIControlStateSelected:
-            return &AFBackgroundImageDownloadReceiptSelected;
-        case UIControlStateDisabled:
-            return &AFBackgroundImageDownloadReceiptDisabled;
-        case UIControlStateNormal:
-        default:
-            return &AFBackgroundImageDownloadReceiptNormal;
-    }
-}
-
-- (AFImageDownloadReceipt *)af_backgroundImageDownloadReceiptForState:(UIControlState)state {
-    return (AFImageDownloadReceipt *)objc_getAssociatedObject(self, af_backgroundImageDownloadReceiptKeyForState(state));
-}
-
-- (void)af_setBackgroundImageDownloadReceipt:(AFImageDownloadReceipt *)imageDownloadReceipt
-                                     forState:(UIControlState)state
-{
-    objc_setAssociatedObject(self, af_backgroundImageDownloadReceiptKeyForState(state), imageDownloadReceipt, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
-}
-
-@end
-
-#pragma mark -
-
-@implementation UIButton (AFNetworking)
-
-+ (AFImageDownloader *)sharedImageDownloader {
-
-    return objc_getAssociatedObject(self, @selector(sharedImageDownloader)) ?: [AFImageDownloader defaultInstance];
-}
-
-+ (void)setSharedImageDownloader:(AFImageDownloader *)imageDownloader {
-    objc_setAssociatedObject(self, @selector(sharedImageDownloader), imageDownloader, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
-}
-
-#pragma mark -
-
-- (void)setImageForState:(UIControlState)state
-                 withURL:(NSURL *)url
-{
-    [self setImageForState:state withURL:url placeholderImage:nil];
-}
-
-- (void)setImageForState:(UIControlState)state
-                 withURL:(NSURL *)url
-        placeholderImage:(UIImage *)placeholderImage
-{
-    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
-    [request addValue:@"image/*" forHTTPHeaderField:@"Accept"];
-
-    [self setImageForState:state withURLRequest:request placeholderImage:placeholderImage success:nil failure:nil];
-}
-
-- (void)setImageForState:(UIControlState)state
-          withURLRequest:(NSURLRequest *)urlRequest
-        placeholderImage:(nullable UIImage *)placeholderImage
-                 success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *image))success
-                 failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure
-{
-    if ([self isActiveTaskURLEqualToURLRequest:urlRequest forState:state]) {
-        return;
-    }
-
-    [self cancelImageDownloadTaskForState:state];
-
-    AFImageDownloader *downloader = [[self class] sharedImageDownloader];
-    id <AFImageRequestCache> imageCache = downloader.imageCache;
-
-    //Use the image from the image cache if it exists
-    UIImage *cachedImage = [imageCache imageforRequest:urlRequest withAdditionalIdentifier:nil];
-    if (cachedImage) {
-        if (success) {
-            success(urlRequest, nil, cachedImage);
-        } else {
-            [self setImage:cachedImage forState:state];
-        }
-        [self af_setImageDownloadReceipt:nil forState:state];
-    } else {
-        if (placeholderImage) {
-            [self setImage:placeholderImage forState:state];
-        }
-
-        __weak __typeof(self)weakSelf = self;
-        NSUUID *downloadID = [NSUUID UUID];
-        AFImageDownloadReceipt *receipt;
-        receipt = [downloader
-                   downloadImageForURLRequest:urlRequest
-                   withReceiptID:downloadID
-                   success:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, UIImage * _Nonnull responseObject) {
-                       __strong __typeof(weakSelf)strongSelf = weakSelf;
-                       if ([[strongSelf af_imageDownloadReceiptForState:state].receiptID isEqual:downloadID]) {
-                           if (success) {
-                               success(request, response, responseObject);
-                           } else if(responseObject) {
-                               [strongSelf setImage:responseObject forState:state];
-                           }
-                           [strongSelf af_setImageDownloadReceipt:nil forState:state];
-                       }
-
-                   }
-                   failure:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, NSError * _Nonnull error) {
-                       __strong __typeof(weakSelf)strongSelf = weakSelf;
-                       if ([[strongSelf af_imageDownloadReceiptForState:state].receiptID isEqual:downloadID]) {
-                           if (failure) {
-                               failure(request, response, error);
-                           }
-                           [strongSelf  af_setImageDownloadReceipt:nil forState:state];
-                       }
-                   }];
-
-        [self af_setImageDownloadReceipt:receipt forState:state];
-    }
-}
-
-#pragma mark -
-
-- (void)setBackgroundImageForState:(UIControlState)state
-                           withURL:(NSURL *)url
-{
-    [self setBackgroundImageForState:state withURL:url placeholderImage:nil];
-}
-
-- (void)setBackgroundImageForState:(UIControlState)state
-                           withURL:(NSURL *)url
-                  placeholderImage:(nullable UIImage *)placeholderImage
-{
-    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
-    [request addValue:@"image/*" forHTTPHeaderField:@"Accept"];
-
-    [self setBackgroundImageForState:state withURLRequest:request placeholderImage:placeholderImage success:nil failure:nil];
-}
-
-- (void)setBackgroundImageForState:(UIControlState)state
-                    withURLRequest:(NSURLRequest *)urlRequest
-                  placeholderImage:(nullable UIImage *)placeholderImage
-                           success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *image))success
-                           failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure
-{
-    if ([self isActiveBackgroundTaskURLEqualToURLRequest:urlRequest forState:state]) {
-        return;
-    }
-
-    [self cancelBackgroundImageDownloadTaskForState:state];
-
-    AFImageDownloader *downloader = [[self class] sharedImageDownloader];
-    id <AFImageRequestCache> imageCache = downloader.imageCache;
-
-    //Use the image from the image cache if it exists
-    UIImage *cachedImage = [imageCache imageforRequest:urlRequest withAdditionalIdentifier:nil];
-    if (cachedImage) {
-        if (success) {
-            success(urlRequest, nil, cachedImage);
-        } else {
-            [self setBackgroundImage:cachedImage forState:state];
-        }
-        [self af_setBackgroundImageDownloadReceipt:nil forState:state];
-    } else {
-        if (placeholderImage) {
-            [self setBackgroundImage:placeholderImage forState:state];
-        }
-
-        __weak __typeof(self)weakSelf = self;
-        NSUUID *downloadID = [NSUUID UUID];
-        AFImageDownloadReceipt *receipt;
-        receipt = [downloader
-                   downloadImageForURLRequest:urlRequest
-                   withReceiptID:downloadID
-                   success:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, UIImage * _Nonnull responseObject) {
-                       __strong __typeof(weakSelf)strongSelf = weakSelf;
-                       if ([[strongSelf af_backgroundImageDownloadReceiptForState:state].receiptID isEqual:downloadID]) {
-                           if (success) {
-                               success(request, response, responseObject);
-                           } else if(responseObject) {
-                               [strongSelf setBackgroundImage:responseObject forState:state];
-                           }
-                           [strongSelf af_setBackgroundImageDownloadReceipt:nil forState:state];
-                       }
-
-                   }
-                   failure:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, NSError * _Nonnull error) {
-                       __strong __typeof(weakSelf)strongSelf = weakSelf;
-                       if ([[strongSelf af_backgroundImageDownloadReceiptForState:state].receiptID isEqual:downloadID]) {
-                           if (failure) {
-                               failure(request, response, error);
-                           }
-                           [strongSelf  af_setBackgroundImageDownloadReceipt:nil forState:state];
-                       }
-                   }];
-
-        [self af_setBackgroundImageDownloadReceipt:receipt forState:state];
-    }
-}
-
-#pragma mark -
-
-- (void)cancelImageDownloadTaskForState:(UIControlState)state {
-    AFImageDownloadReceipt *receipt = [self af_imageDownloadReceiptForState:state];
-    if (receipt != nil) {
-        [[self.class sharedImageDownloader] cancelTaskForImageDownloadReceipt:receipt];
-        [self af_setImageDownloadReceipt:nil forState:state];
-    }
-}
-
-- (void)cancelBackgroundImageDownloadTaskForState:(UIControlState)state {
-    AFImageDownloadReceipt *receipt = [self af_backgroundImageDownloadReceiptForState:state];
-    if (receipt != nil) {
-        [[self.class sharedImageDownloader] cancelTaskForImageDownloadReceipt:receipt];
-        [self af_setBackgroundImageDownloadReceipt:nil forState:state];
-    }
-}
-
-- (BOOL)isActiveTaskURLEqualToURLRequest:(NSURLRequest *)urlRequest forState:(UIControlState)state {
-    AFImageDownloadReceipt *receipt = [self af_imageDownloadReceiptForState:state];
-    return [receipt.task.originalRequest.URL.absoluteString isEqualToString:urlRequest.URL.absoluteString];
-}
-
-- (BOOL)isActiveBackgroundTaskURLEqualToURLRequest:(NSURLRequest *)urlRequest forState:(UIControlState)state {
-    AFImageDownloadReceipt *receipt = [self af_backgroundImageDownloadReceiptForState:state];
-    return [receipt.task.originalRequest.URL.absoluteString isEqualToString:urlRequest.URL.absoluteString];
-}
-
-
-@end
-
-#endif

+ 0 - 35
RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIImage+AFNetworking.h

@@ -1,35 +0,0 @@
-//
-//  UIImage+AFNetworking.h
-//  
-//
-//  Created by Paulo Ferreira on 08/07/15.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#if TARGET_OS_IOS || TARGET_OS_TV
-
-#import <UIKit/UIKit.h>
-
-@interface UIImage (AFNetworking)
-
-+ (UIImage*) safeImageWithData:(NSData*)data;
-
-@end
-
-#endif

+ 0 - 109
RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.h

@@ -1,109 +0,0 @@
-// UIImageView+AFNetworking.h
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import <Foundation/Foundation.h>
-
-#import <TargetConditionals.h>
-
-#if TARGET_OS_IOS || TARGET_OS_TV
-
-#import <UIKit/UIKit.h>
-
-NS_ASSUME_NONNULL_BEGIN
-
-@class AFImageDownloader;
-
-/**
- This category adds methods to the UIKit framework's `UIImageView` class. The methods in this category provide support for loading remote images asynchronously from a URL.
- */
-@interface UIImageView (AFNetworking)
-
-///------------------------------------
-/// @name Accessing the Image Downloader
-///------------------------------------
-
-/**
- Set the shared image downloader used to download images.
-
- @param imageDownloader The shared image downloader used to download images.
- */
-+ (void)setSharedImageDownloader:(AFImageDownloader *)imageDownloader;
-
-/**
- The shared image downloader used to download images.
- */
-+ (AFImageDownloader *)sharedImageDownloader;
-
-///--------------------
-/// @name Setting Image
-///--------------------
-
-/**
- Asynchronously downloads an image from the specified URL, and sets it once the request is finished. Any previous image request for the receiver will be cancelled.
-
- If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished.
-
- By default, URL requests have a `Accept` header field value of "image / *", a cache policy of `NSURLCacheStorageAllowed` and a timeout interval of 30 seconds, and are set not handle cookies. To configure URL requests differently, use `setImageWithURLRequest:placeholderImage:success:failure:`
-
- @param url The URL used for the image request.
- */
-- (void)setImageWithURL:(NSURL *)url;
-
-/**
- Asynchronously downloads an image from the specified URL, and sets it once the request is finished. Any previous image request for the receiver will be cancelled.
-
- If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished.
-
- By default, URL requests have a `Accept` header field value of "image / *", a cache policy of `NSURLCacheStorageAllowed` and a timeout interval of 30 seconds, and are set not handle cookies. To configure URL requests differently, use `setImageWithURLRequest:placeholderImage:success:failure:`
-
- @param url The URL used for the image request.
- @param placeholderImage The image to be set initially, until the image request finishes. If `nil`, the image view will not change its image until the image request finishes.
- */
-- (void)setImageWithURL:(NSURL *)url
-       placeholderImage:(nullable UIImage *)placeholderImage;
-
-/**
- Asynchronously downloads an image from the specified URL request, and sets it once the request is finished. Any previous image request for the receiver will be cancelled.
-
- If the image is cached locally, the image is set immediately, otherwise the specified placeholder image will be set immediately, and then the remote image will be set once the request is finished.
-
- If a success block is specified, it is the responsibility of the block to set the image of the image view before returning. If no success block is specified, the default behavior of setting the image with `self.image = image` is applied.
-
- @param urlRequest The URL request used for the image request.
- @param placeholderImage The image to be set initially, until the image request finishes. If `nil`, the image view will not change its image until the image request finishes.
- @param success A block to be executed when the image data task finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the image created from the response data of request. If the image was returned from cache, the response parameter will be `nil`.
- @param failure A block object to be executed when the image data task finishes unsuccessfully, or that finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the error object describing the network or parsing error that occurred.
- */
-- (void)setImageWithURLRequest:(NSURLRequest *)urlRequest
-              placeholderImage:(nullable UIImage *)placeholderImage
-                       success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *image))success
-                       failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure;
-
-/**
- Cancels any executing image operation for the receiver, if one exists.
- */
-- (void)cancelImageDownloadTask;
-
-@end
-
-NS_ASSUME_NONNULL_END
-
-#endif

+ 0 - 160
RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIImageView+AFNetworking.m

@@ -1,160 +0,0 @@
-// UIImageView+AFNetworking.m
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import "UIImageView+AFNetworking.h"
-
-#import <objc/runtime.h>
-
-#if TARGET_OS_IOS || TARGET_OS_TV
-
-#import "AFImageDownloader.h"
-
-@interface UIImageView (_AFNetworking)
-@property (readwrite, nonatomic, strong, setter = af_setActiveImageDownloadReceipt:) AFImageDownloadReceipt *af_activeImageDownloadReceipt;
-@end
-
-@implementation UIImageView (_AFNetworking)
-
-- (AFImageDownloadReceipt *)af_activeImageDownloadReceipt {
-    return (AFImageDownloadReceipt *)objc_getAssociatedObject(self, @selector(af_activeImageDownloadReceipt));
-}
-
-- (void)af_setActiveImageDownloadReceipt:(AFImageDownloadReceipt *)imageDownloadReceipt {
-    objc_setAssociatedObject(self, @selector(af_activeImageDownloadReceipt), imageDownloadReceipt, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
-}
-
-@end
-
-#pragma mark -
-
-@implementation UIImageView (AFNetworking)
-
-+ (AFImageDownloader *)sharedImageDownloader {
-    return objc_getAssociatedObject(self, @selector(sharedImageDownloader)) ?: [AFImageDownloader defaultInstance];
-}
-
-+ (void)setSharedImageDownloader:(AFImageDownloader *)imageDownloader {
-    objc_setAssociatedObject(self, @selector(sharedImageDownloader), imageDownloader, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
-}
-
-#pragma mark -
-
-- (void)setImageWithURL:(NSURL *)url {
-    [self setImageWithURL:url placeholderImage:nil];
-}
-
-- (void)setImageWithURL:(NSURL *)url
-       placeholderImage:(UIImage *)placeholderImage
-{
-    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
-    [request addValue:@"image/*" forHTTPHeaderField:@"Accept"];
-
-    [self setImageWithURLRequest:request placeholderImage:placeholderImage success:nil failure:nil];
-}
-
-- (void)setImageWithURLRequest:(NSURLRequest *)urlRequest
-              placeholderImage:(UIImage *)placeholderImage
-                       success:(void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *image))success
-                       failure:(void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure
-{
-    
-    if ([urlRequest URL] == nil) {
-        self.image = placeholderImage;
-        if (failure) {
-            NSError *error = [NSError errorWithDomain:NSURLErrorDomain code:NSURLErrorBadURL userInfo:nil];
-            failure(urlRequest, nil, error);
-        }
-        return;
-    }
-    
-    if ([self isActiveTaskURLEqualToURLRequest:urlRequest]){
-        return;
-    }
-    
-    [self cancelImageDownloadTask];
-
-    AFImageDownloader *downloader = [[self class] sharedImageDownloader];
-    id <AFImageRequestCache> imageCache = downloader.imageCache;
-
-    //Use the image from the image cache if it exists
-    UIImage *cachedImage = [imageCache imageforRequest:urlRequest withAdditionalIdentifier:nil];
-    if (cachedImage) {
-        if (success) {
-            success(urlRequest, nil, cachedImage);
-        } else {
-            self.image = cachedImage;
-        }
-        [self clearActiveDownloadInformation];
-    } else {
-        if (placeholderImage) {
-            self.image = placeholderImage;
-        }
-
-        __weak __typeof(self)weakSelf = self;
-        NSUUID *downloadID = [NSUUID UUID];
-        AFImageDownloadReceipt *receipt;
-        receipt = [downloader
-                   downloadImageForURLRequest:urlRequest
-                   withReceiptID:downloadID
-                   success:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, UIImage * _Nonnull responseObject) {
-                       __strong __typeof(weakSelf)strongSelf = weakSelf;
-                       if ([strongSelf.af_activeImageDownloadReceipt.receiptID isEqual:downloadID]) {
-                           if (success) {
-                               success(request, response, responseObject);
-                           } else if(responseObject) {
-                               strongSelf.image = responseObject;
-                           }
-                           [strongSelf clearActiveDownloadInformation];
-                       }
-
-                   }
-                   failure:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, NSError * _Nonnull error) {
-                       __strong __typeof(weakSelf)strongSelf = weakSelf;
-                        if ([strongSelf.af_activeImageDownloadReceipt.receiptID isEqual:downloadID]) {
-                            if (failure) {
-                                failure(request, response, error);
-                            }
-                            [strongSelf clearActiveDownloadInformation];
-                        }
-                   }];
-
-        self.af_activeImageDownloadReceipt = receipt;
-    }
-}
-
-- (void)cancelImageDownloadTask {
-    if (self.af_activeImageDownloadReceipt != nil) {
-        [[self.class sharedImageDownloader] cancelTaskForImageDownloadReceipt:self.af_activeImageDownloadReceipt];
-        [self clearActiveDownloadInformation];
-     }
-}
-
-- (void)clearActiveDownloadInformation {
-    self.af_activeImageDownloadReceipt = nil;
-}
-
-- (BOOL)isActiveTaskURLEqualToURLRequest:(NSURLRequest *)urlRequest {
-    return [self.af_activeImageDownloadReceipt.task.originalRequest.URL.absoluteString isEqualToString:urlRequest.URL.absoluteString];
-}
-
-@end
-
-#endif

+ 0 - 42
RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIKit+AFNetworking.h

@@ -1,42 +0,0 @@
-// UIKit+AFNetworking.h
-//
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#if TARGET_OS_IOS || TARGET_OS_TV
-#import <UIKit/UIKit.h>
-
-#ifndef _UIKIT_AFNETWORKING_
-    #define _UIKIT_AFNETWORKING_
-
-#if TARGET_OS_IOS
-    #import "AFAutoPurgingImageCache.h"
-    #import "AFImageDownloader.h"
-    #import "AFNetworkActivityIndicatorManager.h"
-    #import "UIRefreshControl+AFNetworking.h"
-    #import "UIWebView+AFNetworking.h"
-#endif
-
-    #import "UIActivityIndicatorView+AFNetworking.h"
-    #import "UIButton+AFNetworking.h"
-    #import "UIImageView+AFNetworking.h"
-    #import "UIProgressView+AFNetworking.h"
-#endif /* _UIKIT_AFNETWORKING_ */
-#endif

+ 0 - 64
RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.h

@@ -1,64 +0,0 @@
-// UIProgressView+AFNetworking.h
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import <Foundation/Foundation.h>
-
-#import <TargetConditionals.h>
-
-#if TARGET_OS_IOS || TARGET_OS_TV
-
-#import <UIKit/UIKit.h>
-
-NS_ASSUME_NONNULL_BEGIN
-
-
-/**
- This category adds methods to the UIKit framework's `UIProgressView` class. The methods in this category provide support for binding the progress to the upload and download progress of a session task.
- */
-@interface UIProgressView (AFNetworking)
-
-///------------------------------------
-/// @name Setting Session Task Progress
-///------------------------------------
-
-/**
- Binds the progress to the upload progress of the specified session task.
-
- @param task The session task.
- @param animated `YES` if the change should be animated, `NO` if the change should happen immediately.
- */
-- (void)setProgressWithUploadProgressOfTask:(NSURLSessionUploadTask *)task
-                                   animated:(BOOL)animated;
-
-/**
- Binds the progress to the download progress of the specified session task.
-
- @param task The session task.
- @param animated `YES` if the change should be animated, `NO` if the change should happen immediately.
- */
-- (void)setProgressWithDownloadProgressOfTask:(NSURLSessionDownloadTask *)task
-                                     animated:(BOOL)animated;
-
-@end
-
-NS_ASSUME_NONNULL_END
-
-#endif

+ 0 - 126
RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIProgressView+AFNetworking.m

@@ -1,126 +0,0 @@
-// UIProgressView+AFNetworking.m
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import "UIProgressView+AFNetworking.h"
-
-#import <objc/runtime.h>
-
-#if TARGET_OS_IOS || TARGET_OS_TV
-
-#import "AFURLSessionManager.h"
-
-static void * AFTaskCountOfBytesSentContext = &AFTaskCountOfBytesSentContext;
-static void * AFTaskCountOfBytesReceivedContext = &AFTaskCountOfBytesReceivedContext;
-
-#pragma mark -
-
-@implementation UIProgressView (AFNetworking)
-
-- (BOOL)af_uploadProgressAnimated {
-    return [(NSNumber *)objc_getAssociatedObject(self, @selector(af_uploadProgressAnimated)) boolValue];
-}
-
-- (void)af_setUploadProgressAnimated:(BOOL)animated {
-    objc_setAssociatedObject(self, @selector(af_uploadProgressAnimated), @(animated), OBJC_ASSOCIATION_RETAIN_NONATOMIC);
-}
-
-- (BOOL)af_downloadProgressAnimated {
-    return [(NSNumber *)objc_getAssociatedObject(self, @selector(af_downloadProgressAnimated)) boolValue];
-}
-
-- (void)af_setDownloadProgressAnimated:(BOOL)animated {
-    objc_setAssociatedObject(self, @selector(af_downloadProgressAnimated), @(animated), OBJC_ASSOCIATION_RETAIN_NONATOMIC);
-}
-
-#pragma mark -
-
-- (void)setProgressWithUploadProgressOfTask:(NSURLSessionUploadTask *)task
-                                   animated:(BOOL)animated
-{
-    if (task.state == NSURLSessionTaskStateCompleted) {
-        return;
-    }
-    
-    [task addObserver:self forKeyPath:@"state" options:(NSKeyValueObservingOptions)0 context:AFTaskCountOfBytesSentContext];
-    [task addObserver:self forKeyPath:@"countOfBytesSent" options:(NSKeyValueObservingOptions)0 context:AFTaskCountOfBytesSentContext];
-
-    [self af_setUploadProgressAnimated:animated];
-}
-
-- (void)setProgressWithDownloadProgressOfTask:(NSURLSessionDownloadTask *)task
-                                     animated:(BOOL)animated
-{
-    if (task.state == NSURLSessionTaskStateCompleted) {
-        return;
-    }
-    
-    [task addObserver:self forKeyPath:@"state" options:(NSKeyValueObservingOptions)0 context:AFTaskCountOfBytesReceivedContext];
-    [task addObserver:self forKeyPath:@"countOfBytesReceived" options:(NSKeyValueObservingOptions)0 context:AFTaskCountOfBytesReceivedContext];
-
-    [self af_setDownloadProgressAnimated:animated];
-}
-
-#pragma mark - NSKeyValueObserving
-
-- (void)observeValueForKeyPath:(NSString *)keyPath
-                      ofObject:(id)object
-                        change:(__unused NSDictionary *)change
-                       context:(void *)context
-{
-    if (context == AFTaskCountOfBytesSentContext || context == AFTaskCountOfBytesReceivedContext) {
-        if ([keyPath isEqualToString:NSStringFromSelector(@selector(countOfBytesSent))]) {
-            if ([object countOfBytesExpectedToSend] > 0) {
-                dispatch_async(dispatch_get_main_queue(), ^{
-                    [self setProgress:[object countOfBytesSent] / ([object countOfBytesExpectedToSend] * 1.0f) animated:self.af_uploadProgressAnimated];
-                });
-            }
-        }
-
-        if ([keyPath isEqualToString:NSStringFromSelector(@selector(countOfBytesReceived))]) {
-            if ([object countOfBytesExpectedToReceive] > 0) {
-                dispatch_async(dispatch_get_main_queue(), ^{
-                    [self setProgress:[object countOfBytesReceived] / ([object countOfBytesExpectedToReceive] * 1.0f) animated:self.af_downloadProgressAnimated];
-                });
-            }
-        }
-
-        if ([keyPath isEqualToString:NSStringFromSelector(@selector(state))]) {
-            if ([(NSURLSessionTask *)object state] == NSURLSessionTaskStateCompleted) {
-                @try {
-                    [object removeObserver:self forKeyPath:NSStringFromSelector(@selector(state))];
-
-                    if (context == AFTaskCountOfBytesSentContext) {
-                        [object removeObserver:self forKeyPath:NSStringFromSelector(@selector(countOfBytesSent))];
-                    }
-
-                    if (context == AFTaskCountOfBytesReceivedContext) {
-                        [object removeObserver:self forKeyPath:NSStringFromSelector(@selector(countOfBytesReceived))];
-                    }
-                }
-                @catch (NSException * __unused exception) {}
-            }
-        }
-    }
-}
-
-@end
-
-#endif

+ 0 - 53
RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.h

@@ -1,53 +0,0 @@
-// UIRefreshControl+AFNetworking.m
-//
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import <Foundation/Foundation.h>
-
-#import <TargetConditionals.h>
-
-#if TARGET_OS_IOS
-
-#import <UIKit/UIKit.h>
-
-NS_ASSUME_NONNULL_BEGIN
-
-/**
- This category adds methods to the UIKit framework's `UIRefreshControl` class. The methods in this category provide support for automatically beginning and ending refreshing depending on the loading state of a session task.
- */
-@interface UIRefreshControl (AFNetworking)
-
-///-----------------------------------
-/// @name Refreshing for Session Tasks
-///-----------------------------------
-
-/**
- Binds the refreshing state to the state of the specified task.
- 
- @param task The task. If `nil`, automatic updating from any previously specified operation will be disabled.
- */
-- (void)setRefreshingWithStateOfTask:(NSURLSessionTask *)task;
-
-@end
-
-NS_ASSUME_NONNULL_END
-
-#endif

+ 0 - 113
RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIRefreshControl+AFNetworking.m

@@ -1,113 +0,0 @@
-// UIRefreshControl+AFNetworking.m
-//
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import "UIRefreshControl+AFNetworking.h"
-#import <objc/runtime.h>
-
-#if TARGET_OS_IOS
-
-#import "AFURLSessionManager.h"
-
-@interface AFRefreshControlNotificationObserver : NSObject
-@property (readonly, nonatomic, weak) UIRefreshControl *refreshControl;
-- (instancetype)initWithActivityRefreshControl:(UIRefreshControl *)refreshControl;
-
-- (void)setRefreshingWithStateOfTask:(NSURLSessionTask *)task;
-
-@end
-
-@implementation UIRefreshControl (AFNetworking)
-
-- (AFRefreshControlNotificationObserver *)af_notificationObserver {
-    AFRefreshControlNotificationObserver *notificationObserver = objc_getAssociatedObject(self, @selector(af_notificationObserver));
-    if (notificationObserver == nil) {
-        notificationObserver = [[AFRefreshControlNotificationObserver alloc] initWithActivityRefreshControl:self];
-        objc_setAssociatedObject(self, @selector(af_notificationObserver), notificationObserver, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
-    }
-    return notificationObserver;
-}
-
-- (void)setRefreshingWithStateOfTask:(NSURLSessionTask *)task {
-    [[self af_notificationObserver] setRefreshingWithStateOfTask:task];
-}
-
-@end
-
-@implementation AFRefreshControlNotificationObserver
-
-- (instancetype)initWithActivityRefreshControl:(UIRefreshControl *)refreshControl
-{
-    self = [super init];
-    if (self) {
-        _refreshControl = refreshControl;
-    }
-    return self;
-}
-
-- (void)setRefreshingWithStateOfTask:(NSURLSessionTask *)task {
-    NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
-
-    [notificationCenter removeObserver:self name:AFNetworkingTaskDidResumeNotification object:nil];
-    [notificationCenter removeObserver:self name:AFNetworkingTaskDidSuspendNotification object:nil];
-    [notificationCenter removeObserver:self name:AFNetworkingTaskDidCompleteNotification object:nil];
-
-    if (task) {
-        UIRefreshControl *refreshControl = self.refreshControl;
-        if (task.state == NSURLSessionTaskStateRunning) {
-            [refreshControl beginRefreshing];
-
-            [notificationCenter addObserver:self selector:@selector(af_beginRefreshing) name:AFNetworkingTaskDidResumeNotification object:task];
-            [notificationCenter addObserver:self selector:@selector(af_endRefreshing) name:AFNetworkingTaskDidCompleteNotification object:task];
-            [notificationCenter addObserver:self selector:@selector(af_endRefreshing) name:AFNetworkingTaskDidSuspendNotification object:task];
-        } else {
-            [refreshControl endRefreshing];
-        }
-    }
-}
-
-#pragma mark -
-
-- (void)af_beginRefreshing {
-    dispatch_async(dispatch_get_main_queue(), ^{
-        [self.refreshControl beginRefreshing];
-    });
-}
-
-- (void)af_endRefreshing {
-    dispatch_async(dispatch_get_main_queue(), ^{
-        [self.refreshControl endRefreshing];
-    });
-}
-
-#pragma mark -
-
-- (void)dealloc {
-    NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
-    
-    [notificationCenter removeObserver:self name:AFNetworkingTaskDidCompleteNotification object:nil];
-    [notificationCenter removeObserver:self name:AFNetworkingTaskDidResumeNotification object:nil];
-    [notificationCenter removeObserver:self name:AFNetworkingTaskDidSuspendNotification object:nil];
-}
-
-@end
-
-#endif

+ 0 - 80
RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.h

@@ -1,80 +0,0 @@
-// UIWebView+AFNetworking.h
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import <Foundation/Foundation.h>
-
-#import <TargetConditionals.h>
-
-#if TARGET_OS_IOS
-
-#import <UIKit/UIKit.h>
-
-NS_ASSUME_NONNULL_BEGIN
-
-@class AFHTTPSessionManager;
-
-/**
- This category adds methods to the UIKit framework's `UIWebView` class. The methods in this category provide increased control over the request cycle, including progress monitoring and success / failure handling.
-
- @discussion When using these category methods, make sure to assign `delegate` for the web view, which implements `–webView:shouldStartLoadWithRequest:navigationType:` appropriately. This allows for tapped links to be loaded through AFNetworking, and can ensure that `canGoBack` & `canGoForward` update their values correctly.
- */
-@interface UIWebView (AFNetworking)
-
-/**
- The session manager used to download all requests.
- */
-@property (nonatomic, strong) AFHTTPSessionManager *sessionManager;
-
-/**
- Asynchronously loads the specified request.
-
- @param request A URL request identifying the location of the content to load. This must not be `nil`.
- @param progress A progress object monitoring the current download progress.
- @param success A block object to be executed when the request finishes loading successfully. This block returns the HTML string to be loaded by the web view, and takes two arguments: the response, and the response string.
- @param failure A block object to be executed when the data task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a single argument: the error that occurred.
- */
-- (void)loadRequest:(NSURLRequest *)request
-           progress:(NSProgress * _Nullable __autoreleasing * _Nullable)progress
-            success:(nullable NSString * (^)(NSHTTPURLResponse *response, NSString *HTML))success
-            failure:(nullable void (^)(NSError *error))failure;
-
-/**
- Asynchronously loads the data associated with a particular request with a specified MIME type and text encoding.
-
- @param request A URL request identifying the location of the content to load. This must not be `nil`.
- @param MIMEType The MIME type of the content. Defaults to the content type of the response if not specified.
- @param textEncodingName The IANA encoding name, as in `utf-8` or `utf-16`. Defaults to the response text encoding if not specified.
-@param progress A progress object monitoring the current download progress.
- @param success A block object to be executed when the request finishes loading successfully. This block returns the data to be loaded by the web view and takes two arguments: the response, and the downloaded data.
- @param failure A block object to be executed when the data task finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes a single argument: the error that occurred.
- */
-- (void)loadRequest:(NSURLRequest *)request
-           MIMEType:(nullable NSString *)MIMEType
-   textEncodingName:(nullable NSString *)textEncodingName
-           progress:(NSProgress * _Nullable __autoreleasing * _Nullable)progress
-            success:(nullable NSData * (^)(NSHTTPURLResponse *response, NSData *data))success
-            failure:(nullable void (^)(NSError *error))failure;
-
-@end
-
-NS_ASSUME_NONNULL_END
-
-#endif

+ 0 - 157
RainbowPlanetOC/Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.m

@@ -1,157 +0,0 @@
-// UIWebView+AFNetworking.m
-// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import "UIWebView+AFNetworking.h"
-
-#import <objc/runtime.h>
-
-#if TARGET_OS_IOS
-
-#import "AFHTTPSessionManager.h"
-#import "AFURLResponseSerialization.h"
-#import "AFURLRequestSerialization.h"
-
-@interface UIWebView (_AFNetworking)
-@property (readwrite, nonatomic, strong, setter = af_setURLSessionTask:) NSURLSessionDataTask *af_URLSessionTask;
-@end
-
-@implementation UIWebView (_AFNetworking)
-
-- (NSURLSessionDataTask *)af_URLSessionTask {
-    return (NSURLSessionDataTask *)objc_getAssociatedObject(self, @selector(af_URLSessionTask));
-}
-
-- (void)af_setURLSessionTask:(NSURLSessionDataTask *)af_URLSessionTask {
-    objc_setAssociatedObject(self, @selector(af_URLSessionTask), af_URLSessionTask, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
-}
-
-@end
-
-#pragma mark -
-
-@implementation UIWebView (AFNetworking)
-
-- (AFHTTPSessionManager  *)sessionManager {
-    static AFHTTPSessionManager *_af_defaultHTTPSessionManager = nil;
-    static dispatch_once_t onceToken;
-    dispatch_once(&onceToken, ^{
-        _af_defaultHTTPSessionManager = [[AFHTTPSessionManager alloc] initWithSessionConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]];
-        _af_defaultHTTPSessionManager.requestSerializer = [AFHTTPRequestSerializer serializer];
-        _af_defaultHTTPSessionManager.responseSerializer = [AFHTTPResponseSerializer serializer];
-    });
-
-    return objc_getAssociatedObject(self, @selector(sessionManager)) ?: _af_defaultHTTPSessionManager;
-}
-
-- (void)setSessionManager:(AFHTTPSessionManager *)sessionManager {
-    objc_setAssociatedObject(self, @selector(sessionManager), sessionManager, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
-}
-
-- (AFHTTPResponseSerializer <AFURLResponseSerialization> *)responseSerializer {
-    static AFHTTPResponseSerializer <AFURLResponseSerialization> *_af_defaultResponseSerializer = nil;
-    static dispatch_once_t onceToken;
-    dispatch_once(&onceToken, ^{
-        _af_defaultResponseSerializer = [AFHTTPResponseSerializer serializer];
-    });
-
-    return objc_getAssociatedObject(self, @selector(responseSerializer)) ?: _af_defaultResponseSerializer;
-}
-
-- (void)setResponseSerializer:(AFHTTPResponseSerializer<AFURLResponseSerialization> *)responseSerializer {
-    objc_setAssociatedObject(self, @selector(responseSerializer), responseSerializer, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
-}
-
-#pragma mark -
-
-- (void)loadRequest:(NSURLRequest *)request
-           progress:(NSProgress * _Nullable __autoreleasing * _Nullable)progress
-            success:(NSString * (^)(NSHTTPURLResponse *response, NSString *HTML))success
-            failure:(void (^)(NSError *error))failure
-{
-    [self loadRequest:request MIMEType:nil textEncodingName:nil progress:progress success:^NSData *(NSHTTPURLResponse *response, NSData *data) {
-        NSStringEncoding stringEncoding = NSUTF8StringEncoding;
-        if (response.textEncodingName) {
-            CFStringEncoding encoding = CFStringConvertIANACharSetNameToEncoding((CFStringRef)response.textEncodingName);
-            if (encoding != kCFStringEncodingInvalidId) {
-                stringEncoding = CFStringConvertEncodingToNSStringEncoding(encoding);
-            }
-        }
-
-        NSString *string = [[NSString alloc] initWithData:data encoding:stringEncoding];
-        if (success) {
-            string = success(response, string);
-        }
-
-        return [string dataUsingEncoding:stringEncoding];
-    } failure:failure];
-}
-
-- (void)loadRequest:(NSURLRequest *)request
-           MIMEType:(NSString *)MIMEType
-   textEncodingName:(NSString *)textEncodingName
-           progress:(NSProgress * _Nullable __autoreleasing * _Nullable)progress
-            success:(NSData * (^)(NSHTTPURLResponse *response, NSData *data))success
-            failure:(void (^)(NSError *error))failure
-{
-    NSParameterAssert(request);
-
-    if (self.af_URLSessionTask.state == NSURLSessionTaskStateRunning || self.af_URLSessionTask.state == NSURLSessionTaskStateSuspended) {
-        [self.af_URLSessionTask cancel];
-    }
-    self.af_URLSessionTask = nil;
-
-    __weak __typeof(self)weakSelf = self;
-    __block NSURLSessionDataTask *dataTask;
-    dataTask = [self.sessionManager
-                dataTaskWithRequest:request
-                uploadProgress:nil
-                downloadProgress:nil
-                completionHandler:^(NSURLResponse * _Nonnull response, id  _Nonnull responseObject, NSError * _Nullable error) {
-                    __strong __typeof(weakSelf) strongSelf = weakSelf;
-                    if (error) {
-                        if (failure) {
-                            failure(error);
-                        }
-                    } else {
-                        if (success) {
-                            success((NSHTTPURLResponse *)response, responseObject);
-                        }
-                        [strongSelf loadData:responseObject MIMEType:MIMEType textEncodingName:textEncodingName baseURL:[dataTask.currentRequest URL]];
-
-                        if ([strongSelf.delegate respondsToSelector:@selector(webViewDidFinishLoad:)]) {
-                            [strongSelf.delegate webViewDidFinishLoad:strongSelf];
-                        }
-                    }
-                }];
-    self.af_URLSessionTask = dataTask;
-    if (progress != nil) {
-        *progress = [self.sessionManager downloadProgressForTask:dataTask];
-    }
-    [self.af_URLSessionTask resume];
-
-    if ([self.delegate respondsToSelector:@selector(webViewDidStartLoad:)]) {
-        [self.delegate webViewDidStartLoad:self];
-    }
-}
-
-@end
-
-#endif

+ 0 - 19
RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/CYLConstants.h

@@ -1,19 +0,0 @@
-//
-//  CYLTabBarController.h
-//  CYLTabBarController
-//
-//  v1.16.0 Created by 微博@iOS程序犭袁 ( http://weibo.com/luohanchenyilong/ ) on 10/20/15.
-//  Copyright © 2018 https://github.com/ChenYilong . All rights reserved.
-//
-
-#ifndef CYLConstants_h
-#define CYLConstants_h
-
-#define CYL_DEPRECATED(explain) __attribute__((deprecated(explain)))
-#define CYL_IS_IPHONE (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
-
-#define CYL_IS_IOS_11  ([[[UIDevice currentDevice] systemVersion] floatValue] >= 11.f)
-#define CYL_IS_IPHONE_X (CYL_IS_IOS_11 && CYL_IS_IPHONE && (MIN([UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height) >= 375 && MAX([UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height) >= 812))
-#endif /* CYLConstants_h */
-
-

+ 0 - 93
RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/CYLPlusButton.h

@@ -1,93 +0,0 @@
-//
-//  CYLPlusButton.h
-//  CYLTabBarController
-//
-//  v1.16.0 Created by 微博@iOS程序犭袁 ( http://weibo.com/luohanchenyilong/ ) on 10/20/15.
-//  Copyright © 2018 https://github.com/ChenYilong . All rights reserved.
-//
-
-#import <UIKit/UIKit.h>
-
-#import "CYLConstants.h"
-@class CYLPlusButton;
-
-@protocol CYLPlusButtonSubclassing
-
-@required
-+ (id)plusButton;
-@optional
-
-/*!
- * 用来自定义加号按钮的位置,如果不实现默认居中。
- * @attention 以下两种情况下,必须实现该协议方法,否则 CYLTabBarController 会抛出 exception 来进行提示:
-                 1. 添加了 PlusButton 且 TabBarItem 的个数是奇数。
-                 2. 实现了 `+plusChildViewController`。
- * @return 用来自定义加号按钮在 TabBar 中的位置。
- *
- */
-+ (NSUInteger)indexOfPlusButtonInTabBar;
-
-/*!
- * 该方法是为了调整 PlusButton 中心点Y轴方向的位置,建议在按钮超出了 tabbar 的边界时实现该方法。
- * @attention 如果不实现该方法,内部会自动进行比对,预设一个较为合适的位置,如果实现了该方法,预设的逻辑将失效。
- * @return 返回值是自定义按钮中心点Y轴方向的坐标除以 tabbar 的高度,
-           内部实现时,会使用该返回值来设置 PlusButton 的 centerY 坐标,公式如下:
-              `PlusButtonCenterY = multiplierOfTabBarHeight * tabBarHeight + constantOfPlusButtonCenterYOffset;`
-           也就是说:如果 constantOfPlusButtonCenterYOffset 为0,同时 multiplierOfTabBarHeight 的值是0.5,表示 PlusButton 居中,小于0.5表示 PlusButton 偏上,大于0.5则表示偏下。
- *
- */
-+ (CGFloat)multiplierOfTabBarHeight:(CGFloat)tabBarHeight;
-
-/*!
- * 见 `+multiplierOfTabBarHeight:` 注释:
- * `PlusButtonCenterY = multiplierOfTabBarHeight * tabBarHeight + constantOfPlusButtonCenterYOffset;`
- * 也就是说: constantOfPlusButtonCenterYOffset 大于0会向下偏移,小于0会向上偏移。
- * @attention 实现了该方法,但没有实现 `+multiplierOfTabBarHeight:` 方法,在这种情况下,会在预设逻辑的基础上进行偏移。
- */
-+ (CGFloat)constantOfPlusButtonCenterYOffsetForTabBarHeight:(CGFloat)tabBarHeight;
-
-/*!
- * 实现该方法后,能让 PlusButton 的点击效果与跟点击其他 TabBar 按钮效果一样,跳转到该方法指定的 UIViewController 。
- * @attention 必须同时实现 `+indexOfPlusButtonInTabBar` 来指定 PlusButton 的位置。
- * @return 指定 PlusButton 点击后跳转的 UIViewController。
- *
- */
-+ (UIViewController *)plusChildViewController;
-
-/*!
- * 
- Asks the delegate whether the specified view controller should be made active.
- Return YES if the view controller’s tab should be selected or NO if the current tab should remain active.
- Returns YES true if the view controller’s tab should be selected or
-         NO  false if the current tab should remain active.
- */
-+ (BOOL)shouldSelectPlusChildViewController;
-
-#pragma mark - Deprecated API
-
-+ (CGFloat)multiplerInCenterY CYL_DEPRECATED("Deprecated in 1.6.0. Use `+multiplierOfTabBarHeight:` instead.");
-
-+ (NSString *)tabBarContext;
-
-@end
-
-@class CYLTabBar;
-
-FOUNDATION_EXTERN UIButton<CYLPlusButtonSubclassing> *CYLExternPlusButton;
-FOUNDATION_EXTERN UIViewController *CYLPlusChildViewController;
-
-@interface CYLPlusButton : UIButton
-
-+ (void)registerPlusButton;
-
-- (void)plusChildViewControllerButtonClicked:(UIButton<CYLPlusButtonSubclassing> *)sender;
-
-@end
-
-#pragma mark - Deprecated API
-
-@interface CYLPlusButton (CYLDeprecated)
-
-+ (void)registerSubclass CYL_DEPRECATED("Deprecated in 1.6.0. Use `+[CYLPlusButton registerPlusButton]` instead.");
-
-@end

+ 0 - 97
RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/CYLPlusButton.m

@@ -1,97 +0,0 @@
-//
-//  CYLPlusButton.m
-//  CYLTabBarController
-//
-//  v1.16.0 Created by 微博@iOS程序犭袁 ( http://weibo.com/luohanchenyilong/ ) on 10/20/15.
-//  Copyright © 2018 https://github.com/ChenYilong . All rights reserved.
-//
-
-#import "CYLPlusButton.h"
-#import "CYLTabBarController.h"
-#import "UIViewController+CYLTabBarControllerExtention.h"
-
-CGFloat CYLPlusButtonWidth = 0.0f;
-UIButton<CYLPlusButtonSubclassing> *CYLExternPlusButton = nil;
-UIViewController *CYLPlusChildViewController = nil;
-
-@implementation CYLPlusButton
-
-#pragma mark -
-#pragma mark - public Methods
-
-+ (void)registerPlusButton {
-    if (![self conformsToProtocol:@protocol(CYLPlusButtonSubclassing)]) {
-        return;
-    }
-    Class<CYLPlusButtonSubclassing> class = self;
-    UIButton<CYLPlusButtonSubclassing> *plusButton = [class plusButton];
-    CYLExternPlusButton = plusButton;
-    CYLPlusButtonWidth = plusButton.frame.size.width;
-    if ([[self class] respondsToSelector:@selector(plusChildViewController)]) {
-        CYLPlusChildViewController = [class plusChildViewController];
-        if ([[self class] respondsToSelector:@selector(tabBarContext)]) {
-            NSString *tabBarContext = [class tabBarContext];
-            if (tabBarContext && tabBarContext.length) {
-                [CYLPlusChildViewController cyl_setContext:tabBarContext];
-            }
-        } else {
-            [CYLPlusChildViewController cyl_setContext:NSStringFromClass([CYLTabBarController class])];
-        }
-        [[self class] addSelectViewControllerTarget:plusButton];
-        if ([[self class] respondsToSelector:@selector(indexOfPlusButtonInTabBar)]) {
-            CYLPlusButtonIndex = [[self class] indexOfPlusButtonInTabBar];
-        } else {
-            [NSException raise:NSStringFromClass([CYLTabBarController class]) format:@"If you want to add PlusChildViewController, you must realizse `+indexOfPlusButtonInTabBar` in your custom plusButton class.【Chinese】如果你想使用PlusChildViewController样式,你必须同时在你自定义的plusButton中实现 `+indexOfPlusButtonInTabBar`,来指定plusButton的位置"];
-        }
-    }
-}
-
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wdeprecated-declarations"
-+ (void)registerSubclass {
-    [self registerPlusButton];
-}
-#pragma clang diagnostic pop
-
-- (void)plusChildViewControllerButtonClicked:(UIButton<CYLPlusButtonSubclassing> *)sender {
-    BOOL notNeedConfigureSelectionStatus = [[self class] respondsToSelector:@selector(shouldSelectPlusChildViewController)] && ![[self class] shouldSelectPlusChildViewController];
-    if (notNeedConfigureSelectionStatus) {
-        return;
-    }
-    if (sender.selected) {
-        return;
-    }
-    sender.selected = YES;
-    CYLTabBarController *tabBarController = [sender cyl_tabBarController];
-    NSInteger index = [tabBarController.viewControllers indexOfObject:CYLPlusChildViewController];
-    @try {
-        [tabBarController setSelectedIndex:index];
-    } @catch (NSException *exception) {
-        NSLog(@"🔴类名与方法名:%@(在第%@行),描述:%@", @(__PRETTY_FUNCTION__), @(__LINE__), exception);
-    }
-}
-
-#pragma mark -
-#pragma mark - Private Methods
-
-+ (void)addSelectViewControllerTarget:(UIButton<CYLPlusButtonSubclassing> *)plusButton {
-    id target = self;
-    NSArray<NSString *> *selectorNamesArray = [plusButton actionsForTarget:target forControlEvent:UIControlEventTouchUpInside];
-    if (selectorNamesArray.count == 0) {
-        target = plusButton;
-        selectorNamesArray = [plusButton actionsForTarget:target forControlEvent:UIControlEventTouchUpInside];
-    }
-    [selectorNamesArray enumerateObjectsUsingBlock:^(NSString * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
-        SEL selector =  NSSelectorFromString(obj);
-        [plusButton removeTarget:target action:selector forControlEvents:UIControlEventTouchUpInside];
-    }];
-    [plusButton addTarget:plusButton action:@selector(plusChildViewControllerButtonClicked:) forControlEvents:UIControlEventTouchUpInside];
-}
-
-/**
- *  按钮选中状态下点击先显示normal状态的颜色,松开时再回到selected状态下颜色。
- *  重写此方法即不会出现上述情况,与 UITabBarButton 相似
- */
-- (void)setHighlighted:(BOOL)highlighted {}
-
-@end

+ 0 - 22
RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/CYLTabBar.h

@@ -1,22 +0,0 @@
-//
-//  CYLTabBar.h
-//  CYLTabBarController
-//
-//  v1.16.0 Created by 微博@iOS程序犭袁 ( http://weibo.com/luohanchenyilong/ ) on 10/20/15.
-//  Copyright © 2018 https://github.com/ChenYilong . All rights reserved.
-//
-
-#import <UIKit/UIKit.h>
-
-@interface CYLTabBar : UITabBar
-
-/*!
- * 让 `TabImageView` 垂直居中时,所需要的默认偏移量。
- * @attention 该值将在设置 top 和 bottom 时被同时使用,具体的操作等价于如下行为:
- * `viewController.tabBarItem.imageInsets = UIEdgeInsetsMake(tabImageViewDefaultOffset, 0, -tabImageViewDefaultOffset, 0);`
- */
-@property (nonatomic, assign, readonly) CGFloat tabImageViewDefaultOffset;
-
-@property (nonatomic, copy) NSString *context;
-
-@end

文件差異過大導致無法顯示
+ 0 - 476
RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/CYLTabBar.m


+ 0 - 135
RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/CYLTabBarController.h

@@ -1,135 +0,0 @@
-//
-//  CYLTabBarController.h
-//  CYLTabBarController
-//
-//  v1.16.0 Created by 微博@iOS程序犭袁 ( http://weibo.com/luohanchenyilong/ ) on 10/20/15.
-//  Copyright © 2018 https://github.com/ChenYilong . All rights reserved.
-//
-
-#import "CYLPlusButton.h"
-#import "UIViewController+CYLTabBarControllerExtention.h"
-#import "UIView+CYLTabBarControllerExtention.h"
-#import "UITabBarItem+CYLTabBarControllerExtention.h"
-#import "UIControl+CYLTabBarControllerExtention.h"
-
-@class CYLTabBarController;
-typedef void(^CYLViewDidLayoutSubViewsBlock)(CYLTabBarController *tabBarController);
-
-FOUNDATION_EXTERN NSString *const CYLTabBarItemTitle;
-FOUNDATION_EXTERN NSString *const CYLTabBarItemImage;
-FOUNDATION_EXTERN NSString *const CYLTabBarItemSelectedImage;
-FOUNDATION_EXTERN NSString *const CYLTabBarItemImageInsets;
-FOUNDATION_EXTERN NSString *const CYLTabBarItemTitlePositionAdjustment;
-FOUNDATION_EXTERN NSUInteger CYLTabbarItemsCount;
-FOUNDATION_EXTERN NSUInteger CYLPlusButtonIndex;
-FOUNDATION_EXTERN CGFloat CYLPlusButtonWidth;
-FOUNDATION_EXTERN CGFloat CYLTabBarItemWidth;
-FOUNDATION_EXTERN CGFloat CYLTabBarHeight;
-
-@protocol CYLTabBarControllerDelegate <NSObject>
-@optional
-/*!
- * @param tabBarController The tab bar controller containing viewController.
- * @param control Selected UIControl in TabBar.
- */
-- (void)tabBarController:(UITabBarController *)tabBarController didSelectControl:(UIControl *)control;
-
-@end
-
-@interface CYLTabBarController : UITabBarController <CYLTabBarControllerDelegate>
-
-@property (nonatomic, copy) CYLViewDidLayoutSubViewsBlock viewDidLayoutSubviewsBlock;
-
-- (void)setViewDidLayoutSubViewsBlock:(CYLViewDidLayoutSubViewsBlock)viewDidLayoutSubviewsBlock;
-
-/*!
- * An array of the root view controllers displayed by the tab bar interface.
- */
-@property (nonatomic, readwrite, copy) NSArray<UIViewController *> *viewControllers;
-
-/*!
- * The Attributes of items which is displayed on the tab bar.
- */
-@property (nonatomic, readwrite, copy) NSArray<NSDictionary *> *tabBarItemsAttributes;
-
-/*!
- * Customize UITabBar height
- */
-@property (nonatomic, assign) CGFloat tabBarHeight;
-
-/*!
- * To set both UIBarItem image view attributes in the tabBar,
- * default is UIEdgeInsetsZero.
- */
-@property (nonatomic, readonly, assign) UIEdgeInsets imageInsets;
-
-/*! 
- * To set both UIBarItem label text attributes in the tabBar,
- * use the following to tweak the relative position of the label within the tab button (for handling visual centering corrections if needed because of custom text attributes)
- */
-@property (nonatomic, readonly, assign) UIOffset titlePositionAdjustment;
-
-@property (nonatomic, readonly, copy) NSString *context;
-
-- (instancetype)initWithViewControllers:(NSArray<UIViewController *> *)viewControllers
-                  tabBarItemsAttributes:(NSArray<NSDictionary *> *)tabBarItemsAttributes;
-
-+ (instancetype)tabBarControllerWithViewControllers:(NSArray<UIViewController *> *)viewControllers
-                              tabBarItemsAttributes:(NSArray<NSDictionary *> *)tabBarItemsAttributes;
-
-- (instancetype)initWithViewControllers:(NSArray<UIViewController *> *)viewControllers
-                  tabBarItemsAttributes:(NSArray<NSDictionary *> *)tabBarItemsAttributes
-                            imageInsets:(UIEdgeInsets)imageInsets
-                titlePositionAdjustment:(UIOffset)titlePositionAdjustment;
-
-+ (instancetype)tabBarControllerWithViewControllers:(NSArray<UIViewController *> *)viewControllers
-                              tabBarItemsAttributes:(NSArray<NSDictionary *> *)tabBarItemsAttributes
-                                        imageInsets:(UIEdgeInsets)imageInsets
-                            titlePositionAdjustment:(UIOffset)titlePositionAdjustment;
-
-- (instancetype)initWithViewControllers:(NSArray<UIViewController *> *)viewControllers
-                  tabBarItemsAttributes:(NSArray<NSDictionary *> *)tabBarItemsAttributes
-                            imageInsets:(UIEdgeInsets)imageInsets
-                titlePositionAdjustment:(UIOffset)titlePositionAdjustment
-                                context:(NSString *)context;
-
-+ (instancetype)tabBarControllerWithViewControllers:(NSArray<UIViewController *> *)viewControllers
-                              tabBarItemsAttributes:(NSArray<NSDictionary *> *)tabBarItemsAttributes
-                                        imageInsets:(UIEdgeInsets)imageInsets
-                            titlePositionAdjustment:(UIOffset)titlePositionAdjustment
-                                            context:(NSString *)context;
-
-
-- (void)updateSelectionStatusIfNeededForTabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController;
-
-- (void)hideTabBadgeBackgroundSeparator;
-
-- (void)setTintColor:(UIColor *)tintColor;
-
-/*!
- * Judge if there is plus button.
- */
-+ (BOOL)havePlusButton;
-
-/*!
- * @attention Include plusButton if exists.
- */
-+ (NSUInteger)allItemsInTabBarCount;
-
-- (id<UIApplicationDelegate>)appDelegate;
-
-- (UIWindow *)rootWindow;
-
-@end
-
-@interface NSObject (CYLTabBarControllerReferenceExtension)
-
-/*!
- * If `self` is kind of `UIViewController`, this method will return the nearest ancestor in the view controller hierarchy that is a tab bar controller. If `self` is not kind of `UIViewController`, it will return the `rootViewController` of the `rootWindow` as long as you have set the `CYLTabBarController` as the  `rootViewController`. Otherwise return nil. (read-only)
- */
-@property (nonatomic, setter=cyl_setTabBarController:) CYLTabBarController *cyl_tabBarController;
-
-@end
-
-FOUNDATION_EXTERN NSString *const CYLTabBarItemWidthDidChangeNotification;
-

+ 0 - 548
RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/CYLTabBarController.m

@@ -1,548 +0,0 @@
-//
-//  CYLTabBarController.m
-//  CYLTabBarController
-//
-//  v1.16.0 Created by 微博@iOS程序犭袁 ( http://weibo.com/luohanchenyilong/ ) on 10/20/15.
-//  Copyright © 2018 https://github.com/ChenYilong . All rights reserved.
-//
-
-#import "CYLTabBarController.h"
-#import "CYLTabBar.h"
-#import <objc/runtime.h>
-#import "UIViewController+CYLTabBarControllerExtention.h"
-
-NSString *const CYLTabBarItemTitle = @"CYLTabBarItemTitle";
-NSString *const CYLTabBarItemImage = @"CYLTabBarItemImage";
-NSString *const CYLTabBarItemSelectedImage = @"CYLTabBarItemSelectedImage";
-NSString *const CYLTabBarItemImageInsets = @"CYLTabBarItemImageInsets";
-NSString *const CYLTabBarItemTitlePositionAdjustment = @"CYLTabBarItemTitlePositionAdjustment";
-
-NSUInteger CYLTabbarItemsCount = 0;
-NSUInteger CYLPlusButtonIndex = 0;
-CGFloat CYLTabBarItemWidth = 0.0f;
-CGFloat CYLTabBarHeight = 0.0f;
-
-NSString *const CYLTabBarItemWidthDidChangeNotification = @"CYLTabBarItemWidthDidChangeNotification";
-static void * const CYLTabImageViewDefaultOffsetContext = (void*)&CYLTabImageViewDefaultOffsetContext;
-
-@interface CYLTabBarController () <UITabBarControllerDelegate>
-
-@property (nonatomic, assign, getter=isObservingTabImageViewDefaultOffset) BOOL observingTabImageViewDefaultOffset;
-
-@end
-@implementation CYLTabBarController
-
-@synthesize viewControllers = _viewControllers;
-
-#pragma mark -
-#pragma mark - Life Cycle
-
-- (void)viewDidLoad {
-    [super viewDidLoad];
-    if (CYL_IS_IPHONE_X) {
-        self.tabBarHeight = 83;
-    }
-    // 处理tabBar,使用自定义 tabBar 添加 发布按钮
-    [self setUpTabBar];
-    // KVO注册监听
-    if (!self.isObservingTabImageViewDefaultOffset) {
-        [self.tabBar addObserver:self forKeyPath:@"tabImageViewDefaultOffset" options:NSKeyValueObservingOptionNew context:CYLTabImageViewDefaultOffsetContext];
-        self.observingTabImageViewDefaultOffset = YES;
-    }
-}
-
-- (void)setSelectedIndex:(NSUInteger)selectedIndex {
-    [super setSelectedIndex:selectedIndex];
-    [self updateSelectionStatusIfNeededForTabBarController:nil shouldSelectViewController:nil];
-}
-
-- (void)setViewDidLayoutSubViewsBlock:(CYLViewDidLayoutSubViewsBlock)viewDidLayoutSubviewsBlock {
-    _viewDidLayoutSubviewsBlock = viewDidLayoutSubviewsBlock;
-}
-
-- (void)viewDidLayoutSubviews {
-    CGFloat deviceVersion = [[[UIDevice currentDevice] systemVersion] floatValue];
-    if (deviceVersion >= 10 && deviceVersion < 10.2) {
-        [self.tabBar layoutSubviews];//Fix issue #93
-    }
-    UITabBar *tabBar =  self.tabBar;
-    for (UIControl *control in tabBar.subviews) {
-        if ([control isKindOfClass:[UIControl class]]) {
-            SEL actin = @selector(didSelectControl:);
-            [control addTarget:self action:actin forControlEvents:UIControlEventTouchUpInside];
-        }
-    }
-    !self.viewDidLayoutSubviewsBlock ?: self.viewDidLayoutSubviewsBlock(self);
-}
-
-- (void)viewWillLayoutSubviews {
-    if (!(self.tabBarHeight > 0)) {
-        return;
-    }
-    self.tabBar.frame = ({
-        CGRect frame = self.tabBar.frame;
-        CGFloat tabBarHeight = self.tabBarHeight;
-        frame.size.height = tabBarHeight;
-        frame.origin.y = self.view.frame.size.height - tabBarHeight;
-        frame;
-    });
-}
-
-- (void)setTabBarHeight:(CGFloat)tabBarHeight {
-    _tabBarHeight = tabBarHeight;
-    CYLTabBarHeight = tabBarHeight;
-}
-
-- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
-    UIViewController *controller = self.selectedViewController;
-    if ([controller isKindOfClass:[UINavigationController class]]) {
-        UINavigationController *navigationController = (UINavigationController *)controller;
-        return navigationController.topViewController.supportedInterfaceOrientations;
-    } else {
-        return controller.supportedInterfaceOrientations;
-    }
-}
-
-- (void)dealloc {
-    UIButton<CYLPlusButtonSubclassing> *plusButton = CYLExternPlusButton;
-    if (plusButton.superview && (plusButton.superview == self.tabBar)) {
-        plusButton.selected = NO;
-        [plusButton removeFromSuperview];
-    }
-    BOOL isAdded = [self isPlusViewControllerAdded:_viewControllers];
-    BOOL hasPlusChildViewController = [self hasPlusChildViewController] && isAdded;
-    if (isAdded && hasPlusChildViewController && CYLPlusChildViewController.cyl_plusViewControllerEverAdded == YES) {
-        [CYLPlusChildViewController cyl_setPlusViewControllerEverAdded:NO];
-    }
-    // KVO反注册
-    if (self.isObservingTabImageViewDefaultOffset) {
-        [self.tabBar removeObserver:self forKeyPath:@"tabImageViewDefaultOffset"];
-    }
-}
-
-#pragma mark -
-#pragma mark - public Methods
-
-- (instancetype)initWithViewControllers:(NSArray<UIViewController *> *)viewControllers tabBarItemsAttributes:(NSArray<NSDictionary *> *)tabBarItemsAttributes {
-    return [self initWithViewControllers:viewControllers
-                   tabBarItemsAttributes:tabBarItemsAttributes
-                             imageInsets:UIEdgeInsetsZero
-                 titlePositionAdjustment:UIOffsetZero
-                                 context:nil];
-}
-
-- (instancetype)initWithViewControllers:(NSArray<UIViewController *> *)viewControllers
-                  tabBarItemsAttributes:(NSArray<NSDictionary *> *)tabBarItemsAttributes
-                            imageInsets:(UIEdgeInsets)imageInsets
-                titlePositionAdjustment:(UIOffset)titlePositionAdjustment {
-    
-    return [self initWithViewControllers:viewControllers
-                   tabBarItemsAttributes:tabBarItemsAttributes
-                             imageInsets:imageInsets
-                 titlePositionAdjustment:titlePositionAdjustment
-                                 context:nil];
-}
-
-- (instancetype)initWithViewControllers:(NSArray<UIViewController *> *)viewControllers
-                  tabBarItemsAttributes:(NSArray<NSDictionary *> *)tabBarItemsAttributes
-                            imageInsets:(UIEdgeInsets)imageInsets
-                titlePositionAdjustment:(UIOffset)titlePositionAdjustment
-                                context:(NSString *)context {
-    if (self = [super init]) {
-        _imageInsets = imageInsets;
-        _titlePositionAdjustment = titlePositionAdjustment;
-        _tabBarItemsAttributes = tabBarItemsAttributes;
-        self.context = context;
-        self.viewControllers = viewControllers;
-        if ([self hasPlusChildViewController]) {
-            self.delegate = self;
-        }
-    }
-    return self;
-}
-
-- (void)setContext:(NSString *)context {
-    if (context && context.length > 0) {
-        _context = [context copy];
-    } else {
-        _context = NSStringFromClass([CYLTabBarController class]);
-    }
-    [self.tabBar setValue:_context forKey:@"context"];
-}
-
-+ (instancetype)tabBarControllerWithViewControllers:(NSArray<UIViewController *> *)viewControllers
-                              tabBarItemsAttributes:(NSArray<NSDictionary *> *)tabBarItemsAttributes
-                                        imageInsets:(UIEdgeInsets)imageInsets
-                            titlePositionAdjustment:(UIOffset)titlePositionAdjustment
-                                            context:(NSString *)context {
-    return [[self alloc] initWithViewControllers:viewControllers
-                           tabBarItemsAttributes:tabBarItemsAttributes
-                                     imageInsets:imageInsets
-                         titlePositionAdjustment:titlePositionAdjustment
-            context:context];
-}
-
-+ (instancetype)tabBarControllerWithViewControllers:(NSArray<UIViewController *> *)viewControllers
-                              tabBarItemsAttributes:(NSArray<NSDictionary *> *)tabBarItemsAttributes
-                                        imageInsets:(UIEdgeInsets)imageInsets
-                            titlePositionAdjustment:(UIOffset)titlePositionAdjustment {
-    return [[self alloc] initWithViewControllers:viewControllers
-                           tabBarItemsAttributes:tabBarItemsAttributes
-                                     imageInsets:imageInsets
-                         titlePositionAdjustment:titlePositionAdjustment
-                                         context:nil];
-}
-
-+ (instancetype)tabBarControllerWithViewControllers:(NSArray<UIViewController *> *)viewControllers tabBarItemsAttributes:(NSArray<NSDictionary *> *)tabBarItemsAttributes {
-    return [self tabBarControllerWithViewControllers:viewControllers
-                               tabBarItemsAttributes:tabBarItemsAttributes
-                                         imageInsets:UIEdgeInsetsZero
-                             titlePositionAdjustment:UIOffsetZero];
-}
-
-- (void)hideTabBadgeBackgroundSeparator {
-    [self.tabBar layoutIfNeeded];
-    self.tabBar.cyl_tabBadgeBackgroundSeparator.alpha = 0;
-    self.tabBar.barStyle = UIBarStyleBlack;
-}
-
-+ (BOOL)havePlusButton {
-    if (CYLExternPlusButton) {
-        return YES;
-    }
-    return NO;
-}
-
-+ (NSUInteger)allItemsInTabBarCount {
-    NSUInteger allItemsInTabBar = CYLTabbarItemsCount;
-    if ([CYLTabBarController havePlusButton]) {
-        allItemsInTabBar += 1;
-    }
-    return allItemsInTabBar;
-}
-
-- (id<UIApplicationDelegate>)appDelegate {
-    return [UIApplication sharedApplication].delegate;
-}
-
-- (UIWindow *)rootWindow {
-    UIWindow *result = nil;
-    
-    do {
-        if ([self.appDelegate respondsToSelector:@selector(window)]) {
-            result = [self.appDelegate window];
-        }
-        
-        if (result) {
-            break;
-        }
-    } while (NO);
-    
-    return result;
-}
-
-#pragma mark -
-#pragma mark - Private Methods
-
-/**
- *  利用 KVC 把系统的 tabBar 类型改为自定义类型。
- */
-- (void)setUpTabBar {
-    CYLTabBar *tabBar = [[CYLTabBar alloc] init];
-    [self setValue:tabBar forKey:@"tabBar"];
-    [tabBar cyl_setTabBarController:self];
-}
-
-- (BOOL)hasPlusChildViewController {
-    NSString *context = CYLPlusChildViewController.cyl_context;
-    BOOL isSameContext = [context isEqualToString:self.context] && (context && self.context); // || (!context && !self.context);
-    BOOL hasPlusChildViewController = CYLPlusChildViewController && isSameContext;//&& !isAdded;
-    return hasPlusChildViewController;
-}
-
-- (BOOL)isPlusViewControllerAdded:(NSArray *)viewControllers {
-    if ([_viewControllers containsObject:CYLPlusChildViewController]) {
-        return YES;
-    }
-    __block BOOL isAdded = NO;
-    [_viewControllers enumerateObjectsUsingBlock:^(UIViewController * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
-        if ([self isEqualViewController:obj compairedViewController:CYLPlusChildViewController]) {
-            isAdded = YES;
-            *stop = YES;
-            return;
-        }
-    }];
-    return isAdded;;
-}
-
-- (void)setViewControllers:(NSArray *)viewControllers {
-    if (_viewControllers && _viewControllers.count) {
-        for (UIViewController *viewController in _viewControllers) {
-            [viewController willMoveToParentViewController:nil];
-            [viewController.view removeFromSuperview];
-            [viewController removeFromParentViewController];
-        }
-        BOOL isAdded = [self isPlusViewControllerAdded:_viewControllers];
-        BOOL hasPlusChildViewController = [self hasPlusChildViewController] && !isAdded;
-        if (hasPlusChildViewController) {
-            [CYLPlusChildViewController willMoveToParentViewController:nil];
-            [CYLPlusChildViewController.view removeFromSuperview];
-            [CYLPlusChildViewController removeFromParentViewController];
-        }
-    }
-    
-    if (viewControllers && [viewControllers isKindOfClass:[NSArray class]]) {
-        if ((!_tabBarItemsAttributes) || (_tabBarItemsAttributes.count != viewControllers.count)) {
-            [NSException raise:NSStringFromClass([CYLTabBarController class]) format:@"The count of CYLTabBarControllers is not equal to the count of tabBarItemsAttributes.【Chinese】设置_tabBarItemsAttributes属性时,请确保元素个数与控制器的个数相同,并在方法`-setViewControllers:`之前设置"];
-        }
-        //TODO:
-        BOOL isAdded = [self isPlusViewControllerAdded:_viewControllers];
-        BOOL addedFlag = [CYLPlusChildViewController cyl_plusViewControllerEverAdded];
-        BOOL hasPlusChildViewController = [self hasPlusChildViewController] && !isAdded && !addedFlag;
-        if (hasPlusChildViewController) {
-            NSMutableArray *viewControllersWithPlusButton = [NSMutableArray arrayWithArray:viewControllers];
-            [viewControllersWithPlusButton insertObject:CYLPlusChildViewController atIndex:CYLPlusButtonIndex];
-            _viewControllers = [viewControllersWithPlusButton copy];
-            [CYLPlusChildViewController cyl_setPlusViewControllerEverAdded:YES];
-        } else {
-            _viewControllers = [viewControllers copy];
-        }
-        CYLTabbarItemsCount = [viewControllers count];
-        CYLTabBarItemWidth = ([UIScreen mainScreen].bounds.size.width - CYLPlusButtonWidth) / (CYLTabbarItemsCount);
-        NSUInteger idx = 0;
-        for (UIViewController *viewController in _viewControllers) {
-            NSString *title = nil;
-            id normalImageInfo = nil;
-            id selectedImageInfo = nil;
-            UIOffset titlePositionAdjustment = UIOffsetZero;
-            UIEdgeInsets imageInsets = UIEdgeInsetsZero;
-            if (viewController != CYLPlusChildViewController) {
-                title = _tabBarItemsAttributes[idx][CYLTabBarItemTitle];
-                normalImageInfo = _tabBarItemsAttributes[idx][CYLTabBarItemImage];
-                selectedImageInfo = _tabBarItemsAttributes[idx][CYLTabBarItemSelectedImage];
-                
-                NSValue *offsetValue = _tabBarItemsAttributes[idx][CYLTabBarItemTitlePositionAdjustment];
-                UIOffset offset = [offsetValue UIOffsetValue];
-                titlePositionAdjustment = offset;
-                
-                NSValue *insetsValue = _tabBarItemsAttributes[idx][CYLTabBarItemImageInsets];
-                UIEdgeInsets insets = [insetsValue UIEdgeInsetsValue];
-                imageInsets = insets;
-            } else {
-                idx--;
-            }
-            
-            [self addOneChildViewController:viewController
-                                  WithTitle:title
-                            normalImageInfo:normalImageInfo
-                          selectedImageInfo:selectedImageInfo
-                    titlePositionAdjustment:titlePositionAdjustment
-                                imageInsets:imageInsets
-             
-             ];
-            [[viewController cyl_getViewControllerInsteadOfNavigationController] cyl_setTabBarController:self];
-            idx++;
-        }
-    } else {
-        for (UIViewController *viewController in _viewControllers) {
-            [[viewController cyl_getViewControllerInsteadOfNavigationController] cyl_setTabBarController:nil];
-        }
-        _viewControllers = nil;
-    }
-}
-
-- (void)setTintColor:(UIColor *)tintColor {
-    if ([[[UIDevice currentDevice] systemVersion] floatValue] < 8.f) {
-        [self.tabBar setSelectedImageTintColor:tintColor];
-    }
-    self.tabBar.tintColor = tintColor;
-}
-
-/**
- *  添加一个子控制器
- *
- *  @param viewController    控制器
- *  @param title             标题
- *  @param normalImageInfo   图片
- *  @param selectedImageInfo 选中图片
- */
-- (void)addOneChildViewController:(UIViewController *)viewController
-                        WithTitle:(NSString *)title
-                  normalImageInfo:(id)normalImageInfo
-                selectedImageInfo:(id)selectedImageInfo
-          titlePositionAdjustment:(UIOffset)titlePositionAdjustment
-                      imageInsets:(UIEdgeInsets)imageInsets {
-    viewController.tabBarItem.title = title;
-    if (normalImageInfo) {
-        UIImage *normalImage = [self getImageFromImageInfo:normalImageInfo];
-        viewController.tabBarItem.image = normalImage;
-    }
-    if (selectedImageInfo) {
-        UIImage *selectedImage = [self getImageFromImageInfo:selectedImageInfo];
-        viewController.tabBarItem.selectedImage = selectedImage;
-    } 
-    if (self.shouldCustomizeImageInsets || ([self isNOTEmptyForImageInsets:imageInsets])) {
-        UIEdgeInsets insets = (([self isNOTEmptyForImageInsets:imageInsets]) ? imageInsets : self.imageInsets);
-        viewController.tabBarItem.imageInsets = insets;
-    }
-    if (self.shouldCustomizeTitlePositionAdjustment || [self isNOTEmptyForTitlePositionAdjustment:titlePositionAdjustment]) {
-        UIOffset offset = (([self isNOTEmptyForTitlePositionAdjustment:titlePositionAdjustment]) ? titlePositionAdjustment : self.titlePositionAdjustment);
-        viewController.tabBarItem.titlePositionAdjustment = offset;
-    }
-    [self addChildViewController:viewController];
-}
-
-- (UIImage *)getImageFromImageInfo:(id)imageInfo {
-    UIImage *image = nil;
-    if ([imageInfo isKindOfClass:[NSString class]]) {
-        image = [UIImage imageNamed:imageInfo];
-        image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
-    } else if ([imageInfo isKindOfClass:[UIImage class]]) {
-        image = (UIImage *)imageInfo;
-    }
-    return image;
-}
-
-- (BOOL)shouldCustomizeImageInsets {
-    BOOL shouldCustomizeImageInsets = [self isNOTEmptyForImageInsets:self.imageInsets];
-    return shouldCustomizeImageInsets;
-}
-
-- (BOOL)shouldCustomizeTitlePositionAdjustment {
-    BOOL shouldCustomizeTitlePositionAdjustment = [self isNOTEmptyForTitlePositionAdjustment:self.titlePositionAdjustment];
-    return shouldCustomizeTitlePositionAdjustment;
-}
-
-- (BOOL)isNOTEmptyForImageInsets:(UIEdgeInsets)imageInsets {
-    if (imageInsets.top != 0 || imageInsets.left != 0 || imageInsets.bottom != 0 || imageInsets.right != 0) {
-        return YES;
-    }
-    return NO;
-}
-
-- (BOOL)isNOTEmptyForTitlePositionAdjustment:(UIOffset)titlePositionAdjustment {
-    if (titlePositionAdjustment.horizontal != 0 || titlePositionAdjustment.vertical != 0) {
-        return YES;
-    }
-    return NO;
-}
-
-#pragma mark -
-#pragma mark - KVO Method
-
-// KVO监听执行
-- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context {
-    if(context != CYLTabImageViewDefaultOffsetContext) {
-        [super observeValueForKeyPath:keyPath ofObject:object change:change context:context];
-        return;
-    }
-    if(context == CYLTabImageViewDefaultOffsetContext) {
-        CGFloat tabImageViewDefaultOffset = [change[NSKeyValueChangeNewKey] floatValue];
-        [self offsetTabBarTabImageViewToFit:tabImageViewDefaultOffset];
-    }
-}
-
-- (void)offsetTabBarTabImageViewToFit:(CGFloat)tabImageViewDefaultOffset {
-    if (self.shouldCustomizeImageInsets) {
-        return;
-    }
-    NSArray<UITabBarItem *> *tabBarItems = self.tabBar.items;
-    [tabBarItems enumerateObjectsUsingBlock:^(UITabBarItem * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
-        UIEdgeInsets imageInset = UIEdgeInsetsMake(tabImageViewDefaultOffset, 0, -tabImageViewDefaultOffset, 0);
-        obj.imageInsets = imageInset;
-        if (!self.shouldCustomizeTitlePositionAdjustment) {
-            obj.titlePositionAdjustment = UIOffsetMake(0, MAXFLOAT);
-        }
-    }];
-}
-
-#pragma mark - delegate
-
-- (void)updateSelectionStatusIfNeededForTabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController {
-    UIButton *plusButton = CYLExternPlusButton;
-    if (!viewController) {
-        viewController = self.selectedViewController;
-    }
-     BOOL isCurrentViewController = [self isEqualViewController:viewController compairedViewController:CYLPlusChildViewController];
-    BOOL shouldConfigureSelectionStatus = (!isCurrentViewController);
-    if (shouldConfigureSelectionStatus) {
-        plusButton.selected = NO;
-    } else {
-        plusButton.selected = YES;
-    }
-}
-
-- (BOOL)isEqualViewController:(UIViewController *)viewController compairedViewController:(UIViewController *)compairedViewController {
-    if ([viewController isEqual:compairedViewController]) {
-        return YES;
-    }
-    if ([[viewController cyl_getViewControllerInsteadOfNavigationController] isEqual:[compairedViewController cyl_getViewControllerInsteadOfNavigationController]]) {
-        return YES;
-    }
-    return NO;
-}
-
-- (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController {
-    [self updateSelectionStatusIfNeededForTabBarController:tabBarController shouldSelectViewController:viewController];
-    return YES;
-}
-
-- (void)tabBarController:(UITabBarController *)tabBarController didSelectControl:(UIControl *)control {
-}
-
-- (void)didSelectControl:(UIControl *)control {
-    SEL actin = @selector(tabBarController:didSelectControl:);
-    if ([self.delegate respondsToSelector:actin]) {
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
-        [self.delegate performSelector:actin withObject:self withObject:control ?: self.selectedViewController.tabBarItem.cyl_tabButton];
-#pragma clang diagnostic pop
-    }
-}
-
-- (id)rootViewController {
-    CYLTabBarController *tabBarController = nil;
-    id<UIApplicationDelegate> delegate = ((id<UIApplicationDelegate>)[[UIApplication sharedApplication] delegate]);
-    UIWindow *window = delegate.window;
-    UIViewController *rootViewController = [window.rootViewController cyl_getViewControllerInsteadOfNavigationController];;
-    if ([rootViewController isKindOfClass:[CYLTabBarController class]]) {
-        tabBarController = (CYLTabBarController *)rootViewController;
-    }
-    return tabBarController;
-}
-
-@end
-
-@implementation NSObject (CYLTabBarControllerReferenceExtension)
-
-- (void)cyl_setTabBarController:(CYLTabBarController *)tabBarController {
-    //OBJC_ASSOCIATION_ASSIGN instead of OBJC_ASSOCIATION_RETAIN_NONATOMIC to avoid retain circle
-    id __weak weakObject = tabBarController;
-    id (^block)() = ^{ return weakObject; };
-    objc_setAssociatedObject(self, @selector(cyl_tabBarController),
-                             block, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
-}
-
-- (CYLTabBarController *)cyl_tabBarController {
-    CYLTabBarController *tabBarController;
-    id (^block)() = objc_getAssociatedObject(self, @selector(cyl_tabBarController));
-    tabBarController = (block ? block() : nil);
-    if (tabBarController && [tabBarController isKindOfClass:[CYLTabBarController class]]) {
-        return tabBarController;
-    }
-    if ([self isKindOfClass:[UIViewController class]] && [(UIViewController *)self parentViewController]) {
-        tabBarController = [[(UIViewController *)self parentViewController] cyl_tabBarController];
-        if ([tabBarController isKindOfClass:[CYLTabBarController class]]) {
-            return tabBarController;
-        }
-    }
-    id<UIApplicationDelegate> delegate = ((id<UIApplicationDelegate>)[[UIApplication sharedApplication] delegate]);
-    UIWindow *window = delegate.window;
-    UIViewController *rootViewController = [window.rootViewController cyl_getViewControllerInsteadOfNavigationController];;
-    if ([rootViewController isKindOfClass:[CYLTabBarController class]]) {
-        tabBarController = (CYLTabBarController *)rootViewController;
-    }
-    return tabBarController;
-}
-
-@end

+ 0 - 27
RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/UIControl+CYLTabBarControllerExtention.h

@@ -1,27 +0,0 @@
-//
-//  CYLTabBarController.m
-//  CYLTabBarController
-//
-//  v1.16.0 Created by 微博@iOS程序犭袁 ( http://weibo.com/luohanchenyilong/ ) on 10/20/15.
-//  Copyright © 2018 https://github.com/ChenYilong . All rights reserved.
-//
-
-#import <UIKit/UIKit.h>
-
-@interface UIControl (CYLTabBarControllerExtention)
-
-- (UIView *)cyl_tabBadgeView;
-- (UIImageView *)cyl_tabImageView;
-- (UILabel *)cyl_tabLabel;
-
-/*!
- * 调用该方法前已经添加了系统的角标,调用该方法后,系统的角标并未被移除,只是被隐藏,调用 `-cyl_removeTabBadgePoint` 后会重新展示。
- */
-- (void)cyl_showTabBadgePoint;
-- (void)cyl_removeTabBadgePoint;
-- (BOOL)cyl_isShowTabBadgePoint;
-
-@property (nonatomic, strong, setter=cyl_setTabBadgePointView:, getter=cyl_tabBadgePointView) UIView *cyl_tabBadgePointView;
-@property (nonatomic, assign, setter=cyl_setTabBadgePointViewOffset:, getter=cyl_tabBadgePointViewOffset) UIOffset cyl_tabBadgePointViewOffset;
-
-@end

+ 0 - 133
RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/UIControl+CYLTabBarControllerExtention.m

@@ -1,133 +0,0 @@
-//
-//  CYLTabBarController.m
-//  CYLTabBarController
-//
-//  v1.16.0 Created by 微博@iOS程序犭袁 ( http://weibo.com/luohanchenyilong/ ) on 10/20/15.
-//  Copyright © 2018 https://github.com/ChenYilong . All rights reserved.
-//
-
-#import "UIControl+CYLTabBarControllerExtention.h"
-#import <objc/runtime.h>
-#import "UIView+CYLTabBarControllerExtention.h"
-#import "CYLConstants.h"
-
-@implementation UIControl (CYLTabBarControllerExtention)
-
-- (void)cyl_showTabBadgePoint {
-    [self cyl_setShowTabBadgePointIfNeeded:YES];
-}
-
-- (void)cyl_removeTabBadgePoint {
-    [self cyl_setShowTabBadgePointIfNeeded:NO];
-}
-
-- (BOOL)cyl_isShowTabBadgePoint {
-    return !self.cyl_tabBadgePointView.hidden;
-}
-
-- (void)cyl_setShowTabBadgePointIfNeeded:(BOOL)showTabBadgePoint {
-    @try {
-        [self cyl_setShowTabBadgePoint:showTabBadgePoint];
-    } @catch (NSException *exception) {
-        NSLog(@"CYLPlusChildViewController do not support set TabBarItem red point");
-    }
-}
-
-- (void)cyl_setShowTabBadgePoint:(BOOL)showTabBadgePoint {
-    if (showTabBadgePoint && self.cyl_tabBadgePointView.superview == nil) {
-        [self addSubview:self.cyl_tabBadgePointView];
-        [self bringSubviewToFront:self.cyl_tabBadgePointView];
-        self.cyl_tabBadgePointView.layer.zPosition = MAXFLOAT;
-        // X constraint
-        [self addConstraint:
-         [NSLayoutConstraint constraintWithItem:self.cyl_tabBadgePointView
-                                      attribute:NSLayoutAttributeCenterX
-                                      relatedBy:0
-                                         toItem:self.cyl_tabImageView
-                                      attribute:NSLayoutAttributeRight
-                                     multiplier:1
-                                       constant:self.cyl_tabBadgePointViewOffset.horizontal]];
-        //Y constraint
-        [self addConstraint:
-         [NSLayoutConstraint constraintWithItem:self.cyl_tabBadgePointView
-                                      attribute:NSLayoutAttributeCenterY
-                                      relatedBy:0
-                                         toItem:self.cyl_tabImageView
-                                      attribute:NSLayoutAttributeTop
-                                     multiplier:1
-                                       constant:self.cyl_tabBadgePointViewOffset.vertical]];
-    }
-    self.cyl_tabBadgePointView.hidden = showTabBadgePoint == NO;
-    self.cyl_tabBadgeView.hidden = showTabBadgePoint == YES;
-}
-
-- (void)cyl_setTabBadgePointView:(UIView *)tabBadgePointView {
-    UIView *tempView = objc_getAssociatedObject(self, @selector(cyl_tabBadgePointView));
-    if (tempView) {
-        [tempView removeFromSuperview];
-    }
-    if (tabBadgePointView.superview) {
-        [tabBadgePointView removeFromSuperview];
-    }
-    
-    tabBadgePointView.hidden = YES;
-    objc_setAssociatedObject(self, @selector(cyl_tabBadgePointView), tabBadgePointView, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
-}
-
-- (UIView *)cyl_tabBadgePointView {
-    UIView *tabBadgePointView = objc_getAssociatedObject(self, @selector(cyl_tabBadgePointView));
-    
-    if (tabBadgePointView == nil) {
-        tabBadgePointView = self.cyl_defaultTabBadgePointView;
-        objc_setAssociatedObject(self, @selector(cyl_tabBadgePointView), tabBadgePointView, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
-    }
-    return tabBadgePointView;
-}
-
-- (void)cyl_setTabBadgePointViewOffset:(UIOffset)tabBadgePointViewOffset {
-    objc_setAssociatedObject(self, @selector(cyl_tabBadgePointViewOffset), [NSValue valueWithUIOffset:tabBadgePointViewOffset], OBJC_ASSOCIATION_RETAIN_NONATOMIC);
-}
-
-//offset如果都是正数,则往右下偏移
-- (UIOffset)cyl_tabBadgePointViewOffset {
-    id tabBadgePointViewOffsetObject = objc_getAssociatedObject(self, @selector(cyl_tabBadgePointViewOffset));
-    UIOffset tabBadgePointViewOffset = [tabBadgePointViewOffsetObject UIOffsetValue];
-    return tabBadgePointViewOffset;
-}
-
-- (UIView *)cyl_tabBadgeView {
-    for (UIView *subview in self.subviews) {
-        if ([subview cyl_isTabBadgeView]) {
-            return (UIView *)subview;
-        }
-    }
-    return nil;
-}
-
-- (UIImageView *)cyl_tabImageView {
-    for (UIImageView *subview in self.subviews) {
-        if ([subview cyl_isTabImageView]) {
-            return (UIImageView *)subview;
-        }
-    }
-    return nil;
-}
-
-- (UILabel *)cyl_tabLabel {
-    for (UILabel *subview in self.subviews) {
-        if ([subview cyl_isTabLabel]) {
-            return (UILabel *)subview;
-        }
-    }
-    return nil;
-}
-
-#pragma mark - private method
-
-- (UIView *)cyl_defaultTabBadgePointView {
-    UIView *defaultRedTabBadgePointView = [UIView cyl_tabBadgePointViewWithClolor:[UIColor redColor] radius:4.5];
-    return defaultRedTabBadgePointView;
-}
-
-@end
-

+ 0 - 15
RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/UITabBarItem+CYLTabBarControllerExtention.h

@@ -1,15 +0,0 @@
-//
-//  CYLTabBarController.m
-//  CYLTabBarController
-//
-//  v1.16.0 Created by 微博@iOS程序犭袁 ( http://weibo.com/luohanchenyilong/ ) on 10/20/15.
-//  Copyright © 2018 https://github.com/ChenYilong . All rights reserved.
-//
-
-#import <UIKit/UIKit.h>
-
-@interface UITabBarItem (CYLTabBarControllerExtention)
-
-@property (nonatomic, readonly) UIControl *cyl_tabButton;
-
-@end

+ 0 - 57
RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/UITabBarItem+CYLTabBarControllerExtention.m

@@ -1,57 +0,0 @@
-//
-//  CYLTabBarController.m
-//  CYLTabBarController
-//
-//  v1.16.0 Created by 微博@iOS程序犭袁 ( http://weibo.com/luohanchenyilong/ ) on 10/20/15.
-//  Copyright © 2018 https://github.com/ChenYilong . All rights reserved.
-//
-
-#import "UITabBarItem+CYLTabBarControllerExtention.h"
-#import <objc/runtime.h>
-#import "UIControl+CYLTabBarControllerExtention.h"
-
-@implementation UITabBarItem (CYLTabBarControllerExtention)
-
-+ (void)load {
-    [self cyl_swizzleSetBadgeValue];
-}
-
-+ (void)cyl_swizzleSetBadgeValue {
-    static dispatch_once_t onceToken;
-    dispatch_once(&onceToken, ^{
-        cyl_ClassMethodSwizzle([self class], @selector(setBadgeValue:), @selector(cyl_setBadgeValue:));
-    });
-}
-
-- (void)cyl_setBadgeValue:(NSString *)badgeValue {
-    [self.cyl_tabButton cyl_removeTabBadgePoint];
-    [self cyl_setBadgeValue:badgeValue];
-}
-
-- (UIControl *)cyl_tabButton {
-    UIControl *control = [self valueForKey:@"view"];
-    return control;
-}
-
-#pragma mark - private method
-
-BOOL cyl_ClassMethodSwizzle(Class aClass, SEL originalSelector, SEL swizzleSelector) {
-    Method originalMethod = class_getInstanceMethod(aClass, originalSelector);
-    Method swizzleMethod = class_getInstanceMethod(aClass, swizzleSelector);
-    BOOL didAddMethod =
-    class_addMethod(aClass,
-                    originalSelector,
-                    method_getImplementation(swizzleMethod),
-                    method_getTypeEncoding(swizzleMethod));
-    if (didAddMethod) {
-        class_replaceMethod(aClass,
-                            swizzleSelector,
-                            method_getImplementation(originalMethod),
-                            method_getTypeEncoding(originalMethod));
-    } else {
-        method_exchangeImplementations(originalMethod, swizzleMethod);
-    }
-    return YES;
-}
-
-@end

+ 0 - 25
RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/UIView+CYLTabBarControllerExtention.h

@@ -1,25 +0,0 @@
-//
-//  CYLTabBarController.m
-//  CYLTabBarController
-//
-//  v1.16.0 Created by 微博@iOS程序犭袁 ( http://weibo.com/luohanchenyilong/ ) on 10/20/15.
-//  Copyright © 2018 https://github.com/ChenYilong . All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-#import <UIKit/UIKit.h>
-
-@interface UIView (CYLTabBarControllerExtention)
-
-- (BOOL)cyl_isPlusButton;
-- (BOOL)cyl_isTabButton;
-- (BOOL)cyl_isTabImageView;
-- (BOOL)cyl_isTabLabel;
-- (BOOL)cyl_isTabBadgeView;
-- (BOOL)cyl_isTabBackgroundView;
-- (UIView *)cyl_tabBadgeBackgroundView;
-- (UIView *)cyl_tabBadgeBackgroundSeparator;
-
-+ (UIView *)cyl_tabBadgePointViewWithClolor:(UIColor *)color radius:(CGFloat)radius;
-
-@end

+ 0 - 142
RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/UIView+CYLTabBarControllerExtention.m

@@ -1,142 +0,0 @@
-//
-//  CYLTabBarController.m
-//  CYLTabBarController
-//
-//  v1.16.0 Created by 微博@iOS程序犭袁 ( http://weibo.com/luohanchenyilong/ ) on 10/20/15.
-//  Copyright © 2018 https://github.com/ChenYilong . All rights reserved.
-//
-
-#import <UIKit/UIKit.h>
-#import "UIView+CYLTabBarControllerExtention.h"
-#import "CYLPlusButton.h"
-
-@implementation UIView (CYLTabBarControllerExtention)
-
-- (BOOL)cyl_isPlusButton {
-    return [self isKindOfClass:[CYLExternPlusButton class]];
-}
-
-- (BOOL)cyl_isTabButton {
-    BOOL isKindOfButton = [self cyl_isKindOfClass:[UIControl class]];
-    return isKindOfButton;
-}
-
-- (BOOL)cyl_isTabImageView {
-    BOOL isKindOfImageView = [self cyl_isKindOfClass:[UIImageView class]];
-    if (!isKindOfImageView) {
-        return NO;
-    }
-    NSString *subString = [NSString stringWithFormat:@"%@cat%@ew", @"Indi" , @"orVi"];
-    BOOL isBackgroundImage = [self cyl_classStringHasSuffix:subString];
-    BOOL isTabImageView = !isBackgroundImage;
-    return isTabImageView;
-}
-
-- (BOOL)cyl_isTabLabel {
-    BOOL isKindOfLabel = [self cyl_isKindOfClass:[UILabel class]];
-    return isKindOfLabel;
-}
-
-- (BOOL)cyl_isTabBadgeView {
-    BOOL isKindOfClass = [self isKindOfClass:[UIView class]];
-    BOOL isClass = [self isMemberOfClass:[UIView class]];
-    BOOL isKind = isKindOfClass && !isClass;
-    if (!isKind) {
-        return NO;
-    }
-    NSString *tabBarClassString = [NSString stringWithFormat:@"%@IB%@", @"_U" , @"adg"];
-    BOOL isTabBadgeView = [self cyl_classStringHasPrefix:tabBarClassString];;
-    return isTabBadgeView;
-}
-
-- (BOOL)cyl_isTabBackgroundView {
-    BOOL isKindOfClass = [self isKindOfClass:[UIView class]];
-    BOOL isClass = [self isMemberOfClass:[UIView class]];
-    BOOL isKind = isKindOfClass && !isClass;
-    if (!isKind) {
-        return NO;
-    }
-    NSString *tabBackgroundViewString = [NSString stringWithFormat:@"%@IB%@", @"_U" , @"arBac"];
-    BOOL isTabBackgroundView = [self cyl_classStringHasPrefix:tabBackgroundViewString] && [self cyl_classStringHasSuffix:@"nd"];
-    return isTabBackgroundView;
-}
-
-- (UIView *)cyl_tabBadgeBackgroundView {
-    for (UIImageView *subview in self.subviews) {
-        if ([subview cyl_isTabBackgroundView]) {
-            return (UIImageView *)subview;
-        }
-    }
-    return nil;
-}
-
-- (UIView *)cyl_tabBadgeBackgroundSeparator {
-    UIView *subview = [self cyl_tabBadgeBackgroundView];
-    if (!subview) {
-        return nil;
-    }
-    NSArray<__kindof UIView *> *backgroundSubviews = subview.subviews;
-    if (backgroundSubviews.count > 1) {
-        for (UIView *tabBadgeBackgroundSeparator in backgroundSubviews) {
-            if (CGRectGetHeight(tabBadgeBackgroundSeparator.bounds) <= 1.0 ) {
-                return tabBadgeBackgroundSeparator;
-            }
-        }
-    }
-    return nil;
-}
-
-- (BOOL)cyl_isKindOfClass:(Class)class {
-    BOOL isKindOfClass = [self isKindOfClass:class];
-    BOOL isClass = [self isMemberOfClass:class];
-    BOOL isKind = isKindOfClass && !isClass;
-    if (!isKind) {
-        return NO;
-    }
-    BOOL isTabBarClass = [self cyl_isTabBarClass];
-    return isTabBarClass;
-}
-
-- (BOOL)cyl_isTabBarClass {
-    NSString *tabBarClassString = [NSString stringWithFormat:@"U%@a%@ar", @"IT" , @"bB"];
-    BOOL isTabBarClass = [self cyl_classStringHasPrefix:tabBarClassString];
-    return isTabBarClass;
-}
-
-- (BOOL)cyl_classStringHasPrefix:(NSString *)prefix {
-    NSString *classString = NSStringFromClass([self class]);
-    return [classString hasPrefix:prefix];
-}
-
-- (BOOL)cyl_classStringHasSuffix:(NSString *)suffix {
-    NSString *classString = NSStringFromClass([self class]);
-    return [classString hasSuffix:suffix];
-}
-
-+ (UIView *)cyl_tabBadgePointViewWithClolor:(UIColor *)color radius:(CGFloat)radius {
-    UIView *defaultTabBadgePointView = [[UIView alloc] init];
-    [defaultTabBadgePointView setTranslatesAutoresizingMaskIntoConstraints:NO];
-    defaultTabBadgePointView.backgroundColor = color;
-    defaultTabBadgePointView.layer.cornerRadius = radius;
-    defaultTabBadgePointView.layer.masksToBounds = YES;
-    defaultTabBadgePointView.hidden = YES;
-    // Width constraint
-    [defaultTabBadgePointView addConstraint:[NSLayoutConstraint constraintWithItem:defaultTabBadgePointView
-                                                                         attribute:NSLayoutAttributeWidth
-                                                                         relatedBy:NSLayoutRelationEqual
-                                                                            toItem:nil
-                                                                         attribute: NSLayoutAttributeNotAnAttribute
-                                                                        multiplier:1
-                                                                          constant:radius * 2]];
-    // Height constraint
-    [defaultTabBadgePointView addConstraint:[NSLayoutConstraint constraintWithItem:defaultTabBadgePointView
-                                                                         attribute:NSLayoutAttributeHeight
-                                                                         relatedBy:NSLayoutRelationEqual
-                                                                            toItem:nil
-                                                                         attribute: NSLayoutAttributeNotAnAttribute
-                                                                        multiplier:1
-                                                                          constant:radius * 2]];
-    return defaultTabBadgePointView;
-}
-
-@end

+ 0 - 123
RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/UIViewController+CYLTabBarControllerExtention.h

@@ -1,123 +0,0 @@
-//
-//  UIViewController+CYLTabBarControllerExtention.h
-//  CYLTabBarController
-//
-//  v1.16.0 Created by 微博@iOS程序犭袁 ( http://weibo.com/luohanchenyilong/ ) on 16/2/26.
-//  Copyright © 2018年 https://github.com/ChenYilong .All rights reserved.
-//
-
-#import <UIKit/UIKit.h>
-
-typedef void (^CYLPopSelectTabBarChildViewControllerCompletion)(__kindof UIViewController *selectedTabBarChildViewController);
-
-typedef void (^CYLPushOrPopCompletionHandler)(BOOL shouldPop,
-                                              __kindof UIViewController *viewControllerPopTo,
-                                              BOOL shouldPopSelectTabBarChildViewController,
-                                              NSUInteger index
-                                              );
-
-typedef void (^CYLPushOrPopCallback)(NSArray<__kindof UIViewController *> *viewControllers, CYLPushOrPopCompletionHandler completionHandler);
-
-@interface UIViewController (CYLTabBarControllerExtention)
-
-@property (nonatomic, strong, setter=cyl_setTabBadgePointView:, getter=cyl_tabBadgePointView) UIView *cyl_tabBadgePointView;
-
-@property (nonatomic, assign, setter=cyl_setTabBadgePointViewOffset:, getter=cyl_tabBadgePointViewOffset) UIOffset cyl_tabBadgePointViewOffset;
-
-@property (nonatomic, readonly, getter=cyl_isEmbedInTabBarController) BOOL cyl_embedInTabBarController;
-
-@property (nonatomic, readonly, getter=cyl_tabIndex) NSInteger cyl_tabIndex;
-
-@property (nonatomic, readonly) UIControl *cyl_tabButton;
-
-@property (nonatomic, copy, setter=cyl_setContext:, getter=cyl_context) NSString *cyl_context;
-
-@property (nonatomic, assign, setter=cyl_setPlusViewControllerEverAdded:, getter=cyl_plusViewControllerEverAdded) BOOL cyl_plusViewControllerEverAdded;
-
-/*!
- * @attention 
-   - 调用该方法前已经添加了系统的角标,调用该方法后,系统的角标并未被移除,只是被隐藏,调用 `-cyl_removeTabBadgePoint` 后会重新展示。
-   - 不支持 CYLPlusChildViewController 对应的 TabBarItem 角标设置,调用会被忽略。
- */
-- (void)cyl_showTabBadgePoint;
-
-- (void)cyl_removeTabBadgePoint;
-
-- (BOOL)cyl_isShowTabBadgePoint;
-
-/*!
- * Pop 到当前 `NavigationController` 的栈底,并改变 `TabBarController` 的 `selectedViewController` 属性,并将被选择的控制器作为返回值返回。
- @param index 需要选择的控制器在 `TabBar` 中的 index。
- @return 最终被选择的控制器。
- @attention 注意:方法中的参数和返回值都是 `UIViewController` 的子类,但并非 `UINavigationController` 的子类,该方法无 pop 动画。
- */
-- (UIViewController *)cyl_popSelectTabBarChildViewControllerAtIndex:(NSUInteger)index;
-
-/*!
- * Pop 到当前 `NavigationController` 的栈底,并改变 `TabBarController` 的 `selectedViewController` 属性,并将被选择的控制器作为返回值返回。
- @param index 需要选择的控制器在 `TabBar` 中的 index。
- @param animated 动画
- @return 最终被选择的控制器。
- @attention 注意:方法中的参数和返回值都是 `UIViewController` 的子类,但并非 `UINavigationController` 的子类。
- */
-- (UIViewController *)cyl_popSelectTabBarChildViewControllerAtIndex:(NSUInteger)index animated:(BOOL)animated;
-
-/*!
- * Pop 到当前 `NavigationController` 的栈底,并改变 `TabBarController` 的 `selectedViewController` 属性,并将被选择的控制器在 `Block` 回调中返回。
- @param index 需要选择的控制器在 `TabBar` 中的 index。
- @attention 注意:方法中的参数和返回值都是 `UIViewController` 的子类,但并非 `UINavigationController` 的子类。
- */
-- (void)cyl_popSelectTabBarChildViewControllerAtIndex:(NSUInteger)index
-                                           completion:(CYLPopSelectTabBarChildViewControllerCompletion)completion;
-
-/*!
- * Pop 到当前 `NavigationController` 的栈底,并改变 `TabBarController` 的 `selectedViewController` 属性,并将被选择的控制器作为返回值返回。
- @param classType 需要选择的控制器所属的类。
- @return 最终被选择的控制器。
- @attention 注意:
-                - 方法中的参数和返回值都是 `UIViewController` 的子类,但并非 `UINavigationController` 的子类。
-                - 如果 TabBarViewController 的 viewControllers 中包含多个相同的 `classType` 类型,会返回最左端的一个。
- 
- */
-- (UIViewController *)cyl_popSelectTabBarChildViewControllerForClassType:(Class)classType;
-
-/*!
- * Pop 到当前 `NavigationController` 的栈底,并改变 `TabBarController` 的 `selectedViewController` 属性,并将被选择的控制器在 `Block` 回调中返回。
- @param classType 需要选择的控制器所属的类。
- @attention 注意:
-                - 方法中的参数和返回值都是 `UIViewController` 的子类,但并非 `UINavigationController` 的子类。
-                - 如果 TabBarViewController 的 viewControllers 中包含多个相同的 `classType` 类型,会返回最左端的一个。
- */
-- (void)cyl_popSelectTabBarChildViewControllerForClassType:(Class)classType
-                                                completion:(CYLPopSelectTabBarChildViewControllerCompletion)completion;
-
-/*!
- *@brief 如果当前的 `NavigationViewController` 栈中包含有准备 Push 到的目标控制器,可以选择 Pop 而非 Push。
- *@param viewController Pop 或 Push 到的“目标控制器”,由 completionHandler 的参数控制 Pop 和 Push 的细节。
- *@param animated Pop 或 Push 时是否带动画
- *@param callback 回调,如果传 nil,将进行 Push。callback 包含以下几个参数:
-                 * param : viewControllers 表示与“目标控制器”相同类型的控制器;
-                 * param : completionHandler 包含以下几个参数:
-                                            * param : shouldPop 是否 Pop
-                                            * param : viewControllerPopTo Pop 回的控制器
-                                            * param : shouldPopSelectTabBarChildViewController 在进行 Push 行为之前,是否 Pop 到当前 `NavigationController` 的栈底。
-                                                                                             可能的值如下:
-                                                                                             NO 如果上一个参数为 NO,下一个参数 index 将被忽略。
-                                                                                             YES 会根据 index 参数改变 `TabBarController` 的 `selectedViewController` 属性。
-                                                                                             注意:该属性在 Pop 行为时不起作用。
-                                             * param : index Pop 改变 `TabBarController` 的 `selectedViewController` 属性。
-                                                           注意:该属性在 Pop 行为时不起作用。
-*/
-- (void)cyl_pushOrPopToViewController:(UIViewController *)viewController
-                             animated:(BOOL)animated
-                             callback:(CYLPushOrPopCallback)callback;
-
-/*!
- * 如果正要 Push 的页面与当前栈顶的页面类型相同则取消 Push
- * 这样做防止主界面卡顿时,导致一个 ViewController 被 Push 多次
- */
-- (void)cyl_pushViewController:(UIViewController *)viewController animated:(BOOL)animated;
-
-- (UIViewController *)cyl_getViewControllerInsteadOfNavigationController;
-
-@end

+ 0 - 298
RainbowPlanetOC/Pods/CYLTabBarController/CYLTabBarController/UIViewController+CYLTabBarControllerExtention.m

@@ -1,298 +0,0 @@
-//
-//  UIViewController+CYLTabBarControllerExtention.m
-//  CYLTabBarController
-//
-//  v1.16.0 Created by 微博@iOS程序犭袁 ( http://weibo.com/luohanchenyilong/ ) on 16/2/26.
-//  Copyright © 2018年 https://github.com/ChenYilong .All rights reserved.
-//
-
-#import "UIViewController+CYLTabBarControllerExtention.h"
-#import "CYLTabBarController.h"
-#import <objc/runtime.h>
-
-@implementation UIViewController (CYLTabBarControllerExtention)
-
-#pragma mark -
-#pragma mark - public Methods
-
-- (UIViewController *)cyl_popSelectTabBarChildViewControllerAtIndex:(NSUInteger)index {
-    return [self cyl_popSelectTabBarChildViewControllerAtIndex:index animated:NO];
-}
-
-- (UIViewController *)cyl_popSelectTabBarChildViewControllerAtIndex:(NSUInteger)index animated:(BOOL)animated {
-    UIViewController *viewController = [self cyl_getViewControllerInsteadOfNavigationController];
-    [viewController checkTabBarChildControllerValidityAtIndex:index];
-    CYLTabBarController *tabBarController = [viewController cyl_tabBarController];
-    tabBarController.selectedIndex = index;
-    [viewController.navigationController popToRootViewControllerAnimated:animated];
-    UIViewController *selectedTabBarChildViewController = tabBarController.selectedViewController;
-    return [selectedTabBarChildViewController cyl_getViewControllerInsteadOfNavigationController];
-}
-
-- (void)cyl_popSelectTabBarChildViewControllerAtIndex:(NSUInteger)index
-                                           completion:(CYLPopSelectTabBarChildViewControllerCompletion)completion {
-    UIViewController *selectedTabBarChildViewController = [self cyl_popSelectTabBarChildViewControllerAtIndex:index];
-    dispatch_async(dispatch_get_main_queue(), ^{
-        !completion ?: completion(selectedTabBarChildViewController);
-    });
-}
-
-- (UIViewController *)cyl_popSelectTabBarChildViewControllerForClassType:(Class)classType {
-    CYLTabBarController *tabBarController = [[self cyl_getViewControllerInsteadOfNavigationController] cyl_tabBarController];
-    NSArray *viewControllers = tabBarController.viewControllers;
-    NSInteger atIndex = [self cyl_indexForClassType:classType inViewControllers:viewControllers];
-    return [self cyl_popSelectTabBarChildViewControllerAtIndex:atIndex];
-}
-
-- (void)cyl_popSelectTabBarChildViewControllerForClassType:(Class)classType
-                                                completion:(CYLPopSelectTabBarChildViewControllerCompletion)completion {
-    UIViewController *selectedTabBarChildViewController = [self cyl_popSelectTabBarChildViewControllerForClassType:classType];
-    dispatch_async(dispatch_get_main_queue(), ^{
-        !completion ?: completion(selectedTabBarChildViewController);
-    });
-}
-
-- (void)cyl_pushOrPopToViewController:(UIViewController *)viewController
-                             animated:(BOOL)animated
-                             callback:(CYLPushOrPopCallback)callback {
-    if (!callback) {
-        [self.navigationController pushViewController:viewController animated:animated];
-        return;
-    }
-    
-    void (^popSelectTabBarChildViewControllerCallback)(BOOL shouldPopSelectTabBarChildViewController, NSUInteger index) = ^(BOOL shouldPopSelectTabBarChildViewController, NSUInteger index) {
-        if (shouldPopSelectTabBarChildViewController) {
-            [self cyl_popSelectTabBarChildViewControllerAtIndex:index completion:^(__kindof UIViewController *selectedTabBarChildViewController) {
-                [selectedTabBarChildViewController.navigationController pushViewController:viewController animated:animated];
-            }];
-        } else {
-            [self.navigationController pushViewController:viewController animated:animated];
-        }
-    };
-    NSArray<__kindof UIViewController *> *otherSameClassTypeViewControllersInCurrentNavigationControllerStack = [self cyl_getOtherSameClassTypeViewControllersInCurrentNavigationControllerStack:viewController];
-    
-    CYLPushOrPopCompletionHandler completionHandler = ^(BOOL shouldPop,
-                                                        __kindof UIViewController *viewControllerPopTo,
-                                                        BOOL shouldPopSelectTabBarChildViewController,
-                                                        NSUInteger index
-                                                        ) {
-        if (!otherSameClassTypeViewControllersInCurrentNavigationControllerStack || otherSameClassTypeViewControllersInCurrentNavigationControllerStack.count == 0) {
-            shouldPop = NO;
-        }
-        dispatch_async(dispatch_get_main_queue(),^{
-            if (shouldPop) {
-                [self.navigationController popToViewController:viewControllerPopTo animated:animated];
-                return;
-            }
-            popSelectTabBarChildViewControllerCallback(shouldPopSelectTabBarChildViewController, index);
-        });
-    };
-    callback(otherSameClassTypeViewControllersInCurrentNavigationControllerStack, completionHandler);
-}
-
-- (void)cyl_pushViewController:(UIViewController *)viewController animated:(BOOL)animated {
-    UIViewController *fromViewController = [self cyl_getViewControllerInsteadOfNavigationController];
-    NSArray *childViewControllers = fromViewController.navigationController.childViewControllers;
-    if (childViewControllers.count > 0) {
-        if ([[childViewControllers lastObject] isKindOfClass:[viewController class]]) {
-            return;
-        }
-    }
-    [fromViewController.navigationController pushViewController:viewController animated:animated];
-}
-
-- (UIViewController *)cyl_getViewControllerInsteadOfNavigationController {
-    BOOL isNavigationController = [[self class] isSubclassOfClass:[UINavigationController class]];
-    if (isNavigationController && ((UINavigationController *)self).viewControllers.count > 0) {
-        return ((UINavigationController *)self).viewControllers[0];
-    }
-    return self;
-}
-
-#pragma mark - public method
-
-- (BOOL)cyl_isPlusChildViewController {
-    if (!CYLPlusChildViewController) {
-        return NO;
-    }
-    return (self == CYLPlusChildViewController);
-}
-
-- (void)cyl_showTabBadgePoint {
-    if (self.cyl_isPlusChildViewController) {
-        return;
-    }
-    [self.cyl_tabButton cyl_showTabBadgePoint];
-    [[[self cyl_getViewControllerInsteadOfNavigationController] cyl_tabBarController].tabBar layoutIfNeeded];
-}
-
-- (void)cyl_removeTabBadgePoint {
-    if (self.cyl_isPlusChildViewController) {
-        return;
-    }
-    [self.cyl_tabButton cyl_removeTabBadgePoint];
-    [[[self cyl_getViewControllerInsteadOfNavigationController] cyl_tabBarController].tabBar layoutIfNeeded];
-}
-
-- (BOOL)cyl_isShowTabBadgePoint {
-    if (self.cyl_isPlusChildViewController) {
-        return NO;
-    }
-    return [self.cyl_tabButton cyl_isShowTabBadgePoint];
-}
-
-- (void)cyl_setTabBadgePointView:(UIView *)tabBadgePointView {
-    if (self.cyl_isPlusChildViewController) {
-        return;
-    }
-    [self.cyl_tabButton cyl_setTabBadgePointView:tabBadgePointView];
-}
-
-- (UIView *)cyl_tabBadgePointView {
-    if (self.cyl_isPlusChildViewController) {
-        return nil;
-    }
-    return [self.cyl_tabButton cyl_tabBadgePointView];;
-}
-
-- (void)cyl_setTabBadgePointViewOffset:(UIOffset)tabBadgePointViewOffset {
-    if (self.cyl_isPlusChildViewController) {
-        return;
-    }
-    return [self.cyl_tabButton cyl_setTabBadgePointViewOffset:tabBadgePointViewOffset];
-}
-
-//offset如果都是整数,则往右下偏移
-- (UIOffset)cyl_tabBadgePointViewOffset {
-    if (self.cyl_isPlusChildViewController) {
-        return UIOffsetZero;
-    }
-    return [self.cyl_tabButton cyl_tabBadgePointViewOffset];
-}
-
-- (BOOL)cyl_isEmbedInTabBarController {
-    if (self.cyl_tabBarController == nil) {
-        return NO;
-    }
-    if (self.cyl_isPlusChildViewController) {
-        return NO;
-    }
-    BOOL isEmbedInTabBarController = NO;
-    UIViewController *viewControllerInsteadIOfNavigationController = [self cyl_getViewControllerInsteadOfNavigationController];
-    for (NSInteger i = 0; i < self.cyl_tabBarController.viewControllers.count; i++) {
-        UIViewController * vc = self.cyl_tabBarController.viewControllers[i];
-        if ([vc cyl_getViewControllerInsteadOfNavigationController] == viewControllerInsteadIOfNavigationController) {
-            isEmbedInTabBarController = YES;
-            [self cyl_setTabIndex:i];
-            break;
-        }
-    }
-    return isEmbedInTabBarController;
-}
-
-- (void)cyl_setTabIndex:(NSInteger)tabIndex {
-    objc_setAssociatedObject(self, @selector(cyl_tabIndex), @(tabIndex), OBJC_ASSOCIATION_RETAIN_NONATOMIC);
-}
-
-- (NSInteger)cyl_tabIndex {
-    if (!self.cyl_isEmbedInTabBarController) {
-        return NSNotFound;
-    }
-    
-    id tabIndexObject = objc_getAssociatedObject(self, @selector(cyl_tabIndex));
-    NSInteger tabIndex = [tabIndexObject integerValue];
-    return tabIndex;
-}
-
-- (UIControl *)cyl_tabButton {
-    if (!self.cyl_isEmbedInTabBarController) {
-        return nil;
-    }
-    UITabBarItem *tabBarItem;
-    UIControl *control;
-    @try {
-        tabBarItem = self.cyl_tabBarController.tabBar.items[self.cyl_tabIndex];
-        control = [tabBarItem cyl_tabButton];
-    } @catch (NSException *exception) {}
-    return control;
-}
-
-- (NSString *)cyl_context {
-    return objc_getAssociatedObject(self, @selector(cyl_context));
-}
-
-- (void)cyl_setContext:(NSString *)cyl_context {
-    objc_setAssociatedObject(self, @selector(cyl_context), cyl_context, OBJC_ASSOCIATION_COPY_NONATOMIC);
-}
-
-- (BOOL)cyl_plusViewControllerEverAdded {
-    NSNumber *cyl_plusViewControllerEverAddedObject = objc_getAssociatedObject(self, @selector(cyl_plusViewControllerEverAdded));
-    return [cyl_plusViewControllerEverAddedObject boolValue];
-}
-
-- (void)cyl_setPlusViewControllerEverAdded:(BOOL)cyl_plusViewControllerEverAdded {
-    NSNumber *cyl_plusViewControllerEverAddedObject = [NSNumber numberWithBool:cyl_plusViewControllerEverAdded];
-    objc_setAssociatedObject(self, @selector(cyl_plusViewControllerEverAdded), cyl_plusViewControllerEverAddedObject, OBJC_ASSOCIATION_ASSIGN);
-}
-
-#pragma mark -
-#pragma mark - Private Methods
-
-- (NSArray<__kindof UIViewController *> *)cyl_getOtherSameClassTypeViewControllersInCurrentNavigationControllerStack:(UIViewController *)viewController {
-    NSArray *currentNavigationControllerStack = [self.navigationController childViewControllers];
-    if (currentNavigationControllerStack.count < 2) {
-        return nil;
-    }
-    NSMutableArray *mutableArray = [currentNavigationControllerStack mutableCopy];
-    [mutableArray removeObject:self];
-    currentNavigationControllerStack = [mutableArray copy];
-    
-    __block NSMutableArray *mutableOtherViewControllersInNavigationControllerStack = [NSMutableArray arrayWithCapacity:currentNavigationControllerStack.count];
-    
-    [currentNavigationControllerStack enumerateObjectsUsingBlock:^(id  _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
-        UIViewController *otherViewController = obj;
-        if ([otherViewController isKindOfClass:[viewController class]]) {
-            [mutableOtherViewControllersInNavigationControllerStack addObject:otherViewController];
-        }
-    }];
-    return [mutableOtherViewControllersInNavigationControllerStack copy];
-}
-
-- (void)checkTabBarChildControllerValidityAtIndex:(NSUInteger)index {
-    CYLTabBarController *tabBarController = [[self cyl_getViewControllerInsteadOfNavigationController] cyl_tabBarController];
-    @try {
-        UIViewController *viewController;
-        viewController = tabBarController.viewControllers[index];
-        UIButton *plusButton = CYLExternPlusButton;
-        BOOL shouldConfigureSelectionStatus = (CYLPlusChildViewController) && ((index != CYLPlusButtonIndex) && (viewController != CYLPlusChildViewController));
-        if (shouldConfigureSelectionStatus) {
-            plusButton.selected = NO;
-        }
-    } @catch (NSException *exception) {
-        NSString *formatString = @"\n\n\
-        ------ BEGIN NSException Log ---------------------------------------------------------------------\n \
-        class name: %@                                                                                    \n \
-        ------line: %@                                                                                    \n \
-        ----reason: The Class Type or the index or its NavigationController you pass in method `-cyl_popSelectTabBarChildViewControllerAtIndex` or `-cyl_popSelectTabBarChildViewControllerForClassType` is not the item of CYLTabBarViewController \n \
-        ------ END ---------------------------------------------------------------------------------------\n\n";
-        NSString *reason = [NSString stringWithFormat:formatString,
-                            @(__PRETTY_FUNCTION__),
-                            @(__LINE__)];
-        NSLog(@"🔴类名与方法名:%@(在第%@行),描述:%@", @(__PRETTY_FUNCTION__), @(__LINE__), reason);
-    }
-}
-
-- (NSInteger)cyl_indexForClassType:(Class)classType inViewControllers:(NSArray *)viewControllers {
-    __block NSInteger atIndex = NSNotFound;
-    [viewControllers enumerateObjectsUsingBlock:^(id  _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
-        UIViewController *obj_ = [obj cyl_getViewControllerInsteadOfNavigationController];
-        if ([obj_ isKindOfClass:classType]) {
-            atIndex = idx;
-            *stop = YES;
-            return;
-        }
-    }];
-    return atIndex;
-}
-
-@end

+ 0 - 19
RainbowPlanetOC/Pods/CYLTabBarController/LICENSE

@@ -1,19 +0,0 @@
-Copyright (c) 2015 CYLTabBarController(https://github.com/ChenYilong/CYLTabBarController), L.L.C. All rights reserved.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE

文件差異過大導致無法顯示
+ 0 - 939
RainbowPlanetOC/Pods/CYLTabBarController/README.md


+ 0 - 36
RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Associations/FBAssociationManager.h

@@ -1,36 +0,0 @@
-/**
- * Copyright (c) 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
-
-#import <Foundation/Foundation.h>
-
-/**
- FBAssociationManager is a tracker of object associations. For given object it can return all objects that
- are being retained by this object with objc_setAssociatedObject & retain policy.
- */
-@interface FBAssociationManager : NSObject
-
-/**
- Start tracking associations. It will use fishhook to swizzle C methods:
- objc_(set/remove)AssociatedObject and inject some tracker code.
- */
-+ (void)hook;
-
-/**
- Stop tracking associations, fishhooks.
- */
-+ (void)unhook;
-
-/**
- For given object return all objects that are retained by it using associated objects.
-
- @return NSArray of objects associated with given object
- */
-+ (nullable NSArray *)associationsForObject:(nullable id)object;
-
-@end

+ 0 - 207
RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Associations/FBAssociationManager.mm

@@ -1,207 +0,0 @@
-/**
- * Copyright (c) 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
-
-#if __has_feature(objc_arc)
-#error This file must be compiled with MRR. Use -fno-objc-arc flag.
-#endif
-
-#import <algorithm>
-#import <map>
-#import <mutex>
-#import <objc/runtime.h>
-#import <unordered_map>
-#import <unordered_set>
-#import <vector>
-
-#import "FBAssociationManager+Internal.h"
-#import "FBRetainCycleDetector.h"
-
-#import "fishhook.h"
-
-#if _INTERNAL_RCD_ENABLED
-
-namespace FB { namespace AssociationManager {
-  using ObjectAssociationSet = std::unordered_set<void *>;
-  using AssociationMap = std::unordered_map<id, ObjectAssociationSet *>;
-
-  static auto _associationMap = new AssociationMap();
-  static auto _associationMutex = new std::mutex;
-
-  static std::mutex *hookMutex(new std::mutex);
-  static bool hookTaken = false;
-
-  void _threadUnsafeResetAssociationAtKey(id object, void *key) {
-    auto i = _associationMap->find(object);
-
-    if (i == _associationMap->end()) {
-      return;
-    }
-
-    auto *refs = i->second;
-    auto j = refs->find(key);
-    if (j != refs->end()) {
-      refs->erase(j);
-    }
-  }
-
-  void _threadUnsafeSetStrongAssociation(id object, void *key, id value) {
-    if (value) {
-      auto i = _associationMap->find(object);
-      ObjectAssociationSet *refs;
-      if (i != _associationMap->end()) {
-        refs = i->second;
-      } else {
-        refs = new ObjectAssociationSet;
-        (*_associationMap)[object] = refs;
-      }
-      refs->insert(key);
-    } else {
-      _threadUnsafeResetAssociationAtKey(object, key);
-    }
-  }
-
-  void _threadUnsafeRemoveAssociations(id object) {
-    if (_associationMap->size() == 0 ){
-      return;
-    }
-
-    auto i = _associationMap->find(object);
-    if (i == _associationMap->end()) {
-      return;
-    }
-
-    auto *refs = i->second;
-    delete refs;
-    _associationMap->erase(i);
-  }
-
-  NSArray *associations(id object) {
-    std::lock_guard<std::mutex> l(*_associationMutex);
-    if (_associationMap->size() == 0 ){
-      return nil;
-    }
-
-    auto i = _associationMap->find(object);
-    if (i == _associationMap->end()) {
-      return nil;
-    }
-
-    auto *refs = i->second;
-
-    NSMutableArray *array = [NSMutableArray array];
-    for (auto &key: *refs) {
-      id value = objc_getAssociatedObject(object, key);
-      if (value) {
-        [array addObject:value];
-      }
-    }
-
-    return array;
-  }
-
-  static void (*fb_orig_objc_setAssociatedObject)(id object, void *key, id value, objc_AssociationPolicy policy);
-  static void (*fb_orig_objc_removeAssociatedObjects)(id object);
-
-  static void fb_objc_setAssociatedObject(id object, void *key, id value, objc_AssociationPolicy policy) {
-    {
-      std::lock_guard<std::mutex> l(*_associationMutex);
-      // Track strong references only
-      if (policy == OBJC_ASSOCIATION_RETAIN ||
-          policy == OBJC_ASSOCIATION_RETAIN_NONATOMIC) {
-        _threadUnsafeSetStrongAssociation(object, key, value);
-      } else {
-        // We can change the policy, we need to clear out the key
-        _threadUnsafeResetAssociationAtKey(object, key);
-      }
-    }
-
-    /**
-     We are doing that behind the lock. Otherwise it could deadlock.
-     The reason for that is when objc calls up _object_set_associative_reference, when we nil out
-     a reference for some object, it will also release this value, which could cause it to dealloc.
-     This is done inside _object_set_associative_reference without lock. Otherwise it would deadlock,
-     since the object that is released, could also clean up some associated objects.
-     
-     If we would keep a lock during that, we would fall for that deadlock.
-     
-     Unfortunately this also means the association manager can be not a 100% accurate, since there
-     can technically be a race condition between setting values on the same object and same key from
-     different threads. (One thread sets value, other nil, we are missing this value)
-     */
-    fb_orig_objc_setAssociatedObject(object, key, value, policy);
-  }
-
-  static void fb_objc_removeAssociatedObjects(id object) {
-    {
-      std::lock_guard<std::mutex> l(*_associationMutex);
-      _threadUnsafeRemoveAssociations(object);
-    }
-    
-    fb_orig_objc_removeAssociatedObjects(object);
-  }
-
-  static void cleanUp() {
-    std::lock_guard<std::mutex> l(*_associationMutex);
-    _associationMap->clear();
-  }
-
-} }
-
-#endif
-
-@implementation FBAssociationManager
-
-+ (void)hook
-{
-#if _INTERNAL_RCD_ENABLED
-  std::lock_guard<std::mutex> l(*FB::AssociationManager::hookMutex);
-  rcd_rebind_symbols((struct rcd_rebinding[2]){
-    {
-      "objc_setAssociatedObject",
-      (void *)FB::AssociationManager::fb_objc_setAssociatedObject,
-      (void **)&FB::AssociationManager::fb_orig_objc_setAssociatedObject
-    },
-    {
-      "objc_removeAssociatedObjects",
-      (void *)FB::AssociationManager::fb_objc_removeAssociatedObjects,
-      (void **)&FB::AssociationManager::fb_orig_objc_removeAssociatedObjects
-    }}, 2);
-  FB::AssociationManager::hookTaken = true;
-#endif //_INTERNAL_RCD_ENABLED
-}
-
-+ (void)unhook
-{
-#if _INTERNAL_RCD_ENABLED
-  std::lock_guard<std::mutex> l(*FB::AssociationManager::hookMutex);
-  if (FB::AssociationManager::hookTaken) {
-    rcd_rebind_symbols((struct rcd_rebinding[2]){
-      {
-        "objc_setAssociatedObject",
-        (void *)FB::AssociationManager::fb_orig_objc_setAssociatedObject,
-      },
-      {
-        "objc_removeAssociatedObjects",
-        (void *)FB::AssociationManager::fb_orig_objc_removeAssociatedObjects,
-      }}, 2);
-    FB::AssociationManager::cleanUp();
-  }
-#endif //_INTERNAL_RCD_ENABLED
-}
-
-+ (NSArray *)associationsForObject:(id)object
-{
-#if _INTERNAL_RCD_ENABLED
-  return FB::AssociationManager::associations(object);
-#else
-  return nil;
-#endif //_INTERNAL_RCD_ENABLED
-}
-
-@end

+ 0 - 25
RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Associations/Internal/FBAssociationManager+Internal.h

@@ -1,25 +0,0 @@
-/**
- * Copyright (c) 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
-
-#import "FBAssociationManager.h"
-#import "FBRetainCycleDetector.h"
-
-#if _INTERNAL_RCD_ENABLED
-
-namespace FB { namespace AssociationManager {
-
-  void _threadUnsafeResetAssociationAtKey(id object, void *key);
-  void _threadUnsafeSetStrongAssociation(id object, void *key, id value);
-  void _threadUnsafeRemoveAssociations(id object);
-
-  NSArray *associations(id object);
-
-} }
-
-#endif

+ 0 - 29
RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Detector/FBNodeEnumerator.h

@@ -1,29 +0,0 @@
-/**
- * Copyright (c) 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
-
-#import <Foundation/Foundation.h>
-
-@class FBObjectiveCGraphElement;
-
-/**
- FBNodeEnumerator wraps any object graph element (FBObjectiveCGraphElement) and lets you enumerate over its
- retained references
- */
-@interface FBNodeEnumerator : NSEnumerator
-
-/**
- Designated initializer
- */
-- (nonnull instancetype)initWithObject:(nonnull FBObjectiveCGraphElement *)object;
-
-- (nullable FBNodeEnumerator *)nextObject;
-
-@property (nonatomic, strong, readonly, nonnull) FBObjectiveCGraphElement *object;
-
-@end

+ 0 - 62
RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Detector/FBNodeEnumerator.mm

@@ -1,62 +0,0 @@
-/**
- * Copyright (c) 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
-
-#import "FBNodeEnumerator.h"
-
-#import "FBObjectiveCGraphElement.h"
-
-@implementation FBNodeEnumerator
-{
-  NSSet *_retainedObjectsSnapshot;
-  NSEnumerator *_enumerator;
-}
-
-- (instancetype)initWithObject:(FBObjectiveCGraphElement *)object
-{
-  if (self = [super init]) {
-    _object = object;
-  }
-
-  return self;
-}
-
-- (FBNodeEnumerator *)nextObject
-{
-  if (!_object) {
-    return nil;
-  } else if (!_retainedObjectsSnapshot) {
-    _retainedObjectsSnapshot = [_object allRetainedObjects];
-    _enumerator = [_retainedObjectsSnapshot objectEnumerator];
-  }
-
-  FBObjectiveCGraphElement *next = [_enumerator nextObject];
-
-  if (next) {
-    return [[FBNodeEnumerator alloc] initWithObject:next];
-  }
-
-  return nil;
-}
-
-- (BOOL)isEqual:(id)object
-{
-  if ([object isKindOfClass:[FBNodeEnumerator class]]) {
-    FBNodeEnumerator *enumerator = (FBNodeEnumerator *)object;
-    return [self.object isEqual:enumerator.object];
-  }
-
-  return NO;
-}
-
-- (NSUInteger)hash
-{
-  return [self.object hash];
-}
-
-@end

+ 0 - 17
RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Detector/FBRetainCycleDetector+Internal.h

@@ -1,17 +0,0 @@
-/**
- * Copyright (c) 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
-
-#import "FBRetainCycleDetector.h"
-
-@interface FBRetainCycleDetector ()
-
-// Unit tests
-- (NSArray *)_shiftToUnifiedCycle:(NSArray *)array;
-
-@end

+ 0 - 86
RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Detector/FBRetainCycleDetector.h

@@ -1,86 +0,0 @@
-/**
- * Copyright (c) 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
-
-#import <Foundation/Foundation.h>
-
-//! Project version number for FBRetainCycleDetector.
-FOUNDATION_EXPORT double FBRetainCycleDetectorVersionNumber;
-
-//! Project version string for FBRetainCycleDetector.
-FOUNDATION_EXPORT const unsigned char FBRetainCycleDetectorVersionString[];
-
-#import "FBAssociationManager.h"
-#import "FBObjectiveCBlock.h"
-#import "FBObjectiveCGraphElement.h"
-#import "FBObjectiveCNSCFTimer.h"
-#import "FBObjectiveCObject.h"
-#import "FBObjectGraphConfiguration.h"
-#import "FBStandardGraphEdgeFilters.h"
-
-/**
- Retain Cycle Detector is enabled by default in DEBUG builds, but you can also force it in other builds by
- uncommenting the line below. Beware, Retain Cycle Detector uses some private APIs that shouldn't be compiled in
- production builds.
- */
-//#define RETAIN_CYCLE_DETECTOR_ENABLED 1
-
-/**
- FBRetainCycleDetector
-
- The main class responsible for detecting retain cycles.
-
- Be cautious, the class is NOT thread safe.
-
- The process of detecting retain cycles is relatively slow and consumes a lot of CPU.
- */
-
-@interface FBRetainCycleDetector : NSObject
-
-/**
- Designated initializer
-
- @param configuration Configuration for detector. Can include specific filters and options.
- @see FBRetainCycleDetectorConfiguration
- */
-- (nonnull instancetype)initWithConfiguration:(nonnull FBObjectGraphConfiguration *)configuration NS_DESIGNATED_INITIALIZER;
-
-/**
- Adds candidate you are interested in getting retain cycles from.
-
- @param candidate Any Objective-C object you want to verify for cycles.
- */
-- (void)addCandidate:(nonnull id)candidate;
-
-/**
- Searches for all retain cycles for all candidates the detector has been
- provided with.
-
- @return NSSet with retain cycles. An element of this array will be
- an array representing retain cycle. That array will hold elements
- of type FBObjectiveCGraphElement.
-
- @discussion For given candidate, the detector will go through all object graph rooted in this candidate and return
- ALL retain cycles that this candidate references. It will also take care of removing duplicates. It will not look for
- cycles longer than 10 elements. If you want to look for longer ones use findRetainCyclesWithMaxCycleLenght:
- */
-- (nonnull NSSet<NSArray<FBObjectiveCGraphElement *> *> *)findRetainCycles;
-
-- (nonnull NSSet<NSArray<FBObjectiveCGraphElement *> *> *)findRetainCyclesWithMaxCycleLength:(NSUInteger)length;
-
-/**
- This macro is used across FBRetainCycleDetector to compile out sensitive code.
- If you do not define it anywhere, Retain Cycle Detector will be available in DEBUG builds.
- */
-#ifdef RETAIN_CYCLE_DETECTOR_ENABLED
-#define _INTERNAL_RCD_ENABLED RETAIN_CYCLE_DETECTOR_ENABLED
-#else
-#define _INTERNAL_RCD_ENABLED DEBUG
-#endif
-
-@end

+ 0 - 294
RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Detector/FBRetainCycleDetector.mm

@@ -1,294 +0,0 @@
-/**
- * Copyright (c) 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
-
-#import <stack>
-#import <unordered_map>
-#import <unordered_set>
-
-#import "FBNodeEnumerator.h"
-#import "FBObjectiveCGraphElement.h"
-#import "FBObjectiveCObject.h"
-#import "FBRetainCycleDetector+Internal.h"
-#import "FBRetainCycleUtils.h"
-#import "FBStandardGraphEdgeFilters.h"
-
-static const NSUInteger kFBRetainCycleDetectorDefaultStackDepth = 10;
-
-@implementation FBRetainCycleDetector
-{
-  NSMutableArray *_candidates;
-  FBObjectGraphConfiguration *_configuration;
-  NSMutableSet *_objectSet;
-}
-
-- (instancetype)initWithConfiguration:(FBObjectGraphConfiguration *)configuration
-{
-  if (self = [super init]) {
-    _configuration = configuration;
-    _candidates = [NSMutableArray new];
-    _objectSet = [NSMutableSet new];
-  }
-
-  return self;
-}
-
-- (instancetype)init
-{
-  return [self initWithConfiguration:
-          [[FBObjectGraphConfiguration alloc] initWithFilterBlocks:FBGetStandardGraphEdgeFilters()
-                                               shouldInspectTimers:YES]];
-}
-
-- (void)addCandidate:(id)candidate
-{
-  FBObjectiveCGraphElement *graphElement = FBWrapObjectGraphElement(nil, candidate, _configuration);
-  if (graphElement) {
-    [_candidates addObject:graphElement];
-  }
-}
-
-- (NSSet<NSArray<FBObjectiveCGraphElement *> *> *)findRetainCycles
-{
-  return [self findRetainCyclesWithMaxCycleLength:kFBRetainCycleDetectorDefaultStackDepth];
-}
-
-- (NSSet<NSArray<FBObjectiveCGraphElement *> *> *)findRetainCyclesWithMaxCycleLength:(NSUInteger)length
-{
-  NSMutableSet<NSArray<FBObjectiveCGraphElement *> *> *allRetainCycles = [NSMutableSet new];
-  for (FBObjectiveCGraphElement *graphElement in _candidates) {
-    NSSet<NSArray<FBObjectiveCGraphElement *> *> *retainCycles = [self _findRetainCyclesInObject:graphElement
-                                                                                      stackDepth:length];
-    [allRetainCycles unionSet:retainCycles];
-  }
-  [_candidates removeAllObjects];
-  [_objectSet removeAllObjects];
-
-  // Filter cycles that have been broken down since we found them.
-  // These are false-positive that were picked-up and are transient cycles.
-  NSMutableSet<NSArray<FBObjectiveCGraphElement *> *> *brokenCycles = [NSMutableSet set];
-  for (NSArray<FBObjectiveCGraphElement *> *itemCycle in allRetainCycles) {
-    for (FBObjectiveCGraphElement *element in itemCycle) {
-      if (element.object == nil) {
-        // At least one element of the cycle has been removed, thus breaking
-        // the cycle.
-        [brokenCycles addObject:itemCycle];
-        break;
-      }
-    }
-  }
-  [allRetainCycles minusSet:brokenCycles];
-
-  return allRetainCycles;
-}
-
-- (NSSet<NSArray<FBObjectiveCGraphElement *> *> *)_findRetainCyclesInObject:(FBObjectiveCGraphElement *)graphElement
-                                                                 stackDepth:(NSUInteger)stackDepth
-{
-  NSMutableSet<NSArray<FBObjectiveCGraphElement *> *> *retainCycles = [NSMutableSet new];
-  FBNodeEnumerator *wrappedObject = [[FBNodeEnumerator alloc] initWithObject:graphElement];
-
-  // We will be doing DFS over graph of objects
-
-  // Stack will keep current path in the graph
-  NSMutableArray<FBNodeEnumerator *> *stack = [NSMutableArray new];
-
-  // To make the search non-linear we will also keep
-  // a set of previously visited nodes.
-  NSMutableSet<FBNodeEnumerator *> *objectsOnPath = [NSMutableSet new];
-
-  // Let's start with the root
-  [stack addObject:wrappedObject];
-
-  while ([stack count] > 0) {
-    // Algorithm creates many short-living objects. It can contribute to few
-    // hundred megabytes memory jumps if not handled correctly, therefore
-    // we're gonna drain the objects with our autoreleasepool.
-    @autoreleasepool {
-      // Take topmost node in stack and mark it as visited
-      FBNodeEnumerator *top = [stack lastObject];
-
-      // We don't want to retraverse the same subtree
-      if (![objectsOnPath containsObject:top]) {
-        if ([_objectSet containsObject:@([top.object objectAddress])]) {
-          [stack removeLastObject];
-          continue;
-        }
-        // Add the object address to the set as an NSNumber to avoid
-        // unnecessarily retaining the object
-        [_objectSet addObject:@([top.object objectAddress])];
-      }
-
-      [objectsOnPath addObject:top];
-
-      // Take next adjecent node to that child. Wrapper object can
-      // persist iteration state. If we see that node again, it will
-      // give us new adjacent node unless it runs out of them
-      FBNodeEnumerator *firstAdjacent = [top nextObject];
-      if (firstAdjacent) {
-        // Current node still has some adjacent not-visited nodes
-
-        BOOL shouldPushToStack = NO;
-
-        // Check if child was already seen in that path
-        if ([objectsOnPath containsObject:firstAdjacent]) {
-          // We have caught a retain cycle
-
-          // Ignore the first element which is equal to firstAdjacent, use firstAdjacent
-          // we're doing that because firstAdjacent has set all contexts, while its
-          // first occurence could be a root without any context
-          NSUInteger index = [stack indexOfObject:firstAdjacent];
-          NSInteger length = [stack count] - index;
-
-          if (index == NSNotFound) {
-            // Object got deallocated between checking if it exists and grabbing its index
-            shouldPushToStack = YES;
-          } else {
-            NSRange cycleRange = NSMakeRange(index, length);
-            NSMutableArray<FBNodeEnumerator *> *cycle = [[stack subarrayWithRange:cycleRange] mutableCopy];
-            [cycle replaceObjectAtIndex:0 withObject:firstAdjacent];
-
-            // 1. Unwrap the cycle
-            // 2. Shift to lowest address (if we omit that, and the cycle is created by same class,
-            //    we might have duplicates)
-            // 3. Shift by class (lexicographically)
-
-            [retainCycles addObject:[self _shiftToUnifiedCycle:[self _unwrapCycle:cycle]]];
-          }
-        } else {
-          // Node is clear to check, add it to stack and continue
-          shouldPushToStack = YES;
-        }
-
-        if (shouldPushToStack) {
-          if ([stack count] < stackDepth) {
-            [stack addObject:firstAdjacent];
-          }
-        }
-      } else {
-        // Node has no more adjacent nodes, it itself is done, move on
-        [stack removeLastObject];
-        [objectsOnPath removeObject:top];
-      }
-    }
-  }
-  return retainCycles;
-}
-
-// Turn all enumerators into object graph elements
-- (NSArray<FBObjectiveCGraphElement *> *)_unwrapCycle:(NSArray<FBNodeEnumerator *> *)cycle
-{
-  NSMutableArray *unwrappedArray = [NSMutableArray new];
-  for (FBNodeEnumerator *wrapped in cycle) {
-    [unwrappedArray addObject:wrapped.object];
-  }
-
-  return unwrappedArray;
-}
-
-// We do that so two cycles can be recognized as duplicates
-- (NSArray<FBObjectiveCGraphElement *> *)_shiftToUnifiedCycle:(NSArray<FBObjectiveCGraphElement *> *)array
-{
-  return [self _shiftToLowestLexicographically:[self _shiftBufferToLowestAddress:array]];
-}
-
-- (NSArray<NSString *> *)_extractClassNamesFromGraphObjects:(NSArray<FBObjectiveCGraphElement *> *)array
-{
-  NSMutableArray *arrayOfClassNames = [NSMutableArray new];
-
-  for (FBObjectiveCGraphElement *obj in array) {
-    [arrayOfClassNames addObject:[obj classNameOrNull]];
-  }
-
-  return arrayOfClassNames;
-}
-
-/**
- The problem this circular shift solves is when we have few retain cycles for different runs that
- are technically the same cycle shifted. Object instances are different so if objects A and B
- create cycle, but on one run the address of A is lower than B, and on second B is lower than A,
- we will get a duplicate we have to get rid off.
-
- For that not to happen we use the circular shift that is smallest lexicographically when
- looking at class names.
-
- The version of this algorithm is pretty inefficient. It just compares given shifts and
- tries to find the smallest one. Doing something faster here is premature optimisation though
- since the retain cycles are usually arrays of length not bigger than 10 and there is not a lot
- of them (like 100 per run tops).
-
- If that ever occurs to be a problem for future reference use lexicographically minimal
- string rotation algorithm variation.
- */
-- (NSArray<FBObjectiveCGraphElement *> *)_shiftToLowestLexicographically:(NSArray<FBObjectiveCGraphElement *> *)array
-{
-  NSArray<NSString *> *arrayOfClassNames = [self _extractClassNamesFromGraphObjects:array];
-
-  NSArray<NSString *> *copiedArray = [arrayOfClassNames arrayByAddingObjectsFromArray:arrayOfClassNames];
-  NSUInteger originalLength = [arrayOfClassNames count];
-
-  NSArray *currentMinimalArray = arrayOfClassNames;
-  NSUInteger minimumIndex = 0;
-
-  for (NSUInteger i = 0; i < originalLength; ++i) {
-    NSArray<NSString *> *nextSubarray = [copiedArray subarrayWithRange:NSMakeRange(i, originalLength)];
-    if ([self _compareStringArray:currentMinimalArray
-                        withArray:nextSubarray] == NSOrderedDescending) {
-      currentMinimalArray = nextSubarray;
-      minimumIndex = i;
-    }
-  }
-
-  NSRange minimumArrayRange = NSMakeRange(minimumIndex,
-                                          [array count] - minimumIndex);
-  NSMutableArray<FBObjectiveCGraphElement *> *minimumArray = [[array subarrayWithRange:minimumArrayRange] mutableCopy];
-  [minimumArray addObjectsFromArray:[array subarrayWithRange:NSMakeRange(0, minimumIndex)]];
-  return minimumArray;
-}
-
-- (NSComparisonResult)_compareStringArray:(NSArray<NSString *> *)a1
-                                withArray:(NSArray<NSString *> *)a2
-{
-  // a1 and a2 should be the same length
-  for (NSUInteger i = 0; i < [a1 count]; ++i) {
-    NSString *s1 = a1[i];
-    NSString *s2 = a2[i];
-
-    NSComparisonResult comparision = [s1 compare:s2];
-    if (comparision != NSOrderedSame) {
-      return comparision;
-    }
-  }
-
-  return NSOrderedSame;
-}
-
-- (NSArray<FBObjectiveCGraphElement *> *)_shiftBufferToLowestAddress:(NSArray<FBObjectiveCGraphElement *> *)cycle
-{
-  NSUInteger idx = 0, lowestAddressIndex = 0;
-  size_t lowestAddress = NSUIntegerMax;
-  for (FBObjectiveCGraphElement *obj in cycle) {
-    if ([obj objectAddress] < lowestAddress) {
-      lowestAddress = [obj objectAddress];
-      lowestAddressIndex = idx;
-    }
-
-    idx++;
-  }
-
-  if (lowestAddressIndex == 0) {
-    return cycle;
-  }
-
-  NSRange cycleRange = NSMakeRange(lowestAddressIndex, [cycle count] - lowestAddressIndex);
-  NSMutableArray<FBObjectiveCGraphElement *> *array = [[cycle subarrayWithRange:cycleRange] mutableCopy];
-  [array addObjectsFromArray:[cycle subarrayWithRange:NSMakeRange(0, lowestAddressIndex)]];
-  return array;
-}
-
-@end

+ 0 - 33
RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/FBRetainCycleUtils.h

@@ -1,33 +0,0 @@
-/**
- * Copyright (c) 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
-
-#import <Foundation/Foundation.h>
-
-@class FBObjectGraphConfiguration;
-@class FBObjectiveCGraphElement;
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- Wrapper functions, for given object they will categorize it and create proper Graph Element subclass instance
- for it.
- */
-FBObjectiveCGraphElement *_Nullable FBWrapObjectGraphElementWithContext(FBObjectiveCGraphElement *_Nullable sourceElement,
-                                                                        id _Nullable object,
-                                                                        FBObjectGraphConfiguration *_Nullable configuration,
-                                                                        NSArray<NSString *> *_Nullable namePath);
-FBObjectiveCGraphElement *_Nullable FBWrapObjectGraphElement(FBObjectiveCGraphElement *_Nullable sourceElement,
-                                                             id _Nullable object,
-                                                             FBObjectGraphConfiguration *_Nullable configuration);
-
-#ifdef __cplusplus
-}
-#endif

+ 0 - 66
RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/FBRetainCycleUtils.m

@@ -1,66 +0,0 @@
-/**
- * Copyright (c) 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
-
-#import "FBRetainCycleUtils.h"
-
-#import <objc/runtime.h>
-
-#import "FBBlockStrongLayout.h"
-#import "FBClassStrongLayout.h"
-#import "FBObjectiveCBlock.h"
-#import "FBObjectiveCGraphElement.h"
-#import "FBObjectiveCNSCFTimer.h"
-#import "FBObjectiveCObject.h"
-#import "FBObjectGraphConfiguration.h"
-
-static BOOL _ShouldBreakGraphEdge(FBObjectGraphConfiguration *configuration,
-                                  FBObjectiveCGraphElement *fromObject,
-                                  NSString *byIvar,
-                                  Class toObjectOfClass) {
-  for (FBGraphEdgeFilterBlock filterBlock in configuration.filterBlocks) {
-    if (filterBlock(fromObject, byIvar, toObjectOfClass) == FBGraphEdgeInvalid) {
-      return YES;
-    }
-  }
-
-  return NO;
-}
-
-FBObjectiveCGraphElement *FBWrapObjectGraphElementWithContext(FBObjectiveCGraphElement *sourceElement,
-                                                              id object,
-                                                              FBObjectGraphConfiguration *configuration,
-                                                              NSArray<NSString *> *namePath) {
-  if (_ShouldBreakGraphEdge(configuration, sourceElement, [namePath firstObject], object_getClass(object))) {
-    return nil;
-  }
-  FBObjectiveCGraphElement *newElement;
-  if (FBObjectIsBlock((__bridge void *)object)) {
-    newElement = [[FBObjectiveCBlock alloc] initWithObject:object
-                                             configuration:configuration
-                                                  namePath:namePath];
-  } else {
-    if ([object_getClass(object) isSubclassOfClass:[NSTimer class]] &&
-        configuration.shouldInspectTimers) {
-      newElement = [[FBObjectiveCNSCFTimer alloc] initWithObject:object
-                                                   configuration:configuration
-                                                        namePath:namePath];
-    } else {
-      newElement = [[FBObjectiveCObject alloc] initWithObject:object
-                                                configuration:configuration
-                                                     namePath:namePath];
-    }
-  }
-  return (configuration && configuration.transformerBlock) ? configuration.transformerBlock(newElement) : newElement;
-}
-
-FBObjectiveCGraphElement *FBWrapObjectGraphElement(FBObjectiveCGraphElement *sourceElement,
-                                                   id object,
-                                                   FBObjectGraphConfiguration *configuration) {
-  return FBWrapObjectGraphElementWithContext(sourceElement, object, configuration, nil);
-}

+ 0 - 36
RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Filtering/FBStandardGraphEdgeFilters.h

@@ -1,36 +0,0 @@
-/**
- * Copyright (c) 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
-
-#import <Foundation/Foundation.h>
-
-#import "FBObjectGraphConfiguration.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- Standard filters mostly filters excluding some UIKit references we have caught during testing on some apps.
- */
-NSArray<FBGraphEdgeFilterBlock> *_Nonnull FBGetStandardGraphEdgeFilters();
-
-/**
- Helper functions for some typical patterns.
- */
-FBGraphEdgeFilterBlock _Nonnull FBFilterBlockWithObjectIvarRelation(Class _Nonnull aCls,
-                                                                    NSString *_Nonnull ivarName);
-FBGraphEdgeFilterBlock _Nonnull FBFilterBlockWithObjectToManyIvarsRelation(Class _Nonnull aCls,
-                                                                           NSSet<NSString *> *_Nonnull ivarNames);
-FBGraphEdgeFilterBlock _Nonnull FBFilterBlockWithObjectIvarObjectRelation(Class _Nonnull fromClass,
-                                                                          NSString *_Nonnull ivarName,
-                                                                          Class _Nonnull toClass);
-
-#ifdef __cplusplus
-}
-#endif

+ 0 - 74
RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Filtering/FBStandardGraphEdgeFilters.mm

@@ -1,74 +0,0 @@
-/**
- * Copyright (c) 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
-
-#import "FBStandardGraphEdgeFilters.h"
-
-#import <objc/runtime.h>
-
-#import <UIKit/UIKit.h>
-
-#import "FBObjectiveCGraphElement.h"
-#import "FBRetainCycleDetector.h"
-
-FBGraphEdgeFilterBlock FBFilterBlockWithObjectIvarRelation(Class aCls, NSString *ivarName) {
-  return FBFilterBlockWithObjectToManyIvarsRelation(aCls, [NSSet setWithObject:ivarName]);
-}
-
-FBGraphEdgeFilterBlock FBFilterBlockWithObjectToManyIvarsRelation(Class aCls,
-                                                                  NSSet<NSString *> *ivarNames) {
-  return ^(FBObjectiveCGraphElement *fromObject,
-           NSString *byIvar,
-           Class toObjectOfClass){
-    if (aCls &&
-        [[fromObject objectClass] isSubclassOfClass:aCls]) {
-      // If graph element holds metadata about an ivar, it will be held in the name path, as early as possible
-      if ([ivarNames containsObject:byIvar]) {
-        return FBGraphEdgeInvalid;
-      }
-    }
-    return FBGraphEdgeValid;
-  };
-}
-
-FBGraphEdgeFilterBlock FBFilterBlockWithObjectIvarObjectRelation(Class fromClass, NSString *ivarName, Class toClass) {
-  return ^(FBObjectiveCGraphElement *fromObject,
-           NSString *byIvar,
-           Class toObjectOfClass) {
-    if (toClass &&
-        [toObjectOfClass isSubclassOfClass:toClass]) {
-      return FBFilterBlockWithObjectIvarRelation(fromClass, ivarName)(fromObject, byIvar, toObjectOfClass);
-    }
-    return FBGraphEdgeValid;
-  };
-}
-
-NSArray<FBGraphEdgeFilterBlock> *FBGetStandardGraphEdgeFilters() {
-#if _INTERNAL_RCD_ENABLED
-  static Class heldActionClass;
-  static Class transitionContextClass;
-  static dispatch_once_t onceToken;
-  dispatch_once(&onceToken, ^{
-    heldActionClass = NSClassFromString(@"UIHeldAction");
-    transitionContextClass = NSClassFromString(@"_UIViewControllerOneToOneTransitionContext");
-  });
-
-  return @[FBFilterBlockWithObjectIvarRelation([UIView class], @"_subviewCache"),
-           FBFilterBlockWithObjectIvarRelation(heldActionClass, @"m_target"),
-           FBFilterBlockWithObjectToManyIvarsRelation([UITouch class],
-                                                      [NSSet setWithArray:@[@"_view",
-                                                                            @"_gestureRecognizers",
-                                                                            @"_window",
-                                                                            @"_warpedIntoView"]]),
-           FBFilterBlockWithObjectToManyIvarsRelation(transitionContextClass,
-                                                      [NSSet setWithArray:@[@"_toViewController",
-                                                                            @"_fromViewController"]])];
-#else
-  return nil;
-#endif // _INTERNAL_RCD_ENABLED
-}

+ 0 - 86
RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Graph/FBObjectGraphConfiguration.h

@@ -1,86 +0,0 @@
-/**
- * Copyright (c) 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
-
-#import <Foundation/Foundation.h>
-
-#import "FBObjectiveCGraphElement.h"
-
-typedef NS_ENUM(NSUInteger, FBGraphEdgeType) {
-  FBGraphEdgeValid,
-  FBGraphEdgeInvalid,
-};
-
-@protocol FBObjectReference;
-
-/**
- Every filter has to be of type FBGraphEdgeFilterBlock. Filter, given two object graph elements, it should decide,
- whether a reference between them should be filtered out or not.
- @see FBGetStandardGraphEdgeFilters()
- */
-typedef FBGraphEdgeType (^FBGraphEdgeFilterBlock)(FBObjectiveCGraphElement *_Nullable fromObject,
-                                                  NSString *_Nullable byIvar,
-                                                  Class _Nullable toObjectOfClass);
-
-typedef FBObjectiveCGraphElement *_Nullable(^FBObjectiveCGraphElementTransformerBlock)(FBObjectiveCGraphElement *_Nonnull fromObject);
-
-/**
- FBObjectGraphConfiguration represents a configuration for object graph walking.
- It can hold filters and detector specific options.
- */
-@interface FBObjectGraphConfiguration : NSObject
-
-/**
- Every block represents a filter that every reference must pass in order to be inspected.
- Reference will be described as relation from one object to another object. See definition of
- FBGraphEdgeFilterBlock above.
- 
- Invalid relations would be the relations that we are guaranteed are going to be broken at some point.
- Be careful though, it's not so straightforward to tell if the relation will be broken *with 100%
- certainty*, and if you'll filter out something that could otherwise show retain cycle that leaks -
- it would never be caught by detector.
-
- For examples of what are the relations that will be broken at some point check FBStandardGraphEdgeFilters.mm
- */
-@property (nonatomic, readonly, copy, nullable) NSArray<FBGraphEdgeFilterBlock> *filterBlocks;
-
-@property (nonatomic, readonly, copy, nullable) FBObjectiveCGraphElementTransformerBlock transformerBlock;
-
-/**
- Decides if object graph walker should look for retain cycles inside NSTimers.
- */
-@property (nonatomic, readonly) BOOL shouldInspectTimers;
-
-/**
- Decides if block objects should include their invocation address (the code part of the block) in the report.
- If set to YES, then it will change from: `MallocBlock` to `<<MallocBlock:0xADDR>>`.
- You can then symbolicate the address to retrieve a symbol name which will look like:
- `__FOO_block_invoke` where FOO is replaced by the function creating the block.
- This will allow easier understanding of the code involved in the cycle when blocks are involved.
- */
-@property (nonatomic, readonly) BOOL shouldIncludeBlockAddress;
-
-/**
- Will cache layout
- */
-@property (nonatomic, readonly, nullable) NSMutableDictionary<Class, NSArray<id<FBObjectReference>> *> *layoutCache;
-@property (nonatomic, readonly) BOOL shouldCacheLayouts;
-
-- (nonnull instancetype)initWithFilterBlocks:(nonnull NSArray<FBGraphEdgeFilterBlock> *)filterBlocks
-                         shouldInspectTimers:(BOOL)shouldInspectTimers
-                         transformerBlock:(nullable FBObjectiveCGraphElementTransformerBlock)transformerBlock
-                         shouldIncludeBlockAddress:(BOOL)shouldIncludeBlockAddress NS_DESIGNATED_INITIALIZER;
-
-- (nonnull instancetype)initWithFilterBlocks:(nonnull NSArray<FBGraphEdgeFilterBlock> *)filterBlocks
-                         shouldInspectTimers:(BOOL)shouldInspectTimers
-                         transformerBlock:(nullable FBObjectiveCGraphElementTransformerBlock)transformerBlock;
-
-- (nonnull instancetype)initWithFilterBlocks:(nonnull NSArray<FBGraphEdgeFilterBlock> *)filterBlocks
-                         shouldInspectTimers:(BOOL)shouldInspectTimers;
-
-@end

+ 0 - 55
RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Graph/FBObjectGraphConfiguration.m

@@ -1,55 +0,0 @@
-/**
- * Copyright (c) 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
-
-#import "FBObjectGraphConfiguration.h"
-
-@implementation FBObjectGraphConfiguration
-
-- (instancetype)initWithFilterBlocks:(NSArray<FBGraphEdgeFilterBlock> *)filterBlocks
-                 shouldInspectTimers:(BOOL)shouldInspectTimers
-                    transformerBlock:(nullable FBObjectiveCGraphElementTransformerBlock)transformerBlock
-           shouldIncludeBlockAddress:(BOOL)shouldIncludeBlockAddress
-{
-  if (self = [super init]) {
-    _filterBlocks = [filterBlocks copy];
-    _shouldInspectTimers = shouldInspectTimers;
-    _shouldIncludeBlockAddress = shouldIncludeBlockAddress;
-    _transformerBlock = [transformerBlock copy];
-    _layoutCache = [NSMutableDictionary new];
-  }
-
-  return self;
-}
-
-- (instancetype)initWithFilterBlocks:(NSArray<FBGraphEdgeFilterBlock> *)filterBlocks
-                 shouldInspectTimers:(BOOL)shouldInspectTimers
-                    transformerBlock:(nullable FBObjectiveCGraphElementTransformerBlock)transformerBlock
-{
-  return [self initWithFilterBlocks:filterBlocks
-                shouldInspectTimers:shouldInspectTimers
-                   transformerBlock:transformerBlock
-          shouldIncludeBlockAddress:NO];
-}
-
-- (instancetype)initWithFilterBlocks:(NSArray<FBGraphEdgeFilterBlock> *)filterBlocks
-                 shouldInspectTimers:(BOOL)shouldInspectTimers
-{
-  return [self initWithFilterBlocks:filterBlocks
-                shouldInspectTimers:shouldInspectTimers
-                   transformerBlock:nil];
-}
-
-- (instancetype)init
-{
-  // By default we are inspecting timers
-  return [self initWithFilterBlocks:@[]
-                shouldInspectTimers:YES];
-}
-
-@end

+ 0 - 20
RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Graph/FBObjectiveCBlock.h

@@ -1,20 +0,0 @@
-/**
- * Copyright (c) 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
-
-#import <Foundation/Foundation.h>
-
-#import "FBObjectiveCGraphElement.h"
-
-@class FBGraphEdgeFilterProvider;
-
-/**
- Object Graph element representing block.
- */
-@interface FBObjectiveCBlock : FBObjectiveCGraphElement
-@end

+ 0 - 100
RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Graph/FBObjectiveCBlock.m

@@ -1,100 +0,0 @@
-/**
- * Copyright (c) 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
-
-#import "FBObjectiveCBlock.h"
-
-#import <objc/runtime.h>
-
-#import "FBBlockStrongLayout.h"
-#import "FBBlockStrongRelationDetector.h"
-#import "FBObjectGraphConfiguration.h"
-#import "FBObjectiveCObject.h"
-#import "FBRetainCycleUtils.h"
-
-struct __attribute__((packed)) BlockLiteral {
-  void *isa;
-  int flags;
-  int reserved;
-  void *invoke;
-  void *descriptor;
-};
-
-@implementation FBObjectiveCBlock
-
-- (NSSet *)allRetainedObjects
-{
-  NSMutableArray *results = [[[super allRetainedObjects] allObjects] mutableCopy];
-
-  // Grab a strong reference to the object, otherwise it can crash while doing
-  // nasty stuff on deallocation
-  __attribute__((objc_precise_lifetime)) id anObject = self.object;
-
-  void *blockObjectReference = (__bridge void *)anObject;
-  NSArray *allRetainedReferences = FBGetBlockStrongReferences(blockObjectReference);
-
-  for (id object in allRetainedReferences) {
-    FBObjectiveCGraphElement *element = FBWrapObjectGraphElement(self, object, self.configuration);
-    if (element) {
-      [results addObject:element];
-    }
-  }
-
-  return [NSSet setWithArray:results];
-}
-
-/**
- * We want to add more information to blocks because they show up
- * in reports as MallocBlock and StackBlock which is not very informative.
- *
- * A block object is composed of:
- * - code: what should be executed, it's stored in the .TEXT section ;
- * - data: the variables that have been captured ;
- * - metadata: notably the function signature.
- *
- * We extract the address of the code, which can then be converted to a
- * human readable name given the debug symbol file.
- *
- * The symbol name contains the name of the function which allocated
- * the block, making is easier to track the piece of code participating
- * in the cycle. The symbolication must be done outside of this code
- * since it will require access to the debug symbols, not present at
- * runtime.
- *
- * Format: <<CLASSNAME:0xADDR>>
- */
-- (NSString *)classNameOrNull
-{
-  NSString *className = NSStringFromClass([self objectClass]);
-  if (!className) {
-    className = @"(null)";
-  }
-
-  if (!self.configuration.shouldIncludeBlockAddress) {
-    return className;
-  }
-
-  // Find the reference of the block object.
-  __attribute__((objc_precise_lifetime)) id anObject = self.object;
-  if ([anObject isKindOfClass:[FBBlockStrongRelationDetector class]]) {
-    FBBlockStrongRelationDetector *blockObject = anObject;
-    anObject = [blockObject forwarding];
-  }
-  void *blockObjectReference = (__bridge void *)anObject;
-  if (!blockObjectReference) {
-    return className;
-  }
-
-  // Extract the invocated block of code from the structure.
-  const struct BlockLiteral *block = (struct BlockLiteral*) blockObjectReference;
-  const void *blockCodePtr = block->invoke;
-
-  return [NSString stringWithFormat:@"<<%@:0x%llx>>", className, (unsigned long long)blockCodePtr];
-}
-
-@end

+ 0 - 59
RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Graph/FBObjectiveCGraphElement.h

@@ -1,59 +0,0 @@
-/**
- * Copyright (c) 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
-
-#import <Foundation/Foundation.h>
-
-@class FBObjectGraphConfiguration;
-
-/**
- Base Graph Element representation. It carries some data about the object and should be overridden in subclass
- to provide references that subclass holds strongly (different for blocks, objects, other specializations).
- The Graph Element itself can only provide references from FBAssociationManager.
- */
-@interface FBObjectiveCGraphElement : NSObject
-
-/**
- Designated initializer.
- @param object Object this Graph Element will represent.
- @param configuration Provides detector's configuration that contains filters and options
- @param filterProvider Filter Provider that Graph Element will use to determine which references need to be dropped
- @param namePath Description of how the object was retrieved from it's parent. Check namePath property.
- */
-- (nonnull instancetype)initWithObject:(nullable id)object
-                         configuration:(nonnull FBObjectGraphConfiguration *)configuration
-                              namePath:(nullable NSArray<NSString *> *)namePath;
-
-- (nonnull instancetype)initWithObject:(nullable id)object
-                         configuration:(nonnull FBObjectGraphConfiguration *)configuration;
-
-
-/**
- Name path that describes how this object was retrieved from its parent object by names
- (for example ivar names, struct references). For more check FBObjectReference protocol.
- */
-@property (nonatomic, copy, readonly, nullable) NSArray<NSString *> *namePath;
-@property (nonatomic, weak, nullable) id object;
-@property (nonatomic, readonly, nonnull) FBObjectGraphConfiguration *configuration;
-
-/**
- Main accessor to all objects that the given object is retaining. Thread unsafe.
-
- @return NSSet of all objects this object is retaining.
- */
-- (nullable NSSet *)allRetainedObjects;
-
-/**
- @return address of the object represented by this element
- */
-- (size_t)objectAddress;
-
-- (nullable Class)objectClass;
-- (nonnull NSString *)classNameOrNull;
-
-@end

+ 0 - 130
RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Graph/FBObjectiveCGraphElement.mm

@@ -1,130 +0,0 @@
-/**
- * Copyright (c) 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- */
-
-#import "FBObjectiveCGraphElement+Internal.h"
-
-#import <objc/message.h>
-#import <objc/runtime.h>
-
-#import "FBAssociationManager.h"
-#import "FBClassStrongLayout.h"
-#import "FBObjectGraphConfiguration.h"
-#import "FBRetainCycleUtils.h"
-#import "FBRetainCycleDetector.h"
-
-@implementation FBObjectiveCGraphElement
-
-- (instancetype)initWithObject:(id)object
-{
-  return [self initWithObject:object
-                configuration:[FBObjectGraphConfiguration new]];
-}
-
-- (instancetype)initWithObject:(id)object
-                 configuration:(nonnull FBObjectGraphConfiguration *)configuration
-{
-  return [self initWithObject:object
-                configuration:configuration
-                     namePath:nil];
-}
-
-- (instancetype)initWithObject:(id)object
-                 configuration:(nonnull FBObjectGraphConfiguration *)configuration
-                      namePath:(NSArray<NSString *> *)namePath
-{
-  if (self = [super init]) {
-#if _INTERNAL_RCD_ENABLED
-    // We are trying to mimic how ObjectiveC does storeWeak to not fall into
-    // _objc_fatal path
-    // https://github.com/bavarious/objc4/blob/3f282b8dbc0d1e501f97e4ed547a4a99cb3ac10b/runtime/objc-weak.mm#L369
-
-    Class aCls = object_getClass(object);
-
-    BOOL (*allowsWeakReference)(id, SEL) =
-    (__typeof__(allowsWeakReference))class_getMethodImplementation(aCls, @selector(allowsWeakReference));
-
-    if (allowsWeakReference && (IMP)allowsWeakReference != _objc_msgForward) {
-      if (allowsWeakReference(object, @selector(allowsWeakReference))) {
-        // This is still racey since allowsWeakReference could change it value by now.
-        _object = object;
-      }
-    } else {
-      _object = object;
-    }
-#endif
-    _namePath = namePath;
-    _configuration = configuration;
-  }
-
-  return self;
-}
-
-- (NSSet *)allRetainedObjects
-{
-  NSArray *retainedObjectsNotWrapped = [FBAssociationManager associationsForObject:_object];
-  NSMutableSet *retainedObjects = [NSMutableSet new];
-
-  for (id obj in retainedObjectsNotWrapped) {
-    FBObjectiveCGraphElement *element = FBWrapObjectGraphElementWithContext(self,
-                                                                            obj,
-                                                                            _configuration,
-                                                                            @[@"__associated_object"]);
-    if (element) {
-      [retainedObjects addObject:element];
-    }
-  }
-
-  return retainedObjects;
-}
-
-- (BOOL)isEqual:(id)object
-{
-  if ([object isKindOfClass:[FBObjectiveCGraphElement class]]) {
-    FBObjectiveCGraphElement *objcObject = object;
-    // Use pointer equality
-    return objcObject.object == _object;
-  }
-  return NO;
-}
-
-- (NSUInteger)hash
-{
-  return (size_t)_object;
-}
-
-- (NSString *)description
-{
-  if (_namePath) {
-    NSString *namePathStringified = [_namePath componentsJoinedByString:@" -> "];
-    return [NSString stringWithFormat:@"-> %@ -> %@ ", namePathStringified, [self classNameOrNull]];
-  }
-  return [NSString stringWithFormat:@"-> %@ ", [self classNameOrNull]];
-}
-
-- (size_t)objectAddress
-{
-  return (size_t)_object;
-}
-
-- (NSString *)classNameOrNull
-{
-  NSString *className = NSStringFromClass([self objectClass]);
-  if (!className) {
-    className = @"(null)";
-  }
-
-  return className;
-}
-
-- (Class)objectClass
-{
-  return object_getClass(_object);
-}
-
-@end

+ 0 - 0
RainbowPlanetOC/Pods/FBRetainCycleDetector/FBRetainCycleDetector/Graph/FBObjectiveCObject.h


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