Skip to content

Commit 342eacb

Browse files
authored
Merge pull request #333 from tangem/feature/IOS-5453-add-spm-support
IOS-5453: Add SPM support
2 parents d7f37df + b65de7a commit 342eacb

File tree

29 files changed

+704
-248
lines changed

29 files changed

+704
-248
lines changed

Example/Gemfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://rubygems.org"
2+
3+
gem "cocoapods", "~> 1.14.0"

Example/Gemfile.lock

+107
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (3.0.6)
5+
rexml
6+
activesupport (7.1.2)
7+
base64
8+
bigdecimal
9+
concurrent-ruby (~> 1.0, >= 1.0.2)
10+
connection_pool (>= 2.2.5)
11+
drb
12+
i18n (>= 1.6, < 2)
13+
minitest (>= 5.1)
14+
mutex_m
15+
tzinfo (~> 2.0)
16+
addressable (2.8.6)
17+
public_suffix (>= 2.0.2, < 6.0)
18+
algoliasearch (1.27.5)
19+
httpclient (~> 2.8, >= 2.8.3)
20+
json (>= 1.5.1)
21+
atomos (0.1.3)
22+
base64 (0.2.0)
23+
bigdecimal (3.1.5)
24+
claide (1.1.0)
25+
cocoapods (1.14.3)
26+
addressable (~> 2.8)
27+
claide (>= 1.0.2, < 2.0)
28+
cocoapods-core (= 1.14.3)
29+
cocoapods-deintegrate (>= 1.0.3, < 2.0)
30+
cocoapods-downloader (>= 2.1, < 3.0)
31+
cocoapods-plugins (>= 1.0.0, < 2.0)
32+
cocoapods-search (>= 1.0.0, < 2.0)
33+
cocoapods-trunk (>= 1.6.0, < 2.0)
34+
cocoapods-try (>= 1.1.0, < 2.0)
35+
colored2 (~> 3.1)
36+
escape (~> 0.0.4)
37+
fourflusher (>= 2.3.0, < 3.0)
38+
gh_inspector (~> 1.0)
39+
molinillo (~> 0.8.0)
40+
nap (~> 1.0)
41+
ruby-macho (>= 2.3.0, < 3.0)
42+
xcodeproj (>= 1.23.0, < 2.0)
43+
cocoapods-core (1.14.3)
44+
activesupport (>= 5.0, < 8)
45+
addressable (~> 2.8)
46+
algoliasearch (~> 1.0)
47+
concurrent-ruby (~> 1.1)
48+
fuzzy_match (~> 2.0.4)
49+
nap (~> 1.0)
50+
netrc (~> 0.11)
51+
public_suffix (~> 4.0)
52+
typhoeus (~> 1.0)
53+
cocoapods-deintegrate (1.0.5)
54+
cocoapods-downloader (2.1)
55+
cocoapods-plugins (1.0.0)
56+
nap
57+
cocoapods-search (1.0.1)
58+
cocoapods-trunk (1.6.0)
59+
nap (>= 0.8, < 2.0)
60+
netrc (~> 0.11)
61+
cocoapods-try (1.2.0)
62+
colored2 (3.1.2)
63+
concurrent-ruby (1.2.2)
64+
connection_pool (2.4.1)
65+
drb (2.2.0)
66+
ruby2_keywords
67+
escape (0.0.4)
68+
ethon (0.16.0)
69+
ffi (>= 1.15.0)
70+
ffi (1.16.3)
71+
fourflusher (2.3.1)
72+
fuzzy_match (2.0.4)
73+
gh_inspector (1.1.3)
74+
httpclient (2.8.3)
75+
i18n (1.14.1)
76+
concurrent-ruby (~> 1.0)
77+
json (2.7.1)
78+
minitest (5.20.0)
79+
molinillo (0.8.0)
80+
mutex_m (0.2.0)
81+
nanaimo (0.3.0)
82+
nap (1.1.0)
83+
netrc (0.11.0)
84+
public_suffix (4.0.7)
85+
rexml (3.2.6)
86+
ruby-macho (2.5.1)
87+
ruby2_keywords (0.0.5)
88+
typhoeus (1.4.1)
89+
ethon (>= 0.9.0)
90+
tzinfo (2.0.6)
91+
concurrent-ruby (~> 1.0)
92+
xcodeproj (1.23.0)
93+
CFPropertyList (>= 2.3.3, < 4.0)
94+
atomos (~> 0.1.3)
95+
claide (>= 1.0.2, < 2.0)
96+
colored2 (~> 3.1)
97+
nanaimo (~> 0.3.0)
98+
rexml (~> 3.2.4)
99+
100+
PLATFORMS
101+
arm64-darwin-21
102+
103+
DEPENDENCIES
104+
cocoapods (~> 1.14.0)
105+
106+
BUNDLED WITH
107+
2.4.22

