Skip to content

Commit e805b75

Browse files
authored
Update step.yml (#55)
* Update step.yml * Update README * Update e2e tests * Set bundle id in static info.plist file * Add bundle id to example project
1 parent 41f0d86 commit e805b75

File tree

5 files changed

+17
-15
lines changed

5 files changed

+17
-15
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ to update the version numbers.
4040

4141
## 🧩 Get started
4242

43-
Add this step directly to your workflow in the [Bitrise Workflow Editor](https://devcenter.bitrise.io/steps-and-workflows/steps-and-workflows-index/).
43+
Add this step directly to your workflow in the [Bitrise Workflow Editor](https://docs.bitrise.io/en/bitrise-ci/workflows-and-pipelines/steps/adding-steps-to-a-workflow.html).
4444

4545
You can also run this step directly with [Bitrise CLI](https://github.com/bitrise-io/bitrise).
4646

@@ -73,9 +73,8 @@ You can also run this step directly with [Bitrise CLI](https://github.com/bitris
7373

7474
We welcome [pull requests](https://github.com/bitrise-steplib/steps-set-xcode-build-number/pulls) and [issues](https://github.com/bitrise-steplib/steps-set-xcode-build-number/issues) against this repository.
7575

76-
For pull requests, work on your changes in a forked repository and use the Bitrise CLI to [run step tests locally](https://devcenter.bitrise.io/bitrise-cli/run-your-first-build/).
76+
For pull requests, work on your changes in a forked repository and use the Bitrise CLI to [run step tests locally](https://docs.bitrise.io/en/bitrise-ci/bitrise-cli/running-your-first-local-build-with-the-cli.html).
7777

7878
Learn more about developing steps:
7979

80-
- [Create your own step](https://devcenter.bitrise.io/contributors/create-your-own-step/)
81-
- [Testing your Step](https://devcenter.bitrise.io/contributors/testing-and-versioning-your-steps/)
80+
- [Create your own step](https://docs.bitrise.io/en/bitrise-ci/workflows-and-pipelines/developing-your-own-bitrise-step/developing-a-new-step.html)

e2e/bitrise.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,23 +86,21 @@ workflows:
8686
- build_version_offset: $VERSION_OFFSET
8787
- build_short_version_string: 9.99.9
8888
- verbose: "true"
89-
- script:
89+
- xcode-build-for-simulator:
9090
title: Build app
9191
inputs:
92-
- content: |
93-
#!/bin/bash
94-
set -ex
95-
96-
xcodebuild -$STEP_TYPE $STEP_PATH -scheme $STEP_NAME -sdk iphonesimulator -configuration Release SYMROOT=./build
92+
- project_path: $STEP_PATH
93+
- scheme: $STEP_NAME
94+
- configuration: Release
9795
- script:
9896
title: Check version and build numbers
9997
inputs:
10098
- content: |
10199
#!/bin/bash
102100
set -ex
103101
104-
buildVersion=$(/usr/libexec/PlistBuddy "$STEP_BUILD_ROOT/build/Release-iphonesimulator/$STEP_NAME.app/Info.plist" -c "print CFBundleVersion")
105-
buildShortVersion=$(/usr/libexec/PlistBuddy "$STEP_BUILD_ROOT/build/Release-iphonesimulator/$STEP_NAME.app/Info.plist" -c "print CFBundleShortVersionString")
102+
buildVersion=$(/usr/libexec/PlistBuddy "$BITRISE_APP_DIR_PATH/Info.plist" -c "print CFBundleVersion")
103+
buildShortVersion=$(/usr/libexec/PlistBuddy "$BITRISE_APP_DIR_PATH/Info.plist" -c "print CFBundleShortVersionString")
106104
107105
if [ "$buildVersion" != "9999" ]; then
108106
echo "CFBundleVersion is wrong"

step.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@ type_tags:
3939
- utility
4040

4141
project_type_tags:
42+
- cordova
43+
- flutter
44+
- ionic
4245
- ios
46+
- kotlin-multiplatform
4347
- macos
4448
- react-native
45-
- flutter
46-
- cordova
47-
- ionic
4849

4950
toolkit:
5051
go:

testdata/project/Example/Example/Example-Static-Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>CFBundleIdentifier</key>
6+
<string>com.iszabi.Example</string>
57
<key>UIApplicationSceneManifest</key>
68
<dict>
79
<key>UIApplicationSupportsMultipleScenes</key>

testdata/workspace/Example/Example/Example-Static-Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>CFBundleIdentifier</key>
6+
<string>com.iszabi.Example</string>
57
<key>UIApplicationSceneManifest</key>
68
<dict>
79
<key>UIApplicationSupportsMultipleScenes</key>

0 commit comments

Comments
 (0)