Skip to content

Commit

Permalink
Merge pull request #10 from BlackBeardBandits/dotenv
Browse files Browse the repository at this point in the history
PR for issue #9
  • Loading branch information
han9rykim authored Aug 18, 2021
2 parents 0b787a9 + 0b3d2f3 commit f7effde
Show file tree
Hide file tree
Showing 7 changed files with 7,283 additions and 6,265 deletions.
3 changes: 3 additions & 0 deletions EmotionaryApp/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": ["inline-dotenv", "module:react-native-dotenv"]
}
3 changes: 3 additions & 0 deletions EmotionaryApp/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ npm-debug.*
*.orig.*
web-build/

#env file
.env

# macOS
.DS_Store

Expand Down
8 changes: 4 additions & 4 deletions EmotionaryApp/amplify/key.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const key = {
accessKeyId: "",
secretAccessKey: "",
region: "",
bucket: "",
accessKeyId: process.env.ACCESSKEY_ID,
secretAccessKey: process.env.SECRETACCESS_KEY,
region: "ap-southeast-2",
bucket: "amplify-emotionaryapp-dev-31457-deployment",
};
5 changes: 3 additions & 2 deletions EmotionaryApp/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = function(api) {
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
presets: ["babel-preset-expo"],
plugins: ["inline-dotenv"],
};
};
62 changes: 62 additions & 0 deletions EmotionaryApp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions EmotionaryApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
"aws-amplify": "^4.2.3",
"aws-amplify-react-native": "^5.0.3",
"aws-sdk": "^2.968.0",
"babel-plugin-inline-dotenv": "^1.6.0",
"expo": "^42.0.0",
"expo-image-picker": "~10.2.2",
"expo-status-bar": "~1.0.4",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz",
"react-native-dotenv": "^3.2.0",
"react-native-gesture-handler": "~1.10.2",
"react-native-keyboard-aware-scroll-view": "^0.9.4",
"react-native-reanimated": "~2.2.0",
Expand Down
Loading

0 comments on commit f7effde

Please sign in to comment.