@@ -50,7 +50,6 @@ public class CodePush {
50
50
private final String PENDING_UPDATE_IS_LOADING_KEY = "isLoading" ;
51
51
private final String ASSETS_BUNDLE_PREFIX = "assets://" ;
52
52
private final String CODE_PUSH_PREFERENCES = "CodePush" ;
53
- private final String CODE_PUSH_TAG = "CodePush" ;
54
53
private final String DOWNLOAD_PROGRESS_EVENT_NAME = "CodePushDownloadProgress" ;
55
54
private final String RESOURCES_BUNDLE = "resources.arsc" ;
56
55
private final String REACT_DEV_BUNDLE_CACHE_FILE_NAME = "ReactNativeDevBundle.js" ;
@@ -136,9 +135,9 @@ public String getBundleUrl(String assetsBundleFileName) {
136
135
return packageFilePath ;
137
136
} else {
138
137
// The binary version is newer.
139
- Log . d ( CODE_PUSH_TAG , "Found a package installed via CodePush that was " +
140
- "installed under a different binary version, so the JS bundle packaged " +
141
- "in the binary will be used as the most current package." );
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." );
142
141
return binaryJsBundleUrl ;
143
142
}
144
143
} catch (IOException e ) {
@@ -237,8 +236,8 @@ private JSONObject getPendingUpdate() {
237
236
return pendingUpdate ;
238
237
} catch (JSONException e ) {
239
238
// Should not happen.
240
- Log . e ( CODE_PUSH_TAG , "Unable to parse pending update metadata " +
241
- pendingUpdateString + " stored in SharedPreferences" , e );
239
+ CodePushUtils . log ( "Unable to parse pending update metadata " + pendingUpdateString +
240
+ " stored in SharedPreferences" );
242
241
return null ;
243
242
}
244
243
}
@@ -252,7 +251,7 @@ private void initializeUpdateAfterRestart() {
252
251
if (updateIsLoading ) {
253
252
// Pending update was initialized, but notifyApplicationReady was not called.
254
253
// Therefore, deduce that it is a broken update and rollback.
255
- Log . d ( CODE_PUSH_TAG , "Update did not finish loading the last time, rolling back to a previous version." );
254
+ CodePushUtils . log ( "Update did not finish loading the last time, rolling back to a previous version." );
256
255
rollbackPackage ();
257
256
} else {
258
257
// Clear the React dev bundle cache so that new updates can be loaded.
0 commit comments