mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-16 02:44:33 +08:00
fix issue with packager
This commit is contained in:
@@ -491,17 +491,15 @@ public class CodePush {
|
||||
return;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (isRunningBinaryVersion) {
|
||||
// Check if the current appVersion has been reported.
|
||||
String binaryIdentifier = "" + getBinaryResourcesModifiedTime();
|
||||
if (isDeploymentStatusNotYetReported(binaryIdentifier)) {
|
||||
recordDeploymentStatusReported(binaryIdentifier);
|
||||
WritableNativeMap reportMap = new WritableNativeMap();
|
||||
reportMap.putString("appVersion", appVersion);
|
||||
promise.resolve(reportMap);
|
||||
return;
|
||||
}
|
||||
} else if (isRunningBinaryVersion) {
|
||||
// Check if the current appVersion has been reported.
|
||||
String binaryIdentifier = "" + getBinaryResourcesModifiedTime();
|
||||
if (isDeploymentStatusNotYetReported(binaryIdentifier)) {
|
||||
recordDeploymentStatusReported(binaryIdentifier);
|
||||
WritableNativeMap reportMap = new WritableNativeMap();
|
||||
reportMap.putString("appVersion", appVersion);
|
||||
promise.resolve(reportMap);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user