Skip to content

Update version to 1.0.79-5 on staging #4197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 165 commits into from
Jul 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
165 commits
Select commit Hold shift + click to select a range
d652f33
reanimated 2 support android & web
parasharrajat Jul 4, 2021
23406b8
Create new CurrentWalletBalance component
stitesExpensify Jul 6, 2021
0335c7a
Remove wallet from list
stitesExpensify Jul 6, 2021
30e72fb
Remove unused icon
stitesExpensify Jul 6, 2021
0017116
Add empty state message
stitesExpensify Jul 6, 2021
9f5e17f
Format wallet balance to always be 2 decimals
stitesExpensify Jul 6, 2021
6990161
Add title and translations
stitesExpensify Jul 6, 2021
bfc849b
Merge branch 'main' of github.com:Expensify/Expensify.cash into stite…
stitesExpensify Jul 6, 2021
353a5e4
Fix wrong display name
stitesExpensify Jul 8, 2021
f8e2fba
Move loading indicator next to the label instead of the payment list
stitesExpensify Jul 9, 2021
b2f0e21
Style loader to be on the right side
stitesExpensify Jul 9, 2021
5eedcfe
Remove testing logic
stitesExpensify Jul 9, 2021
a2bd2f7
Remove unused prop
stitesExpensify Jul 9, 2021
0bf6b72
pull latest changes
parasharrajat Jul 10, 2021
0f58b1c
Use trashcan icon when room is in closed state
yuwenmemon Jul 13, 2021
3188970
Show deleted as part of report title when report is archived
yuwenmemon Jul 13, 2021
49b293c
adds callbackIfInacessible to fetchChatReportsById
rdjuric Jul 13, 2021
fd089ab
fixes comment
rdjuric Jul 13, 2021
6080340
Disable chat input when room is deleted
yuwenmemon Jul 13, 2021
650aa1f
changes callback to direct redirect in the fetch
rdjuric Jul 13, 2021
a34944e
disable add payments button while payments are loading
stitesExpensify Jul 14, 2021
2a365ab
navigate to concierge, translated growl
rdjuric Jul 14, 2021
2611403
lint fixes and small improvements
rdjuric Jul 14, 2021
b792527
added multiple emails support to workspace invite page
parasharrajat Jul 14, 2021
80530b9
fetch only if local chat has no reportID
rdjuric Jul 14, 2021
7fb9038
lint
rdjuric Jul 14, 2021
4f822c0
fix: action failure on invalid String in BASH
parasharrajat Jul 14, 2021
27f02d5
Fix conflicts
yuwenmemon Jul 14, 2021
199afa1
JS Style
yuwenmemon Jul 14, 2021
e5d2979
resolution for conflict
rdjuric Jul 14, 2021
85749e3
lint fixes
rdjuric Jul 14, 2021
e7f9d50
minor changes
rdjuric Jul 15, 2021
359f6c1
Merge branch 'main' of github.com:Expensify/ReactNativeChat into yuwe…
yuwenmemon Jul 15, 2021
49ac184
Show old policy name in subheader if we're dealing with an Archived Room
yuwenmemon Jul 16, 2021
96de1bc
Merge pull request #4081 from parasharrajat/animated-2
mountiny Jul 16, 2021
33e5d99
Stylesheet.flatten
yuwenmemon Jul 16, 2021
4bb44ed
Use state/status
yuwenmemon Jul 16, 2021
bb02d77
Merge pull request #4113 from Expensify/staging
roryabraham Jul 16, 2021
8d8745b
merge main
luacmartins Jul 14, 2021
8f10ad7
add selectedCurrency
luacmartins Jul 16, 2021
dfa223b
fix: Phone numbers are not added optimistically
parasharrajat Jul 16, 2021
78a2d61
Pull changes
parasharrajat Jul 16, 2021
d7fc786
Remove duplicate form fields
tgolen Jul 16, 2021
5dc947d
change preferred locale onyx key name
luacmartins Jul 14, 2021
e7a7f3f
remove setLocale
luacmartins Jul 14, 2021
df1a166
fetch preferred locale
luacmartins Jul 14, 2021
8dd8b57
fix style
luacmartins Jul 14, 2021
041d8aa
add pusher
luacmartins Jul 16, 2021
92fd456
Merge pull request #4117 from Expensify/tgolen-fix-fields
roryabraham Jul 16, 2021
9cead53
Update version to 1.0.79-1
Jul 16, 2021
fc965f6
Merge pull request #4124 from Expensify/version-BUILD-92fd456846907b2…
OSBotify Jul 16, 2021
97c649c
Fix bad merge of master
yuwenmemon Jul 16, 2021
ddda46f
add pusher
luacmartins Jul 16, 2021
68be9bb
clean up state and onyx from react components
luacmartins Jul 16, 2021
707e505
fix props
luacmartins Jul 16, 2021
52d54bb
add performance issue template
marcaaron Jul 16, 2021
f7a1837
fix: paste and Ctrl+z
parasharrajat Jul 17, 2021
96f4086
Merge branch 'main' of github.com:Expensify/Expensify.cash into paste…
parasharrajat Jul 17, 2021
87b17dc
remove extra selection
parasharrajat Jul 17, 2021
665543a
resolve conflict
parasharrajat Jul 17, 2021
429e38c
trim logins
parasharrajat Jul 17, 2021
6bbfaa8
fix: invite logic
parasharrajat Jul 17, 2021
f9d0058
Merge pull request #4131 from parasharrajat/paste-html
HorusGoul Jul 19, 2021
a2b7356
finish removing state
luacmartins Jul 19, 2021
39b0d84
rename preferredCurrency to localCurrency
luacmartins Jul 19, 2021
c4a5c8b
Merge pull request #4049 from parasharrajat/actions-deployblock
tgolen Jul 19, 2021
cfd317f
Merge branch 'main' of github.com:Expensify/Expensify.cash into stite…
stitesExpensify Jul 19, 2021
ff69384
update e-common
parasharrajat Jul 19, 2021
18991bc
add checklists clean things up a bit
marcaaron Jul 19, 2021
8f543ba
Stop call to Get=reportStuff with reportID = undefined
marcaaron Jul 19, 2021
0ed5ef4
updates to Report and comment to ReportActionsView
rdjuric Jul 19, 2021
563393e
lint fixes
rdjuric Jul 19, 2021
22fe53b
use onLayout instead of debouncing report action items
marcaaron Jul 19, 2021
9afedd1
Fix timing for chat switching by using onLayout
marcaaron Jul 19, 2021
1e1a9a2
Don't check participants' whole names in default rooms
Jul 19, 2021
3bae549
Update podfile.lock checksum
Jul 19, 2021
4749488
Merge pull request #4018 from rdjuric/navigatingToInacessibleChat
marcaaron Jul 19, 2021
2df99f8
move functions
luacmartins Jul 19, 2021
84cdbad
remove empty line
luacmartins Jul 19, 2021
b91a878
Merge pull request #4139 from Expensify/marcaaron-reportStuff
Luke9389 Jul 19, 2021
b13f9c7
Modify line height so text does not get cut off in LHN
yuwenmemon Jul 19, 2021
72d127e
remove onyx currency symbol key
luacmartins Jul 19, 2021
f1881e0
move selectedCurrency to IOU key
luacmartins Jul 19, 2021
d8cfac2
update setIOUSelectedCurrency
luacmartins Jul 19, 2021
f8c358e
adjust line height of option display name to avoid cutoff in Android
yuwenmemon Jul 20, 2021
4ee3e73
Make deleted icon circular
yuwenmemon Jul 20, 2021
446b400
Use round avatar for E.Cash room avatar
yuwenmemon Jul 20, 2021
3339ac3
remove background color from avatars
yuwenmemon Jul 20, 2021
6b9d773
RenameGetPreferredCurrency API command to GetLocalCurrency
mountiny Jul 20, 2021
6ba320d
Merge pull request #4140 from Expensify/marcaaron-useOnLayout
iwiznia Jul 20, 2021
5308246
Merge pull request #4145 from Expensify/vit-fixAPICommand
Julesssss Jul 20, 2021
7b5d3ed
Merge pull request #4144 from Expensify/yuwen-roundRoom
Jul 20, 2021
efc727d
request changes
luacmartins Jul 20, 2021
bed15d1
make currencyList required
luacmartins Jul 20, 2021
00ac37e
Update version to 1.0.79-2
Jul 20, 2021
da89c93
Merge pull request #4148 from Expensify/version-BUILD-7b5d3edba6087d6…
OSBotify Jul 20, 2021
ff9b55b
Merge pull request #4141 from Expensify/amal-participants-full-name-c…
thienlnam Jul 20, 2021
5c84767
Fix circle mobile icons for default room in focus mode
Jul 20, 2021
029ed17
Merge pull request #4143 from Expensify/yuwen-lineHeight
yuwenmemon Jul 20, 2021
5a70739
Update version to 1.0.79-3
Jul 20, 2021
bdf6111
Merge pull request #4151 from Expensify/version-BUILD-029ed175ecaaed0…
OSBotify Jul 20, 2021
43f80af
remove second loading indicator
stitesExpensify Jul 20, 2021
f16db3b
Remove unnecessary view
stitesExpensify Jul 20, 2021
5655dbc
Style
stitesExpensify Jul 20, 2021
529262e
Merge pull request #4128 from Expensify/marcaaron-issueTemplate
tgolen Jul 20, 2021
b558cc6
update
parasharrajat Jul 20, 2021
98a2ea9
Merge pull request #4153 from Expensify/amal-def-room-avatar-focus
Jul 20, 2021
3ea4b27
Merge pull request #4142 from parasharrajat/paste-html
tgolen Jul 20, 2021
ffadeac
update ConfirmModal
jasperhuangg Jul 20, 2021
d4d5c77
add modal for existing owners error
jasperhuangg Jul 20, 2021
86d3ae7
fixes style for hidden element
rdjuric Jul 21, 2021
fbe40b8
remove padding
jasperhuangg Jul 21, 2021
9ab6aec
style
jasperhuangg Jul 21, 2021
683bcf4
Merge pull request #3890 from Expensify/stites-finishPaymentsPage
jasperhuangg Jul 21, 2021
396748d
remove unused
jasperhuangg Jul 21, 2021
274af0a
add spanish translations
jasperhuangg Jul 21, 2021
849d6c1
update translation
jasperhuangg Jul 21, 2021
324f4f6
Add clearNotifications function to the PushNotification lib
HorusGoul Jul 21, 2021
02e50f8
Clear push notifications inside the redirectToSignIn function (manual…
HorusGoul Jul 21, 2021
dc0f373
Always clear push notifications if there is no auth token.
HorusGoul Jul 21, 2021
8e7449e
Show IOU preview component persistently
tugbadogan Jul 21, 2021
aced8b6
password match error fixed
ABee-Tech Jul 21, 2021
fdb15d9
Merge pull request #4157 from Expensify/jasper-existingOwnersModal
luacmartins Jul 21, 2021
968e57c
fix a typo in a translation
jasperhuangg Jul 21, 2021
2d673cc
Merge pull request #4023 from Expensify/yuwen-deletedRooms
yuwenmemon Jul 21, 2021
7823854
remove return
luacmartins Jul 21, 2021
75dfa1c
[IS-3774] reduce long tap action time
aliabbasmalik8 Jul 21, 2021
2a32bcb
[IS-3774] reduce long tap action time
aliabbasmalik8 Jul 21, 2021
ccbf853
set loading false
luacmartins Jul 21, 2021
df24cc0
Merge pull request #4166 from Expensify/jasper-fixTranslation
stitesExpensify Jul 21, 2021
e275e26
Merge pull request #4165 from Expensify/cmartins-finish-setup
marcaaron Jul 21, 2021
0c532ed
Merge pull request #4068 from parasharrajat/work-invite
Jul 21, 2021
7e395c5
Merge pull request #4055 from Expensify/cmartins-preferred-locale
thienlnam Jul 21, 2021
9526c32
add iOS native module code
marcaaron Jul 22, 2021
94e12d6
Add trace module to Android
marcaaron Jul 22, 2021
14cbd77
Fix up style
marcaaron Jul 22, 2021
73bede6
rename startup timer
marcaaron Jul 22, 2021
fe02c21
remove unused
marcaaron Jul 22, 2021
2b80149
Add some better comments
marcaaron Jul 22, 2021
4c76071
Do not trace when in debug
marcaaron Jul 22, 2021
ed33dcb
Merge pull request #4167 from aliabbasmalik8/IS-3774
madmax330 Jul 22, 2021
c9c2ee9
Merge pull request #4160 from Expensify/horus-remove-notification-bad…
madmax330 Jul 22, 2021
a111b83
Merge pull request #4162 from tugbadogan/tugbadogan-iou-preview-fix
Julesssss Jul 22, 2021
56c01a4
fix(emoji): Fix emoji flex
pranshuchittora Jul 22, 2021
88ec80a
lint
ABee-Tech Jul 22, 2021
0a8b25c
remove offline loading
luacmartins Jul 22, 2021
4facad0
Merge pull request #4164 from ABee-Tech/password-match-error-fix
iwiznia Jul 22, 2021
4d84b6b
Merge pull request #4158 from rdjuric/fixHiddenStyling
luacmartins Jul 22, 2021
1f12c30
Merge pull request #4173 from Expensify/marcaaron-reactNativeFirebase
marcaaron Jul 22, 2021
180bef2
doc comments and lodashGet
luacmartins Jul 22, 2021
9144f80
fix style
luacmartins Jul 22, 2021
2508a1a
remove sleep timer code
marcaaron Jul 22, 2021
fd92e19
Merge pull request #4019 from Expensify/cmartins-offline-currency
marcaaron Jul 22, 2021
3766555
Merge pull request #4176 from Expensify/marcaaron-fixClockTimer
tylerkaraszewski Jul 22, 2021
cc58b00
Remove `gradle` mention from ReadMe to improve clarity
AndrewGable Jul 22, 2021
6059660
Merge pull request #4178 from Expensify/andrew-readme-gradle
AndrewGable Jul 22, 2021
40f145e
Center new expensify icon in about page
helaoutar Jul 22, 2021
a4e39bb
Make About icon bigger
helaoutar Jul 23, 2021
4180d27
Merge pull request #4175 from pranshuchittora/pranshuchittora/fix/emo…
Jag96 Jul 23, 2021
1dfb6fa
Update version to 1.0.79-4
Jul 23, 2021
57a9a60
Merge pull request #4192 from Expensify/version-BUILD-4180d27bebaf027…
OSBotify Jul 23, 2021
5c36490
Merge pull request #4180 from helaoutar/bugfix/center_new_expensify_i…
jasperhuangg Jul 23, 2021
1674ef1
Update version to 1.0.79-5
Jul 23, 2021
7400b93
Merge pull request #4196 from Expensify/version-BUILD-5c3649092962170…
OSBotify Jul 23, 2021
65f0a12
Merge branch 'main' into update-staging-from-main
Jul 23, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/Performance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Report a performance issue
about: Use to report an issue or propose a solution related to app performance
title: "[Performance] "
labels: Engineering
---

If you haven’t already, check out our [contributing guidelines](https://github.com/Expensify/ReactNativeChat/blob/main/CONTRIBUTING.md) for onboarding and email [email protected] to request to join our Slack channel!
___

## What performance issue do we need to solve?
e.g. memory consumption, storage read/write times, React native bridge concerns, inefficient React component rendering, etc.

## What is the impact of this on end-users?
List specific user experiences that will be improved by solving this problem e.g. app boot time, time to for some interaction to complete, etc.

## List any benchmarks that show the severity of the issue
Please also provide exact steps taken to collect metrics above if any so we can independently verify the results.

## Proposed solution (if any)
Please list out the steps you think we should take to solve this issue.

## List any benchmarks after implementing the changes to show impacts of the proposed solution (if any)
Note: These should be the same as the benchmarks collected before any changes.

## Platform:
Where is this issue occurring?

- [ ] Web
- [ ] iOS
- [ ] Android
- [ ] Desktop App
- [ ] Mobile Web

**Version Number:**
**Logs:** https://stackoverflow.com/c/expensify/questions/4856
**Notes/Photos/Videos:** Any additional supporting documentation
**Expensify/Expensify Issue URL:**

[View all open jobs on Upwork](https://www.upwork.com/ab/jobs/search/?q=Expensify%20React%20Native&sort=recency&user_location_match=2)
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/Standard.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ Can the user still use Expensify without this being fixed? Have you informed the
## Platform:
Where is this issue occurring?

Web
iOS
Android
Desktop App
Mobile Web
- [ ] Web
- [ ] iOS
- [ ] Android
- [ ] Desktop App
- [ ] Mobile Web

**Version Number:**
**Logs:** https://stackoverflow.com/c/expensify/questions/4856
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deployBlocker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: |
echo "DEPLOY_BLOCKER_URL=${{ github.event.pull_request.html_url }}" >> $GITHUB_ENV
echo "DEPLOY_BLOCKER_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV
echo "DEPLOY_BLOCKER_TITLE=${{ github.event.pull_request.title }}" >> $GITHUB_ENV
echo "DEPLOY_BLOCKER_TITLE=$(sed -e "s/'/'\\\\''/g; s/\`/\\\\\`/g; 1s/^/'/; \$s/\$/'/" <<< ${{ github.event.pull_request.title }})" >> $GITHUB_ENV

- name: Update StagingDeployCash with new deploy blocker
uses: Expensify/Expensify.cash/.github/actions/createOrUpdateStagingDeploy@main
Expand All @@ -54,7 +54,7 @@ jobs:
channel: '#deployer',
attachments: [{
color: "#DB4545",
text: '💥 New E.cash Deploy Blocker: <${{ env.DEPLOY_BLOCKER_URL }}|${{ env.DEPLOY_BLOCKER_TITLE }}>',
text: '💥 New E.cash Deploy Blocker: <${{ env.DEPLOY_BLOCKER_URL }}|'+ `${{ env.DEPLOY_BLOCKER_TITLE }}`.replace(/(^'|'$)/gi, '').replace(/'\''/gi,'\'') + '>',
}]
}
env:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ You can use any IDE or code editing tool for developing on any platform. Use you
* Changes applied to Javascript will be applied automatically, any changes to native code will require a recompile

## Running the Android app 🤖
* To install the Android dependencies, run: `npm install`, then `gradle` will install all linked dependencies
* To install the Android dependencies, run: `npm install`
* Make sure you have Java installed `java -version`. If not, install it by running `npm install -g openjdk8`.
* To run a on a **Development Emulator**: `npm run android`
* Changes applied to Javascript will be applied automatically, any changes to native code will require a recompile
Expand Down Expand Up @@ -248,7 +248,7 @@ localize the following types of data when presented to the user (even accessibil
- Phones: see [LocalPhoneNumber](https://github.com/Expensify/Expensify.cash/blob/bdfbafe18ee2d60f766c697744f23fad64b62cad/src/libs/LocalePhoneNumber.js#L51-L52)

In most cases, you will be needing to localize data used in a component, if that's the case, there's a HOC [withLocalize](https://github.com/Expensify/Expensify.cash/blob/37465dbd07da1feab8347835d82ed3d2302cde4c/src/components/withLocalize.js).
It will abstract most of the logic you need (mostly subscribe to the [PREFERRED_LOCALE](https://github.com/Expensify/Expensify.cash/blob/6cf1a56df670a11bf61aa67eeb64c1f87161dea1/src/ONYXKEYS.js#L88) Onyx key)
It will abstract most of the logic you need (mostly subscribe to the [NVP_PREFERRED_LOCALE](https://github.com/Expensify/Expensify.cash/blob/6cf1a56df670a11bf61aa67eeb64c1f87161dea1/src/ONYXKEYS.js#L88) Onyx key)
and is the preferred way of localizing things inside components.

Some pointers:
Expand Down
8 changes: 6 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: "com.android.application"
apply plugin: "com.google.firebase.firebase-perf"
apply from: '../../node_modules/react-native-unimodules/gradle.groovy'
apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"

Expand Down Expand Up @@ -149,8 +150,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
versionCode 1001007904
versionName "1.0.79-4"
versionCode 1001007905
versionName "1.0.79-5"
}
splits {
abi {
Expand Down Expand Up @@ -233,6 +234,9 @@ dependencies {
implementation jscFlavor
}

implementation platform("com.google.firebase:firebase-bom:20.0.2")
implementation "com.google.firebase:firebase-perf"

// GIF support
implementation 'com.facebook.fresco:fresco:2.3.0'
implementation 'com.facebook.fresco:animated-gif:2.3.0'
Expand Down
7 changes: 6 additions & 1 deletion android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@

<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application android:usesCleartextTraffic="true" tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" />
<application android:usesCleartextTraffic="true" tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning">
<meta-data
android:name="firebase_performance_logcat_enabled"
android:value="true"
/>
</application>
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package com.expensify.chat;

import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class ExpensifyAppPackage implements ReactPackage {

@Override
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
return Collections.emptyList();
}

@Override
public List<NativeModule> createNativeModules(
ReactApplicationContext reactContext) {
List<NativeModule> modules = new ArrayList<>();

modules.add(new StartupTimer(reactContext));

return modules;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import org.unimodules.adapters.react.ModuleRegistryAdapter;
import org.unimodules.adapters.react.ReactModuleRegistryProvider;
import org.unimodules.core.interfaces.SingletonModule;
import com.facebook.react.bridge.JSIModulePackage;
import com.swmansion.reanimated.ReanimatedJSIModulePackage;

public class MainApplication extends MultiDexApplication implements ReactApplication {

Expand All @@ -40,6 +42,7 @@ protected List<ReactPackage> getPackages() {
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage());
packages.add(new PlaidPackage());
packages.add(new ExpensifyAppPackage());

// Add unimodules
List<ReactPackage> unimodules = Arrays.<ReactPackage>asList(
Expand All @@ -53,6 +56,11 @@ protected List<ReactPackage> getPackages() {
protected String getJSMainModuleName() {
return "index";
}

@Override
protected JSIModulePackage getJSIModulePackage() {
return new ReanimatedJSIModulePackage();
}
};

@Override
Expand All @@ -69,6 +77,11 @@ public void onCreate() {
FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(false);
}

// Start the "js_load" custom performance tracing metric. This timer is stopped by a native
// module in the JS so we can measure total time starting in the native layer and ending in
// the JS layer.
StartupTimer.start();

// Increase SQLite DB write size
try {
Field field = CursorWindow.class.getDeclaredField("sCursorWindowSize");
Expand Down
39 changes: 39 additions & 0 deletions android/app/src/main/java/com/expensify/chat/StartupTimer.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package com.expensify.chat;
import android.util.Log;

import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.google.firebase.perf.FirebasePerformance;
import com.google.firebase.perf.metrics.Trace;

public class StartupTimer extends ReactContextBaseJavaModule {
StartupTimer(ReactApplicationContext context) {
super(context);
}

private static Trace trace = null;

@Override
public String getName() {
return "StartupTimer";
}

@ReactMethod
public void stop() {
if (trace == null) {
return;
}

trace.stop();
}

public static void start() {
if (BuildConfig.DEBUG) {
Log.d("StartupTimer", "Metric tracing disabled in DEBUG");
} else {
trace = FirebasePerformance.getInstance().newTrace("js_loaded");
trace.start();
}
}
}
3 changes: 2 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ buildscript {
dependencies {
classpath("com.android.tools.build:gradle:4.1.0")
classpath("com.google.gms:google-services:4.3.4")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.3.0")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.7.1")
classpath("com.google.firebase:perf-plugin:1.4.0")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
Expand Down
13 changes: 13 additions & 0 deletions assets/images/avatars/deleted-room.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 5 additions & 7 deletions assets/images/avatars/room.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 10 additions & 14 deletions assets/images/new-expensify-dev.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading