Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feature/rn-update-0.72
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioh8010 committed Aug 1, 2023
2 parents 2b07cf5 + 52b8ddc commit 6c8e524
Show file tree
Hide file tree
Showing 159 changed files with 3,821 additions and 3,162 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/createNewVersion.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Create new version

on:
workflow_dispatch:
inputs:
SEMVER_LEVEL:
description: One of {BUILD, PATCH, MINOR, MAJOR}
required: true
default: BUILD
type: string

workflow_call:
inputs:
SEMVER_LEVEL:
Expand Down
3 changes: 2 additions & 1 deletion .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import Onyx from 'react-native-onyx';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import {PortalProvider} from '@gorhom/portal';
import './fonts.css';
import ComposeProviders from '../src/components/ComposeProviders';
import HTMLEngineProvider from '../src/components/HTMLEngineProvider';
Expand All @@ -14,7 +15,7 @@ Onyx.init({

const decorators = [
(Story) => (
<ComposeProviders components={[OnyxProvider, LocaleContextProvider, HTMLEngineProvider, SafeAreaProvider]}>
<ComposeProviders components={[OnyxProvider, LocaleContextProvider, HTMLEngineProvider, SafeAreaProvider, PortalProvider]}>
<Story />
</ComposeProviders>
),
Expand Down
1 change: 1 addition & 0 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module.exports = ({config}) => {
'react-native$': '@expensify/react-native-web',
'react-native-web': '@expensify/react-native-web',
'@react-native-community/netinfo': path.resolve(__dirname, '../__mocks__/@react-native-community/netinfo.js'),
'@react-navigation/native': path.resolve(__dirname, '../__mocks__/@react-navigation/native'),
};

// Necessary to overwrite the values in the existing DefinePlugin hardcoded to the Config staging values
Expand Down
8 changes: 8 additions & 0 deletions __mocks__/@react-navigation/native/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import {useIsFocused as realUseIsFocused} from '@react-navigation/native';

// We only want this mocked for storybook, not jest
const useIsFocused = process.env.NODE_ENV === 'test' ? realUseIsFocused : () => true;

export * from '@react-navigation/core';
export * from '@react-navigation/native';
export {useIsFocused};
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
versionCode 1001034508
versionName "1.3.45-8"
versionCode 1001034800
versionName "1.3.48-0"
}

signingConfigs {
Expand Down
2 changes: 1 addition & 1 deletion assets/animations/ExpensifyLounge.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/animations/Fireworks.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/animations/Hands.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/animations/PreferencesDJ.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/animations/ReviewingBankInfo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/animations/WorkspacePlanet.json

Large diffs are not rendered by default.

18 changes: 17 additions & 1 deletion contributingGuides/TS_STYLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,23 @@ declare module "external-library-name" {
- If you're migrating a module that doesn't have a default implementation (i.e. `index.ts`, e.g. `getPlatform`), convert `index.website.js` to `index.ts`. Without `index.ts`, TypeScript cannot get type information where the module is imported.
- Deprecate the usage of `underscore`. Use the corresponding methods from `lodash`. eslint: [`no-restricted-imports`](https://eslint.org/docs/latest/rules/no-restricted-imports)
- Deprecate the usage of `underscore`. Use vanilla methods from JS instead. Only use `lodash` when there is no easy vanilla alternative (eg. `lodashMerge`). eslint: [`no-restricted-imports`](https://eslint.org/docs/latest/rules/no-restricted-imports)
```ts
// BAD
var arr = [];
_.each(arr, () => {});

// GOOD
var arr = [];
arr.forEach(() => {});

// BAD
lodashGet(object, ['foo'], 'bar');

// GOOD
object?.foo ?? 'bar';
```
- Found type bugs. Now what?
Expand Down
4 changes: 2 additions & 2 deletions ios/NewExpensify/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.3.45</string>
<string>1.3.48</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -32,7 +32,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.3.45.8</string>
<string>1.3.48.0</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.3.45</string>
<string>1.3.48</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.3.45.8</string>
<string>1.3.48.0</string>
</dict>
</plist>
Binary file added ios/expensify_chat_dev.mobileprovision.gpg
Binary file not shown.
Loading

0 comments on commit 6c8e524

Please sign in to comment.