@procivis/react-native-one-core 1.26999.0 → 1.41710.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/README.md +71 -40
  2. package/android/build.gradle +46 -10
  3. package/android/build.gradle_opensource +121 -0
  4. package/android/libs/core-reactnative-compatible-2025.0305.1.aar +0 -0
  5. package/android/src/main/AndroidManifest.xml +5 -2
  6. package/android/src/main/java/ch/procivis/one/core/Deserialize.kt +10 -6
  7. package/android/src/main/java/ch/procivis/one/core/DeserializeSpecific.kt +13 -5
  8. package/android/src/main/java/ch/procivis/one/core/ProcivisOneCoreModule.kt +251 -79
  9. package/android/src/main/java/ch/procivis/one/core/ProcivisOneCorePackage.kt +3 -4
  10. package/android/src/main/java/ch/procivis/one/core/SerializeSpecific.kt +13 -1
  11. package/android/src/main/java/ch/procivis/one/core/Util.kt +42 -10
  12. package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadRunner.kt +123 -0
  13. package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadViewManager.kt +23 -0
  14. package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadViewManager.kt_opensource +20 -0
  15. package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadWrapper.kt +396 -0
  16. package/android/src/main/java/ch/procivis/one/core/ubiqu/RegistrationManager.kt +59 -0
  17. package/android/src/main/java/ch/procivis/one/core/ubiqu/TokenManager.kt +48 -0
  18. package/android/src/main/java/ch/procivis/one/core/ubiqu/UbiquKeyStorage.kt +256 -0
  19. package/android/src/main/java/ch/procivis/one/core/ubiqu/UbiquKeyStorage.kt_opensource +51 -0
  20. package/android/src/main/java/ch/procivis/one/core/ubiqu/Util.kt +74 -0
  21. package/android/src/main/java/ch/procivis/one/core/ubiqu/dataformats/CreateIdentityRequest.kt +9 -0
  22. package/android/src/main/java/ch/procivis/one/core/ubiqu/dataformats/CreateIdentityResponse.kt +9 -0
  23. package/android/src/main/java/ch/procivis/one/core/ubiqu/dataformats/RegisterRSEResponse.kt +10 -0
  24. package/core-sdk.json +6 -6
  25. package/dist/index.d.ts +10 -8
  26. package/dist/index.js +31 -25
  27. package/dist/src/cache.d.ts +8 -0
  28. package/dist/src/cache.js +9 -0
  29. package/dist/src/config.d.ts +39 -6
  30. package/dist/src/config.js +19 -0
  31. package/dist/src/core.d.ts +24 -8
  32. package/dist/src/core.js +68 -0
  33. package/dist/src/credential.d.ts +15 -1
  34. package/dist/src/credential.js +5 -0
  35. package/dist/src/credentialSchema.d.ts +5 -2
  36. package/dist/src/credentialSchema.js +2 -0
  37. package/dist/src/did.d.ts +9 -5
  38. package/dist/src/error.d.ts +10 -17
  39. package/dist/src/error.js +5 -14
  40. package/dist/src/history.d.ts +19 -5
  41. package/dist/src/history.js +10 -2
  42. package/dist/src/key.d.ts +3 -0
  43. package/dist/src/organisation.d.ts +8 -0
  44. package/dist/src/organisation.js +1 -0
  45. package/dist/src/proof.d.ts +29 -2
  46. package/dist/src/proof.js +13 -0
  47. package/dist/src/proofSchema.d.ts +2 -0
  48. package/dist/src/trust.d.ts +85 -19
  49. package/dist/src/trust.js +28 -7
  50. package/dist/src/ubiqu.d.ts +49 -0
  51. package/dist/src/ubiqu.js +69 -0
  52. package/ios/Deserialize.swift +203 -24
  53. package/ios/EventEmitter.swift +79 -0
  54. package/ios/ProcivisOneCoreModule.m +74 -6
  55. package/ios/ProcivisOneCoreModule.swift +312 -88
  56. package/ios/ProcivisRNOneCore.xcodeproj/project.pbxproj +28 -26
  57. package/ios/RSEKeyStorage.swift +587 -0
  58. package/ios/RSEKeyStorage.swift_opensource +49 -0
  59. package/ios/RSEPinPad.swift +74 -0
  60. package/ios/RSEPinPad.swift_opensource +21 -0
  61. package/ios/RSEPinPadManager.m +19 -0
  62. package/ios/Serialize.swift +105 -28
  63. package/ios/UBQKit.xcframework/Info.plist +44 -0
  64. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Assets.car +0 -0
  65. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFCompatibilityMacros.h +37 -0
  66. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFHTTPSessionManager.h +304 -0
  67. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFNetworkReachabilityManager.h +216 -0
  68. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFNetworking.h +41 -0
  69. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFPlainTextRequestSerializer.h +16 -0
  70. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFSecurityPolicy.h +156 -0
  71. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFURLRequestSerialization.h +479 -0
  72. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFURLResponseSerialization.h +310 -0
  73. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFURLSessionManager.h +501 -0
  74. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/CardRequestProtocol.h +72 -0
  75. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/Constants.h +222 -0
  76. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/DeviceBindProtocol.h +38 -0
  77. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/DomainSecurityModule.h +43 -0
  78. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/ErrorDomains.h +68 -0
  79. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/FreeAssetProtocol.h +40 -0
  80. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/GDataXMLNode.h +214 -0
  81. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSDictionary+Utilities.h +23 -0
  82. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSFileManager+Utilities.h +20 -0
  83. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSString+Utilities.h +23 -0
  84. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSURL+Utilities.h +12 -0
  85. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/ProtocolBase.h +38 -0
  86. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/ResetPinProtocol.h +45 -0
  87. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/Settings.h +120 -0
  88. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequest.h +58 -0
  89. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestBaseProcessor.h +37 -0
  90. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestBindProcessor.h +34 -0
  91. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestNullProcessor.h +28 -0
  92. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestResetPinProcessor.h +35 -0
  93. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestUnlockProcessor.h +31 -0
  94. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestUseProcessor.h +34 -0
  95. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQKit-Swift.h +761 -0
  96. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQKit.h +56 -0
  97. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQPacket.h +38 -0
  98. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Info.plist +0 -0
  99. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.abi.json +89006 -0
  100. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.private.swiftinterface +1099 -0
  101. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  102. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.swiftinterface +1099 -0
  103. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/module.modulemap +11 -0
  104. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/UBQKit +0 -0
  105. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/_CodeSignature/CodeResources +597 -0
  106. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/certs +0 -0
  107. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/checksums +0 -0
  108. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/pinning_pub +0 -0
  109. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/static +0 -0
  110. package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/stream +0 -0
  111. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Assets.car +0 -0
  112. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFCompatibilityMacros.h +37 -0
  113. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFHTTPSessionManager.h +304 -0
  114. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFNetworkReachabilityManager.h +216 -0
  115. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFNetworking.h +41 -0
  116. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFPlainTextRequestSerializer.h +16 -0
  117. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFSecurityPolicy.h +156 -0
  118. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFURLRequestSerialization.h +479 -0
  119. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFURLResponseSerialization.h +310 -0
  120. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFURLSessionManager.h +501 -0
  121. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/CardRequestProtocol.h +72 -0
  122. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/Constants.h +222 -0
  123. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/DeviceBindProtocol.h +38 -0
  124. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/DomainSecurityModule.h +43 -0
  125. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/ErrorDomains.h +68 -0
  126. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/FreeAssetProtocol.h +40 -0
  127. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/GDataXMLNode.h +214 -0
  128. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSDictionary+Utilities.h +23 -0
  129. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSFileManager+Utilities.h +20 -0
  130. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSString+Utilities.h +23 -0
  131. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSURL+Utilities.h +12 -0
  132. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/ProtocolBase.h +38 -0
  133. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/ResetPinProtocol.h +45 -0
  134. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/Settings.h +120 -0
  135. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequest.h +58 -0
  136. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestBaseProcessor.h +37 -0
  137. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestBindProcessor.h +34 -0
  138. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestNullProcessor.h +28 -0
  139. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestResetPinProcessor.h +35 -0
  140. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestUnlockProcessor.h +31 -0
  141. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestUseProcessor.h +34 -0
  142. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQKit-Swift.h +1522 -0
  143. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQKit.h +56 -0
  144. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQPacket.h +38 -0
  145. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Info.plist +0 -0
  146. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.abi.json +89006 -0
  147. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1099 -0
  148. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  149. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1099 -0
  150. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +89006 -0
  151. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1099 -0
  152. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  153. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1099 -0
  154. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/module.modulemap +11 -0
  155. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/UBQKit +0 -0
  156. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/_CodeSignature/CodeResources +652 -0
  157. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/certs +0 -0
  158. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/checksums +0 -0
  159. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/pinning_pub +0 -0
  160. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/static +0 -0
  161. package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/stream +0 -0
  162. package/ios/Util.swift +21 -24
  163. package/package.json +4 -3
  164. package/react-native-one-core.podspec +4 -5
