Skip to content

Commit e1cf0b1

Browse files
committedJan 16, 2023
Автоматизация скриншотов и обновление README
- Добавил Gemfile - Добавил Snapfile - Добавил SnapshotHelper - Добавил схему для UI-тестов - Обновил настройки обеих схем - Написал тест для создания 4х скриншотов - Поднял версию билда до 7 - Обновил README
1 parent 2ec7575 commit e1cf0b1

36 files changed

+1664
-49
lines changed
 

‎.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
2-
*.xcbkptlist
1+
*.xcbkptlist

‎Gemfile

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

‎Gemfile.lock

+218
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (3.0.5)
5+
rexml
6+
addressable (2.8.1)
7+
public_suffix (>= 2.0.2, < 6.0)
8+
artifactory (3.0.15)
9+
atomos (0.1.3)
10+
aws-eventstream (1.2.0)
11+
aws-partitions (1.693.0)
12+
aws-sdk-core (3.168.4)
13+
aws-eventstream (~> 1, >= 1.0.2)
14+
aws-partitions (~> 1, >= 1.651.0)
15+
aws-sigv4 (~> 1.5)
16+
jmespath (~> 1, >= 1.6.1)
17+
aws-sdk-kms (1.61.0)
18+
aws-sdk-core (~> 3, >= 3.165.0)
19+
aws-sigv4 (~> 1.1)
20+
aws-sdk-s3 (1.117.2)
21+
aws-sdk-core (~> 3, >= 3.165.0)
22+
aws-sdk-kms (~> 1)
23+
aws-sigv4 (~> 1.4)
24+
aws-sigv4 (1.5.2)
25+
aws-eventstream (~> 1, >= 1.0.2)
26+
babosa (1.0.4)
27+
claide (1.1.0)
28+
colored (1.2)
29+
colored2 (3.1.2)
30+
commander (4.6.0)
31+
highline (~> 2.0.0)
32+
declarative (0.0.20)
33+
digest-crc (0.6.4)
34+
rake (>= 12.0.0, < 14.0.0)
35+
domain_name (0.5.20190701)
36+
unf (>= 0.0.5, < 1.0.0)
37+
dotenv (2.8.1)
38+
emoji_regex (3.2.3)
39+
excon (0.97.1)
40+
faraday (1.10.2)
41+
faraday-em_http (~> 1.0)
42+
faraday-em_synchrony (~> 1.0)
43+
faraday-excon (~> 1.1)
44+
faraday-httpclient (~> 1.0)
45+
faraday-multipart (~> 1.0)
46+
faraday-net_http (~> 1.0)
47+
faraday-net_http_persistent (~> 1.0)
48+
faraday-patron (~> 1.0)
49+
faraday-rack (~> 1.0)
50+
faraday-retry (~> 1.0)
51+
ruby2_keywords (>= 0.0.4)
52+
faraday-cookie_jar (0.0.7)
53+
faraday (>= 0.8.0)
54+
http-cookie (~> 1.0.0)
55+
faraday-em_http (1.0.0)
56+
faraday-em_synchrony (1.0.0)
57+
faraday-excon (1.1.0)
58+
faraday-httpclient (1.0.1)
59+
faraday-multipart (1.0.4)
60+
multipart-post (~> 2)
61+
faraday-net_http (1.0.1)
62+
faraday-net_http_persistent (1.2.0)
63+
faraday-patron (1.0.0)
64+
faraday-rack (1.0.0)
65+
faraday-retry (1.0.3)
66+
faraday_middleware (1.2.0)
67+
faraday (~> 1.0)
68+
fastimage (2.2.6)
69+
fastlane (2.211.0)
70+
CFPropertyList (>= 2.3, < 4.0.0)
71+
addressable (>= 2.8, < 3.0.0)
72+
artifactory (~> 3.0)
73+
aws-sdk-s3 (~> 1.0)
74+
babosa (>= 1.0.3, < 2.0.0)
75+
bundler (>= 1.12.0, < 3.0.0)
76+
colored
77+
commander (~> 4.6)
78+
dotenv (>= 2.1.1, < 3.0.0)
79+
emoji_regex (>= 0.1, < 4.0)
80+
excon (>= 0.71.0, < 1.0.0)
81+
faraday (~> 1.0)
82+
faraday-cookie_jar (~> 0.0.6)
83+
faraday_middleware (~> 1.0)
84+
fastimage (>= 2.1.0, < 3.0.0)
85+
gh_inspector (>= 1.1.2, < 2.0.0)
86+
google-apis-androidpublisher_v3 (~> 0.3)
87+
google-apis-playcustomapp_v1 (~> 0.1)
88+
google-cloud-storage (~> 1.31)
89+
highline (~> 2.0)
90+
json (< 3.0.0)
91+
jwt (>= 2.1.0, < 3)
92+
mini_magick (>= 4.9.4, < 5.0.0)
93+
multipart-post (~> 2.0.0)
94+
naturally (~> 2.2)
95+
optparse (~> 0.1.1)
96+
plist (>= 3.1.0, < 4.0.0)
97+
rubyzip (>= 2.0.0, < 3.0.0)
98+
security (= 0.1.3)
99+
simctl (~> 1.6.3)
100+
terminal-notifier (>= 2.0.0, < 3.0.0)
101+
terminal-table (>= 1.4.5, < 2.0.0)
102+
tty-screen (>= 0.6.3, < 1.0.0)
103+
tty-spinner (>= 0.8.0, < 1.0.0)
104+
word_wrap (~> 1.0.0)
105+
xcodeproj (>= 1.13.0, < 2.0.0)
106+
xcpretty (~> 0.3.0)
107+
xcpretty-travis-formatter (>= 0.0.3)
108+
gh_inspector (1.1.3)
109+
google-apis-androidpublisher_v3 (0.32.0)
110+
google-apis-core (>= 0.9.1, < 2.a)
111+
google-apis-core (0.9.5)
112+
addressable (~> 2.5, >= 2.5.1)
113+
googleauth (>= 0.16.2, < 2.a)
114+
httpclient (>= 2.8.1, < 3.a)
115+
mini_mime (~> 1.0)
116+
representable (~> 3.0)
117+
retriable (>= 2.0, < 4.a)
118+
rexml
119+
webrick
120+
google-apis-iamcredentials_v1 (0.16.0)
121+
google-apis-core (>= 0.9.1, < 2.a)
122+
google-apis-playcustomapp_v1 (0.12.0)
123+
google-apis-core (>= 0.9.1, < 2.a)
124+
google-apis-storage_v1 (0.19.0)
125+
google-apis-core (>= 0.9.0, < 2.a)
126+
google-cloud-core (1.6.0)
127+
google-cloud-env (~> 1.0)
128+
google-cloud-errors (~> 1.0)
129+
google-cloud-env (1.6.0)
130+
faraday (>= 0.17.3, < 3.0)
131+
google-cloud-errors (1.3.0)
132+
google-cloud-storage (1.44.0)
133+
addressable (~> 2.8)
134+
digest-crc (~> 0.4)
135+
google-apis-iamcredentials_v1 (~> 0.1)
136+
google-apis-storage_v1 (~> 0.19.0)
137+
google-cloud-core (~> 1.6)
138+
googleauth (>= 0.16.2, < 2.a)
139+
mini_mime (~> 1.0)
140+
googleauth (1.3.0)
141+
faraday (>= 0.17.3, < 3.a)
142+
jwt (>= 1.4, < 3.0)
143+
memoist (~> 0.16)
144+
multi_json (~> 1.11)
145+
os (>= 0.9, < 2.0)
146+
signet (>= 0.16, < 2.a)
147+
highline (2.0.3)
148+
http-cookie (1.0.5)
149+
domain_name (~> 0.5)
150+
httpclient (2.8.3)
151+
jmespath (1.6.2)
152+
json (2.6.3)
153+
jwt (2.6.0)
154+
memoist (0.16.2)
155+
mini_magick (4.12.0)
156+
mini_mime (1.1.2)
157+
multi_json (1.15.0)
158+
multipart-post (2.0.0)
159+
nanaimo (0.3.0)
160+
naturally (2.2.1)
161+
optparse (0.1.1)
162+
os (1.1.4)
163+
plist (3.6.0)
164+
public_suffix (5.0.1)
165+
rake (13.0.6)
166+
representable (3.2.0)
167+
declarative (< 0.1.0)
168+
trailblazer-option (>= 0.1.1, < 0.2.0)
169+
uber (< 0.2.0)
170+
retriable (3.1.2)
171+
rexml (3.2.5)
172+
rouge (2.0.7)
173+
ruby2_keywords (0.0.5)
174+
rubyzip (2.3.2)
175+
security (0.1.3)
176+
signet (0.17.0)
177+
addressable (~> 2.8)
178+
faraday (>= 0.17.5, < 3.a)
179+
jwt (>= 1.5, < 3.0)
180+
multi_json (~> 1.10)
181+
simctl (1.6.8)
182+
CFPropertyList
183+
naturally
184+
terminal-notifier (2.0.0)
185+
terminal-table (1.8.0)
186+
unicode-display_width (~> 1.1, >= 1.1.1)
187+
trailblazer-option (0.1.2)
188+
tty-cursor (0.7.1)
189+
tty-screen (0.8.1)
190+
tty-spinner (0.9.3)
191+
tty-cursor (~> 0.7)
192+
uber (0.1.0)
193+
unf (0.1.4)
194+
unf_ext
195+
unf_ext (0.0.8.2)
196+
unicode-display_width (1.8.0)
197+
webrick (1.7.0)
198+
word_wrap (1.0.0)
199+
xcodeproj (1.22.0)
200+
CFPropertyList (>= 2.3.3, < 4.0)
201+
atomos (~> 0.1.3)
202+
claide (>= 1.0.2, < 2.0)
203+
colored2 (~> 3.1)
204+
nanaimo (~> 0.3.0)
205+
rexml (~> 3.2.4)
206+
xcpretty (0.3.0)
207+
rouge (~> 2.0.7)
208+
xcpretty-travis-formatter (1.0.1)
209+
xcpretty (~> 0.2, >= 0.0.7)
210+
211+
PLATFORMS
212+
x86_64-darwin-22
213+
214+
DEPENDENCIES
215+
fastlane
216+
217+
BUNDLED WITH
218+
2.4.3

