Skip to content

Commit a09ea79

Browse files
1.0.16
1 parent e827095 commit a09ea79

File tree

8 files changed

+171
-202
lines changed

8 files changed

+171
-202
lines changed

Example/Example.xcodeproj/project.pbxproj

Lines changed: 24 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
/* Begin PBXBuildFile section */
1010
04F2AEF42AE632AD0023C90E /* TamaraSDKCheckoutRepresentation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04F2AEF32AE632AD0023C90E /* TamaraSDKCheckoutRepresentation.swift */; };
1111
314ACA5D2BB25B5500F27916 /* CustomView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 314ACA5C2BB25B5500F27916 /* CustomView.swift */; };
12-
4A4FAA51BCC6327CF4512DE0 /* Pods_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0F490586AC5F45A129844701 /* Pods_Example.framework */; };
1312
645368EB2450A7D900ED9A3B /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 645368EA2450A7D900ED9A3B /* AppDelegate.swift */; };
1413
645368ED2450A7D900ED9A3B /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 645368EC2450A7D900ED9A3B /* SceneDelegate.swift */; };
1514
645368EF2450A7D900ED9A3B /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 645368EE2450A7D900ED9A3B /* ContentView.swift */; };
@@ -38,6 +37,7 @@
3837
84FC9B4C2543F77F0068AF31 /* CheckoutRequestBody.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84FC9B472543F77F0068AF31 /* CheckoutRequestBody.swift */; };
3938
84FC9B4D2543F77F0068AF31 /* CheckoutResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84FC9B482543F77F0068AF31 /* CheckoutResponse.swift */; };
4039
84FC9BA5254425850068AF31 /* CheckoutWebView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84FC9BA4254425850068AF31 /* CheckoutWebView.swift */; };
40+
A4A3A44D2D098597006F6B23 /* TamaraSDK in Frameworks */ = {isa = PBXBuildFile; productRef = A4A3A44C2D098597006F6B23 /* TamaraSDK */; };
4141
D84637FB2B58CFAD003B0A63 /* WebViewContainer.swift in Sources */ = {isa = PBXBuildFile; fileRef = D84637FA2B58CFAD003B0A63 /* WebViewContainer.swift */; };
4242
FA4BFF422A08A14C00343420 /* MainView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA4BFF412A08A14C00343420 /* MainView.swift */; };
4343
/* End PBXBuildFile section */
@@ -74,8 +74,6 @@
7474

7575
/* Begin PBXFileReference section */
7676
04F2AEF32AE632AD0023C90E /* TamaraSDKCheckoutRepresentation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TamaraSDKCheckoutRepresentation.swift; sourceTree = "<group>"; };
77-
0F490586AC5F45A129844701 /* Pods_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
78-
287A6E3A243E7720ACA98089 /* Pods-Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example.debug.xcconfig"; path = "Target Support Files/Pods-Example/Pods-Example.debug.xcconfig"; sourceTree = "<group>"; };
7977
314ACA5C2BB25B5500F27916 /* CustomView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomView.swift; sourceTree = "<group>"; };
8078
645368E72450A7D900ED9A3B /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
8179
645368EA2450A7D900ED9A3B /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
@@ -111,7 +109,6 @@
111109
84FC9B472543F77F0068AF31 /* CheckoutRequestBody.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CheckoutRequestBody.swift; sourceTree = "<group>"; };
112110
84FC9B482543F77F0068AF31 /* CheckoutResponse.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CheckoutResponse.swift; sourceTree = "<group>"; };
113111
84FC9BA4254425850068AF31 /* CheckoutWebView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CheckoutWebView.swift; sourceTree = "<group>"; };
114-
BD98B44E57100AF1BE14583E /* Pods-Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example.release.xcconfig"; path = "Target Support Files/Pods-Example/Pods-Example.release.xcconfig"; sourceTree = "<group>"; };
115112
D84637FA2B58CFAD003B0A63 /* WebViewContainer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebViewContainer.swift; sourceTree = "<group>"; };
116113
FA4BFF412A08A14C00343420 /* MainView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainView.swift; sourceTree = "<group>"; };
117114
/* End PBXFileReference section */
@@ -121,7 +118,7 @@
121118
isa = PBXFrameworksBuildPhase;
122119
buildActionMask = 2147483647;
123120
files = (
124-
4A4FAA51BCC6327CF4512DE0 /* Pods_Example.framework in Frameworks */,
121+
A4A3A44D2D098597006F6B23 /* TamaraSDK in Frameworks */,
125122
);
126123
runOnlyForDeploymentPostprocessing = 0;
127124
};
@@ -142,24 +139,13 @@
142139
/* End PBXFrameworksBuildPhase section */
143140

