Skip to content

Commit 4fd7f2c

Browse files
committed
Revert "ci: remove CocoaPods"
This reverts commit 54e667f.
1 parent 54e667f commit 4fd7f2c

File tree

11 files changed

+142
-20
lines changed

11 files changed

+142
-20
lines changed

.github/DEVELOP.md

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
> [!IMPORTANT]
4040
> You should check wether or not you have the tools in use in the project like Fastlane, SwiftLint, SwiftFormat, etc.
4141
> You can have a look for example in the THIRD_PARTY.md file which lists any dependencies and tools we use at different levels (SDK, design system toolbox app, project).
42-
> Have a look on the locks file to know which versions we are using (Gemfile, Gemfile.lock, etc.).
42+
> Have a look on the locks file to know which versions we are using (Podfile, Podfile.lock, Gemfile, Gemfile.lock, etc.).
4343
4444
> [!IMPORTANT]
4545
> We use a lot Fastlane for its automatic features and also to wrap to Shell command lines in order to have the same command to trigger
@@ -59,6 +59,9 @@ brew install rbenv
5959
# Use Bundler to install a major part of dependencies (thanks to Gemfile and Gemfile.lock files)
6060
bundle install
6161

62+
# Use CocoaPods to install other dependencies not available as rubygems (thanks to Podfile and Podfile.lock files)
63+
bundle exec pod install --repo-update
64+
6265
# Update your references
6366
brew update
6467

@@ -153,9 +156,10 @@ You should not add in your VCS tool the *{$PROJET}.xcworkspace/contents.xcworksp
153156
To build the demo application follow those steps:
154157

155158
1. `cd DesignToolbox`
156-
2. Open *DesignToolbox.xcworkspace*
157-
3. Select *DesignToolbox* scheme
158-
4. Build and run the Application on your device ou simulator
159+
2. `bundle exec pod install`
160+
3. Open *DesignToolbox.xcworkspace*
161+
4. Select *DesignToolbox* scheme
162+
5. Build and run the Application on your device ou simulator
159163

