Skip to content

Commit 4bc37d7

Browse files
authored
Merge pull request Expensify#56401 from software-mansion-labs/jnowakow/remove-hybrid-app-check-for-enviroment
Remove hybrid app check from getEnvironment
2 parents dcd6e7a + 6108c90 commit 4bc37d7

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/libs/Environment/getEnvironment/index.native.ts

-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import {NativeModules} from 'react-native';
21
import Config from 'react-native-config';
32
import betaChecker from '@libs/Environment/betaChecker';
43
import CONST from '@src/CONST';
@@ -29,12 +28,6 @@ function getEnvironment(): Promise<Environment> {
2928
return;
3029
}
3130

32-
// If we don't use Development, and we're in the HybridApp, we should use Production
33-
if (NativeModules.HybridAppModule) {
34-
environment = CONST.ENVIRONMENT.PRODUCTION;
35-
return;
36-
}
37-
3831
// If we haven't set the environment yet and we aren't on dev/adhoc, check to see if this is a beta build
3932
betaChecker.isBetaBuild().then((isBeta) => {
4033
environment = isBeta ? CONST.ENVIRONMENT.STAGING : CONST.ENVIRONMENT.PRODUCTION;

0 commit comments

Comments
 (0)