removed console.log| Aman Singh
This commit is contained in:
@@ -75,7 +75,6 @@ const BlockerScreen = (props: IBlockerScreen) => {
|
||||
|
||||
|
||||
React.useEffect(() => {
|
||||
console.log("firebase updated", appUpdate)
|
||||
if (!appUpdate) return;
|
||||
const buildToCompare = GLOBAL.BUILD_FLAVOUR;
|
||||
if (!buildToCompare) return;
|
||||
@@ -85,18 +84,16 @@ const BlockerScreen = (props: IBlockerScreen) => {
|
||||
}else {
|
||||
flavorToUpdate = appUpdate?.telecallingAgents;
|
||||
}
|
||||
console.log("firebase updated :: flavor to update", flavorToUpdate, GLOBAL.BUILD_FLAVOUR.includes('fieldAgents'))
|
||||
|
||||
if (!flavorToUpdate) return;
|
||||
const currentBuildNumber = getBuildVersion();
|
||||
console.log("firebase updated", flavorToUpdate, {currentBuildNumber})
|
||||
|
||||
if (currentBuildNumber && currentBuildNumber < flavorToUpdate.buildNumber) {
|
||||
setShouldUpdate(true);
|
||||
} else {
|
||||
setShouldUpdate(false);
|
||||
}
|
||||
}, [JSON.stringify(appUpdate || {})]);
|
||||
}, [appUpdate]);
|
||||
|
||||
React.useEffect(() => {
|
||||
const appStateChange = AppState.addEventListener('change', async (change) => {
|
||||
@@ -131,8 +128,6 @@ const BlockerScreen = (props: IBlockerScreen) => {
|
||||
}else {
|
||||
appUpdateUrl = appUpdate?.telecallingAgents.currentProdAPK;
|
||||
}
|
||||
console.log({appUpdateUrl})
|
||||
|
||||
if (appUpdateUrl) {
|
||||
openApkDownloadLink(appUpdateUrl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user