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", "name": "ImEX Mobile",
"slug": "imexmobile", "slug": "imexmobile",
"version": "1.2.0", "version": "1.2.0",
"extra": { "expover": "2" },
"orientation": "default", "orientation": "default",
"icon": "./assets/logo192noa.png", "icon": "./assets/logo192noa.png",
"ios": { "ios": {

View File

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

View File

@@ -5,7 +5,13 @@
"android": "expo start --android", "android": "expo start --android",
"ios": "expo start --ios", "ios": "expo start --ios",
"web": "expo start --web", "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": { "dependencies": {
"@apollo/client": "^3.3.19", "@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( let key = `${bodyshop.id}/${jobId}/${(filename || newFile.data.name).replace(
/\.[^/.]+$/, /\.[^/.]+$/,
"" ""
)}`; )}-${new Date().getTime()}`;
const res = await uploadToCloudinary( const res = await uploadToCloudinary(
key, key,