@@ -125,19 +125,19 @@ public String getBundleUrl(String assetsBundleFileName) {
125
125
String packageFilePath = codePushPackage .getCurrentPackageBundlePath ();
126
126
if (packageFilePath == null ) {
127
127
// There has not been any downloaded updates.
128
+ CodePushUtils .logBundleUrl (binaryJsBundleUrl );
128
129
return binaryJsBundleUrl ;
129
130
}
130
131
131
132
ReadableMap packageMetadata = codePushPackage .getCurrentPackage ();
132
133
// May throw NumberFormatException.
133
134
Long binaryModifiedDateDuringPackageInstall = Long .parseLong (CodePushUtils .tryGetString (packageMetadata , BINARY_MODIFIED_TIME_KEY ));
134
135
if (binaryModifiedDateDuringPackageInstall == binaryResourcesModifiedTime ) {
136
+ CodePushUtils .logBundleUrl (packageFilePath );
135
137
return packageFilePath ;
136
138
} else {
137
139
// The binary version is newer.
138
- CodePushUtils .log ("Found a package installed via CodePush that was installed " +
139
- "under a different binary version, so the JS bundle packaged in the " +
140
- "binary will be used as the most current package." );
140
+ CodePushUtils .logBundleUrl (binaryJsBundleUrl );
141
141
return binaryJsBundleUrl ;
142
142
}
143
143
} catch (IOException e ) {
@@ -255,7 +255,6 @@ private void initializeUpdateAfterRestart() {
255
255
rollbackPackage ();
256
256
} else {
257
257
// Clear the React dev bundle cache so that new updates can be loaded.
258
- if (com .facebook .react .BuildConfig .DEBUG )
259
258
clearReactDevBundleCache ();
260
259
// Mark that we tried to initialize the new update, so that if it crashes,
261
260
// we will know that we need to rollback when the app next starts.
0 commit comments