本文整理汇总了Java中com.tencent.tinker.lib.reporter.LoadReporter类的典型用法代码示例。如果您正苦于以下问题:Java LoadReporter类的具体用法?Java LoadReporter怎么用?Java LoadReporter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LoadReporter类属于com.tencent.tinker.lib.reporter包,在下文中一共展示了LoadReporter类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: installTinker
import com.tencent.tinker.lib.reporter.LoadReporter; //导入依赖的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.LoadReporter; //导入依赖的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.LoadReporter; //导入依赖的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.LoadReporter; //导入依赖的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.LoadReporter; //导入依赖的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.LoadReporter; //导入依赖的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: loadReport
import com.tencent.tinker.lib.reporter.LoadReporter; //导入依赖的package包/类
public Builder loadReport(LoadReporter loadReporter) {
if (loadReporter == null) {
throw new TinkerRuntimeException("loadReporter must not be null.");
}
if (this.loadReporter != null) {
throw new TinkerRuntimeException("loadReporter is already set.");
}
this.loadReporter = loadReporter;
return this;
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:11,代码来源:Tinker.java
示例8: loadReport
import com.tencent.tinker.lib.reporter.LoadReporter; //导入依赖的package包/类
public Builder loadReport(LoadReporter loadReporter) {
if (loadReporter == null) {
throw new TinkerRuntimeException("loadReporter must not be null.");
} else if (this.loadReporter != null) {
throw new TinkerRuntimeException("loadReporter is already set.");
} else {
this.loadReporter = loadReporter;
return this;
}
}
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:11,代码来源:Tinker.java
示例9: Tinker
import com.tencent.tinker.lib.reporter.LoadReporter; //导入依赖的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
示例10: install
import com.tencent.tinker.lib.reporter.LoadReporter; //导入依赖的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
示例11: getLoadReporter
import com.tencent.tinker.lib.reporter.LoadReporter; //导入依赖的package包/类
public LoadReporter getLoadReporter() {
return loadReporter;
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:4,代码来源:Tinker.java
示例12: getLoadReporter
import com.tencent.tinker.lib.reporter.LoadReporter; //导入依赖的package包/类
public LoadReporter getLoadReporter() {
return this.loadReporter;
}
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:4,代码来源:Tinker.java
注:本文中的com.tencent.tinker.lib.reporter.LoadReporter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论