Skip to content

Commit

Permalink
Merge pull request #2 from gligorkot/swift-5
Browse files Browse the repository at this point in the history
updating Moya to 13.x.x and Swift 5 migration
  • Loading branch information
gligorkot committed Apr 29, 2019
2 parents 1ed7013 + 0000604 commit 1a4b1d6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Classes/Core/Networking.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public struct Networking<API: TargetType & APIType>: NetworkingProtocol {
// MARK: - static methods
public extension Networking {

public static func newNetworking() -> Networking {
static func newNetworking() -> Networking {
return Networking(provider: newProvider(plugins))
}

Expand Down
6 changes: 3 additions & 3 deletions GKNetworkingKit.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'GKNetworkingKit'
s.version = '1.2.0'
s.version = '1.3.0'
s.summary = 'GKNetworkingKit framework.'
s.description = <<-DESC
* GKNetworkingKit framework
Expand All @@ -15,9 +15,9 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/gligorkot/GKNetworkingKit.git', :tag => s.version.to_s }

s.source_files = 'Classes/**', 'Classes/**/*.{swift}'
s.pod_target_xcconfig = { 'SWIFT_VERSION' => '4.2' }
s.pod_target_xcconfig = { 'SWIFT_VERSION' => '5.0' }

s.dependency 'Moya', '~> 12.0.x'
s.dependency 'Moya', '~> 13.0.x'
s.dependency 'GKBaseKit', '~> 1.0.x'
s.requires_arc = true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,12 @@
TargetAttributes = {
86AB98B82060A5E7000E558F = {
CreatedOnToolsVersion = 9.2;
LastSwiftMigration = 1000;
LastSwiftMigration = 1020;
ProvisioningStyle = Automatic;
};
86AB98EB2060A714000E558F = {
CreatedOnToolsVersion = 9.2;
LastSwiftMigration = 1020;
ProvisioningStyle = Automatic;
TestTargetID = 86AB98B82060A5E7000E558F;
};
Expand Down Expand Up @@ -262,7 +263,7 @@
inputFileListPaths = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-GKNetworkingKitExample/Pods-GKNetworkingKitExample-frameworks.sh",
"${PODS_ROOT}/Target Support Files/Pods-GKNetworkingKitExample/Pods-GKNetworkingKitExample-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/Alamofire/Alamofire.framework",
"${BUILT_PRODUCTS_DIR}/GKBaseKit/GKBaseKit.framework",
"${BUILT_PRODUCTS_DIR}/GKNetworkingKit/GKNetworkingKit.framework",
Expand All @@ -281,7 +282,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-GKNetworkingKitExample/Pods-GKNetworkingKitExample-frameworks.sh\"\n";
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-GKNetworkingKitExample/Pods-GKNetworkingKitExample-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
936411375A4346C6CAE9884D /* [CP] Check Pods Manifest.lock */ = {
Expand Down Expand Up @@ -314,7 +315,7 @@
inputFileListPaths = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-GKNetworkingKitExample-GKNetworkingKitTests/Pods-GKNetworkingKitExample-GKNetworkingKitTests-frameworks.sh",
"${PODS_ROOT}/Target Support Files/Pods-GKNetworkingKitExample-GKNetworkingKitTests/Pods-GKNetworkingKitExample-GKNetworkingKitTests-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/Alamofire/Alamofire.framework",
"${BUILT_PRODUCTS_DIR}/GKBaseKit/GKBaseKit.framework",
"${BUILT_PRODUCTS_DIR}/GKNetworkingKit/GKNetworkingKit.framework",
Expand All @@ -335,7 +336,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-GKNetworkingKitExample-GKNetworkingKitTests/Pods-GKNetworkingKitExample-GKNetworkingKitTests-frameworks.sh\"\n";
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-GKNetworkingKitExample-GKNetworkingKitTests/Pods-GKNetworkingKitExample-GKNetworkingKitTests-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
Expand Down Expand Up @@ -510,7 +511,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = nz.co.gligor.GKNetworkingKitExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand All @@ -526,7 +527,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = nz.co.gligor.GKNetworkingKitExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand All @@ -540,7 +541,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = nz.co.gligor.NetworkingKitTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GKNetworkingKitExample.app/GKNetworkingKitExample";
};
Expand All @@ -555,7 +556,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = nz.co.gligor.NetworkingKitTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GKNetworkingKitExample.app/GKNetworkingKitExample";
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1000"
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1000"
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down

0 comments on commit 1a4b1d6

Please sign in to comment.