@@ -73,7 +73,7 @@ public void onPatchServiceStart(Intent intent) {
73
73
*/
74
74
@ Override
75
75
public void onPatchPackageCheckFail (File patchFile , int errorCode ) {
76
- TinkerLog .i (TAG , "patchReporter onPatchPackageCheckFail: package check failed. path:%s, code:%d" ,
76
+ TinkerLog .i (TAG , "patchReporter onPatchPackageCheckFail: package check failed. path: %s, code: %d" ,
77
77
patchFile .getAbsolutePath (), errorCode );
78
78
//only meta corrupted, need to delete temp files. others is just in the check time!
79
79
if (errorCode == ShareConstants .ERROR_PACKAGE_CHECK_DEX_META_CORRUPTED
@@ -94,7 +94,7 @@ public void onPatchPackageCheckFail(File patchFile, int errorCode) {
94
94
*/
95
95
@ Override
96
96
public void onPatchVersionCheckFail (File patchFile , SharePatchInfo oldPatchInfo , String patchFileVersion ) {
97
- TinkerLog .i (TAG , "patchReporter onPatchVersionCheckFail: patch version exist. path:%s, version:%s" ,
97
+ TinkerLog .i (TAG , "patchReporter onPatchVersionCheckFail: patch version exist. path: %s, version: %s" ,
98
98
patchFile .getAbsolutePath (), patchFileVersion );
99
99
//no need to delete temp files, because it is only in the check time!
100
100
}
@@ -114,7 +114,7 @@ public void onPatchVersionCheckFail(File patchFile, SharePatchInfo oldPatchInfo,
114
114
*/
115
115
@ Override
116
116
public void onPatchTypeExtractFail (File patchFile , File extractTo , String filename , int fileType ) {
117
- TinkerLog .i (TAG , "patchReporter onPatchTypeExtractFail: file extract fail type:%s, path:%s, extractTo:%s, filename:%s" ,
117
+ TinkerLog .i (TAG , "patchReporter onPatchTypeExtractFail: file extract fail type: %s, path: %s, extractTo: %s, filename: %s" ,
118
118
ShareTinkerInternals .getTypeString (fileType ), patchFile .getPath (), extractTo .getPath (), filename );
119
119
//delete temp files
120
120
Tinker .with (context ).cleanPatchByVersion (patchFile );
@@ -130,7 +130,7 @@ public void onPatchTypeExtractFail(File patchFile, File extractTo, String filena
130
130
*/
131
131
@ Override
132
132
public void onPatchDexOptFail (File patchFile , File dexFile , String optDirectory , String dexName , Throwable t ) {
133
- TinkerLog .i (TAG , "patchReporter onPatchDexOptFail: dex opt fail path:%s, dexPath:%s, optDir:%s, dexName:%s" ,
133
+ TinkerLog .i (TAG , "patchReporter onPatchDexOptFail: dex opt fail path: %s, dexPath: %s, optDir: %s, dexName: %s" ,
134
134
patchFile .getAbsolutePath (), dexFile .getPath (), optDirectory , dexName );
135
135
TinkerLog .printErrStackTrace (TAG , t , "onPatchDexOptFail:" );
136
136
//delete temp files
@@ -146,7 +146,7 @@ public void onPatchDexOptFail(File patchFile, File dexFile, String optDirectory,
146
146
*/
147
147
@ Override
148
148
public void onPatchResult (File patchFile , boolean success , long cost ) {
149
- TinkerLog .i (TAG , "patchReporter onPatchResult: patch all result path:%s, success:%b, cost:%d" ,
149
+ TinkerLog .i (TAG , "patchReporter onPatchResult: patch all result path: %s, success: %b, cost: %d" ,
150
150
patchFile .getAbsolutePath (), success , cost );
151
151
//you can just report the result here
152
152
}
@@ -161,7 +161,7 @@ public void onPatchResult(File patchFile, boolean success, long cost) {
161
161
*/
162
162
@ Override
163
163
public void onPatchInfoCorrupted (File patchFile , String oldVersion , String newVersion ) {
164
- TinkerLog .i (TAG , "patchReporter onPatchInfoCorrupted: patch info is corrupted. old:%s, new:%s" ,
164
+ TinkerLog .i (TAG , "patchReporter onPatchInfoCorrupted: patch info is corrupted. old: %s, new: %s" ,
165
165
oldVersion , newVersion );
166
166
//patch.info is corrupted, just clean all patch
167
167
Tinker .with (context ).cleanPatch ();
@@ -177,7 +177,7 @@ public void onPatchInfoCorrupted(File patchFile, String oldVersion, String newVe
177
177
*/
178
178
@ Override
179
179
public void onPatchException (File patchFile , Throwable e ) {
180
- TinkerLog .i (TAG , "patchReporter onPatchException: patch exception path:%s, throwable:%s" ,
180
+ TinkerLog .i (TAG , "patchReporter onPatchException: patch exception path: %s, throwable: %s" ,
181
181
patchFile .getAbsolutePath (), e .getMessage ());
182
182
TinkerLog .e (TAG , "tinker patch exception, welcome to submit issue to us: https://github.com/Tencent/tinker/issues" );
183
183
// if (e.getMessage().contains(ShareConstants.CHECK_VM_PROPERTY_FAIL)) {
0 commit comments