Skip to content

Commit

Permalink
Merge pull request Expensify#57015 from software-mansion-labs/jnowako…
Browse files Browse the repository at this point in the history
…w/restore-56401

Don't override Environment on hybrid app
  • Loading branch information
AndrewGable authored Feb 19, 2025
2 parents 61e2895 + 6345199 commit e2eab2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 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
4 changes: 2 additions & 2 deletions src/libs/getPlaidLinkTokenParameters/index.android.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import CONST from '@src/CONST';
import DeviceInfo from 'react-native-device-info';
import type GetPlaidLinkTokenParameters from './types';

const getPlaidLinkTokenParameters: GetPlaidLinkTokenParameters = () => ({
androidPackage: CONST.ANDROID_PACKAGE_NAME,
androidPackage: DeviceInfo.getBundleId(),
});

export default getPlaidLinkTokenParameters;

0 comments on commit e2eab2a

Please sign in to comment.