Skip to content

Commit

Permalink
Merge branch 'main' into arrow-feature-signed
Browse files Browse the repository at this point in the history
  • Loading branch information
JediWattson committed Sep 21, 2022
2 parents f1e3411 + 09ff150 commit e327533
Show file tree
Hide file tree
Showing 59 changed files with 1,376 additions and 1,356 deletions.
7 changes: 5 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,11 @@ For example:
#### Web
<!-- Insert screenshots of your changes on the web platform-->

#### Mobile Web
<!-- Insert screenshots of your changes on the web platform (from a mobile browser)-->
#### Mobile Web - Chrome
<!-- Insert screenshots of your changes on the web platform (from chrome mobile browser)-->

#### Mobile Web - Safari
<!-- Insert screenshots of your changes on the web platform (from safari mobile browser)-->

#### Desktop
<!-- Insert screenshots of your changes on the desktop platform-->
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/javascript/awaitStagingDeploys/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ class GithubUtils {
* @returns {Promise<String>}
*/
static getActorWhoClosedIssue(issueNumber) {
return this.octokit.paginate(this.octokit.issues.listEvents, {
return this.paginate(this.octokit.issues.listEvents, {
owner: GITHUB_OWNER,
repo: APP_REPO,
issue_number: issueNumber,
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/javascript/checkDeployBlockers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ class GithubUtils {
* @returns {Promise<String>}
*/
static getActorWhoClosedIssue(issueNumber) {
return this.octokit.paginate(this.octokit.issues.listEvents, {
return this.paginate(this.octokit.issues.listEvents, {
owner: GITHUB_OWNER,
repo: APP_REPO,
issue_number: issueNumber,
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/javascript/contributorChecklist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ class GithubUtils {
* @returns {Promise<String>}
*/
static getActorWhoClosedIssue(issueNumber) {
return this.octokit.paginate(this.octokit.issues.listEvents, {
return this.paginate(this.octokit.issues.listEvents, {
owner: GITHUB_OWNER,
repo: APP_REPO,
issue_number: issueNumber,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ class GithubUtils {
* @returns {Promise<String>}
*/
static getActorWhoClosedIssue(issueNumber) {
return this.octokit.paginate(this.octokit.issues.listEvents, {
return this.paginate(this.octokit.issues.listEvents, {
owner: GITHUB_OWNER,
repo: APP_REPO,
issue_number: issueNumber,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ class GithubUtils {
* @returns {Promise<String>}
*/
static getActorWhoClosedIssue(issueNumber) {
return this.octokit.paginate(this.octokit.issues.listEvents, {
return this.paginate(this.octokit.issues.listEvents, {
owner: GITHUB_OWNER,
repo: APP_REPO,
issue_number: issueNumber,
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/javascript/getPullRequestDetails/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ class GithubUtils {
* @returns {Promise<String>}
*/
static getActorWhoClosedIssue(issueNumber) {
return this.octokit.paginate(this.octokit.issues.listEvents, {
return this.paginate(this.octokit.issues.listEvents, {
owner: GITHUB_OWNER,
repo: APP_REPO,
issue_number: issueNumber,
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/javascript/getReleaseBody/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ class GithubUtils {
* @returns {Promise<String>}
*/
static getActorWhoClosedIssue(issueNumber) {
return this.octokit.paginate(this.octokit.issues.listEvents, {
return this.paginate(this.octokit.issues.listEvents, {
owner: GITHUB_OWNER,
repo: APP_REPO,
issue_number: issueNumber,
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/javascript/isPullRequestMergeable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ class GithubUtils {
* @returns {Promise<String>}
*/
static getActorWhoClosedIssue(issueNumber) {
return this.octokit.paginate(this.octokit.issues.listEvents, {
return this.paginate(this.octokit.issues.listEvents, {
owner: GITHUB_OWNER,
repo: APP_REPO,
issue_number: issueNumber,
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/javascript/isStagingDeployLocked/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ class GithubUtils {
* @returns {Promise<String>}
*/
static getActorWhoClosedIssue(issueNumber) {
return this.octokit.paginate(this.octokit.issues.listEvents, {
return this.paginate(this.octokit.issues.listEvents, {
owner: GITHUB_OWNER,
repo: APP_REPO,
issue_number: issueNumber,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ class GithubUtils {
* @returns {Promise<String>}
*/
static getActorWhoClosedIssue(issueNumber) {
return this.octokit.paginate(this.octokit.issues.listEvents, {
return this.paginate(this.octokit.issues.listEvents, {
owner: GITHUB_OWNER,
repo: APP_REPO,
issue_number: issueNumber,
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/javascript/reopenIssueWithComment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ class GithubUtils {
* @returns {Promise<String>}
*/
static getActorWhoClosedIssue(issueNumber) {
return this.octokit.paginate(this.octokit.issues.listEvents, {
return this.paginate(this.octokit.issues.listEvents, {
owner: GITHUB_OWNER,
repo: APP_REPO,
issue_number: issueNumber,
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/javascript/triggerWorkflowAndWait/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ class GithubUtils {
* @returns {Promise<String>}
*/
static getActorWhoClosedIssue(issueNumber) {
return this.octokit.paginate(this.octokit.issues.listEvents, {
return this.paginate(this.octokit.issues.listEvents, {
owner: GITHUB_OWNER,
repo: APP_REPO,
issue_number: issueNumber,
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/javascript/verifySignedCommits/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ class GithubUtils {
* @returns {Promise<String>}
*/
static getActorWhoClosedIssue(issueNumber) {
return this.octokit.paginate(this.octokit.issues.listEvents, {
return this.paginate(this.octokit.issues.listEvents, {
owner: GITHUB_OWNER,
repo: APP_REPO,
issue_number: issueNumber,
Expand Down
2 changes: 1 addition & 1 deletion .github/libs/GithubUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ class GithubUtils {
* @returns {Promise<String>}
*/
static getActorWhoClosedIssue(issueNumber) {
return this.octokit.paginate(this.octokit.issues.listEvents, {
return this.paginate(this.octokit.issues.listEvents, {
owner: GITHUB_OWNER,
repo: APP_REPO,
issue_number: issueNumber,
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
versionCode 1001020100
versionName "1.2.1-0"
versionCode 1001020401
versionName "1.2.4-1"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()

if (isNewArchitectureEnabled()) {
Expand Down
4 changes: 2 additions & 2 deletions contributingGuides/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ It’s possible that you found a bug or enhancement that we haven’t posted to

Please follow these steps to propose a job:

1. Check to ensure an issue does not already exist for this topic in the [New Expensify Issue list](https://github.com/Expensify/App/issues). Please use your best judgement by searching for similar titles and issue descriptions.
1. Check to ensure an issue does not already exist for this topic in the [New Expensify Issue list](https://github.com/Expensify/App/issues) or as a reported `Bug:` in the [#expensify-open-source](https://github.com/Expensify/App/blob/main/contributingGuides/CONTRIBUTING.md#asking-questions) Slack channel. Please use your best judgement by searching for similar titles and issue descriptions.
2. If your bug or enhancement matches an existing issue, please feel free to comment on that GitHub issue with your findings if you think it will help solve the issue.
4. If there is no existing GitHub issue or Upwork job, check if the issue is happening on prod (as opposed to only happening on dev)
5. If the issue is just in dev then it means it's a new issue and has not been deployed to production. In this case, you should try to find the offending PR and comment in the issue tied to the PR and ask the assigned users to add the `DeployBlockerCash` label. If you can't find it, follow the reporting instructions in the next item, but note that the issue is a regression only found in dev and not in prod.
6. If the issue happens in main, staging or production then report the issue(s) in the [#expensify-open-source](https://github.com/Expensify/App/blob/main/contributingGuides/CONTRIBUTING.md#asking-questions) Slack channel, prefixed with `BUG:` or `Feature Request:`. Please use the templates for bugs and feature requests that are bookmarked in #expensify-open-source. View [this guide](https://github.com/Expensify/App/blob/main/contributingGuides/HOW_TO_CREATE_A_PLAN.md) for help creating a plan when proposing a feature request.
6. If the issue happens in main, staging, or production then report the issue(s) in the #expensify-open-source Slack channel, prefixed with `BUG:` or `Feature Request:`. Please use the templates for bugs and feature requests that are bookmarked in #expensify-open-source. View [this guide](https://github.com/Expensify/App/blob/main/contributingGuides/HOW_TO_CREATE_A_PLAN.md) for help creating a plan when proposing a feature request.
7. After review in #expensify-open-source, if you've provided a quality proposal that we choose to implement, a GitHub issue will be created and your Slack handle will be included in the original post after `Issue reported by:`
8. If an external contributor other than yourself is hired to work on the issue, you will also be hired for the same job in Upwork. No additional work is needed. If the issue is fixed internally, a dedicated job will be created to hire and pay you after the issue is fixed.
9. Payment will be made 7 days after code is deployed to production if there are no regressions. If a regression is discovered, payment will be issued 7 days after all regressions are fixed.
Expand Down
1 change: 1 addition & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ platform :ios do
end

upload_symbols_to_crashlytics(
app_id: "1:921154746561:ios:216bd10ccc947659027c40",
dsym_path: lane_context[SharedValues::DSYM_OUTPUT_PATH],
gsp_path: "./ios/GoogleService-Info.plist",
binary_path: "./ios/Pods/FirebaseCrashlytics/upload-symbols"
Expand Down
4 changes: 2 additions & 2 deletions ios/NewExpensify/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.2.1</string>
<string>1.2.4</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -30,7 +30,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.2.1.0</string>
<string>1.2.4.1</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>
Expand Down
4 changes: 2 additions & 2 deletions ios/NewExpensifyTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.2.1</string>
<string>1.2.4</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.2.1.0</string>
<string>1.2.4.1</string>
</dict>
</plist>
13 changes: 13 additions & 0 deletions jest/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ jest.mock('../src/libs/BootSplash', () => ({
getVisibilityStatus: jest.fn().mockResolvedValue('hidden'),
}));

jest.mock('react-native-blob-util', () => ({}));

// Turn off the console logs for timing events. They are not relevant for unit tests and create a lot of noise
jest.spyOn(console, 'debug').mockImplementation((...params) => {
if (params[0].indexOf('Timing:') === 0) {
return;
}

// Send the message to console.log but don't re-used console.debug or else this mock method is called in an infinite loop. Instead, just prefix the output with the word "DEBUG"
// eslint-disable-next-line no-console
console.log('DEBUG', ...params);
});

// Local notifications (a.k.a. browser notifications) do not run in native code. Our jest tests will also run against
// any index.native.js files as they are using a react-native plugin. However, it is useful to mock this behavior so that we
// can test the expected web behavior and see if a browser notification would be shown or not.
Expand Down
Loading

0 comments on commit e327533

Please sign in to comment.