144141
/* Begin PBXGroup section */
145-
298F0ED3153C93976CE9C7FC /* Pods */ = {
146-
isa = PBXGroup;
147-
children = (
148-
287A6E3A243E7720ACA98089 /* Pods-Example.debug.xcconfig */,
149-
BD98B44E57100AF1BE14583E /* Pods-Example.release.xcconfig */,
150-
);
151-
path = Pods;
152-
sourceTree = "<group>";
153-
};
154142
645368DE2450A7D900ED9A3B = {
155143
isa = PBXGroup;
156144
children = (
157145
645368E92450A7D900ED9A3B /* Example */,
158146
645369002450A7D900ED9A3B /* ExampleTests */,
159147
6453690B2450A7D900ED9A3B /* ExampleUITests */,
160148
645368E82450A7D900ED9A3B /* Products */,
161-
298F0ED3153C93976CE9C7FC /* Pods */,
162-
69EBFA1B2B9C5E84395409C0 /* Frameworks */,
163149
);
164150
sourceTree = "<group>";
165151
};
@@ -257,14 +243,6 @@
257243
path = Components;
258244
sourceTree = "<group>";
259245
};
260-
69EBFA1B2B9C5E84395409C0 /* Frameworks */ = {
261-
isa = PBXGroup;
262-
children = (
263-
0F490586AC5F45A129844701 /* Pods_Example.framework */,
264-
);
265-
name = Frameworks;
266-
sourceTree = "<group>";
267-
};
268246
84FC9B362543F6FB0068AF31 /* Tamara */ = {
269247
isa = PBXGroup;
270248
children = (
@@ -284,12 +262,10 @@
284262
isa = PBXNativeTarget;
285263
buildConfigurationList = 645369112450A7D900ED9A3B /* Build configuration list for PBXNativeTarget "Example" */;
286264
buildPhases = (
287-
5CC5D3AD415C30B424E83ADB /* [CP] Check Pods Manifest.lock */,
288265
645368E32450A7D900ED9A3B /* Sources */,
289266
645368E42450A7D900ED9A3B /* Frameworks */,
290267
645368E52450A7D900ED9A3B /* Resources */,
291268
84FC9B622543FB770068AF31 /* Embed Frameworks */,
292-
1D785330167C01551AFC1C69 /* [CP] Embed Pods Frameworks */,
293269
);
294270
buildRules = (
295271
);
@@ -369,6 +345,9 @@
369345
Base,
370346
);
371347
mainGroup = 645368DE2450A7D900ED9A3B;
348+
packageReferences = (
349+
A4A3A44B2D098597006F6B23 /* XCRemoteSwiftPackageReference "ios-sdk" */,
350+
);
372351
productRefGroup = 645368E82450A7D900ED9A3B /* Products */;
373352
projectDirPath = "";
374353
projectRoot = "";
@@ -407,48 +386,6 @@
407386
};
408387
/* End PBXResourcesBuildPhase section */
409388

