Skip to content
This repository has been archived by the owner on May 7, 2023. It is now read-only.

Commit

Permalink
Update app config and fix packages to expo dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed May 13, 2021
1 parent 390244c commit 463fe55
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 78 deletions.
37 changes: 16 additions & 21 deletions client/app.config.js → client/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ export default {
name: 'HackaTalk',
slug: 'HackaTalk-Expo',
privacy: 'public',
platforms: [
'ios',
'android',
'web',
],
platforms: ['ios', 'android', 'web'],
version,
orientation: 'default',
icon: './assets/icon.png',
Expand All @@ -27,9 +23,7 @@ export default {
updates: {
fallbackToCacheTimeout: 0,
},
assetBundlePatterns: [
'**/*',
],
assetBundlePatterns: ['**/*'],
facebookDisplayName: 'hackatalk',
facebookScheme: `fb${process.env.facebookAppId}`,
ios: {
Expand Down Expand Up @@ -61,7 +55,8 @@ export default {
userInterfaceStyle: 'dark',
package: 'com.dooboolab.hackatalk',
useNextNotificationsApi: true,
playStoreUrl: 'https://play.google.com/store/apps/details?id=com.dooboolab.hackatalk',
playStoreUrl:
'https://play.google.com/store/apps/details?id=com.dooboolab.hackatalk',
permissions: [
'CAMERA',
'CAMERA_ROLL',
Expand Down Expand Up @@ -103,6 +98,18 @@ export default {
},
description: 'Opensource chat app',
githubUrl: 'https://github.com/dooboolab/hackatalk',
hooks: {
postPublish: [
{
file: 'sentry-expo/upload-sourcemaps',
config: {
organization: 'dooboolab',
project: 'hackatalk',
authToken: process.env.sentryAuthToken,
},
},
],
},
},
web: {
relatedApplications: [
Expand All @@ -119,16 +126,4 @@ export default {
],
preferRelatedApplications: true,
},
hooks: {
postPublish: [
{
file: 'sentry-expo/upload-sourcemaps',
config: {
organization: 'dooboolab',
project: 'hackatalk',
authToken: process.env.sentryAuthToken,
},
},
],
},
};
7 changes: 4 additions & 3 deletions client/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function(api) {
module.exports = (api) => {
api.cache(true);

return {
Expand All @@ -7,10 +7,11 @@ module.exports = function(api) {
'@babel/preset-react',
{runtime: 'automatic', importSource: '@emotion/react'},
],
'babel-preset-expo', '@babel/preset-typescript'
'babel-preset-expo',
'@babel/preset-typescript',
],
plugins: [
['relay', { artifactDirectory: './src/__generated__' }],
['relay', {artifactDirectory: './src/__generated__'}],
'react-native-reanimated/plugin',
'macros',
'inline-dotenv',
Expand Down
2 changes: 1 addition & 1 deletion client/metro.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { getDefaultConfig } = require('@expo/metro-config');
const {getDefaultConfig} = require('@expo/metro-config');

const defaultConfig = getDefaultConfig(__dirname);

Expand Down
18 changes: 9 additions & 9 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"immer": "^9.0.2",
"mime": "^2.5.2",
"moment": "^2.29.1",
"react": "^17.0.2",
"react": "16.13.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz",
"react-native-appearance": "~0.3.3",
"react-native-gesture-handler": "~1.10.2",
Expand All @@ -85,7 +85,7 @@
"react-native-screens": "~3.0.0",
"react-native-svg": "12.1.0",
"react-native-tab-view": "^3.0.1",
"react-native-web": "^0.16.2",
"react-native-web": "~0.13.12",
"react-native-webview": "11.2.3",
"react-navigation-stack": "^2.10.4",
"react-relay": "^11.0.2",
Expand All @@ -96,7 +96,7 @@
},
"devDependencies": {
"@babel/cli": "^7.13.16",
"@babel/core": "^7.14.2",
"@babel/core": "~7.9.0",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-proposal-decorators": "7.14.2",
"@babel/plugin-proposal-object-rest-spread": "^7.14.2",
Expand All @@ -106,7 +106,7 @@
"@babel/runtime": "^7.14.0",
"@dooboo/eslint-config": "^0.7.2",
"@emotion/babel-plugin": "^11.3.0",
"@expo/webpack-config": "^0.12.70",
"@expo/webpack-config": "~0.12.63",
"@graphql-codegen/cli": "^1.21.4",
"@graphql-codegen/typescript": "^1.22.0",
"@graphql-codegen/typescript-document-nodes": "^1.17.11",
Expand All @@ -123,18 +123,18 @@
"@types/i18n-js": "^3.8.1",
"@types/jest": "^26.0.23",
"@types/mime": "^2.0.3",
"@types/react": "^17.0.5",
"@types/react-native": "^0.64.2",
"@types/react": "~16.9.35",
"@types/react-native": "~0.63.2",
"@types/react-native-modalbox": "^1.4.8",
"@types/react-relay": "^11.0.1",
"@types/react-responsive": "^8.0.2",
"@types/react-test-renderer": "^17.0",
"@types/relay-test-utils": "^6.0.4",
"abort-controller": "^3.0.0",
"babel-jest": "^26.6.3",
"babel-preset-expo": "8.3.0",
"babel-plugin-inline-dotenv": "^1.6.0",
"babel-plugin-relay": "^11.0.2",
"babel-preset-expo": "8.3.0",
"codecov": "^3.8.2",
"eslint": "^7.26.0",
"eslint-plugin-i18n-json": "^3.1.0",
Expand All @@ -149,7 +149,7 @@
"postinstall-postinstall": "^2.1.0",
"prettier": "^2.3.0",
"prettier-plugin-import-sort": "^0.0.6",
"react-dom": "^17.0.2",
"react-dom": "16.13.1",
"react-native-svg-transformer": "^0.14.3",
"react-test-renderer": "^16.11.0",
"relay-compiler": "^11.0.2",
Expand All @@ -158,7 +158,7 @@
"relay-test-utils": "^11.0.2",
"sharp-cli": "^1.15.0",
"ts-jest": "^26.5.6",
"typescript": "^4.2.4"
"typescript": "~4.0.0"
},
"importSort": {
".js, .jsx": {
Expand Down
Loading

0 comments on commit 463fe55

Please sign in to comment.