Skip to content

Commit

Permalink
Merge pull request #56401 from software-mansion-labs/jnowakow/remove-…
Browse files Browse the repository at this point in the history
…hybrid-app-check-for-enviroment

Remove hybrid app check from getEnvironment
  • Loading branch information
AndrewGable authored Feb 11, 2025
2 parents dcd6e7a + 6108c90 commit 4bc37d7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/libs/Environment/getEnvironment/index.native.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {NativeModules} from 'react-native';
import Config from 'react-native-config';
import betaChecker from '@libs/Environment/betaChecker';
import CONST from '@src/CONST';
Expand Down Expand Up @@ -29,12 +28,6 @@ function getEnvironment(): Promise<Environment> {
return;
}

// If we don't use Development, and we're in the HybridApp, we should use Production
if (NativeModules.HybridAppModule) {
environment = CONST.ENVIRONMENT.PRODUCTION;
return;
}

// If we haven't set the environment yet and we aren't on dev/adhoc, check to see if this is a beta build
betaChecker.isBetaBuild().then((isBeta) => {
environment = isBeta ? CONST.ENVIRONMENT.STAGING : CONST.ENVIRONMENT.PRODUCTION;
Expand Down

0 comments on commit 4bc37d7

Please sign in to comment.