Merge pull request #215 from TouchInstinct/fix/api_parameters

Make url and parameters public for ApiRequestParameters
This commit is contained in:
Ivan Babkin 2019-07-10 12:24:50 +03:00 committed by GitHub
commit 0ff4c685d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 13 additions and 10 deletions

View File

@ -1,5 +1,8 @@
# Changelog
### 0.9.24
- **Fix**: Make `ApiRequestParameters` properties public.
### 0.9.23
- **Add**: Rounding for `Decimal`.
- **Add**: `doubleValue` property for `Decimal`.

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "LeadKit"
s.version = "0.9.23"
s.version = "0.9.24"
s.summary = "iOS framework with a bunch of tools for rapid development"
s.homepage = "https://github.com/TouchInstinct/LeadKit"
s.license = "Apache License, Version 2.0"

View File

@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.9.23</string>
<string>0.9.24</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>

View File

@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.9.23</string>
<string>0.9.24</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>

View File

@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.9.23</string>
<string>0.9.24</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>

View File

@ -31,16 +31,16 @@ public struct ApiRequestParameters {
///
/// - dictionary: dictionary parameter
/// - array: array parameter
enum RequestParameters {
public enum RequestParameters {
case dictionary(Parameters)
case array([Any])
}
let method: HTTPMethod
let url: URLConvertible
let parameters: RequestParameters?
let encoding: ParameterEncoding
let headers: HTTPHeaders?
public let url: URLConvertible
public let parameters: RequestParameters?
public let method: HTTPMethod
public let encoding: ParameterEncoding
public let headers: HTTPHeaders?
public init(url: URLConvertible,
method: HTTPMethod = .get,