Skip to content

Commit

Permalink
Merge pull request #7279 from Expensify/OSBotify-cherry-pick-staging-…
Browse files Browse the repository at this point in the history
…7277
  • Loading branch information
OSBotify authored Jan 17, 2022
2 parents 7a4023c + 974bd5c commit 37241b2
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
versionCode 1001013000
versionName "1.1.30-0"
versionCode 1001013001
versionName "1.1.30-1"
}
splits {
abi {
Expand Down
2 changes: 1 addition & 1 deletion ios/NewExpensify/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.1.30.0</string>
<string>1.1.30.1</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>
Expand Down
2 changes: 1 addition & 1 deletion ios/NewExpensifyTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.1.30.0</string>
<string>1.1.30.1</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion 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.1.30-0",
"version": "1.1.30-1",
"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
8 changes: 7 additions & 1 deletion src/components/AttachmentPicker/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ function getDataForUpload(fileData) {
size: fileData.fileSize || fileData.size,
};

// When the URI is lacking uri scheme - file upload would fail
// Prefixing the uri with `file://` fixes attachment upload on Android
const hasScheme = /^.+:\/\//.test(fileResult.uri);
if (!hasScheme) {
fileResult.uri = `file://${fileResult.uri}`;
}

if (fileResult.size) {
return Promise.resolve(fileResult);
}
Expand Down Expand Up @@ -198,7 +205,6 @@ class AttachmentPicker extends Component {
return reject(new Error(`Error during attachment selection: ${response.errorMessage}`));
}

// Resolve with the first (and only) selected file
return resolve(response.assets);
});
});
Expand Down

0 comments on commit 37241b2

Please sign in to comment.