mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-10-24 01:58:53 +08:00
add currentversioninfo
This commit is contained in:
@@ -35,7 +35,9 @@ public class UpdateModule extends NativePushySpec {
|
||||
final Map<String, Object> constants = new HashMap<>();
|
||||
constants.put("downloadRootDir", updateContext.getRootDir());
|
||||
constants.put("packageVersion", updateContext.getPackageVersion());
|
||||
constants.put("currentVersion", updateContext.getCurrentVersion());
|
||||
String currentVersion = updateContext.getCurrentVersion();
|
||||
constants.put("currentVersion", currentVersion);
|
||||
constants.put("currentVersionInfo", updateContext.getKv("hash_" + currentVersion));
|
||||
constants.put("buildTime", updateContext.getBuildTime());
|
||||
constants.put("isUsingBundleUrl", updateContext.getIsUsingBundleUrl());
|
||||
boolean isFirstTime = updateContext.isFirstTime();
|
||||
|
@@ -48,7 +48,9 @@ public class UpdateModule extends ReactContextBaseJavaModule {
|
||||
final Map<String, Object> constants = new HashMap<>();
|
||||
constants.put("downloadRootDir", updateContext.getRootDir());
|
||||
constants.put("packageVersion", updateContext.getPackageVersion());
|
||||
constants.put("currentVersion", updateContext.getCurrentVersion());
|
||||
String currentVersion = updateContext.getCurrentVersion();
|
||||
constants.put("currentVersion", currentVersion);
|
||||
constants.put("currentVersionInfo", updateContext.getKv("hash_" + currentVersion));
|
||||
constants.put("buildTime", updateContext.getBuildTime());
|
||||
constants.put("isUsingBundleUrl", updateContext.getIsUsingBundleUrl());
|
||||
boolean isFirstTime = updateContext.isFirstTime();
|
||||
|
Reference in New Issue
Block a user