Skip to content

Commit 88a449c

Browse files
committed
Revert "Disable react-native-background-geolocation auto-linking by reading env."
This reverts commit 834678c.
1 parent ff4b42f commit 88a449c

File tree

3 files changed

+5
-28
lines changed

3 files changed

+5
-28
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@
132132
"babel-jest": "^26.6.3",
133133
"babel-plugin-transform-remove-console": "^6.9.4",
134134
"detox": "^19.6.5",
135-
"dotenv": "^16.0.3",
136135
"enzyme": "^3.10.0",
137136
"enzyme-adapter-react-16": "^1.15.6",
138137
"enzyme-to-json": "^3.6.2",

react-native.config.js

+5-22
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,10 @@
1-
require('dotenv').config()
2-
3-
let dependencies = {
4-
// We disable @react-native-firebase/messaging auto-linking on iOS
5-
'@react-native-firebase/messaging': {
6-
platforms: {
7-
ios: null,
8-
},
9-
},
10-
};
11-
12-
if (process.env.DEFAULT_SERVER !== '') {
13-
// We disable react-native-background-geolocation auto-linking for custom apps
14-
dependencies = Object.assign(dependencies, {
15-
'react-native-background-geolocation': {
1+
module.exports = {
2+
assets: ['./assets/fonts/'],
3+
dependencies: {
4+
'@react-native-firebase/messaging': {
165
platforms: {
176
ios: null,
18-
android: null,
197
},
208
},
21-
})
22-
}
23-
24-
module.exports = {
25-
assets: ['./assets/fonts/'],
26-
dependencies: dependencies
9+
},
2710
};

yarn.lock

-5
Original file line numberDiff line numberDiff line change
@@ -6582,11 +6582,6 @@ domutils@^2.5.2, domutils@^2.6.0, domutils@^2.7.0:
65826582
domelementtype "^2.2.0"
65836583
domhandler "^4.2.0"
65846584

6585-
dotenv@^16.0.3:
6586-
version "16.0.3"
6587-
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.3.tgz#115aec42bac5053db3c456db30cc243a5a836a07"
6588-
integrity sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==
6589-
65906585
dtrace-provider@~0.8:
65916586
version "0.8.8"
65926587
resolved "https://registry.yarnpkg.com/dtrace-provider/-/dtrace-provider-0.8.8.tgz#2996d5490c37e1347be263b423ed7b297fb0d97e"

0 commit comments

Comments
 (0)