‎README.md

+36-29
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,53 @@
22
[Ссылка на приложение в AppStore](https://itunes.apple.com/us/app/jobsy/id1035159361)
33

44
## Помощь проекту
5-
1. Для доработок создаем issue с подробным описанием
5+
1. Для доработок создаем **issue** с описанием задачи
66
2. Доработки делаем в отдельных ветках
7-
3. Для каждого PR необходимо оставить описание на русском языке по аналогии со старыми PR
8-
4. Вопросы по iOS-приложению решаем с o.n.eremenko@gmail.com (telegram: @Oleg991)
9-
5. Вопросы по бэкенду/сайту - с anton@workout.su
10-
11-
## Гайд для менеджера
7+
3. Для каждого **PR** необходимо оставить описание на русском языке по аналогии со старыми **PR**
8+
4. Вопросы по iOS-приложению решаем с Oleg991 в [почте](mailto:o.n.eremenko@gmail.com?subject=[GitHub]-SwiftUI-WorkoutApp) или в [телеграм](http://t.me/oleg991)
9+
5. Вопросы по бэкенду/сайту - c Антоном в [почте](mailto:anton@workout.su?subject=[GitHub]-SwiftUI-WorkoutApp)
1210

11+
## Шпаргалка
1312
### Настройка базовых параметров приложения
14-
Xcode -> SwiftUI-WorkoutApp -> Target: SwiftUI-WorkoutApp -> General
15-
- Display Name - название приложения на экране смартфона
16-
- Version - версия приложения для магазина
17-
- Build - версия сборки для TestFlight
13+
`Xcode -> SwiftUI-WorkoutApp -> Target: SwiftUI-WorkoutApp -> General`
14+
- `Display Name` - название приложения на экране смартфона
15+
- `Version` - версия приложения для магазина
16+
- `Build` - версия сборки для `TestFlight`
1817

1918
### Публикация приложения
2019
#### TestFlight
2120
1. Скачать актуальную версию репозитория
22-
2. Открыть Xcode и дождаться загрузки зависимостей; при возникновении ошибок можно:
23-
- почистить Derived Data и память билда (command + shift + k)
24-
- обновить зависимости (File -> Packages -> Reset/Resolve/Update)
25-
3. В верхней панели Xcode сменить девайс на Any iOS Device
26-
4. Product -> Archive
27-
5. Дождаться архивации, в открывшемся окне со сборками выбрать нужную и нажать Distribute App
21+
2. Открыть `Xcode` и дождаться загрузки зависимостей; при возникновении ошибок можно:
22+
- почистить `Derived Data` и память билда (`command + shift + k`)
23+
- обновить зависимости (`File -> Packages -> Reset/Resolve/Update`)
24+
3. В верхней панели Xcode сменить девайс на `Any iOS Device `
25+
4. `Product` -> `Archive`
26+
5. Дождаться архивации, в открывшемся окне со сборками выбрать нужную и нажать **Distribute App**
2827
6. Пройти по всем шагам и снять галку с автоматического изменения версии сборки на одном из финальных шагов
2928

3029
#### AppStore
31-
1. Открыть страницу с приложением в AppstoreConnect
32-
2. В левом меню рядом с версией в статусе "Готово к продаже" нажать плюс и добавить новую версию
33-
3. Заполнить поле "Что нового в этой версии"
34-
4. Ниже в разделе "Сборка" выбрать нужную сборку TestFlight
30+
1. Открыть страницу с приложением в **AppstoreConnect**
31+
2. В левом меню рядом с версией в статусе **Готово к продаже** нажать `+` и добавить новую версию
32+
3. Заполнить поле **Что нового в этой версии**
33+
4. Ниже в разделе **Сборка** выбрать нужную сборку из `TestFlight`
3534
5. Ниже на странице проверить галки
36-
- "Выпустить эту версию автоматически"
37-
- "Выпустить обновление сразу для всех пользователей"
38-
- "Сохранить текущую оценку"
39-
6. Нажать сверху справа кнопку "Сохранить"
35+
- *Выпустить эту версию автоматически*
36+
- *Выпустить обновление сразу для всех пользователей*
37+
- *Сохранить текущую оценку*
38+
6. Нажать сверху справа кнопку **Сохранить**
4039
7. Отправить приложение на проверку
4140

4241
### Скриншоты
43-
Необходимо сменить язык симулятора на русский перед созданием скриншотов
44-
- 6.5 дюйма: iPhone 13 pro max
45-
- 5.8 дюйма: iPhone 13 pro
46-
- 5.5 дюйма: iPhone 8 plus
47-
- 4.7 дюйма: iPhone 8
42+
1. Генерируем скриншоты при помощи `Fastlane` ([документация](https://docs.fastlane.tools/getting-started/ios/setup/))
43+
2. Настройки для генерации скриншотов находятся в файле [Snapfile](Snapfile) ([документация](https://docs.fastlane.tools/actions/snapshot/))
44+
3. Готовые скриншоты сохраняются в папке [screenshots/ru](./screenshots/ru)
45+
46+
| Профиль | Площадка | Прошедшие мероприятия | Мероприятие |
47+
| --- | --- | --- | --- |
48+
| <img src="./screenshots/ru/iPhone 13 Pro Max-1-profile.png"> | <img src="./screenshots/ru/iPhone 13 Pro Max-2-sportsGroundDetails.png"> | <img src="./screenshots/ru/iPhone 13 Pro Max-3-pastEvents.png"> | <img src="./screenshots/ru/iPhone 13 Pro Max-4-eventDetails.png"> |
49+
50+
#### Модели девайсов, используемые для скриншотов
51+
- 6.5 дюйма: iPhone 13 Pro Max
52+
- 5.8 дюйма: iPhone 13 Pro
53+
- 5.5 дюйма: iPhone 8 Plus
54+
- 4.7 дюйма: iPhone SE (3rd generation)

‎Snapfile

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# A list of devices you want to take the screenshots from
2+
devices([
3+
"iPhone SE (3rd generation)",
4+
"iPhone 8 Plus",
5+
"iPhone 13 Pro",
6+
"iPhone 13 Pro Max",
7+
])
8+
9+
# A list of languages which should be used. See https://docs.fastlane.tools/actions/snapshot/#available-language-codes
10+
languages(["ru"])
11+
12+
# By default, the latest version should be used automatically. If you want to change it, do it here.
13+
# ios_version("15")
14+
15+
# Enabling this option will configure the Simulator to be in dark mode (false for light, true for dark)
16+
dark_mode(true)
17+
18+
# Enabling this option will configure the Simulator's system language
19+
localize_simulator(true)
20+
21+
# Should snapshot stop immediately after the tests completely failed on one device?
22+
stop_after_first_error(true)
23+
24+
# Prevents packages from automatically being resolved to versions other than those recorded in the Package.resolved file
25+
disable_package_automatic_updates(true)
26+
27+
# The name of the scheme which contains the UI Tests
28+
scheme("WorkoutAppUITests")
29+
30+
# Where should the resulting screenshots be stored?
31+
output_directory("./screenshots")
32+
33+
# remove the '#' to clear all previously generated screenshots before creating new ones
34+
clear_previous_screenshots(true)
35+
36+
# Enabling this option will automatically override the status bar to show 9:41 AM, full battery, and full reception
37+
override_status_bar(true)
38+
39+
# Arguments to pass to the app on launch. See https://docs.fastlane.tools/actions/snapshot/#launch-arguments
40+
launch_arguments(["UITest"])
41+
42+
# For more information about all available options run
43+
# fastlane action snapshot

0 commit comments

Comments
 (0)
Please sign in to comment.