Skip to content

Commit

Permalink
Update the sample to use the latest SDK and Swift 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
falnatsheh committed Apr 18, 2019
1 parent 6f9ae71 commit c995f93
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@
A738FBC421481B8F008D2760 /* Frameworks */,
A738FBC521481B8F008D2760 /* Resources */,
18408A26EDC5ABD9B5899CE0 /* [CP] Embed Pods Frameworks */,
8F2A90BF2F1F72105CEE49D8 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand All @@ -169,7 +168,6 @@
A7DA4567215EAC2C00F79725 /* Frameworks */,
A7DA4568215EAC2C00F79725 /* Resources */,
BB6A7ADD60E5AB1C10A97C3F /* [CP] Embed Pods Frameworks */,
51C9DD2FE502D76E61320460 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand Down Expand Up @@ -285,46 +283,6 @@
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SwiftExampleApp/Pods-SwiftExampleApp-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
51C9DD2FE502D76E61320460 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-ObjCExampleApp/Pods-ObjCExampleApp-resources.sh",
"${PODS_ROOT}/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Resources/GoogleMaps.bundle",
"${PODS_ROOT}/GooglePlaces/Frameworks/GooglePlaces.framework/Resources/GooglePlaces.bundle",
);
name = "[CP] Copy Pods Resources";
outputPaths = (
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleMaps.bundle",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GooglePlaces.bundle",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ObjCExampleApp/Pods-ObjCExampleApp-resources.sh\"\n";
showEnvVarsInLog = 0;
};
8F2A90BF2F1F72105CEE49D8 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-SwiftExampleApp/Pods-SwiftExampleApp-resources.sh",
"${PODS_ROOT}/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Resources/GoogleMaps.bundle",
"${PODS_ROOT}/GooglePlaces/Frameworks/GooglePlaces.framework/Resources/GooglePlaces.bundle",
);
name = "[CP] Copy Pods Resources";
outputPaths = (
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleMaps.bundle",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GooglePlaces.bundle",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SwiftExampleApp/Pods-SwiftExampleApp-resources.sh\"\n";
showEnvVarsInLog = 0;
};
BB6A7ADD60E5AB1C10A97C3F /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -559,7 +517,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = TradeIt.SwiftExampleApp;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand All @@ -578,7 +536,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = TradeIt.SwiftExampleApp;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand Down
4 changes: 2 additions & 2 deletions CocoaPodsExamples/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ target 'SwiftExampleApp' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!

pod 'TradeItAccountOpeningSDK', "~> 0.1.1"
pod 'TradeItAccountOpeningSDK', "~> 1.2.3"
end

target 'ObjCExampleApp' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!

pod 'TradeItAccountOpeningSDK', "~> 0.1.1"
pod 'TradeItAccountOpeningSDK', "~> 1.2.3"
end


7 changes: 3 additions & 4 deletions CocoaPodsExamples/SwiftExampleApp/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
#error ("Provide your TradeIt API key and Google Maps API Key")
private func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
#error ("Provide your TradeIt API")
TradeItAccountOpeningSDK.configure(
apiKey: "YOUR TRADEIT API KEY",
environment: .production,
googleMapsApiKey: "YOUR GOOGLE MAPS API KEY"
environment: .production
)

return true
Expand Down

0 comments on commit c995f93

Please sign in to comment.