diff --git a/android/app/build.gradle b/android/app/build.gradle index 202f348aaf61..7e87ac547cd2 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -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 { diff --git a/ios/NewExpensify/Info.plist b/ios/NewExpensify/Info.plist index ea2814c86c46..4ec8fb8761a8 100644 --- a/ios/NewExpensify/Info.plist +++ b/ios/NewExpensify/Info.plist @@ -31,7 +31,7 @@ CFBundleVersion - 1.1.30.0 + 1.1.30.1 ITSAppUsesNonExemptEncryption LSApplicationQueriesSchemes diff --git a/ios/NewExpensifyTests/Info.plist b/ios/NewExpensifyTests/Info.plist index 7ed2d6998946..8a868a44119e 100644 --- a/ios/NewExpensifyTests/Info.plist +++ b/ios/NewExpensifyTests/Info.plist @@ -19,6 +19,6 @@ CFBundleSignature ???? CFBundleVersion - 1.1.30.0 + 1.1.30.1 diff --git a/package-lock.json b/package-lock.json index 058bc2481c89..546582a66480 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "new.expensify", - "version": "1.1.30-0", + "version": "1.1.30-1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 63475d25ab70..0ce3652d6b91 100644 --- a/package.json +++ b/package.json @@ -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.", diff --git a/src/components/AttachmentPicker/index.native.js b/src/components/AttachmentPicker/index.native.js index 0b56964d4eea..15cd8f4bba52 100644 --- a/src/components/AttachmentPicker/index.native.js +++ b/src/components/AttachmentPicker/index.native.js @@ -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); } @@ -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); }); });