Build updates & remove testing items.

This commit is contained in:
Patrick Fic
2022-05-12 13:34:54 -07:00
parent 717b75a1b8
commit 451950883a
7 changed files with 60 additions and 60 deletions

View File

@@ -2,7 +2,7 @@
"expo": {
"name": "ImEX Mobile",
"slug": "imexmobile",
"version": "1.3.3",
"version": "1.3.5",
"extra": {
"expover": "1"
},
@@ -11,12 +11,12 @@
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.imex.imexmobile",
"buildNumber": "1.3.3",
"buildNumber": "1",
"googleServicesFile": "./GoogleService-Info.plist"
},
"android": {
"package": "com.imex.imexmobile",
"versionCode": 1030300,
"versionCode": 1100001,
"googleServicesFile": "./google-services.json"
},
"splash": {

View File

@@ -5,7 +5,7 @@ import { createStackNavigator } from "@react-navigation/stack";
import i18n from "i18next";
import React, { useEffect } from "react";
import { Button } from "react-native-paper";
import { SafeAreaView } from "react-native-safe-area-context";
import { SafeAreaView } from "react-native";
import { connect } from "react-redux";
import { createStructuredSelector } from "reselect";
import { logImEXEvent } from "../../firebase/firebase.analytics";

View File

@@ -1,8 +1,8 @@
import Constants from "expo-constants";
import React from "react";
import { useTranslation } from "react-i18next";
import { Button, View, Text } from "react-native";
import { Title } from "react-native-paper";
import { View, Text } from "react-native";
import { Title, Button } from "react-native-paper";
import { purgeStoredState } from "redux-persist";
import SignOutButton from "../sign-out-button/sign-out-button.component";
import * as Updates from "expo-updates";
@@ -25,7 +25,7 @@ export default function ScreenSettingsComponent() {
})}
</Title>
<Text>{Updates.releaseChannel}</Text>
<Text>Release Channel {Updates.releaseChannel}</Text>
<SignOutButton />
<Button title="Purge State" onPress={() => purgeStoredState()} />
</View>

View File

@@ -47,7 +47,12 @@ export function SignIn({ emailSignInStart, signingIn }) {
<Image style={localStyles.logo} source={Logo} />
<Title>{t("app.title")}</Title>
</View>
<Formik initialValues={{ email: "", password: "" }} onSubmit={formSubmit}>
<View style={{ flex: 1 }}>
<Formik
initialValues={{ email: "", password: "" }}
onSubmit={formSubmit}
>
{({ handleChange, handleBlur, handleSubmit, values }) => (
<View>
<TextInput
@@ -72,19 +77,23 @@ export function SignIn({ emailSignInStart, signingIn }) {
/>
<SignInErrorAlertComponent />
<Button mode="outlined" loading={signingIn} onPress={handleSubmit}>
<Button
mode="outlined"
loading={signingIn}
onPress={handleSubmit}
>
<Text>{t("signin.actions.signin")}</Text>
</Button>
<Text>
{t("settings.labels.version", {
number: Constants.manifest.version,
})}
{`${process.env.NODE_ENV || ""} ${Updates.releaseChannel || ""}`}
</Text>
</View>
)}
</Formik>
</View>
<Text style={{ padding: 10, alignSelf: "center" }}>
{t("settings.labels.version", {
number: Constants.manifest.version,
})}
</Text>
</View>
);
}

View File

@@ -3,14 +3,14 @@
"version": ">= 0.52.0"
},
"build": {
"development": {
"test": {
"developmentClient": true,
"distribution": "internal"
"distribution": "internal",
"releaseChannel": "test"
},
"preview": {
"distribution": "internal"
},
"production": {}
"production": {
"release-channel": "production"
}
},
"submit": {
"production": {}

View File

@@ -8,10 +8,8 @@
"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"
"build:production": "eas build --profile production",
"build:test": "eas build --profile test"
},
"dependencies": {
"@apollo/client": "^3.7.0-alpha.3",

View File

@@ -109,14 +109,7 @@ export function* signInSuccessSaga({ payload }) {
const shop = yield client.query({ query: QUERY_BODYSHOP });
logImEXEvent("imexmobile_sign_in_success", payload);
yield put(
setBodyshop({
...shop.data.bodyshops[0],
uselocalmediaserver: true,
localmediaserverhttp: "http://192.168.1.235:8000", //TODO: ENSURE THAT THIS HAS BEEN REMOVED POST TESTING.
localmediaservernetwork: "\\192.168.1.235:8000", //TODO: ENSURE THAT THIS HAS BEEN REMOVED POST TESTING.
})
);
yield put(setBodyshop(shop.data.bodyshops[0]));
} catch (error) {
console.log("UH-OH. Couldn't get shop details.", error);
}