@@ -32,6 +32,7 @@ getConstants(): Object {
3232 const rolledBackVersion = preferencesManager . getSync ( "rolledBackVersion" , "" ) as string ;
3333 const uuid = preferencesManager . getSync ( "uuid" , "" ) as string ;
3434 const currentVersion = preferencesManager . getSync ( "currentVersion" , "" ) as string ;
35+ const currentVersionInfo = this . context . getKv ( `hash_${ currentVersion } ` ) ;
3536 const buildTime = preferencesManager . getSync ( "buildTime" , "" ) as string ;
3637 const isUsingBundleUrl = this . context . getIsUsingBundleUrl ( ) ;
3738 let bundleFlags = bundleManager . BundleFlag . GET_BUNDLE_INFO_WITH_REQUESTED_PERMISSION ;
@@ -53,6 +54,7 @@ getConstants(): Object {
5354
5455 return {
5556 downloadRootDir : `${ context . filesDir } /_update` ,
57+ currentVersionInfo,
5658 packageVersion,
5759 currentVersion,
5860 buildTime,
@@ -64,13 +66,13 @@ getConstants(): Object {
6466}
6567
6668
67- async setLocalHashInfo ( hash : string , info : string ) : Promise < boolean > {
69+ setLocalHashInfo ( hash : string , info : string ) : boolean {
6870 logger . debug ( TAG , ",call setLocalHashInfo" ) ;
69- return UpdateModuleImpl . setLocalHashInfo ( this . context , hash , info ) ;
71+ return UpdateModuleImpl . setLocalHashInfo ( this . context , hash , info ) ;
7072 }
7173
72- async getLocalHashInfo ( hash : string ) : Promise < string > {
73- return UpdateModuleImpl . getLocalHashInfo ( this . context , hash ) ;
74+ getLocalHashInfo ( hash : string ) : string {
75+ return UpdateModuleImpl . getLocalHashInfo ( this . context , hash ) ;
7476 }
7577
7678 async setUuid ( uuid : string ) : Promise < boolean > {
0 commit comments