Skip to content

Commit b59b73f

Browse files
committed
Merge branch 'main' of https://github.com/mkzie2/App into mkzie2-issue/55685
2 parents d2f0a50 + bfb97c5 commit b59b73f

File tree

108 files changed

+984
-885
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+984
-885
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ PROPOSAL:
2323

2424

2525
<!---
26-
If you want to trigger adhoc build of hybrid app from specific Mobile-Expensify PR please specify it like follows:
26+
If you want to trigger adhoc build of hybrid app from specific Mobile-Expensify PR please link it like this:
2727
28-
MOBILE-EXPENSIFY: PR number
28+
MOBILE-EXPENSIFY: https://github.com/Expensify/Mobile-Expensify/pull/<PR-number>
2929
3030
--->
3131

.github/workflows/deploy.yml

-8
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,6 @@ jobs:
252252
name: android-hybrid-apk-artifact
253253
path: Expensify.apk
254254

255-
- name: Upload Android build to Firebase distribution
256-
if: ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
257-
run: bundle exec fastlane android upload_firebase_distribution
258-
259255
- name: Upload Android build artifact
260256
if: ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
261257
uses: actions/upload-artifact@v4
@@ -577,10 +573,6 @@ jobs:
577573
env:
578574
BROWSERSTACK: ${{ secrets.BROWSERSTACK }}
579575

580-
- name: Upload iOS build to Firebase distribution
581-
if: ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
582-
run: bundle exec fastlane ios upload_firebase_distribution
583-
584576
- name: Upload iOS build artifact
585577
if: ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
586578
uses: actions/upload-artifact@v4

.github/workflows/testBuildHybrid.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
});
8282
8383
const body = pullRequest.data.body;
84-
const regex = /MOBILE-EXPENSIFY:(?<prNumber>\d+)/;
84+
const regex = /MOBILE-EXPENSIFY:\s*https:\/\/github.com\/Expensify\/Mobile-Expensify\/pull\/(?<prNumber>\d+)/;
8585
const found = body.match(regex)?.groups?.prNumber || "";
8686
8787
return found.trim();

.github/workflows/verifyHybridApp.yml

+27-24
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: Verify HybridApp build
22

33
on:
4-
workflow_call:
54
pull_request:
65
types: [opened, synchronize]
76
branches-ignore: [staging, production]
@@ -24,23 +23,35 @@ concurrency:
2423
cancel-in-progress: true
2524

2625
jobs:
26+
comment_on_fork:
27+
name: Comment on all PRs that are forks
28+
# Only run on pull requests that *are* a fork
29+
if: ${{ github.event.pull_request.head.repo.fork }}
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Comment on forks
33+
run: |
34+
gh pr comment ${{github.event.pull_request.html_url }} --body \
35+
":warning: This PR is possibly changing native code, it may cause problems with HybridApp. Please run an AdHoc build to verify that HybridApp will not break. :warning:"
36+
env:
37+
GITHUB_TOKEN: ${{ github.token }}
2738
verify_android:
2839
name: Verify Android HybridApp builds on main
2940
runs-on: ubuntu-latest-xl
41+
# Only run on pull requests that are *not* on a fork
42+
if: ${{ !github.event.pull_request.head.repo.fork }}
3043
steps:
3144
- name: Checkout
3245
uses: actions/checkout@v4
3346
with:
3447
submodules: true
3548
ref: ${{ github.event.pull_request.head.sha }}
3649
token: ${{ secrets.OS_BOTIFY_TOKEN }}
37-
# fetch-depth: 0 is required in order to fetch the correct submodule branch
38-
fetch-depth: 0
3950

4051
- name: Update submodule to match main
4152
run: |
42-
git submodule update --init --remote
43-
git fetch
53+
git submodule update --init --remote --depth 1
54+
cd Mobile-Expensify
4455
git checkout main
4556
4657
- name: Configure MapBox SDK
@@ -52,10 +63,14 @@ jobs:
5263
with:
5364
IS_HYBRID_BUILD: 'true'
5465

