• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java PatchReporter类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.tencent.tinker.lib.reporter.PatchReporter的典型用法代码示例。如果您正苦于以下问题:Java PatchReporter类的具体用法?Java PatchReporter怎么用?Java PatchReporter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PatchReporter类属于com.tencent.tinker.lib.reporter包,在下文中一共展示了PatchReporter类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: installTinker

import com.tencent.tinker.lib.reporter.PatchReporter; //导入依赖的package包/类
/**
 * you can specify all class you want.
 * sometimes, you can only install tinker in some process you want!
 *
 * @param appLike
 */
public static void installTinker(ApplicationLike appLike) {
    if (isInstalled) {
        TinkerLog.w(TAG, "install tinker, but has installed, ignore");
        return;
    }
    //or you can just use DefaultLoadReporter
    LoadReporter loadReporter = new SampleLoadReporter(appLike.getApplication());
    //or you can just use DefaultPatchReporter
    PatchReporter patchReporter = new SamplePatchReporter(appLike.getApplication());
    //or you can just use DefaultPatchListener
    PatchListener patchListener = new SamplePatchListener(appLike.getApplication());
    //you can set your own upgrade patch if you need
    AbstractPatch upgradePatchProcessor = new UpgradePatch();

    TinkerInstaller.install(appLike,
        loadReporter, patchReporter, patchListener,
        SampleResultService.class, upgradePatchProcessor);

    isInstalled = true;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:27,代码来源:TinkerManager.java


示例2: install

import com.tencent.tinker.lib.reporter.PatchReporter; //导入依赖的package包/类
/**
 * install tinker with custom config, you must install tinker before you use their api
 * or you can just use {@link TinkerApplicationHelper}'s api
 *
 * @param applicationLike
 * @param loadReporter
 * @param patchReporter
 * @param listener
 * @param resultServiceClass
 * @param upgradePatchProcessor
 */
public static Tinker install(ApplicationLike applicationLike, LoadReporter loadReporter, PatchReporter patchReporter,
                           PatchListener listener, Class<? extends AbstractResultService> resultServiceClass,
                           AbstractPatch upgradePatchProcessor) {

    Tinker tinker = new Tinker.Builder(applicationLike.getApplication())
        .tinkerFlags(applicationLike.getTinkerFlags())
        .loadReport(loadReporter)
        .listener(listener)
        .patchReporter(patchReporter)
        .tinkerLoadVerifyFlag(applicationLike.getTinkerLoadVerifyFlag()).build();

    Tinker.create(tinker);
    tinker.install(applicationLike.getTinkerResultIntent(), resultServiceClass, upgradePatchProcessor);
    return tinker;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:27,代码来源:TinkerInstaller.java


示例3: installTinker

import com.tencent.tinker.lib.reporter.PatchReporter; //导入依赖的package包/类
/**
 * 自定义安装Tinker(使用你自定义的reporter类:SampleLoadReporter、SamplePatchReporter、SamplePatchListener、SampleResultService)
 * you can specify all class you want.
 * sometimes, you can only install tinker in some process you want!
 */
public static void installTinker(ApplicationLike appLike) {
    if (isInstalled) {
        TinkerLog.w(TAG, "install tinker, but has installed, ignore");
        return;
    }
    //or you can just use DefaultLoadReporter
    LoadReporter loadReporter = new SampleLoadReporter(appLike.getApplication());
    //or you can just use DefaultPatchReporter
    PatchReporter patchReporter = new SamplePatchReporter(appLike.getApplication());
    //or you can just use DefaultPatchListener
    PatchListener patchListener = new SamplePatchListener(appLike.getApplication());
    //you can set your own upgrade patch if you need
    AbstractPatch upgradePatchProcessor = new UpgradePatch();

    TinkerInstaller.install(appLike,
            loadReporter, patchReporter, patchListener,
            SampleResultService.class, upgradePatchProcessor);

    isInstalled = true;
}
 
开发者ID:GitLqr,项目名称:HotFixDemo,代码行数:26,代码来源:TinkerManager.java


示例4: installTinker

import com.tencent.tinker.lib.reporter.PatchReporter; //导入依赖的package包/类
/**
     * you can specify all class you want.
     * sometimes, you can only install com.dx168.patchsdk.sample in some process you want!
     *
     * @param appLike
     */
    public static void installTinker(ApplicationLike appLike) {
        if (isInstalled) {
            TinkerLog.w(TAG, "install com.dx168.patchsdk.sample, but has installed, ignore");
            return;
        }
        //or you can just use DefaultLoadReporter
        LoadReporter loadReporter = new SampleLoadReporter(appLike.getApplication());
        //or you can just use DefaultPatchReporter
        PatchReporter patchReporter = new SamplePatchReporter(appLike.getApplication());
        //or you can just use DefaultPatchListener
        PatchListener patchListener = new SamplePatchListener(appLike.getApplication());
        //you can set your own upgrade patch if you need
//        AbstractPatch upgradePatchProcessor = new SampleUpgradePatch();
        AbstractPatch upgradePatchProcessor = new UpgradePatch();

        TinkerInstaller.install(appLike, loadReporter, patchReporter, patchListener, SampleResultService.class,
                upgradePatchProcessor);

        isInstalled = true;
    }
 
开发者ID:baidao,项目名称:tinker-manager,代码行数:27,代码来源:SampleTinkerManager.java


示例5: installTinker

import com.tencent.tinker.lib.reporter.PatchReporter; //导入依赖的package包/类
/**
 * you can specify all class you want.
 * sometimes, you can only install tinker in some process you want!
 *
 * @param appLike ApplicationLike
 */
public static void installTinker(ApplicationLike appLike) {
    if (isInstalled) {
        TinkerLog.w(TAG, "install tinker, but has installed, ignore");
        return;
    }
    //or you can just use DefaultLoadReporter
    LoadReporter loadReporter = new TinkerServerLoadReporter(appLike.getApplication());
    //or you can just use DefaultPatchReporter
    PatchReporter patchReporter = new DefaultPatchReporter(appLike.getApplication());
    //or you can just use DefaultPatchListener
    PatchListener patchListener = new TinkerServerPatchListener(appLike.getApplication());
    //you can set your own upgrade patch if you need
    AbstractPatch upgradePatchProcessor = new UpgradePatch();
    TinkerInstaller.install(appLike,
        loadReporter, patchReporter, patchListener,
        TinkerServerResultService.class, upgradePatchProcessor
    );

    isInstalled = true;
}
 
开发者ID:TinkerPatch,项目名称:tinkerpatch-sdk,代码行数:27,代码来源:TinkerManager.java


示例6: Tinker

import com.tencent.tinker.lib.reporter.PatchReporter; //导入依赖的package包/类
private Tinker(Context context, int tinkerFlags, LoadReporter loadReporter, PatchReporter patchReporter,
               PatchListener listener, File patchDirectory, File patchInfoFile, File patchInfoLockFile,
               boolean isInMainProc, boolean isPatchProcess, boolean tinkerLoadVerifyFlag) {
    this.context = context;
    this.listener = listener;
    this.loadReporter = loadReporter;
    this.patchReporter = patchReporter;
    this.tinkerFlags = tinkerFlags;
    this.patchDirectory = patchDirectory;
    this.patchInfoFile = patchInfoFile;
    this.patchInfoLockFile = patchInfoLockFile;
    this.isMainProcess = isInMainProc;
    this.tinkerLoadVerifyFlag = tinkerLoadVerifyFlag;
    this.isPatchProcess = isPatchProcess;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:16,代码来源:Tinker.java


示例7: Tinker

import com.tencent.tinker.lib.reporter.PatchReporter; //导入依赖的package包/类
private Tinker(Context context, int tinkerFlags, LoadReporter loadReporter, PatchReporter
        patchReporter, PatchListener listener, File patchDirectory, File patchInfoFile,
               boolean isInMainProc, boolean isPatchProcess, boolean tinkerLoadVerifyFlag) {
    this.loaded = false;
    this.context = context;
    this.listener = listener;
    this.loadReporter = loadReporter;
    this.patchReporter = patchReporter;
    this.tinkerFlags = tinkerFlags;
    this.patchDirectory = patchDirectory;
    this.patchInfoFile = patchInfoFile;
    this.isMainProcess = isInMainProc;
    this.tinkerLoadVerifyFlag = tinkerLoadVerifyFlag;
    this.isPatchProcess = isPatchProcess;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:16,代码来源:Tinker.java


示例8: install

import com.tencent.tinker.lib.reporter.PatchReporter; //导入依赖的package包/类
public static void install(ApplicationLike applicationLike, LoadReporter loadReporter,
                           PatchReporter patchReporter, PatchListener listener, Class<?
        extends AbstractResultService> resultServiceClass, AbstractPatch
                                   upgradePatchProcessor, AbstractPatch repairPatchProcessor) {
    Tinker tinker = new Builder(applicationLike.getApplication()).tinkerFlags(applicationLike
            .getTinkerFlags()).loadReport(loadReporter).listener(listener).patchReporter
            (patchReporter).tinkerLoadVerifyFlag(Boolean.valueOf(applicationLike
            .getTinkerLoadVerifyFlag())).build();
    Tinker.create(tinker);
    tinker.install(applicationLike.getTinkerResultIntent(), resultServiceClass,
            upgradePatchProcessor, repairPatchProcessor);
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:13,代码来源:TinkerInstaller.java


示例9: getPatchReporter

import com.tencent.tinker.lib.reporter.PatchReporter; //导入依赖的package包/类
public PatchReporter getPatchReporter() {
    return patchReporter;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:4,代码来源:Tinker.java


示例10: getPatchReporter

import com.tencent.tinker.lib.reporter.PatchReporter; //导入依赖的package包/类
public PatchReporter getPatchReporter() {
    return this.patchReporter;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:4,代码来源:Tinker.java



注:本文中的com.tencent.tinker.lib.reporter.PatchReporter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Specification类代码示例发布时间:2022-05-22
下一篇:
Java ObdProtocols类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap