mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-10-23 01:36:43 +08:00
Refactor Pushy class to replace getCurrentVersionInfo with currentVersionInfo for improved clarity and consistency.
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
||||
buildTime,
|
||||
cInfo,
|
||||
currentVersion,
|
||||
getCurrentVersionInfo,
|
||||
currentVersionInfo,
|
||||
isFirstTime,
|
||||
isRolledBack,
|
||||
packageVersion,
|
||||
@@ -163,7 +163,6 @@ export class Pushy {
|
||||
log(type + ' ' + message);
|
||||
await this.loggerPromise.promise;
|
||||
const { logger = noop, appKey } = this.options;
|
||||
const info = await getCurrentVersionInfo();
|
||||
const overridePackageVersion = this.options.overridePackageVersion;
|
||||
logger({
|
||||
type,
|
||||
@@ -175,7 +174,7 @@ export class Pushy {
|
||||
overridePackageVersion,
|
||||
buildTime,
|
||||
message,
|
||||
...info,
|
||||
...currentVersionInfo,
|
||||
...data,
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user