66+
- name: Setup Ruby
67+
uses: ruby/setup-ruby@v1.204.0
68+
with:
69+
bundler-cache: true
70+
5571
- name: Build Android Debug
56-
working-directory: Mobile-Expensify/Android
5772
run: |
58-
if ! ./gradlew assembleDebug
73+
if ! npm run android-hybrid-build
5974
then
6075
echo "❌ Android HybridApp failed to build: Please reach out to Contributor+ and/or Expensify engineers for help in #expensify-open-source to resolve."
6176
exit 1
@@ -64,20 +79,20 @@ jobs:
6479
verify_ios:
6580
name: Verify iOS HybridApp builds on main
6681
runs-on: macos-15-xlarge
82+
# Only run on pull requests that are *not* on a fork
83+
if: ${{ !github.event.pull_request.head.repo.fork }}
6784
steps:
6885
- name: Checkout
6986
uses: actions/checkout@v4
7087
with:
7188
submodules: true
7289
ref: ${{ github.event.pull_request.head.sha }}
7390
token: ${{ secrets.OS_BOTIFY_TOKEN }}
74-
# fetch-depth: 0 is required in order to fetch the correct submodule branch
75-
fetch-depth: 0
7691

7792
- name: Update submodule to match main
7893
run: |
79-
git submodule update --init --remote
80-
git fetch
94+
git submodule update --init --remote --depth 1
95+
cd Mobile-Expensify
8196
git checkout main
8297
8398
- name: Configure MapBox SDK
@@ -94,9 +109,6 @@ jobs:
94109
with:
95110
bundler-cache: true
96111

97-
- name: Install New Expensify Gems
98-
run: bundle install
99-
100112
- name: Cache Pod dependencies
101113
uses: actions/cache@v4
102114
id: pods-cache
@@ -125,16 +137,7 @@ jobs:
125137
export RCT_NO_LAUNCH_PACKAGER=1
126138
127139
# Build iOS using xcodebuild
128-
if ! xcodebuild \
129-
-workspace Mobile-Expensify/iOS/Expensify.xcworkspace \
130-
-scheme Expensify \
131-
-configuration Debug \
132-
-sdk iphonesimulator \
133-
-arch x86_64 \
134-
CODE_SIGN_IDENTITY="" \
135-
CODE_SIGNING_REQUIRED=NO \
136-
CODE_SIGNING_ALLOWED=NO \
137-
build | xcpretty
140+
if ! npm run ios-hybrid-build
138141
then
139142
echo "❌ iOS HybridApp failed to build: Please reach out to Contributor+ and/or Expensify engineers for help in #expensify-open-source to resolve."
140143
exit 1

Mobile-Expensify

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* [Running The Tests](#running-the-tests)
1616
* [Debugging](#debugging)
1717
* [App Structure and Conventions](#app-structure-and-conventions)
18+
* [HybridApp](#HybridApp)
1819
* [Philosophy](#Philosophy)
1920
* [Security](#Security)
2021
* [Internationalization](#Internationalization)

android/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ android {
110110
minSdkVersion rootProject.ext.minSdkVersion
111111
targetSdkVersion rootProject.ext.targetSdkVersion
112112
multiDexEnabled rootProject.ext.multiDexEnabled
113-
versionCode 1009009303
114-
versionName "9.0.93-3"
113+
versionCode 1009009401
114+
versionName "9.0.94-1"
115115
// Supported language variants must be declared here to avoid from being removed during the compilation.
116116
// This also helps us to not include unnecessary language variants in the APK.
117117
resConfigs "en", "es"

docs/articles/expensify-classic/connect-credit-cards/Assign-Company-Cards.md

-70
This file was deleted.

docs/articles/expensify-classic/connect-credit-cards/Configure-Company-Card-Settings.md

-122
This file was deleted.

0 commit comments

Comments
 (0)