Skip to content

Commit

Permalink
Merge pull request #21171 from Expensify/update-staging-from-main
Browse files Browse the repository at this point in the history
Update version to 1.3.30-0 on staging
  • Loading branch information
OSBotify authored Jun 21, 2023
2 parents ef68efa + dd4d9a2 commit 48f545a
Show file tree
Hide file tree
Showing 85 changed files with 1,231 additions and 1,039 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
versionCode 1001032911
versionName "1.3.29-11"
versionCode 1001033000
versionName "1.3.30-0"
}

splits {
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.29</string>
<string>1.3.30</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -32,7 +32,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.3.29.11</string>
<string>1.3.30.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.29</string>
<string>1.3.30</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.3.29.11</string>
<string>1.3.30.0</string>
</dict>
</plist>
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "new.expensify",
"version": "1.3.29-11",
"version": "1.3.30-0",
"author": "Expensify, Inc.",
"homepage": "https://new.expensify.com",
"description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.",
Expand Down
85 changes: 0 additions & 85 deletions patches/@react-navigation+stack+6.3.16.patch

This file was deleted.

4 changes: 2 additions & 2 deletions src/components/AddPlaidBankAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class AddPlaidBankAccount extends React.Component {

// Plaid bank accounts view
return (
<View>
<FullPageOfflineBlockingView>
{!_.isEmpty(this.props.text) && <Text style={[styles.mb5]}>{this.props.text}</Text>}
<View style={[styles.flexRow, styles.alignItemsCenter, styles.mb5]}>
<Icon
Expand All @@ -219,7 +219,7 @@ class AddPlaidBankAccount extends React.Component {
value={this.props.selectedPlaidAccountID}
/>
</View>
</View>
</FullPageOfflineBlockingView>
);
}
}
Expand Down
29 changes: 21 additions & 8 deletions src/components/AttachmentCarousel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,14 @@ class AttachmentCarousel extends React.Component {
_.forEach(actions, (action) => htmlParser.write(_.get(action, ['message', 0, 'html'])));
htmlParser.end();

// Inverting the list for touchscreen devices that can swipe or have an animation when scrolling
// promotes the natural feeling of swiping left/right to go to the next/previous image
// We don't want to invert the list for desktop/web because this interferes with mouse
// wheel or trackpad scrolling (in cases like document preview where you can scroll vertically)
if (this.canUseTouchScreen) {
attachments.reverse();
}

const page = _.findIndex(attachments, (a) => a.source === this.props.source);
if (page === -1) {
throw new Error('Attachment not found');
Expand All @@ -195,7 +203,12 @@ class AttachmentCarousel extends React.Component {
* @param {Number} deltaSlide
*/
cycleThroughAttachments(deltaSlide) {
const nextIndex = this.state.page - deltaSlide;
let delta = deltaSlide;
if (this.canUseTouchScreen) {
delta = deltaSlide * -1;
}

const nextIndex = this.state.page - delta;
const nextItem = this.state.attachments[nextIndex];

if (!nextItem || !this.scrollRef.current) {
Expand Down Expand Up @@ -262,8 +275,13 @@ class AttachmentCarousel extends React.Component {
}

render() {
const isForwardDisabled = this.state.page === 0;
const isBackDisabled = this.state.page === _.size(this.state.attachments) - 1;
let isForwardDisabled = this.state.page === 0;
let isBackDisabled = this.state.page === _.size(this.state.attachments) - 1;

if (this.canUseTouchScreen) {
isForwardDisabled = isBackDisabled;
isBackDisabled = this.state.page === 0;
}

return (
<View
Expand Down Expand Up @@ -319,11 +337,6 @@ class AttachmentCarousel extends React.Component {
<FlatList
listKey="AttachmentCarousel"
horizontal
// Inverting the list for touchscreen devices that can swipe or have an animation when scrolling
// promotes the natural feeling of swiping left/right to go to the next/previous image
// We don't want to invert the list for desktop/web because this interferes with mouse
// wheel or trackpad scrolling (in cases like document preview where you can scroll vertically)
inverted={this.canUseTouchScreen}
decelerationRate="fast"
showsHorizontalScrollIndicator={false}
bounces={false}
Expand Down
Loading

0 comments on commit 48f545a

Please sign in to comment.