Announcing new native version, please update to v0.2.0-beta from Google play, Zapstore or Github.

This commit is contained in:
minibits-cash
2025-02-10 12:48:42 +01:00
parent 85c1bdafa4
commit d62489b423
2 changed files with 12 additions and 9 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "minibits_wallet",
"version": "0.1.11-beta.8",
"version": "0.1.11-beta.9",
"private": true,
"scripts": {
"android:clean": "cd android && ./gradlew clean",
+11 -8
View File
@@ -54,7 +54,8 @@ import {
CODEPUSH_STAGING_DEPLOYMENT_KEY,
CODEPUSH_PRODUCTION_DEPLOYMENT_KEY,
MINIBITS_MINT_URL,
NATIVE_VERSION_ANDROID
NATIVE_VERSION_ANDROID,
JS_BUNDLE_VERSION
} from '@env'
import { round } from '../utils/number'
import { IncomingParser } from '../services/incomingParser'
@@ -120,11 +121,13 @@ export const WalletScreen: FC<WalletScreenProps> = observer(
const update = await codePush.checkForUpdate(deploymentKey, handleBinaryVersionMismatchCallback)
if (update && update.failedInstall !== true) { // do not announce update that failed to install before
setUpdateDescription(update.description)
setUpdateSize(`${round(update.packageSize * 0.000001, 2)}MB`)
setIsUpdateAvailable(true)
toggleUpdateModal()
log.trace('OTA Update available', update, 'checkForUpdate')
if(JS_BUNDLE_VERSION.includes(update.appVersion)) {
setUpdateDescription(update.description)
setUpdateSize(`${round(update.packageSize * 0.000001, 2)}MB`)
setIsUpdateAvailable(true)
toggleUpdateModal()
}
// log.trace('OTA Update available', update, 'checkForUpdate')
}
} catch (e: any) {
return false // silent
@@ -145,8 +148,8 @@ export const WalletScreen: FC<WalletScreenProps> = observer(
const handleBinaryVersionMismatchCallback = function(update: RemotePackage) {
log.info('[handleBinaryVersionMismatchCallback] triggered', NATIVE_VERSION_ANDROID, update)
// setIsNativeUpdateAvailable(true)
// toggleUpdateModal()
setIsNativeUpdateAvailable(true)
toggleUpdateModal()
}
// On app start