WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit c0f26ab

Browse files
authored
Merge pull request #250 from razorpay/chore/new-arch-spm-fix
ISS-1516172 : chore/new arch spm fix
2 parents 8ed9d34 + 66fac73 commit c0f26ab

File tree

74 files changed

+43553
-29
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+43553
-29
lines changed

Example.xcodeproj/project.pbxproj

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
0CE1C1F824B77D9500D88A05 /* CheckoutViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0CE1C1F624B77D9500D88A05 /* CheckoutViewController.swift */; };
1818
0CE1C1F924B77D9500D88A05 /* SettingsTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0CE1C1F724B77D9500D88A05 /* SettingsTableViewController.swift */; };
1919
0CE1C1FB24B77DAA00D88A05 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0CE1C1FA24B77DAA00D88A05 /* Main.storyboard */; };
20-
2A463C08552FA5DD68A07AEC /* Pods_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E3DBCD37D3A7AD3DC455CCC3 /* Pods_Example.framework */; };
20+
D4EE84A0135713EE692DC3A0 /* Pods_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D77BAD8E846E3E70FE1915DA /* Pods_Example.framework */; };
2121
/* End PBXBuildFile section */
2222

2323
/* Begin PBXContainerItemProxy section */
@@ -45,17 +45,17 @@
4545
0CE1C1F624B77D9500D88A05 /* CheckoutViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CheckoutViewController.swift; sourceTree = "<group>"; };
4646
0CE1C1F724B77D9500D88A05 /* SettingsTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SettingsTableViewController.swift; sourceTree = "<group>"; };
4747
0CE1C1FA24B77DAA00D88A05 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = "<group>"; };
48-
7C1794A16487BE6356A532B9 /* 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>"; };
49-
7F7FBBE6100FA2083A919788 /* 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>"; };
50-
E3DBCD37D3A7AD3DC455CCC3 /* Pods_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
48+
2492D1CCA217BE66FE5007D3 /* 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>"; };
49+
D77BAD8E846E3E70FE1915DA /* Pods_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
50+
F97B4E6059C00E867C87F85C /* 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>"; };
5151
/* End PBXFileReference section */
5252