410-
/* Begin PBXShellScriptBuildPhase section */
411-
1D785330167C01551AFC1C69 /* [CP] Embed Pods Frameworks */ = {
412-
isa = PBXShellScriptBuildPhase;
413-
buildActionMask = 2147483647;
414-
files = (
415-
);
416-
inputFileListPaths = (
417-
"${PODS_ROOT}/Target Support Files/Pods-Example/Pods-Example-frameworks-${CONFIGURATION}-input-files.xcfilelist",
418-
);
419-
name = "[CP] Embed Pods Frameworks";
420-
outputFileListPaths = (
421-
"${PODS_ROOT}/Target Support Files/Pods-Example/Pods-Example-frameworks-${CONFIGURATION}-output-files.xcfilelist",
422-
);
423-
runOnlyForDeploymentPostprocessing = 0;
424-
shellPath = /bin/sh;
425-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Example/Pods-Example-frameworks.sh\"\n";
426-
showEnvVarsInLog = 0;
427-
};
428-
5CC5D3AD415C30B424E83ADB /* [CP] Check Pods Manifest.lock */ = {
429-
isa = PBXShellScriptBuildPhase;
430-
buildActionMask = 2147483647;
431-
files = (
432-
);
433-
inputFileListPaths = (
434-
);
435-
inputPaths = (
436-
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
437-
"${PODS_ROOT}/Manifest.lock",
438-
);
439-
name = "[CP] Check Pods Manifest.lock";
440-
outputFileListPaths = (
441-
);
442-
outputPaths = (
443-
"$(DERIVED_FILE_DIR)/Pods-Example-checkManifestLockResult.txt",
444-
);
445-
runOnlyForDeploymentPostprocessing = 0;
446-
shellPath = /bin/sh;
447-
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";
448-
showEnvVarsInLog = 0;
449-
};
450-
/* End PBXShellScriptBuildPhase section */
451-
452389
/* Begin PBXSourcesBuildPhase section */
453390
645368E32450A7D900ED9A3B /* Sources */ = {
454391
isa = PBXSourcesBuildPhase;
@@ -647,7 +584,6 @@
647584
};
648585
645369122450A7D900ED9A3B /* Debug */ = {
649586
isa = XCBuildConfiguration;
650-
baseConfigurationReference = 287A6E3A243E7720ACA98089 /* Pods-Example.debug.xcconfig */;
651587
buildSettings = {
652588
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
653589
CODE_SIGN_ENTITLEMENTS = "";
@@ -676,7 +612,6 @@
676612
};
677613
645369132450A7D900ED9A3B /* Release */ = {
678614
isa = XCBuildConfiguration;
679-
baseConfigurationReference = BD98B44E57100AF1BE14583E /* Pods-Example.release.xcconfig */;
680615
buildSettings = {
681616
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
682617
CODE_SIGN_ENTITLEMENTS = "";
@@ -827,6 +762,25 @@
827762
defaultConfigurationName = Release;
828763
};
829764
/* End XCConfigurationList section */
765+
766+
/* Begin XCRemoteSwiftPackageReference section */
767+
A4A3A44B2D098597006F6B23 /* XCRemoteSwiftPackageReference "ios-sdk" */ = {
768+
isa = XCRemoteSwiftPackageReference;
769+
repositoryURL = "https://github.com/Tamara-Technology/ios-sdk";
770+
requirement = {
771+
kind = upToNextMajorVersion;
772+
minimumVersion = 1.0.15;
773+
};
774+
};
775+
/* End XCRemoteSwiftPackageReference section */
776+
777+
/* Begin XCSwiftPackageProductDependency section */
778+
A4A3A44C2D098597006F6B23 /* TamaraSDK */ = {
779+
isa = XCSwiftPackageProductDependency;
780+
package = A4A3A44B2D098597006F6B23 /* XCRemoteSwiftPackageReference "ios-sdk" */;
781+
productName = TamaraSDK;
782+
};
783+
/* End XCSwiftPackageProductDependency section */
830784
};
831785
rootObject = 645368DF2450A7D900ED9A3B /* Project object */;
832786
}
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1620"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES"
8+
buildArchitectures = "Automatic">
9+
<BuildActionEntries>
10+
<BuildActionEntry
11+
buildForTesting = "YES"
12+
buildForRunning = "YES"
13+
buildForProfiling = "YES"
14+
buildForArchiving = "YES"
15+
buildForAnalyzing = "YES">
16+
<BuildableReference
17+
BuildableIdentifier = "primary"
18+
BlueprintIdentifier = "645368E62450A7D900ED9A3B"
19+
BuildableName = "Example.app"
20+
BlueprintName = "Example"
21+
ReferencedContainer = "container:Example.xcodeproj">
22+
</BuildableReference>
23+
</BuildActionEntry>
24+
</BuildActionEntries>
25+
</BuildAction>
26+
<TestAction
27+
buildConfiguration = "Debug"
28+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
29+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
30+
shouldUseLaunchSchemeArgsEnv = "YES"
31+
shouldAutocreateTestPlan = "YES">
32+
<Testables>
33+
<TestableReference
34+
skipped = "NO">
35+
<BuildableReference
36+
BuildableIdentifier = "primary"
37+
BlueprintIdentifier = "645368FC2450A7D900ED9A3B"
38+
BuildableName = "ExampleTests.xctest"
39+
BlueprintName = "ExampleTests"
40+
ReferencedContainer = "container:Example.xcodeproj">
41+
</BuildableReference>
42+
</TestableReference>
43+
<TestableReference
44+
skipped = "NO">
45+
<BuildableReference
46+
BuildableIdentifier = "primary"
47+
BlueprintIdentifier = "645369072450A7D900ED9A3B"
48+
BuildableName = "ExampleUITests.xctest"
49+
BlueprintName = "ExampleUITests"
50+
ReferencedContainer = "container:Example.xcodeproj">
51+
</BuildableReference>
52+
</TestableReference>
53+
</Testables>
54+
</TestAction>
55+
<LaunchAction
56+
buildConfiguration = "Debug"
57+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
58+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
59+
launchStyle = "0"
60+
useCustomWorkingDirectory = "NO"
61+
ignoresPersistentStateOnLaunch = "NO"
62+
debugDocumentVersioning = "YES"
63+
debugServiceExtension = "internal"
64+
allowLocationSimulation = "YES">
65+
<BuildableProductRunnable
66+
runnableDebuggingMode = "0">
67+
<BuildableReference
68+
BuildableIdentifier = "primary"
69+
BlueprintIdentifier = "645368E62450A7D900ED9A3B"
70+
BuildableName = "Example.app"
71+
BlueprintName = "Example"
72+
ReferencedContainer = "container:Example.xcodeproj">
73+
</BuildableReference>
74+
</BuildableProductRunnable>
75+
</LaunchAction>
76+
<ProfileAction
77+
buildConfiguration = "Release"
78+
shouldUseLaunchSchemeArgsEnv = "YES"
79+
savedToolIdentifier = ""
80+
useCustomWorkingDirectory = "NO"
81+
debugDocumentVersioning = "YES">
82+
<BuildableProductRunnable
83+
runnableDebuggingMode = "0">
84+
<BuildableReference
85+
BuildableIdentifier = "primary"
86+
BlueprintIdentifier = "645368E62450A7D900ED9A3B"
87+
BuildableName = "Example.app"
88+
BlueprintName = "Example"
89+
ReferencedContainer = "container:Example.xcodeproj">
90+
</BuildableReference>
91+
</BuildableProductRunnable>
92+
</ProfileAction>
93+
<AnalyzeAction
94+
buildConfiguration = "Debug">
95+
</AnalyzeAction>
96+
<ArchiveAction
97+
buildConfiguration = "Release"
98+
revealArchiveInOrganizer = "YES">
99+
</ArchiveAction>
100+
</Scheme>