@@ -0,0 +1,304 @@
1
+ // AFHTTPSessionManager.h
2
+ // Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
3
+ //
4
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ // of this software and associated documentation files (the "Software"), to deal
6
+ // in the Software without restriction, including without limitation the rights
7
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ // copies of the Software, and to permit persons to whom the Software is
9
+ // furnished to do so, subject to the following conditions:
10
+ //
11
+ // The above copyright notice and this permission notice shall be included in
12
+ // all copies or substantial portions of the Software.
13
+ //
14
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ // THE SOFTWARE.
21
+
22
+ #import <Foundation/Foundation.h>
23
+ #if !TARGET_OS_WATCH
24
+ #import <SystemConfiguration/SystemConfiguration.h>
25
+ #endif
26
+ #import <TargetConditionals.h>
27
+
28
+ #if TARGET_OS_IOS || TARGET_OS_WATCH || TARGET_OS_TV
29
+ #import <MobileCoreServices/MobileCoreServices.h>
30
+ #else
31
+ #import <CoreServices/CoreServices.h>
32
+ #endif
33
+
34
+ #import "AFURLSessionManager.h"
35
+
36
+ /**
37
+ `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.
38
+
39
+ ## Subclassing Notes
40
+
41
+ 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.
42
+
43
+ For developers targeting iOS 6 or Mac OS X 10.8 or earlier, `AFHTTPRequestOperationManager` may be used to similar effect.
44
+
45
+ ## Methods to Override
46
+
47
+ 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:`.
48
+
49
+ ## Serialization
50
+
51
+ 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>`.
52
+
53
+ Responses received from the server are automatically validated and serialized by the `responseSerializers` property, which is an object conforming to `<AFURLResponseSerialization>`
54
+
55
+ ## URL Construction Using Relative Paths
56
+
57
+ 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:`.
58
+
59
+ Below are a few examples of how `baseURL` and relative paths interact:
60
+
61
+ NSURL *baseURL = [NSURL URLWithString:@"http://example.com/v1/"];
62
+ [NSURL URLWithString:@"foo" relativeToURL:baseURL]; // http://example.com/v1/foo
63
+ [NSURL URLWithString:@"foo?bar=baz" relativeToURL:baseURL]; // http://example.com/v1/foo?bar=baz
64
+ [NSURL URLWithString:@"/foo" relativeToURL:baseURL]; // http://example.com/foo
65
+ [NSURL URLWithString:@"foo/" relativeToURL:baseURL]; // http://example.com/v1/foo
66
+ [NSURL URLWithString:@"/foo/" relativeToURL:baseURL]; // http://example.com/foo/
67
+ [NSURL URLWithString:@"http://example2.com/" relativeToURL:baseURL]; // http://example2.com/
68
+
69
+ 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.
70
+
71
+ @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.
72
+ */
73
+
74
+ NS_ASSUME_NONNULL_BEGIN
75
+
76
+ @interface AFHTTPSessionManager : AFURLSessionManager <NSSecureCoding, NSCopying>
77
+
78
+ /**
79
+ The URL used to construct requests from relative paths in methods like `requestWithMethod:URLString:parameters:`, and the `GET` / `POST` / et al. convenience methods.
80
+ */
81
+ @property (readonly, nonatomic, strong, nullable) NSURL *baseURL;
82
+
83
+ /**
84
+ 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.
85
+
86
+ @warning `requestSerializer` must not be `nil`.
87
+ */
88
+ @property (nonatomic, strong) AFHTTPRequestSerializer <AFURLRequestSerialization> * requestSerializer;
89
+
90
+ /**
91
+ 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`.
92
+
93
+ @warning `responseSerializer` must not be `nil`.
94
+ */
95
+ @property (nonatomic, strong) AFHTTPResponseSerializer <AFURLResponseSerialization> * responseSerializer;
96
+
97
+ ///-------------------------------
98
+ /// @name Managing Security Policy
99
+ ///-------------------------------
100
+
101
+ /**
102
+ 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.
103
+ */
104
+ @property (nonatomic, strong) AFSecurityPolicy *securityPolicy;
105
+
106
+ ///---------------------
107
+ /// @name Initialization
108
+ ///---------------------
109
+
110
+ /**
111
+ Creates and returns an `AFHTTPSessionManager` object.
112
+ */
113
+ + (id)manager;
114
+
115
+ /**
116
+ Initializes an `AFHTTPSessionManager` object with the specified base URL.
117
+
118
+ @param url The base URL for the HTTP client.
119
+
120
+ @return The newly-initialized HTTP client
121
+ */
122
+ - (id)initWithBaseURL:(nullable NSURL *)url;
123
+
124
+ /**
125
+ Initializes an `AFHTTPSessionManager` object with the specified base URL.
126
+
127
+ This is the designated initializer.
128
+
129
+ @param url The base URL for the HTTP client.
130
+ @param configuration The configuration used to create the managed session.
131
+
132
+ @return The newly-initialized HTTP client
133
+ */
134
+ - (id)initWithBaseURL:(nullable NSURL *)url
135
+ sessionConfiguration:(nullable NSURLSessionConfiguration *)configuration NS_DESIGNATED_INITIALIZER;
136
+
137
+ ///---------------------------
138
+ /// @name Making HTTP Requests
139
+ ///---------------------------
140
+
141
+ /**
142
+ Creates and runs an `NSURLSessionDataTask` with a `GET` request.
143
+
144
+ @param URLString The URL string used to create the request URL.
145
+ @param parameters The parameters to be encoded according to the client request serializer.
146
+ @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.
147
+ @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.
148
+
149
+ @see -dataTaskWithRequest:completionHandler:
150
+ */
151
+ - (nullable NSURLSessionDataTask *)GET:(NSString *)URLString
152
+ parameters:(nullable id)parameters
153
+ success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success
154
+ failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure DEPRECATED_ATTRIBUTE;
155
+
156
+
157
+ /**
158
+ Creates and runs an `NSURLSessionDataTask` with a `GET` request.
159
+
160
+ @param URLString The URL string used to create the request URL.
161
+ @param parameters The parameters to be encoded according to the client request serializer.
162
+ @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.
163
+ @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.
164
+ @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.
165
+
166
+ @see -dataTaskWithRequest:uploadProgress:downloadProgress:completionHandler:
167
+ */
168
+ - (nullable NSURLSessionDataTask *)GET:(NSString *)URLString
169
+ parameters:(nullable id)parameters
170
+ progress:(nullable void (^)(NSProgress *downloadProgress))downloadProgress
171
+ success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success
172
+ failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;
173
+
174
+ /**
175
+ Creates and runs an `NSURLSessionDataTask` with a `HEAD` request.
176
+
177
+ @param URLString The URL string used to create the request URL.
178
+ @param parameters The parameters to be encoded according to the client request serializer.
179
+ @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.
180
+ @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.
181
+
182
+ @see -dataTaskWithRequest:completionHandler:
183
+ */
184
+ - (nullable NSURLSessionDataTask *)HEAD:(NSString *)URLString
185
+ parameters:(nullable id)parameters
186
+ success:(nullable void (^)(NSURLSessionDataTask *task))success
187
+ failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;
188
+
189
+ /**
190
+ Creates and runs an `NSURLSessionDataTask` with a `POST` request.
191
+
192
+ @param URLString The URL string used to create the request URL.
193
+ @param parameters The parameters to be encoded according to the client request serializer.
194
+ @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.
195
+ @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.
196
+
197
+ @see -dataTaskWithRequest:completionHandler:
198
+ */
199
+ - (nullable NSURLSessionDataTask *)POST:(NSString *)URLString
200
+ parameters:(nullable id)parameters
201
+ success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success
202
+ failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure DEPRECATED_ATTRIBUTE;
203
+
204
+ /**
205
+ Creates and runs an `NSURLSessionDataTask` with a `POST` request.
206
+
207
+ @param URLString The URL string used to create the request URL.
208
+ @param parameters The parameters to be encoded according to the client request serializer.
209
+ @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.
210
+ @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.
211
+ @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.
212
+
213
+ @see -dataTaskWithRequest:uploadProgress:downloadProgress:completionHandler:
214
+ */
215
+ - (nullable NSURLSessionDataTask *)POST:(NSString *)URLString
216
+ parameters:(nullable id)parameters
217
+ progress:(nullable void (^)(NSProgress *uploadProgress))uploadProgress
218
+ success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success
219
+ failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;
220
+
221
+ /**
222
+ Creates and runs an `NSURLSessionDataTask` with a multipart `POST` request.
223
+
224
+ @param URLString The URL string used to create the request URL.
225
+ @param parameters The parameters to be encoded according to the client request serializer.
226
+ @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.
227
+ @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.
228
+ @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.
229
+
230
+ @see -dataTaskWithRequest:completionHandler:
231
+ */
232
+ - (nullable NSURLSessionDataTask *)POST:(NSString *)URLString
233
+ parameters:(nullable id)parameters
234
+ constructingBodyWithBlock:(nullable void (^)(id <AFMultipartFormData> formData))block
235
+ success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success
236
+ failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure DEPRECATED_ATTRIBUTE;
237
+
238
+ /**
239
+ Creates and runs an `NSURLSessionDataTask` with a multipart `POST` request.
240
+
241
+ @param URLString The URL string used to create the request URL.
242
+ @param parameters The parameters to be encoded according to the client request serializer.
243
+ @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.
244
+ @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.
245
+ @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.
246
+ @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.
247
+
248
+ @see -dataTaskWithRequest:uploadProgress:downloadProgress:completionHandler:
249
+ */
250
+ - (nullable NSURLSessionDataTask *)POST:(NSString *)URLString
251
+ parameters:(nullable id)parameters
252
+ constructingBodyWithBlock:(nullable void (^)(id <AFMultipartFormData> formData))block
253
+ progress:(nullable void (^)(NSProgress *uploadProgress))uploadProgress
254
+ success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success
255
+ failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;
256
+
257
+ /**
258
+ Creates and runs an `NSURLSessionDataTask` with a `PUT` request.
259
+
260
+ @param URLString The URL string used to create the request URL.
261
+ @param parameters The parameters to be encoded according to the client request serializer.
262
+ @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.
263
+ @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.
264
+
265
+ @see -dataTaskWithRequest:completionHandler:
266
+ */
267
+ - (nullable NSURLSessionDataTask *)PUT:(NSString *)URLString
268
+ parameters:(nullable id)parameters
269
+ success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success
270
+ failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;
271
+
272
+ /**
273
+ Creates and runs an `NSURLSessionDataTask` with a `PATCH` request.
274
+
275
+ @param URLString The URL string used to create the request URL.
276
+ @param parameters The parameters to be encoded according to the client request serializer.
277
+ @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.
278
+ @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.
279
+
280
+ @see -dataTaskWithRequest:completionHandler:
281
+ */
282
+ - (nullable NSURLSessionDataTask *)PATCH:(NSString *)URLString
283
+ parameters:(nullable id)parameters
284
+ success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success
285
+ failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;
286
+
287
+ /**
288
+ Creates and runs an `NSURLSessionDataTask` with a `DELETE` request.
289
+
290
+ @param URLString The URL string used to create the request URL.
291
+ @param parameters The parameters to be encoded according to the client request serializer.
292
+ @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.
293
+ @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.
294
+
295
+ @see -dataTaskWithRequest:completionHandler:
296
+ */
297
+ - (nullable NSURLSessionDataTask *)DELETE:(NSString *)URLString
298
+ parameters:(nullable id)parameters
299
+ success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success
300
+ failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;
301
+
302
+ @end
303
+
304
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,216 @@
1
+ // AFNetworkReachabilityManager.h
2
+ // Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
3
+ //
4
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ // of this software and associated documentation files (the "Software"), to deal
6
+ // in the Software without restriction, including without limitation the rights
7
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ // copies of the Software, and to permit persons to whom the Software is
9
+ // furnished to do so, subject to the following conditions:
10
+ //
11
+ // The above copyright notice and this permission notice shall be included in
12
+ // all copies or substantial portions of the Software.
13
+ //
14
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ // THE SOFTWARE.
21
+
22
+ #import <Foundation/Foundation.h>
23
+
24
+ #if !TARGET_OS_WATCH
25
+ #import <SystemConfiguration/SystemConfiguration.h>
26
+
27
+ typedef NS_ENUM(NSInteger, AFNetworkReachabilityStatus) {
28
+ AFNetworkReachabilityStatusUnknown = -1,
29
+ AFNetworkReachabilityStatusNotReachable = 0,
30
+ AFNetworkReachabilityStatusReachableViaWWAN = 1,
31
+ AFNetworkReachabilityStatusReachableViaWiFi = 2,
32
+ };
33
+
34
+ NS_ASSUME_NONNULL_BEGIN
35
+
36
+ /**
37
+ `AFNetworkReachabilityManager` monitors the reachability of domains, and addresses for both WWAN and WiFi network interfaces.
38
+
39
+ 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.
40
+
41
+ See Apple's Reachability Sample Code ( https://developer.apple.com/library/ios/samplecode/reachability/ )
42
+
43
+ @warning Instances of `AFNetworkReachabilityManager` must be started with `-startMonitoring` before reachability status can be determined.
44
+ */
45
+ @interface AFNetworkReachabilityManager : NSObject
46
+
47
+ /**
48
+ The current network reachability status.
49
+ */
50
+ @property (readonly, nonatomic, assign) AFNetworkReachabilityStatus networkReachabilityStatus;
51
+
52
+ /**
53
+ Whether or not the network is currently reachable.
54
+ */
55
+ @property (readonly, nonatomic, assign, getter = isReachable) BOOL reachable;
56
+
57
+ /**
58
+ Whether or not the network is currently reachable via WWAN.
59
+ */
60
+ @property (readonly, nonatomic, assign, getter = isReachableViaWWAN) BOOL reachableViaWWAN;
61
+
62
+ /**
63
+ Whether or not the network is currently reachable via WiFi.
64
+ */
65
+ @property (readonly, nonatomic, assign, getter = isReachableViaWiFi) BOOL reachableViaWiFi;
66
+
67
+ ///---------------------
68
+ /// @name Initialization
69
+ ///---------------------
70
+
71
+ /**
72
+ Returns the shared network reachability manager.
73
+ */
74
+ + (id)sharedManager;
75
+
76
+ /**
77
+ Creates and returns a network reachability manager with the default socket address.
78
+
79
+ @return An initialized network reachability manager, actively monitoring the default socket address.
80
+ */
81
+ + (id)manager;
82
+
83
+ /**
84
+ Creates and returns a network reachability manager for the specified domain.
85
+
86
+ @param domain The domain used to evaluate network reachability.
87
+
88
+ @return An initialized network reachability manager, actively monitoring the specified domain.
89
+ */
90
+ + (id)managerForDomain:(NSString *)domain;
91
+
92
+ /**
93
+ Creates and returns a network reachability manager for the socket address.
94
+
95
+ @param address The socket address (`sockaddr_in6`) used to evaluate network reachability.
96
+
97
+ @return An initialized network reachability manager, actively monitoring the specified socket address.
98
+ */
99
+ + (id)managerForAddress:(const void *)address;
100
+
101
+ /**
102
+ Initializes an instance of a network reachability manager from the specified reachability object.
103
+
104
+ @param reachability The reachability object to monitor.
105
+
106
+ @return An initialized network reachability manager, actively monitoring the specified reachability.
107
+ */
108
+ - (id)initWithReachability:(SCNetworkReachabilityRef)reachability NS_DESIGNATED_INITIALIZER;
109
+
110
+ /**
111
+ * Unavailable initializer
112
+ */
113
+ + (id)new NS_UNAVAILABLE;
114
+
115
+ /**
116
+ * Unavailable initializer
117
+ */
118
+ - (id)init NS_UNAVAILABLE;
119
+
120
+ ///--------------------------------------------------
121
+ /// @name Starting & Stopping Reachability Monitoring
122
+ ///--------------------------------------------------
123
+
124
+ /**
125
+ Starts monitoring for changes in network reachability status.
126
+ */
127
+ - (void)startMonitoring;
128
+
129
+ /**
130
+ Stops monitoring for changes in network reachability status.
131
+ */
132
+ - (void)stopMonitoring;
133
+
134
+ ///-------------------------------------------------
135
+ /// @name Getting Localized Reachability Description
136
+ ///-------------------------------------------------
137
+
138
+ /**
139
+ Returns a localized string representation of the current network reachability status.
140
+ */
141
+ - (NSString *)localizedNetworkReachabilityStatusString;
142
+
143
+ ///---------------------------------------------------
144
+ /// @name Setting Network Reachability Change Callback
145
+ ///---------------------------------------------------
146
+
147
+ /**
148
+ Sets a callback to be executed when the network availability of the `baseURL` host changes.
149
+
150
+ @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`.
151
+ */
152
+ - (void)setReachabilityStatusChangeBlock:(nullable void (^)(AFNetworkReachabilityStatus status))block;
153
+
154
+ @end
155
+
156
+ ///----------------
157
+ /// @name Constants
158
+ ///----------------
159
+
160
+ /**
161
+ ## Network Reachability
162
+
163
+ The following constants are provided by `AFNetworkReachabilityManager` as possible network reachability statuses.
164
+
165
+ enum {
166
+ AFNetworkReachabilityStatusUnknown,
167
+ AFNetworkReachabilityStatusNotReachable,
168
+ AFNetworkReachabilityStatusReachableViaWWAN,
169
+ AFNetworkReachabilityStatusReachableViaWiFi,
170
+ }
171
+
172
+ `AFNetworkReachabilityStatusUnknown`
173
+ The `baseURL` host reachability is not known.
174
+
175
+ `AFNetworkReachabilityStatusNotReachable`
176
+ The `baseURL` host cannot be reached.
177
+
178
+ `AFNetworkReachabilityStatusReachableViaWWAN`
179
+ The `baseURL` host can be reached via a cellular connection, such as EDGE or GPRS.
180
+
181
+ `AFNetworkReachabilityStatusReachableViaWiFi`
182
+ The `baseURL` host can be reached via a Wi-Fi connection.
183
+
184
+ ### Keys for Notification UserInfo Dictionary
185
+
186
+ Strings that are used as keys in a `userInfo` dictionary in a network reachability status change notification.
187
+
188
+ `AFNetworkingReachabilityNotificationStatusItem`
189
+ A key in the userInfo dictionary in a `AFNetworkingReachabilityDidChangeNotification` notification.
190
+ The corresponding value is an `NSNumber` object representing the `AFNetworkReachabilityStatus` value for the current reachability status.
191
+ */
192
+
193
+ ///--------------------
194
+ /// @name Notifications
195
+ ///--------------------
196
+
197
+ /**
198
+ Posted when network reachability changes.
199
+ 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.
200
+
201
+ @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`).
202
+ */
203
+ FOUNDATION_EXPORT NSString * const AFNetworkingReachabilityDidChangeNotification;
204
+ FOUNDATION_EXPORT NSString * const AFNetworkingReachabilityNotificationStatusItem;
205
+
206
+ ///--------------------
207
+ /// @name Functions
208
+ ///--------------------
209
+
210
+ /**
211
+ Returns a localized string representation of an `AFNetworkReachabilityStatus` value.
212
+ */
213
+ FOUNDATION_EXPORT NSString * AFStringFromNetworkReachabilityStatus(AFNetworkReachabilityStatus status);
214
+
215
+ NS_ASSUME_NONNULL_END
216
+ #endif
@@ -0,0 +1,41 @@
1
+ // AFNetworking.h
2
+ //
3
+ // Copyright (c) 2013 AFNetworking (http://afnetworking.com/)
4
+ //
5
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ // of this software and associated documentation files (the "Software"), to deal
7
+ // in the Software without restriction, including without limitation the rights
8
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ // copies of the Software, and to permit persons to whom the Software is
10
+ // furnished to do so, subject to the following conditions:
11
+ //
12
+ // The above copyright notice and this permission notice shall be included in
13
+ // all copies or substantial portions of the Software.
14
+ //
15
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ // THE SOFTWARE.
22
+
23
+ #import <Foundation/Foundation.h>
24
+ #import <Availability.h>
25
+ #import <TargetConditionals.h>
26
+
27
+ #ifndef _AFNETWORKING_
28
+ #define _AFNETWORKING_
29
+
30
+ #import "AFURLRequestSerialization.h"
31
+ #import "AFURLResponseSerialization.h"
32
+ #import "AFSecurityPolicy.h"
33
+
34
+ #if !TARGET_OS_WATCH
35
+ #import "AFNetworkReachabilityManager.h"
36
+ #endif
37
+
38
+ #import "AFURLSessionManager.h"
39
+ #import "AFHTTPSessionManager.h"
40
+
41
+ #endif /* _AFNETWORKING_ */
@@ -0,0 +1,16 @@
1
+ //
2
+ // AFPlainTextRequestSerializer.h
3
+ // Authenticate
4
+ //
5
+ // Created by Rogier van de Pol on 01-10-14.
6
+ // Copyright (c) 2014 Ubiqu. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ #import "AFURLRequestSerialization.h"
12
+
13
+
14
+ @interface AFPlainTextRequestSerializer : AFHTTPRequestSerializer
15
+
16
+ @end