Example/Podfile.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ EXTERNAL SOURCES:
99
:path: "../"
1010

1111
SPEC CHECKSUMS:
12-
TangemSdk: f3adf8d0c18bf7a76406462fa31c0efa9f2efa93
12+
TangemSdk: 61e07ff112d4095cfa688fa7d4694e59fa29f76d
1313

1414
PODFILE CHECKSUM: fb4745483d8583db4c8ae8aa3ccbde86ca112a6b
1515

16-
COCOAPODS: 1.12.1
16+
COCOAPODS: 1.14.3

Example/TangemSdkExample.xcodeproj/project.pbxproj

+23-12
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 52;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -41,6 +41,8 @@
4141
5DDCEC7A25C958220002090D /* UI+.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5DDCEC7425C957930002090D /* UI+.swift */; };
4242
B00A67B3253D8CAC002D7D53 /* Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = B00A67B2253D8CAC002D7D53 /* Utils.swift */; };
4343
B00A67B6253D8DA2002D7D53 /* Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = B00A67B2253D8CAC002D7D53 /* Utils.swift */; };
44+
B6B9589C2B2FCA9900E7B74E /* Gemfile in Resources */ = {isa = PBXBuildFile; fileRef = B6B9589A2B2FCA9900E7B74E /* Gemfile */; };
45+
B6B9589D2B2FCA9900E7B74E /* Podfile in Resources */ = {isa = PBXBuildFile; fileRef = B6B9589B2B2FCA9900E7B74E /* Podfile */; };
4446
DC23ED9F2912DD0D0023E626 /* ResetToFactorySettingsTask.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC23ED9E2912DD0D0023E626 /* ResetToFactorySettingsTask.swift */; };
4547
DC23EDA02912DD520023E626 /* ResetToFactorySettingsTask.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC23ED9E2912DD0D0023E626 /* ResetToFactorySettingsTask.swift */; };
4648
DC28E0F22877F84B00AE7A84 /* DebugLogger.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC28E0F12877F84B00AE7A84 /* DebugLogger.swift */; };
@@ -93,6 +95,8 @@
9395
5E2717BD1D7CB2EFFB59D0F4 /* Pods-TangemSdkExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TangemSdkExample.release.xcconfig"; path = "Target Support Files/Pods-TangemSdkExample/Pods-TangemSdkExample.release.xcconfig"; sourceTree = "<group>"; };
9496
ABA3866CD02DAF9913B7E6BD /* Pods-TangemSdkExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TangemSdkExample.debug.xcconfig"; path = "Target Support Files/Pods-TangemSdkExample/Pods-TangemSdkExample.debug.xcconfig"; sourceTree = "<group>"; };
9597
B00A67B2253D8CAC002D7D53 /* Utils.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Utils.swift; sourceTree = "<group>"; };
98+
B6B9589A2B2FCA9900E7B74E /* Gemfile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Gemfile; sourceTree = "<group>"; };
99+
B6B9589B2B2FCA9900E7B74E /* Podfile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Podfile; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
96100
DC23ED9E2912DD0D0023E626 /* ResetToFactorySettingsTask.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ResetToFactorySettingsTask.swift; sourceTree = "<group>"; };
97101
DC28E0F12877F84B00AE7A84 /* DebugLogger.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DebugLogger.swift; sourceTree = "<group>"; };
98102
E53EB3E423F2C7C90079CC11 /* TangemSdkExampleDevelopmentUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TangemSdkExampleDevelopmentUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -135,10 +139,10 @@
135139
5D032008266A8523008472EC /* ExampleButton.swift */,
136140
5DDCEC7425C957930002090D /* UI+.swift */,
137141
B00A67B2253D8CAC002D7D53 /* Utils.swift */,
138-
5D78C1C4234F435C008D7478 /* LaunchScreen.storyboard */,
139-
5D78C1C2234F435C008D7478 /* Assets.xcassets */,
140142
5D78C1B9234F435B008D7478 /* AppDelegate.swift */,
141143
5D03200D266A85CB008472EC /* ActivityIndicatorView.swift */,
144+
5D78C1C4234F435C008D7478 /* LaunchScreen.storyboard */,
145+
5D78C1C2234F435C008D7478 /* Assets.xcassets */,
142146
);
143147
path = Common;
144148
sourceTree = "<group>";
@@ -158,6 +162,8 @@
158162
5D78C1AD234F435B008D7478 = {
159163
isa = PBXGroup;
160164
children = (
165+
B6B9589A2B2FCA9900E7B74E /* Gemfile */,
166+
B6B9589B2B2FCA9900E7B74E /* Podfile */,
161167
5D78C1B8234F435B008D7478 /* TangemSdkExample */,
162168
E53EB3E523F2C7C90079CC11 /* TangemSdkExampleDevelopmentUITests */,
163169
5D78C1B7234F435B008D7478 /* Products */,
@@ -179,12 +185,12 @@
179185
5D78C1B8234F435B008D7478 /* TangemSdkExample */ = {
180186
isa = PBXGroup;
181187
children = (
188+
5D03200C266A8548008472EC /* Common */,
182189
5D2BDF7E26DCE000002F7E19 /* Developer */,
183190
5D032000266A6A15008472EC /* AppModel.swift */,
184191
5D031FFC266A6960008472EC /* ContentView.swift */,
185-
5D03200C266A8548008472EC /* Common */,
186-
5D7FE136234F7D6700A1F440 /* TangemSdkExample.entitlements */,
187192
5D1C6C7127214EA900E04A8B /* SettingsView.swift */,
193+
5D7FE136234F7D6700A1F440 /* TangemSdkExample.entitlements */,
188194
);
189195
path = TangemSdkExample;
190196
sourceTree = "<group>";
@@ -281,8 +287,9 @@
281287
5D78C1AE234F435B008D7478 /* Project object */ = {
282288
isa = PBXProject;
283289
attributes = {
290+
BuildIndependentTargetsInParallel = YES;
284291
LastSwiftUpdateCheck = 1120;
285-
LastUpgradeCheck = 1250;
292+
LastUpgradeCheck = 1510;
286293
ORGANIZATIONNAME = "Tangem AG";
287294
TargetAttributes = {
288295
5D78C1B5234F435B008D7478 = {
@@ -294,7 +301,7 @@
294301
};
295302
};
296303
};
297-
buildConfigurationList = 5D78C1B1234F435B008D7478 /* Build configuration list for PBXProject "TangemSDKExample" */;
304+
buildConfigurationList = 5D78C1B1234F435B008D7478 /* Build configuration list for PBXProject "TangemSdkExample" */;
298305
compatibilityVersion = "Xcode 9.3";
299306
developmentRegion = en;
300307
hasScannedForEncodings = 0;
@@ -319,7 +326,9 @@
319326
isa = PBXResourcesBuildPhase;
320327
buildActionMask = 2147483647;
321328
files = (
329+
B6B9589C2B2FCA9900E7B74E /* Gemfile in Resources */,
322330
5D78C1C6234F435C008D7478 /* LaunchScreen.storyboard in Resources */,
331+
B6B9589D2B2FCA9900E7B74E /* Podfile in Resources */,
323332
5D78C1C3234F435C008D7478 /* Assets.xcassets in Resources */,
324333
);
325334
runOnlyForDeploymentPostprocessing = 0;
@@ -492,6 +501,7 @@
492501
DEBUG_INFORMATION_FORMAT = dwarf;
493502
ENABLE_STRICT_OBJC_MSGSEND = YES;
494503
ENABLE_TESTABILITY = YES;
504+
ENABLE_USER_SCRIPT_SANDBOXING = NO;
495505
GCC_C_LANGUAGE_STANDARD = gnu11;
496506
GCC_DYNAMIC_NO_PIC = NO;
497507
GCC_NO_COMMON_BLOCKS = YES;
@@ -553,6 +563,7 @@
553563
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
554564
ENABLE_NS_ASSERTIONS = NO;
555565
ENABLE_STRICT_OBJC_MSGSEND = YES;
566+
ENABLE_USER_SCRIPT_SANDBOXING = NO;
556567
GCC_C_LANGUAGE_STANDARD = gnu11;
557568
GCC_NO_COMMON_BLOCKS = YES;
558569
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
@@ -587,7 +598,7 @@
587598
);
588599
PRODUCT_BUNDLE_IDENTIFIER = com.tangem.TangemSDKExample;
589600
PRODUCT_NAME = "$(TARGET_NAME)";
590-
SWIFT_INCLUDE_PATHS = "$(inherited) /Users/alexander.osokin/repos/tangem/tangem-ios/TangemSdk/TangemSdk/TangemSdk/Crypto/Ed25519/CEd25519";
601+
SWIFT_INCLUDE_PATHS = "$(inherited)";
591602
SWIFT_VERSION = 5.0;
592603
TARGETED_DEVICE_FAMILY = 1;
593604
};
@@ -609,7 +620,7 @@
609620
);
610621
PRODUCT_BUNDLE_IDENTIFIER = com.tangem.TangemSDKExample;
611622
PRODUCT_NAME = "$(TARGET_NAME)";
612-
SWIFT_INCLUDE_PATHS = "$(inherited) /Users/alexander.osokin/repos/tangem/tangem-ios/TangemSdk/TangemSdk/TangemSdk/Crypto/Ed25519/CEd25519";
623+
SWIFT_INCLUDE_PATHS = "$(inherited)";
613624
SWIFT_VERSION = 5.0;
614625
TARGETED_DEVICE_FAMILY = 1;
615626
};
@@ -623,7 +634,7 @@
623634
CODE_SIGN_STYLE = Automatic;
624635
CURRENT_PROJECT_VERSION = 15;
625636
DEVELOPMENT_TEAM = 4897UJ6D8C;
626-
INFOPLIST_FILE = "TangemSdkExample copy-Info.plist";
637+
INFOPLIST_FILE = "TangemSdkExample/Info-Development.plist";
627638
LD_RUNPATH_SEARCH_PATHS = (
628639
"$(inherited)",
629640
"@executable_path/Frameworks",
@@ -643,7 +654,7 @@
643654
CODE_SIGN_STYLE = Automatic;
644655
CURRENT_PROJECT_VERSION = 15;
645656
DEVELOPMENT_TEAM = 4897UJ6D8C;
646-
INFOPLIST_FILE = "TangemSdkExample copy-Info.plist";
657+
INFOPLIST_FILE = "TangemSdkExample/Info-Development.plist";
647658
LD_RUNPATH_SEARCH_PATHS = (
648659
"$(inherited)",
649660
"@executable_path/Frameworks",
@@ -698,7 +709,7 @@
698709
/* End XCBuildConfiguration section */
699710

700711
/* Begin XCConfigurationList section */
701-
5D78C1B1234F435B008D7478 /* Build configuration list for PBXProject "TangemSDKExample" */ = {
712+
5D78C1B1234F435B008D7478 /* Build configuration list for PBXProject "TangemSdkExample" */ = {
702713
isa = XCConfigurationList;
703714
buildConfigurations = (
704715
5D78C1C8234F435C008D7478 /* Debug */,

Example/TangemSdkExample.xcodeproj/xcshareddata/xcschemes/TangemSdkExample.xcscheme

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1310"
3+
LastUpgradeVersion = "1510"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -17,7 +17,7 @@
1717
BlueprintIdentifier = "5D78C1B5234F435B008D7478"
1818
BuildableName = "TangemSdkExample.app"
1919
BlueprintName = "TangemSdkExample"
20-
ReferencedContainer = "container:TangemSDKExample.xcodeproj">
20+
ReferencedContainer = "container:TangemSdkExample.xcodeproj">
2121
</BuildableReference>
2222
</BuildActionEntry>
2323
</BuildActionEntries>
@@ -47,7 +47,7 @@
4747
BlueprintIdentifier = "5D78C1B5234F435B008D7478"
4848
BuildableName = "TangemSdkExample.app"
4949
BlueprintName = "TangemSdkExample"
50-
ReferencedContainer = "container:TangemSDKExample.xcodeproj">
50+
ReferencedContainer = "container:TangemSdkExample.xcodeproj">
5151
</BuildableReference>
5252
</BuildableProductRunnable>
5353
</LaunchAction>
@@ -64,7 +64,7 @@
6464
BlueprintIdentifier = "5D78C1B5234F435B008D7478"
6565
BuildableName = "TangemSdkExample.app"
6666
BlueprintName = "TangemSdkExample"
67-
ReferencedContainer = "container:TangemSDKExample.xcodeproj">
67+
ReferencedContainer = "container:TangemSdkExample.xcodeproj">
6868
</BuildableReference>
6969
</BuildableProductRunnable>
7070
</ProfileAction>

Example/TangemSdkExample.xcodeproj/xcshareddata/xcschemes/TangemSdkExampleDev.xcscheme

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1310"
3+
LastUpgradeVersion = "1510"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Gemfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
source "https://rubygems.org"
22

3-
gem "fastlane"
4-
gem "cocoapods"
3+
gem "fastlane", "~> 2.217.0"
4+
gem "cocoapods", "~> 1.14.0"

0 commit comments

Comments
 (0)