Skip to content

Commit

Permalink
chore: env setup
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-wallet committed Oct 25, 2024
1 parent 725b74a commit e991e20
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 8 deletions.
8 changes: 4 additions & 4 deletions packages/mobile/android/sentry.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

auth.token=$Add_TOKEN_HERE
defaults.org=fetchai-ft
defaults.project=fetch-mobile
auth.token=SENTRY_AUTH_TOKEN
defaults.org=SENTRY_ORG
defaults.project=SENTRY_PROJECT

defaults.url=https://sentry.io/
defaults.url=SENTRY_URL
16 changes: 16 additions & 0 deletions packages/mobile/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,21 @@ module.exports = {
["@babel/plugin-proposal-decorators", { legacy: true }],
["@babel/plugin-proposal-class-properties", { loose: true }],
"react-native-reanimated/plugin",
[
"transform-inline-environment-variables",
{
include: [
"SENTRY_AUTH_TOKEN",
"SENTRY_URL",
"SENTRY_ORG",
"SENTRY_PROJECT",
"SENTRY_DSN",
"PROD_AMPLITUDE_API_KEY",
"DEV_AMPLITUDE_API_KEY",
"PROD_AUTH_CLIENT_ID",
"DEV_AUTH_CLIENT_ID",
],
},
],
],
};
8 changes: 4 additions & 4 deletions packages/mobile/ios/sentry.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

auth.token=$Add_TOKEN_HERE
defaults.org=fetchai-ft
defaults.project=fetch-mobile
auth.token=SENTRY_AUTH_TOKEN
defaults.org=SENTRY_ORG
defaults.project=SENTRY_PROJECT

defaults.url=https://sentry.io/
defaults.url=SENTRY_URL
1 change: 1 addition & 0 deletions packages/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"appcenter": "^4.4.5",
"appcenter-analytics": "^4.4.5",
"axios": "^0.27.2",
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
"bip39": "^3.0.2",
"buffer": "^6.0.3",
"color-alpha": "^1.1.3",
Expand Down
1 change: 1 addition & 0 deletions packages/mobile/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2600,6 +2600,7 @@ export const AuthApiKey =
process.env["NODE_ENV"] === "production"
? PROD_AUTH_CLIENT_ID
: DEV_AUTH_CLIENT_ID;

export const CommunityChainInfoRepo = {
organizationName: "chainapsis",
repoName: "keplr-chain-registry",
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22519,6 +22519,13 @@ __metadata:
languageName: node
linkType: hard

"babel-plugin-transform-inline-environment-variables@npm:^0.4.4":
version: 0.4.4
resolution: "babel-plugin-transform-inline-environment-variables@npm:0.4.4"
checksum: fa361287411301237fd8ce332aff4f8e8ccb8db30e87a2ddc7224c8bf7cd792eda47aca24dc2e09e70bce4c027bc8cbe22f4999056be37a25d2472945df21ef5
languageName: node
linkType: hard

"babel-plugin-transform-object-rest-spread@npm:^6.26.0":
version: 6.26.0
resolution: "babel-plugin-transform-object-rest-spread@npm:6.26.0"
Expand Down Expand Up @@ -40682,6 +40689,7 @@ __metadata:
appcenter: ^4.4.5
appcenter-analytics: ^4.4.5
axios: ^0.27.2
babel-plugin-transform-inline-environment-variables: ^0.4.4
bip39: ^3.0.2
browserify: ^17.0.0
buffer: ^6.0.3
Expand Down

0 comments on commit e991e20

Please sign in to comment.