Example/Example.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Example/Constants/OtherContants.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@
99
import Foundation
1010

1111
let currency = "SAR"
12-
1312
let countryCode = "SA"
14-
15-
let MERCHANT_USER = "ios-sdk@tamara.co"
16-
let MERCHANT_PASS = "9x!077G@Thzw"
1713
let HOST = "https://api-sandbox.tamara.co"
18-
let MERCHANT_TOKEN = "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhY2NvdW50SWQiOiIxMWFjZmM5Zi00YjgxLTRlNDQtYmEyMy04MmFkNGVkZGNlZGYiLCJ0eXBlIjoibWVyY2hhbnQiLCJzYWx0IjoiYTVlZmEwYWU2NmI4OGQyOWZjNWY2OGI1ZjRjZTFhN2IiLCJpYXQiOjE2MDM2ODQxMTYsImlzcyI6IlRhbWFyYSJ9.Wtv2f1Q49Fet1x4Ua-0ld2-p6BwEVRAhfpXRGuMXH-PeeB89IjnKGvoWW4lp0woUQ5MjCOQzuH9mec6cx15-ZxqWd4ZkAf1LZUEZZWcFBvpgjaACQQbYu0AcKfmO7B-JCexfoT5jVjz118b0T4o1zOnOyAfTITJKcjoYL4JRa0T2ktHoMNqjQ1S0zl0iFLgQU0phaX6o-3xrqF7WSOA1hMQme0ory4Al5YnE9IzTT-DdRe8u2dq7nNsowzODe_i6TWhBJWEvAv1ujUvt3DLkL4RzqKHqML4wUy1TPu_LmPLOwhwaiAxNNl72APZXtMBSgR74-xEPOujSwxSWI6UdVw"
14+
let MERCHANT_TOKEN = ""
15+
let NOTIFICATION_TOKEN = ""
1916

2017
enum WebViewParagrams: String {
2118
case language = "en"

0 commit comments

Comments
 (0)