Archived
🔧 Remove some tipsi-stripe stuff
Bump dev deps
This commit is contained in:
1 parent
5f6859165b
commit
29246fd96f
9 files changed
+1961
-1075
No files matched your search
@@ -187,7 +187,6 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':tipsi-stripe')
|
||||
implementation project(':react-native-config')
|
||||
implementation project(':react-native-gesture-handler')
|
||||
implementation fileTree(dir: "libs", include: ["*.jar"])
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
rootProject.name = 'Dusken'
|
||||
include ':react-native-sentry'
|
||||
project(':react-native-sentry').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sentry/android')
|
||||
include ':tipsi-stripe'
|
||||
project(':tipsi-stripe').projectDir = new File(rootProject.projectDir, '../node_modules/tipsi-stripe/android')
|
||||
include ':react-native-vector-icons'
|
||||
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
|
||||
include ':react-native-config'
|
||||
|
||||
@@ -3,4 +3,3 @@ DUSKEN_API_URL=https://galtinn.neuf.no
|
||||
DUSKEN_FORGOT_PASSWORD_URL=https://galtinn.neuf.no/auth/password_reset/
|
||||
SENTRY_DSN=
|
||||
STRIPE_PUBLISHABLE_KEY=
|
||||
SLACK_URL=
|
||||
@@ -1,6 +1,7 @@
|
||||
import { AppRegistry } from 'react-native';
|
||||
import * as Sentry from '@sentry/react-native';
|
||||
import Config from 'react-native-config';
|
||||
|
||||
import App from './src/App';
|
||||
|
||||
import { name as appName } from './app.json';
|
||||
|
||||
+1
-1
@@ -2,6 +2,6 @@ module.exports = {
|
||||
preset: 'react-native',
|
||||
setupFiles: ['<rootDir>/jestSetup.js'],
|
||||
transformIgnorePatterns: [
|
||||
'node_modules/(?!(jest-)?react-native|react-clone-referenced-element|@react-navigation|react-navigation-tabs|react-navigation-stack|native-base|@shoutem|tipsi-stripe|redux-persist|@react-native-community|@react-native)',
|
||||
'node_modules/(?!(jest-)?react-native|react-clone-referenced-element|@react-navigation|react-navigation-tabs|react-navigation-stack|native-base|@shoutem|redux-persist|@react-native-community|@react-native)',
|
||||
],
|
||||
};
|
||||
+14
-14
@@ -48,24 +48,24 @@
|
||||
"tipsi-stripe": "^7.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.15.5",
|
||||
"@babel/eslint-parser": "^7.15.7",
|
||||
"@babel/preset-env": "^7.15.6",
|
||||
"@babel/runtime": "^7.15.4",
|
||||
"babel-jest": "^27.2.2",
|
||||
"@babel/core": "^7.18.9",
|
||||
"@babel/eslint-parser": "^7.18.9",
|
||||
"@babel/preset-env": "^7.18.9",
|
||||
"@babel/runtime": "^7.18.9",
|
||||
"babel-jest": "^27.5.1",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-config-airbnb": "^18.2.1",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-plugin-import": "^2.24.2",
|
||||
"eslint-plugin-jest": "^24.4.2",
|
||||
"eslint-plugin-jsx-a11y": "^6.4.1",
|
||||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"eslint-plugin-react": "^7.26.0",
|
||||
"eslint-plugin-react-hooks": "^4.2.0",
|
||||
"jest": "^27.2.2",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-jest": "^24.7.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.6.1",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"eslint-plugin-react": "^7.30.1",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"jest": "^27.5.1",
|
||||
"jest-fetch-mock": "^3.0.3",
|
||||
"metro-react-native-babel-preset": "^0.66.2",
|
||||
"prettier": "^2.4.1",
|
||||
"prettier": "^2.7.1",
|
||||
"react-dom": "^17.0.2",
|
||||
"react-test-renderer": "^17.0.2"
|
||||
}
|
||||
|
||||
+14
-11
@@ -3,6 +3,7 @@ import { Provider } from 'react-redux';
|
||||
import { PersistGate } from 'redux-persist/integration/react';
|
||||
import Config from 'react-native-config';
|
||||
import { ApolloClient, HttpLink, InMemoryCache, ApolloProvider } from '@apollo/client';
|
||||
// import { StripeProvider } from '@stripe/stripe-react-native';
|
||||
|
||||
import Dusken from './Dusken';
|
||||
import { store, persistor } from './reduxStore';
|
||||
@@ -12,14 +13,16 @@ const apolloClient = new ApolloClient({
|
||||
cache: new InMemoryCache(),
|
||||
});
|
||||
|
||||
export default function App() {
|
||||
return (
|
||||
<Provider store={store}>
|
||||
<PersistGate loading={null} persistor={persistor}>
|
||||
<ApolloProvider client={apolloClient}>
|
||||
<Dusken />
|
||||
</ApolloProvider>
|
||||
</PersistGate>
|
||||
</Provider>
|
||||
);
|
||||
}
|
||||
const App = (
|
||||
// <StripeProvider publishableKey={Config.STRIPE_PUBLISHABLE_KEY || ''}>
|
||||
<Provider store={store}>
|
||||
<PersistGate loading={null} persistor={persistor}>
|
||||
<ApolloProvider client={apolloClient}>
|
||||
<Dusken />
|
||||
</ApolloProvider>
|
||||
</PersistGate>
|
||||
</Provider>
|
||||
// </StripeProvider>
|
||||
);
|
||||
|
||||
export default App;
|
||||
@@ -1,16 +1,9 @@
|
||||
import { useEffect } from 'react';
|
||||
import { useDispatch, useSelector } from 'react-redux';
|
||||
// import stripe from 'tipsi-stripe';
|
||||
import Config from 'react-native-config';
|
||||
import { gql, useQuery } from '@apollo/client';
|
||||
|
||||
import { requestMembershipCharge } from '../../api';
|
||||
|
||||
// TODO: switch to official stripe client
|
||||
// stripe.setOptions({
|
||||
// publishableKey: Config.STRIPE_PUBLISHABLE_KEY || '',
|
||||
// });
|
||||
|
||||
const PROOF_QUERY = gql`
|
||||
{
|
||||
membershipTypes(isDefault: true) {
|
||||
|
||||
Reference in new issue
Block a user