Baseline Expo52 and Dev Version
This commit is contained in:
3
app.json
3
app.json
@@ -22,7 +22,8 @@
|
||||
"googleServicesFile": "./GoogleService-Info.plist",
|
||||
"infoPlist": {
|
||||
"NSPhotoLibraryUsageDescription": "Allow $(PRODUCT_NAME) to access your photos.",
|
||||
"NSPhotoLibraryAddUsageDescription": "Allow $(PRODUCT_NAME) to save photos."
|
||||
"NSPhotoLibraryAddUsageDescription": "Allow $(PRODUCT_NAME) to save photos.",
|
||||
"ITSAppUsesNonExemptEncryption": false
|
||||
}
|
||||
},
|
||||
"android": {
|
||||
|
||||
@@ -14,9 +14,9 @@ export default function DataLabelComponent({
|
||||
theContent = DateTime.fromISO(content).toLocaleString(
|
||||
DateTime.DATETIME_SHORT
|
||||
);
|
||||
|
||||
const { key, ...rest } = restProps;
|
||||
return (
|
||||
<View {...restProps} style={{ margin: 4, ...restProps.style }}>
|
||||
<View {...rest} style={{ margin: 4, ...restProps.style }}>
|
||||
<Text style={{ color: "slategray" }}>{label}</Text>
|
||||
<Text>{theContent}</Text>
|
||||
</View>
|
||||
|
||||
3
eas.json
3
eas.json
@@ -6,7 +6,8 @@
|
||||
"development": {
|
||||
"developmentClient": true,
|
||||
"channel": "test",
|
||||
"distribution": "internal"
|
||||
"distribution": "internal",
|
||||
"ios": { "simulator": true }
|
||||
},
|
||||
"test": {
|
||||
"channel": "test"
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
import { setContext } from "@apollo/client/link/context";
|
||||
import { onError } from "@apollo/client/link/error";
|
||||
import { RetryLink } from "@apollo/client/link/retry";
|
||||
import { WebSocketLink } from "@apollo/client/link/ws";
|
||||
//import { WebSocketLink } from "@apollo/client/link/ws";
|
||||
import { getMainDefinition } from "@apollo/client/utilities";
|
||||
import { auth } from "../firebase/firebase.utils";
|
||||
import env from "../env";
|
||||
@@ -18,25 +18,25 @@ const httpLink = new HttpLink({
|
||||
uri: env.uri,
|
||||
});
|
||||
|
||||
const wsLink = new WebSocketLink({
|
||||
//uri: "wss://bodyshop-dev-db.herokuapp.com/v1/graphql",
|
||||
uri: "wss://db.imex.online/v1/graphql",
|
||||
options: {
|
||||
lazy: true,
|
||||
reconnect: true,
|
||||
connectionParams: async () => {
|
||||
const token =
|
||||
auth.currentUser && (await auth.currentUser.getIdToken(true));
|
||||
if (token) {
|
||||
return {
|
||||
headers: {
|
||||
authorization: token ? `Bearer ${token}` : "",
|
||||
},
|
||||
};
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
// const wsLink = new WebSocketLink({
|
||||
// //uri: "wss://bodyshop-dev-db.herokuapp.com/v1/graphql",
|
||||
// uri: "wss://db.imex.online/v1/graphql",
|
||||
// options: {
|
||||
// lazy: true,
|
||||
// reconnect: true,
|
||||
// connectionParams: async () => {
|
||||
// const token =
|
||||
// auth.currentUser && (await auth.currentUser.getIdToken(true));
|
||||
// if (token) {
|
||||
// return {
|
||||
// headers: {
|
||||
// authorization: token ? `Bearer ${token}` : "",
|
||||
// },
|
||||
// };
|
||||
// }
|
||||
// },
|
||||
// },
|
||||
// });
|
||||
|
||||
//https://stackoverflow.com/questions/57163454/refreshing-a-token-with-apollo-client-firebase-auth
|
||||
|
||||
@@ -61,27 +61,27 @@ const subscriptionMiddleware = {
|
||||
next();
|
||||
},
|
||||
};
|
||||
wsLink.subscriptionClient.use([subscriptionMiddleware]);
|
||||
//wsLink.subscriptionClient.use([subscriptionMiddleware]);
|
||||
|
||||
const link = split(
|
||||
// split based on operation type
|
||||
({ query }) => {
|
||||
const definition = getMainDefinition(query);
|
||||
// console.log(
|
||||
// "##Intercepted GQL Transaction : " +
|
||||
// definition.operation +
|
||||
// "|" +
|
||||
// // definition.name.value +
|
||||
// "##"
|
||||
// const link = split(
|
||||
// // split based on operation type
|
||||
// ({ query }) => {
|
||||
// const definition = getMainDefinition(query);
|
||||
// // console.log(
|
||||
// // "##Intercepted GQL Transaction : " +
|
||||
// // definition.operation +
|
||||
// // "|" +
|
||||
// // // definition.name.value +
|
||||
// // "##"
|
||||
// // );
|
||||
// return (
|
||||
// definition.kind === "OperationDefinition" &&
|
||||
// definition.operation === "subscription"
|
||||
// );
|
||||
// },
|
||||
// wsLink,
|
||||
// httpLink
|
||||
// );
|
||||
return (
|
||||
definition.kind === "OperationDefinition" &&
|
||||
definition.operation === "subscription"
|
||||
);
|
||||
},
|
||||
wsLink,
|
||||
httpLink
|
||||
);
|
||||
|
||||
const authLink = setContext((_, { headers }) => {
|
||||
return (
|
||||
@@ -125,7 +125,7 @@ const cache = new InMemoryCache({});
|
||||
export const client = new ApolloClient({
|
||||
//link: ApolloLink.from(middlewares),
|
||||
//link: from([apolloLogger, errorLink, authLink, link]),
|
||||
link: from([authLink, link]),
|
||||
link: from([authLink, retryLink, errorLink, httpLink]),
|
||||
cache,
|
||||
notifyOnNetworkStatusChange: true,
|
||||
|
||||
|
||||
4272
package-lock.json
generated
4272
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
69
package.json
69
package.json
@@ -16,21 +16,21 @@
|
||||
"build:production:local:android": "eas build --profile production --platform android --local"
|
||||
},
|
||||
"dependencies": {
|
||||
"@apollo/client": "^3.9.5",
|
||||
"@babel/preset-env": "7.1.6",
|
||||
"@expo/vector-icons": "^14.0.2",
|
||||
"@apollo/client": "^3.12.11",
|
||||
"@babel/preset-env": "7.26.8",
|
||||
"@expo/vector-icons": "^14.0.4",
|
||||
"@react-native-async-storage/async-storage": "1.23.1",
|
||||
"@react-native-community/cli-debugger-ui": "^9.0.0",
|
||||
"@react-native-community/cli-debugger-ui": "^15.1.3",
|
||||
"@react-native-community/datetimepicker": "8.2.0",
|
||||
"@react-native-community/masked-view": "^0.1.11",
|
||||
"@react-navigation/bottom-tabs": "^6.3.3",
|
||||
"@react-navigation/drawer": "^6.4.4",
|
||||
"@react-navigation/native": "^6.0.12",
|
||||
"@react-navigation/native-stack": "^6.8.0",
|
||||
"@react-navigation/stack": "^6.2.3",
|
||||
"@react-navigation/bottom-tabs": "^7.2.0",
|
||||
"@react-navigation/drawer": "^7.1.1",
|
||||
"@react-navigation/native": "^7.0.14",
|
||||
"@react-navigation/native-stack": "^7.2.0",
|
||||
"@react-navigation/stack": "^7.1.1",
|
||||
"@sentry/react-native": "~6.3.0",
|
||||
"axios": "^1.6.7",
|
||||
"cloudinary-core": "^2.13.0",
|
||||
"axios": "^1.7.9",
|
||||
"cloudinary-core": "^2.13.1",
|
||||
"dinero.js": "^1.9.1",
|
||||
"expo": "^52.0.33",
|
||||
"expo-application": "~6.0.2",
|
||||
@@ -41,60 +41,59 @@
|
||||
"expo-file-system": "~18.0.10",
|
||||
"expo-font": "~13.0.3",
|
||||
"expo-image-manipulator": "~13.0.6",
|
||||
"expo-images-picker": "^2.4.1",
|
||||
"expo-images-picker": "^2.5.1",
|
||||
"expo-localization": "~16.0.1",
|
||||
"expo-media-library": "~17.0.5",
|
||||
"expo-status-bar": "~2.0.1",
|
||||
"expo-system-ui": "~4.0.8",
|
||||
"expo-updates": "~0.26.17",
|
||||
"expo-video-thumbnails": "~9.0.3",
|
||||
"firebase": "^10.8.0",
|
||||
"formik": "^2.4.5",
|
||||
"graphql": "^16.8.1",
|
||||
"i18next": "^21.9.1",
|
||||
"firebase": "^11.3.1",
|
||||
"formik": "^2.4.6",
|
||||
"graphql": "^16.10.0",
|
||||
"i18next": "^24.2.2",
|
||||
"intl": "^1.2.5",
|
||||
"lodash": "^4.17.21",
|
||||
"luxon": "^3.4.4",
|
||||
"mime": "^3.0.0",
|
||||
"luxon": "^3.5.0",
|
||||
"mime": "^4.0.6",
|
||||
"moment": "^2.30.1",
|
||||
"normalize-url": "^7.0.3",
|
||||
"normalize-url": "^8.0.1",
|
||||
"react": "18.3.1",
|
||||
"react-dom": "18.3.1",
|
||||
"react-i18next": "^14.0.5",
|
||||
"react-is": ">=18.2.0",
|
||||
"react-i18next": "^15.4.0",
|
||||
"react-is": ">=19.0.0",
|
||||
"react-native": "0.76.7",
|
||||
"react-native-draggable-flatlist": "^4.0.1",
|
||||
"react-native-element-dropdown": "^2.10.1",
|
||||
"react-native-element-dropdown": "^2.12.4",
|
||||
"react-native-gesture-handler": "~2.20.2",
|
||||
"react-native-image-gallery": "^2.1.5",
|
||||
"react-native-image-viewing": "^0.2.2",
|
||||
"react-native-indicators": "^0.17.0",
|
||||
"react-native-modal-datetime-picker": "^17.1.0",
|
||||
"react-native-modal-datetime-picker": "^18.0.0",
|
||||
"react-native-pager-view": "6.5.1",
|
||||
"react-native-paper": "^5.12.3",
|
||||
"react-native-paper": "^5.13.1",
|
||||
"react-native-progress": "^5.0.1",
|
||||
"react-native-reanimated": "~3.16.1",
|
||||
"react-native-reanimated": "~3.16.7",
|
||||
"react-native-safe-area-context": "4.12.0",
|
||||
"react-native-screens": "~4.4.0",
|
||||
"react-native-svg": "15.8.0",
|
||||
"react-native-tab-view": "3.5.2",
|
||||
"react-native-toast-message": "^2.2.0",
|
||||
"react-native-tab-view": "4.0.5",
|
||||
"react-native-toast-message": "^2.2.1",
|
||||
"react-native-vector-icons": "*",
|
||||
"react-native-web": "~0.19.13",
|
||||
"react-redux": "^9.1.0",
|
||||
"react-redux": "^9.2.0",
|
||||
"redux": "^5.0.1",
|
||||
"redux-logger": "^3.0.6",
|
||||
"redux-persist": "^6.0.0",
|
||||
"redux-saga": "^1.3.0",
|
||||
"reselect": "^5.1.0",
|
||||
"subscriptions-transport-ws": "^0.9.18"
|
||||
"reselect": "^5.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.23.9",
|
||||
"babel-preset-expo": "~12.0.0",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-plugin-react": "^7.33.2",
|
||||
"eslint-plugin-react-native": "^4.1.0"
|
||||
"@babel/core": "^7.26.8",
|
||||
"babel-preset-expo": "~12.0.7",
|
||||
"eslint": "^9.20.1",
|
||||
"eslint-plugin-react": "^7.37.4",
|
||||
"eslint-plugin-react-native": "^5.0.0"
|
||||
},
|
||||
"private": true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user