EXPO VER 2 - Ensure uploads are unique.

This commit is contained in:
Patrick Fic
2021-06-03 10:49:22 -07:00
parent 642568bc01
commit fb77cfea15
4 changed files with 11 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
"name": "ImEX Mobile",
"slug": "imexmobile",
"version": "1.2.0",
"extra": { "expover": "2" },
"orientation": "default",
"icon": "./assets/logo192noa.png",
"ios": {

View File

@@ -21,9 +21,10 @@ export default function ScreenSettingsComponent() {
>
<Title>
{t("settings.labels.version", {
number: Constants.manifest.version,
number: `${Constants.manifest.version}-${Constants.manifest.extra.expover}`,
})}
</Title>
<Text>{Updates.releaseChannel}</Text>
<SignOutButton />
<Button title="Purge State" onPress={() => purgeStoredState()} />

View File

@@ -5,7 +5,13 @@
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
"eject": "expo eject",
"release:test": "expo publish --release-channel test",
"release:production": "expo publish --release-channel production",
"build:ios:production": "expo build:ios --release-channel production",
"build:ios:test": "expo build:ios --release-channel test",
"build:android:production": "expo build:android --release-channel production",
"build:android:test": "expo build:android --release-channel test"
},
"dependencies": {
"@apollo/client": "^3.3.19",

View File

@@ -22,7 +22,7 @@ export const handleUpload = async (ev, context) => {
let key = `${bodyshop.id}/${jobId}/${(filename || newFile.data.name).replace(
/\.[^/.]+$/,
""
)}`;
)}-${new Date().getTime()}`;
const res = await uploadToCloudinary(
key,