160164
> [!TIP]
161165
> You can also move the folder containing a clone of the [Swift package repository](https://github.com/Orange-OpenSource/ouds-ios) from the *Finder* to the design system toolbox Xcode project so as to have a local reference of the package in this demo app.
@@ -211,10 +215,11 @@ The snapshots tests are made to test the rendering of the components and tokens,
211215

212216
To run these snapshots tests follow some steps:
213217
1. `cd DesignToolbox`
214-
2. Open *DesignToolbox.xcworkspace*
215-
3. Select *DesignToolboxSnapshotsTests* scheme
216-
4. Select *iPhone 17 Pro* simulator (the device used to tests and views rendering) (iOS 26.0 (23A339))
217-
5. Run tests (Product -> Test)
218+
2. `bundle exec pod install`
219+
3. Open *DesignToolbox.xcworkspace*
220+
4. Select *DesignToolboxSnapshotsTests* scheme
221+
5. Select *iPhone 17 Pro* simulator (the device used to tests and views rendering) (iOS 26.0 (23A339))
222+
6. Run tests (Product -> Test)
218223

219224
Or run in terminal:
220225
```shell
@@ -293,10 +298,11 @@ The project contains some UI tests made to test the behavior of components.
293298
294299
To run these UI tests follow some steps:
295300
1. `cd DesignToolbox`
296-
2. Open *DesignToolbox.xcworkspace*
297-
3. Select *DesignToolboxUITests* scheme
298-
4. Select *iPhone 17 Pro* simulator (the device used to tests and views rendering) (iOS 26.0 (23A339))
299-
5. Run tests (Product -> Test)
301+
2. `bundle exec pod install`
302+
3. Open *DesignToolbox.xcworkspace*
303+
4. Select *DesignToolboxUITests* scheme
304+
5. Select *iPhone 17 Pro* simulator (the device used to tests and views rendering) (iOS 26.0 (23A339))
305+
6. Run tests (Product -> Test)
300306
301307
Or run in terminal:
302308
```shell
@@ -309,9 +315,10 @@ The project contains some unit tests made to test the behavior of some utils in
309315

310316
To run these UI tests follow some steps:
311317
1. `cd DesignToolbox`
312-
2. Open *DesignToolbox.xcworkspace*
313-
3. Select *DesignToolboxUnitTests* scheme
314-
4. Run tests in left pane (target *DesignToolboxUnitTests*)
318+
2. `bundle exec pod install`
319+
3. Open *DesignToolbox.xcworkspace*
320+
4. Select *DesignToolboxUnitTests* scheme
321+
5. Run tests in left pane (target *DesignToolboxUnitTests*)
315322

316323
Or run in terminal:
317324
```shell
@@ -362,7 +369,13 @@ Sometimes dependencies should be updated, with for example warnings of [Renovate
362369

363370
Here is the list of files to update to keep the project clean:
364371
- CHANGELOG (to note for releases the update of the version)
365-
- Of course, update and save in your VCS the new states of the _Package.swift_ or _Gemfile_ for example (and do not forget locks!)
372+
- Of course, update and save in your VCS the new states of the _Podfile_, _Package.swift_ or _Gemfile_ for example (and do not forget locks!)
373+
374+
Maybe you will need to update your pods repo before if you updated a Pod:
375+
376+
```shell
377+
bundle exec pod install --repo-update
378+
```
366379

367380
## Developer Certificate of Origin
368381

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ jobs:
9191
- name: Run UI-based unit tests on demo app
9292
run: |
9393
cd DesignToolbox
94+
bundle exec pod install
9495
bundle exec fastlane test_ui
9596
9697
# Test the library with snapshots tests
@@ -116,5 +117,6 @@ jobs:
116117
- name: Run snapshots tests on demo app
117118
run: |
118119
cd DesignToolbox
120+
bundle exec pod install
119121
xcrun simctl list # List available simulators
120122
bundle exec fastlane test_snapshots

.github/workflows/periphery.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,5 @@ jobs:
6363
- name: Look for dead code
6464
run: |
6565
cd DesignToolbox
66+
bundle exec pod install
6667
bundle exec fastlane check_dead_code

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
# Produced by Brew
2323
/Brewfile.lock.json
2424

25+
# Produced by CocoaPods
26+
/DesignToolbox/Pods/
27+
2528
# Produced by Xcode
2629
/DesignToolbox/DesignToolbox.xcodeproj/xcuserdata/
2730
/DesignToolbox/DesignToolbox.xcodeproj/project.xcworkspace/xcuserdata/

.swiftformat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
--swiftversion 6.2
1515

16-
--exclude Resources/CodeGen/**
16+
--exclude Resources/CodeGen/**,Pods/**
1717

1818
--disable blankLinesAroundMark,blankLinesAtStartOfScope,redundantRawValues,modifierOrder
1919

.swiftlint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ included:
3030
excluded:
3131
- DesignToolbox/DesignToolbox/Info.plist
3232
- DesignToolbox/DesignToolbox/Resources
33+
- DesignToolbox/Pods
3334
- DesignToolbox/DerivedData
3435

3536
# ==============

DesignToolbox/DesignToolbox.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DesignToolbox/fastlane/Fastfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,10 @@ platform :ios do
287287
lane :build_debug do
288288
puts "👉 Build debug app"
289289

290+
cocoapods(
291+
clean_install: true
292+
)
293+
290294
Dir.chdir "../#{OUDS_PROJECT_NAME}/Resources/Assets.xcassets" do
291295
sh "rm -Rf AppIconRelease.appiconset"
292296
sh "cp -R AppIconDebug.appiconset AppIconRelease.appiconset"
@@ -493,6 +497,10 @@ platform :ios do
493497
app_identifier: CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)
494498
)
495499

500+
cocoapods(
501+
clean_install: true
502+
)
503+
496504
# Disable automatic code signing for release / distribution builds.
497505
# Thus we won't use any Xcode with plugged account in, and use only needed certificates and provisioning profiles.
498506
# Mobile provisioning profile named "OUDS demo app (release)" must be placed in runner.

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ gem 'abbrev', '0.1.2'
3232
gem 'fastlane', '2.228.0'
3333
gem 'fastlane-plugin-changelog', '0.16.0'
3434
gem 'fastlane-plugin-mattermost', '1.3.2'
35+
gem 'cocoapods', '1.16.2'
3536
gem 'json', '2.15.1'
3637
gem 'net-http', '0.6.0'
3738
gem 'xcode-install', '2.8.1'

Gemfile.lock

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,23 @@ GEM
66
nkf
77
rexml
88
abbrev (0.1.2)
9+
activesupport (7.2.2.1)
10+
base64
11+
benchmark (>= 0.3)
12+
bigdecimal
13+
concurrent-ruby (~> 1.0, >= 1.3.1)
14+
connection_pool (>= 2.2.5)
15+
drb
16+
i18n (>= 1.6, < 2)
17+
logger (>= 1.4.2)
18+
minitest (>= 5.1)
19+
securerandom (>= 0.3)
20+
tzinfo (~> 2.0, >= 2.0.5)
921
addressable (2.8.7)
1022
public_suffix (>= 2.0.2, < 7.0)
23+
algoliasearch (1.27.5)
24+
httpclient (~> 2.8, >= 2.8.3)
25+
json (>= 1.5.1)
1126
artifactory (3.0.17)
1227
atomos (0.1.3)
1328
aws-eventstream (1.4.0)
@@ -30,17 +45,62 @@ GEM
3045
aws-eventstream (~> 1, >= 1.0.2)
3146
babosa (1.0.4)
3247
base64 (0.3.0)
48+
benchmark (0.4.0)
49+
bigdecimal (3.1.9)
3350
claide (1.1.0)
51+
cocoapods (1.16.2)
52+
addressable (~> 2.8)
53+
claide (>= 1.0.2, < 2.0)
54+
cocoapods-core (= 1.16.2)
55+
cocoapods-deintegrate (>= 1.0.3, < 2.0)
56+
cocoapods-downloader (>= 2.1, < 3.0)
57+
cocoapods-plugins (>= 1.0.0, < 2.0)
58+
cocoapods-search (>= 1.0.0, < 2.0)
59+
cocoapods-trunk (>= 1.6.0, < 2.0)
60+
cocoapods-try (>= 1.1.0, < 2.0)
61+
colored2 (~> 3.1)
62+
escape (~> 0.0.4)
63+
fourflusher (>= 2.3.0, < 3.0)
64+
gh_inspector (~> 1.0)
65+
molinillo (~> 0.8.0)
66+
nap (~> 1.0)
67+
ruby-macho (>= 2.3.0, < 3.0)
68+
xcodeproj (>= 1.27.0, < 2.0)
69+
cocoapods-core (1.16.2)
70+
activesupport (>= 5.0, < 8)
71+
addressable (~> 2.8)
72+
algoliasearch (~> 1.0)
73+
concurrent-ruby (~> 1.1)
74+
fuzzy_match (~> 2.0.4)
75+
nap (~> 1.0)
76+
netrc (~> 0.11)
77+
public_suffix (~> 4.0)
78+
typhoeus (~> 1.0)
79+
cocoapods-deintegrate (1.0.5)
80+
cocoapods-downloader (2.1)
81+
cocoapods-plugins (1.0.0)
82+
nap
83+
cocoapods-search (1.0.1)
84+
cocoapods-trunk (1.6.0)
85+
nap (>= 0.8, < 2.0)
86+
netrc (~> 0.11)
87+
cocoapods-try (1.2.0)
3488
colored (1.2)
3589
colored2 (3.1.2)
3690
commander (4.6.0)
3791
highline (~> 2.0.0)
92+
concurrent-ruby (1.3.5)
93+
connection_pool (2.5.0)
3894
declarative (0.0.20)
3995
digest-crc (0.7.0)
4096
rake (>= 12.0.0, < 14.0.0)
4197
domain_name (0.6.20240107)
4298
dotenv (2.8.1)
99+
drb (2.2.1)
43100
emoji_regex (3.2.3)
101+
escape (0.0.4)
102+
ethon (0.16.0)
103+
ffi (>= 1.15.0)
44104
excon (0.112.0)
45105
faraday (1.10.4)
46106
faraday-em_http (~> 1.0)
@@ -117,6 +177,19 @@ GEM
117177
fastlane-plugin-mattermost (1.3.2)
118178
fastlane-sirp (1.0.0)
119179
sysrandom (~> 1.0)
180+
ffi (1.17.1)
181+
ffi (1.17.1-aarch64-linux-gnu)
182+
ffi (1.17.1-aarch64-linux-musl)
183+
ffi (1.17.1-arm-linux-gnu)
184+
ffi (1.17.1-arm-linux-musl)
185+
ffi (1.17.1-arm64-darwin)
186+
ffi (1.17.1-x86-linux-gnu)
187+
ffi (1.17.1-x86-linux-musl)
188+
ffi (1.17.1-x86_64-darwin)
189+
ffi (1.17.1-x86_64-linux-gnu)
190+
ffi (1.17.1-x86_64-linux-musl)
191+
fourflusher (2.3.1)
192+
fuzzy_match (2.0.4)
120193
gh_inspector (1.1.3)
121194
google-apis-androidpublisher_v3 (0.54.0)
122195
google-apis-core (>= 0.11.0, < 2.a)
@@ -159,20 +232,26 @@ GEM
159232
domain_name (~> 0.5)
160233
httpclient (2.9.0)
161234
mutex_m
235+
i18n (1.14.7)
236+
concurrent-ruby (~> 1.0)
162237
jmespath (1.6.2)
163238
json (2.15.1)
164239
jwt (2.10.1)
165240
base64
166241
logger (1.7.0)
167242
mini_magick (4.13.2)
168243
mini_mime (1.1.5)
244+
minitest (5.25.5)
245+
molinillo (0.8.0)
169246
multi_json (1.15.0)
170247
multipart-post (2.4.1)
171248
mutex_m (0.3.0)
172249
nanaimo (0.4.0)
250+
nap (1.1.0)
173251
naturally (2.2.2)
174252
net-http (0.6.0)
175253
uri
254+
netrc (0.11.0)
176255
nkf (0.2.0)
177256
optparse (0.6.0)
178257
os (1.1.4)
@@ -186,8 +265,10 @@ GEM
186265
retriable (3.1.2)
187266
rexml (3.4.1)
188267
rouge (3.28.0)
268+
ruby-macho (2.5.1)
189269
ruby2_keywords (0.0.5)
190270
rubyzip (2.4.1)
271+
securerandom (0.4.1)
191272
security (0.1.5)
192273
signet (0.20.0)
193274
addressable (~> 2.8)
@@ -206,6 +287,10 @@ GEM
206287
tty-screen (0.8.2)
207288
tty-spinner (0.9.3)
208289
tty-cursor (~> 0.7)
290+
typhoeus (1.4.1)
291+
ethon (>= 0.9.0)
292+
tzinfo (2.0.6)
293+
concurrent-ruby (~> 1.0)
209294
uber (0.1.0)
210295
unicode-display_width (2.6.0)
211296
uri (1.0.4)
@@ -239,6 +324,7 @@ PLATFORMS
239324

240325
DEPENDENCIES
241326
abbrev (= 0.1.2)
327+
cocoapods (= 1.16.2)
242328
fastlane (= 2.228.0)
243329
fastlane-plugin-changelog (= 0.16.0)
244330
fastlane-plugin-mattermost (= 1.3.2)

0 commit comments

Comments
 (0)