@@ -49,7 +49,7 @@ class DownloadTask extends AsyncTask<DownloadTaskParams, long[], Void> {
4949
5050 private void removeDirectory (File file ) throws IOException {
5151 if (UpdateContext .DEBUG ) {
52- Log .d ("RNUpdate " , "Removing " + file );
52+ Log .d ("react-native-update " , "Removing " + file );
5353 }
5454 if (file .isDirectory ()) {
5555 File [] files = file .listFiles ();
@@ -88,7 +88,7 @@ private void downloadFile(DownloadTaskParams param) throws IOException {
8888 BufferedSink sink = Okio .buffer (Okio .sink (writePath ));
8989
9090 if (UpdateContext .DEBUG ) {
91- Log .d ("RNUpdate " , "Downloading " + url );
91+ Log .d ("react-native-update " , "Downloading " + url );
9292 }
9393
9494 long bytesRead = 0 ;
@@ -98,7 +98,7 @@ private void downloadFile(DownloadTaskParams param) throws IOException {
9898 received += bytesRead ;
9999 sink .emit ();
100100 if (UpdateContext .DEBUG ) {
101- Log .d ("RNUpdate " , "Progress " + received + "/" + contentLength );
101+ Log .d ("react-native-update " , "Progress " + received + "/" + contentLength );
102102 }
103103
104104 int percentage = (int )(received * 100.0 / contentLength + 0.5 );
@@ -115,7 +115,7 @@ private void downloadFile(DownloadTaskParams param) throws IOException {
115115 sink .close ();
116116
117117 if (UpdateContext .DEBUG ) {
118- Log .d ("RNUpdate " , "Download finished" );
118+ Log .d ("react-native-update " , "Download finished" );
119119 }
120120 }
121121
@@ -244,7 +244,7 @@ private void doFullPatch(DownloadTaskParams param) throws IOException {
244244
245245
246246 if (UpdateContext .DEBUG ) {
247- Log .d ("RNUpdate " , "Unzip finished" );
247+ Log .d ("react-native-update " , "Unzip finished" );
248248 }
249249 }
250250
@@ -260,7 +260,7 @@ private void copyFromResource(HashMap<String, ArrayList<File> > resToCopy) throw
260260 File lastTarget = null ;
261261 for (File target : targets ) {
262262 if (UpdateContext .DEBUG ) {
263- Log .d ("RNUpdate " , "Copying from resource " + fn + " to " + target );
263+ Log .d ("react-native-update " , "Copying from resource " + fn + " to " + target );
264264 }
265265 if (lastTarget != null ) {
266266 copyFile (lastTarget , target );
@@ -352,7 +352,7 @@ private void doPatchFromApk(DownloadTaskParams param) throws IOException, JSONEx
352352 copyFromResource (copyList );
353353
354354 if (UpdateContext .DEBUG ) {
355- Log .d ("RNUpdate " , "Unzip finished" );
355+ Log .d ("react-native-update " , "Unzip finished" );
356356 }
357357
358358 }
@@ -418,12 +418,12 @@ private void doPatchFromPpk(DownloadTaskParams param) throws IOException, JSONEx
418418 throw new Error ("bundle patch not found" );
419419 }
420420 if (UpdateContext .DEBUG ) {
421- Log .d ("RNUpdate " , "Unzip finished" );
421+ Log .d ("react-native-update " , "Unzip finished" );
422422 }
423423 }
424424 private void doCleanUp (DownloadTaskParams param ) throws IOException {
425425 if (UpdateContext .DEBUG ) {
426- Log .d ("RNUpdate " , "Start cleaning up" );
426+ Log .d ("react-native-update " , "Start cleaning up" );
427427 }
428428 File root = param .unzipDirectory ;
429429 for (File sub : root .listFiles ()) {
@@ -499,7 +499,7 @@ protected Void doInBackground(DownloadTaskParams... params) {
499499 default :
500500 break ;
501501 }
502- Log .e ("pushy " , "download task failed" , e );
502+ Log .e ("react-native-update " , "download task failed" , e );
503503
504504 if (params [0 ].listener != null ) {
505505 params [0 ].listener .onDownloadFailed (e );
0 commit comments