Skip to content

Commit 70210f2

Browse files
committed
fix: set PROJECT_DIR to . if not set by xcode
1 parent a4b74e8 commit 70210f2

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,13 @@ jobs:
167167
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
168168
build-scan-terms-of-use-agree: "yes"
169169

170+
- name: Generate iOS Config
171+
run: |
172+
cd iosApp
173+
chmod +x Scripts/generate_config.sh
174+
./Scripts/generate_config.sh
175+
cd ..
176+
170177
- name: Build iOS app
171178
run: xcodebuild -allowProvisioningUpdates -project iosApp/iosApp.xcodeproj -configuration Debug -scheme iosApp -sdk iphoneos build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
172179
backend:

iosApp/Scripts/generate_config.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

33
# Define paths
4+
PROJECT_DIR="${PROJECT_DIR:-.}"
45
DEFAULT_FILE="${PROJECT_DIR}/../config/app.properties"
56
PROD_FILE="${PROJECT_DIR}/../config/app.properties.prod"
67
OUTPUT_FILE="${PROJECT_DIR}/Generated.xcconfig"

0 commit comments

Comments
 (0)