Skip to content

Commit 7b4d294

Browse files
authored
Add app_version parameter to fastlane (#196)
* add app_version parameter * fix increment_version_number
1 parent 12d5df9 commit 7b4d294

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

SNUTT-2022/Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ GEM
116116
fastlane (>= 2.148.1)
117117
rbnacl
118118
sshkey
119+
fastlane-plugin-versioning (0.5.1)
119120
ffi (1.15.5)
120121
gh_inspector (1.1.3)
121122
google-apis-androidpublisher_v3 (0.29.0)
@@ -230,6 +231,7 @@ DEPENDENCIES
230231
fastlane
231232
fastlane-plugin-badge
232233
fastlane-plugin-github_action
234+
fastlane-plugin-versioning
233235

234236
BUNDLED WITH
235237
2.3.11

SNUTT-2022/fastlane/Fastfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ platform :ios do
3838
if BUILD_CONFIGURATION == "Debug"
3939
add_badge(dark: true)
4040
end
41-
increment_version_number(version_number: VERSION_NUMBER)
42-
increment_build_number(build_number: BUILD_NUMBER)
41+
increment_version_number_in_xcodeproj(version_number: VERSION_NUMBER)
42+
increment_build_number_in_xcodeproj(build_number: BUILD_NUMBER)
4343
build_app(scheme: APP_NAME,
4444
configuration: BUILD_CONFIGURATION,
4545
output_directory: "./archive",
@@ -50,7 +50,7 @@ platform :ios do
5050
issuer_id: APP_STORE_CONNECT_KEY_ISSUER,
5151
key_content: KEY_CONTENT,
5252
)
53-
upload_to_testflight
53+
upload_to_testflight(app_version: VERSION_NUMBER)
5454
slack(
5555
message: "App successfully uploaded to Testflight 🎉",
5656
channel: "#team-snutt-deploy",
@@ -77,8 +77,8 @@ platform :ios do
7777
begin
7878
setup_ci
7979
certificates_distribution
80-
increment_version_number(version_number: VERSION_NUMBER)
81-
increment_build_number(build_number: BUILD_NUMBER)
80+
increment_version_number_in_xcodeproj(version_number: VERSION_NUMBER)
81+
increment_build_number_in_xcodeproj(build_number: BUILD_NUMBER)
8282
build_app(scheme: APP_NAME,
8383
configuration: BUILD_CONFIGURATION,
8484
output_directory: "./archive",
@@ -93,6 +93,7 @@ platform :ios do
9393
release = get_github_release(url: "wafflestudio/snutt-ios", version: GIT_TAG_NAME)
9494
upload_to_app_store(
9595
force: true,
96+
app_version: VERSION_NUMBER,
9697
skip_screenshots: true,
9798
submit_for_review: true,
9899
automatic_release: false,

SNUTT-2022/fastlane/Pluginfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44

55
gem 'fastlane-plugin-github_action'
66
gem 'fastlane-plugin-badge'
7+
gem 'fastlane-plugin-versioning'

0 commit comments

Comments
 (0)