Java Code Examples for com.tencent.tinker.loader.shareutil.ShareConstants#TYPE_PATCH_FILE

The following examples show how to use com.tencent.tinker.loader.shareutil.ShareConstants#TYPE_PATCH_FILE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SampleTinkerReport.java    From HotFixDemo with MIT License 6 votes vote down vote up
public static void onLoadFileNotFound(int fileType) {
    if (reporter == null) {
        return;
    }
    switch (fileType) {
        case ShareConstants.TYPE_DEX_OPT:
            reporter.onReport(KEY_LOADED_MISSING_DEX_OPT);
            break;
        case ShareConstants.TYPE_DEX:
            reporter.onReport(KEY_LOADED_MISSING_DEX);
            break;
        case ShareConstants.TYPE_LIBRARY:
            reporter.onReport(KEY_LOADED_MISSING_LIB);
            break;
        case ShareConstants.TYPE_PATCH_FILE:
            reporter.onReport(KEY_LOADED_MISSING_PATCH_FILE);
            break;
        case ShareConstants.TYPE_PATCH_INFO:
            reporter.onReport(KEY_LOADED_MISSING_PATCH_INFO);
            break;
        case ShareConstants.TYPE_RESOURCE:
            reporter.onReport(KEY_LOADED_MISSING_RES);
            break;
    }
}
 
Example 2
Source File: SampleTinkerReport.java    From HotFixDemo with MIT License 6 votes vote down vote up
public static void onApplyExtractFail(int fileType) {
    if (reporter == null) {
        return;
    }
    switch (fileType) {
        case ShareConstants.TYPE_DEX:
            reporter.onReport(KEY_APPLIED_DEX_EXTRACT);
            break;
        case ShareConstants.TYPE_LIBRARY:
            reporter.onReport(KEY_APPLIED_LIB_EXTRACT);
            break;
        case ShareConstants.TYPE_PATCH_FILE:
            reporter.onReport(KEY_APPLIED_PATCH_FILE_EXTRACT);
            break;
        case ShareConstants.TYPE_RESOURCE:
            reporter.onReport(KEY_APPLIED_RESOURCE_EXTRACT);
            break;
    }
}
 
Example 3
Source File: SampleTinkerReport.java    From tinker-manager with Apache License 2.0 6 votes vote down vote up
public static void onLoadFileNotFound(int fileType) {
    if (reporter == null) {
        return;
    }
    switch (fileType) {
        case ShareConstants.TYPE_DEX_OPT:
            reporter.onReport(KEY_LOADED_MISSING_DEX_OPT);
            break;
        case ShareConstants.TYPE_DEX:
            reporter.onReport(KEY_LOADED_MISSING_DEX);
            break;
        case ShareConstants.TYPE_LIBRARY:
            reporter.onReport(KEY_LOADED_MISSING_LIB);
            break;
        case ShareConstants.TYPE_PATCH_FILE:
            reporter.onReport(KEY_LOADED_MISSING_PATCH_FILE);
            break;
        case ShareConstants.TYPE_PATCH_INFO:
            reporter.onReport(KEY_LOADED_MISSING_PATCH_INFO);
            break;
        case ShareConstants.TYPE_RESOURCE:
            reporter.onReport(KEY_LOADED_MISSING_RES);
            break;
    }
}
 
Example 4
Source File: SampleTinkerReport.java    From tinker-manager with Apache License 2.0 6 votes vote down vote up
public static void onApplyExtractFail(int fileType) {
    if (reporter == null) {
        return;
    }
    switch (fileType) {
        case ShareConstants.TYPE_DEX:
            reporter.onReport(KEY_APPLIED_DEX_EXTRACT);
            break;
        case ShareConstants.TYPE_LIBRARY:
            reporter.onReport(KEY_APPLIED_LIB_EXTRACT);
            break;
        case ShareConstants.TYPE_PATCH_FILE:
            reporter.onReport(KEY_APPLIED_PATCH_FILE_EXTRACT);
            break;
        case ShareConstants.TYPE_RESOURCE:
            reporter.onReport(KEY_APPLIED_RESOURCE_EXTRACT);
            break;
    }
}