5353
/* Begin PBXFrameworksBuildPhase section */
5454
0C1A133923E858E10015A0BD /* Frameworks */ = {
5555
isa = PBXFrameworksBuildPhase;
5656
buildActionMask = 2147483647;
5757
files = (
58-
2A463C08552FA5DD68A07AEC /* Pods_Example.framework in Frameworks */,
58+
D4EE84A0135713EE692DC3A0 /* Pods_Example.framework in Frameworks */,
5959
);
6060
runOnlyForDeploymentPostprocessing = 0;
6161
};
@@ -76,7 +76,7 @@
7676
0C89ACE9246E79150097C815 /* ExampleTests */,
7777
0C1A133D23E858E10015A0BD /* Products */,
7878
B0E5AD7052C9FE9580DEAAAD /* Pods */,
79-
80E5D612FA9878278B36717F /* Frameworks */,
79+
1EEEB4EFCC49FB269F06C6FA /* Frameworks */,
8080
);
8181
sourceTree = "<group>";
8282
};
@@ -123,19 +123,19 @@
123123
path = Resources;
124124
sourceTree = "<group>";
125125
};
126-
80E5D612FA9878278B36717F /* Frameworks */ = {
126+
1EEEB4EFCC49FB269F06C6FA /* Frameworks */ = {
127127
isa = PBXGroup;
128128
children = (
129-
E3DBCD37D3A7AD3DC455CCC3 /* Pods_Example.framework */,
129+
D77BAD8E846E3E70FE1915DA /* Pods_Example.framework */,
130130
);
131131
name = Frameworks;
132132
sourceTree = "<group>";
133133
};
134134
B0E5AD7052C9FE9580DEAAAD /* Pods */ = {
135135
isa = PBXGroup;
136136
children = (
137-
7C1794A16487BE6356A532B9 /* Pods-Example.debug.xcconfig */,
138-
7F7FBBE6100FA2083A919788 /* Pods-Example.release.xcconfig */,
137+
F97B4E6059C00E867C87F85C /* Pods-Example.debug.xcconfig */,
138+
2492D1CCA217BE66FE5007D3 /* Pods-Example.release.xcconfig */,
139139
);
140140
path = Pods;
141141
sourceTree = "<group>";
@@ -147,11 +147,11 @@
147147
isa = PBXNativeTarget;
148148
buildConfigurationList = 0C1A135023E858E30015A0BD /* Build configuration list for PBXNativeTarget "Example" */;
149149
buildPhases = (
150-
7268E9F10F05C15AB08BAA9F /* [CP] Check Pods Manifest.lock */,
150+
34BA73F89AAF5FC19C465981 /* [CP] Check Pods Manifest.lock */,
151151
0C1A133823E858E10015A0BD /* Sources */,
152152
0C1A133923E858E10015A0BD /* Frameworks */,
153153
0C1A133A23E858E10015A0BD /* Resources */,
154-
9238ED25A0968470B1157007 /* [CP] Embed Pods Frameworks */,
154+
75DD3E71DD07D2103084E1CC /* [CP] Embed Pods Frameworks */,
155155
);
156156
buildRules = (
157157
);
@@ -239,7 +239,7 @@
239239
/* End PBXResourcesBuildPhase section */
240240

241241
/* Begin PBXShellScriptBuildPhase section */
242-
7268E9F10F05C15AB08BAA9F /* [CP] Check Pods Manifest.lock */ = {
242+
34BA73F89AAF5FC19C465981 /* [CP] Check Pods Manifest.lock */ = {
243243
isa = PBXShellScriptBuildPhase;
244244
buildActionMask = 2147483647;
245245
files = (
@@ -261,7 +261,7 @@
261261
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";
262262
showEnvVarsInLog = 0;
263263
};
264-
9238ED25A0968470B1157007 /* [CP] Embed Pods Frameworks */ = {
264+
75DD3E71DD07D2103084E1CC /* [CP] Embed Pods Frameworks */ = {
265265
isa = PBXShellScriptBuildPhase;
266266
buildActionMask = 2147483647;
267267
files = (
@@ -442,7 +442,7 @@
442442
};
443443
0C1A135123E858E30015A0BD /* Debug */ = {
444444
isa = XCBuildConfiguration;
445-
baseConfigurationReference = 7C1794A16487BE6356A532B9 /* Pods-Example.debug.xcconfig */;
445+
baseConfigurationReference = F97B4E6059C00E867C87F85C /* Pods-Example.debug.xcconfig */;
446446
buildSettings = {
447447
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
448448
CODE_SIGN_STYLE = Automatic;
@@ -461,7 +461,7 @@
461461
};
462462
0C1A135223E858E30015A0BD /* Release */ = {
463463
isa = XCBuildConfiguration;
464-
baseConfigurationReference = 7F7FBBE6100FA2083A919788 /* Pods-Example.release.xcconfig */;
464+
baseConfigurationReference = 2492D1CCA217BE66FE5007D3 /* Pods-Example.release.xcconfig */;
465465
buildSettings = {
466466
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
467467
CODE_SIGN_STYLE = Automatic;

Example/CheckoutViewController.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ class CheckoutViewController: UIViewController,RazorpayPaymentCompletionProtocol
7474
"name":"Test Payment iOS",
7575
"theme":[
7676
"color":"#000000"
77+
],
78+
"prefill":[
79+
"contact":"9731585653"
7780
]
7881
]
7982
if let rzp = self.razorpayObj {

Package.swift

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,56 @@
11
// swift-tools-version: 5.9
2-
// The swift-tools-version declares the minimum version of Swift required to build this package.
3-
42
import PackageDescription
53

6-
74
let packageVersion = "1.4.1"
85

9-
106
let package = Package(
117
name: "RazorpayCheckout",
128
platforms: [
139
.iOS(.v13)
1410
],
1511
products: [
16-
// Products define the executables and libraries a package produces, making them visible to other packages.
12+
// This product exposes everything needed to use Razorpay
1713
.library(
1814
name: "RazorpayCheckout",
19-
targets: ["RazorpayCheckout", "Razorpay"]
15+
targets: [
16+
"RazorpayCheckout",
17+
"Razorpay",
18+
"RazorpayCore",
19+
"RazorpayStandard"
20+
]
2021
),
2122
],
2223
targets: [
2324
.target(
2425
name: "RazorpayCheckout",
26+
dependencies: [
27+
.target(name: "Razorpay"),
28+
.target(name: "RazorpayCore"),
29+
.target(name: "RazorpayStandard"),
30+
],
2531
path: "RazorpayCheckout/Sources/RazorpayCheckoutCore"
2632
),
33+
2734
.binaryTarget(
2835
name: "Razorpay",
29-
path: "Pod/Razorpay.xcframework"
36+
path: "Pod/core/Razorpay.xcframework"
3037
),
38+
39+
.binaryTarget(
40+
name: "RazorpayStandard",
41+
path: "Pod/RazorpayStandard.xcframework"
42+
),
43+
44+
.binaryTarget(
45+
name: "RazorpayCore",
46+
path: "Pod/core/RazorpayCore.xcframework"
47+
),
48+
3149
.testTarget(
3250
name: "RazorpayCheckoutTests",
3351
dependencies: ["RazorpayCheckout"],
3452
path: "RazorpayCheckout/Tests/RazorpayCheckoutTests"
3553
)
3654
],
3755
swiftLanguageVersions: [.v5]
38-
)
56+
)
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>AvailableLibraries</key>
6+
<array>
7+
<dict>
8+
<key>BinaryPath</key>
9+
<string>Razorpay.framework/Razorpay</string>
10+
<key>DebugSymbolsPath</key>
11+
<string>dSYMs</string>
12+
<key>LibraryIdentifier</key>
13+
<string>ios-arm64_x86_64-simulator</string>
14+
<key>LibraryPath</key>
15+
<string>Razorpay.framework</string>
16+
<key>SupportedArchitectures</key>
17+
<array>
18+
<string>arm64</string>
19+
<string>x86_64</string>
20+
</array>
21+
<key>SupportedPlatform</key>
22+
<string>ios</string>
23+
<key>SupportedPlatformVariant</key>
24+
<string>simulator</string>
25+
</dict>
26+
<dict>
27+
<key>BinaryPath</key>
28+
<string>Razorpay.framework/Razorpay</string>
29+
<key>DebugSymbolsPath</key>
30+
<string>dSYMs</string>
31+
<key>LibraryIdentifier</key>
32+
<string>ios-arm64</string>
33+
<key>LibraryPath</key>
34+
<string>Razorpay.framework</string>
35+
<key>SupportedArchitectures</key>
36+
<array>
37+
<string>arm64</string>
38+
</array>
39+
<key>SupportedPlatform</key>
40+
<string>ios</string>
41+
</dict>
42+
</array>
43+
<key>CFBundlePackageType</key>
44+
<string>XFWK</string>
45+
<key>XCFrameworkFormatVersion</key>
46+
<string>1.0</string>
47+
</dict>
48+
</plist>

0 commit comments

Comments
 (0)