// Path: tinkerpatch-sdk/src/main/java/com/tinkerpatch/sdk/server/callback/ConfigRequestCallback.java
// public interface ConfigRequestCallback {
//     void onSuccess(HashMap<String, String> configs);
//     void onFail(Exception e);
// }
// 
// Path: tinkerpatch-sdk/src/main/java/com/tinkerpatch/sdk/server/callback/RollbackCallBack.java
// public interface RollbackCallBack {
//     void onPatchRollback();
// }
// 
// Path: tinkerpatch-sdk/src/main/java/com/tinkerpatch/sdk/tinker/callback/ResultCallBack.java
// public interface ResultCallBack {
//     void onPatchResult(final PatchResult result);
// }


import com.tencent.tinker.lib.util.TinkerLog;
import com.tencent.tinker.loader.app.ApplicationLike;
import com.tinkerpatch.sdk.server.callback.ConfigRequestCallback;
import com.tinkerpatch.sdk.server.callback.RollbackCallBack;
import com.tinkerpatch.sdk.tinker.callback.ResultCallBack;
/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2013-2016 Shengjie Sim Sun
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

package com.tinkerpatch.sdk;



public abstract class TinkerPatch {

    /**
     * 设置Tinker相关Log的真正实现,用于自定义日志输出
     * @param imp
     */
    public static void setLogIml(TinkerLog.TinkerLogImp imp) {
        // nothing
    }

    /**
     * 用默认的构造参数初始化TinkerPatch的SDK
     * @param applicationLike
     * @return
     */
    public static TinkerPatch init(ApplicationLike applicationLike) {
        return null;
    }

    /**
     * 自定义参数初始化TinkerPatch的SDK
     * @param tinkerPatch
     * @return
     */
    public static TinkerPatch init(TinkerPatch tinkerPatch) {
        return null;
    }

    /**
     * 获得TinkerPatch的实例
     * @return
     */
    public static TinkerPatch with() {
        return null;
    }

    /**
     * 获得ApplicationLike的实例
     * @return
     */
    public abstract ApplicationLike getApplcationLike();

    /**
     * 反射补丁的Library path, 自动加载library
     * 是否自动反射Library路径,无须手动加载补丁中的So文件
     * 注意,调用在反射接口之后才能生效,你也可以使用Tinker的方式加载Library
     * @return
     */
    public TinkerPatch reflectPatchLibrary() {
        return null;
    }

    /**
     * 向后台获得动态配置,默认的访问间隔为3个小时
     * 若参数为true,即每次调用都会真正的访问后台配置
     *
     * @param configRequestCallback
     * @param immediately           是否立刻请求,忽略时间间隔限制
     */
// Path: tinkerpatch-sdk/src/main/java/com/tinkerpatch/sdk/server/callback/ConfigRequestCallback.java
// public interface ConfigRequestCallback {
//     void onSuccess(HashMap<String, String> configs);
//     void onFail(Exception e);
// }
// 
// Path: tinkerpatch-sdk/src/main/java/com/tinkerpatch/sdk/server/callback/RollbackCallBack.java
// public interface RollbackCallBack {
//     void onPatchRollback();
// }
// 
// Path: tinkerpatch-sdk/src/main/java/com/tinkerpatch/sdk/tinker/callback/ResultCallBack.java
// public interface ResultCallBack {
//     void onPatchResult(final PatchResult result);
// }


// Path: tinkerpatch-sdk/src/main/java/com/tinkerpatch/sdk/TinkerPatch.java
import com.tencent.tinker.lib.util.TinkerLog;
import com.tencent.tinker.loader.app.ApplicationLike;
import com.tinkerpatch.sdk.server.callback.ConfigRequestCallback;
import com.tinkerpatch.sdk.server.callback.RollbackCallBack;
import com.tinkerpatch.sdk.tinker.callback.ResultCallBack;

/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2013-2016 Shengjie Sim Sun
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

package com.tinkerpatch.sdk;



public abstract class TinkerPatch {

    /**
     * 设置Tinker相关Log的真正实现,用于自定义日志输出
     * @param imp
     */
    public static void setLogIml(TinkerLog.TinkerLogImp imp) {
        // nothing
    }

    /**
     * 用默认的构造参数初始化TinkerPatch的SDK
     * @param applicationLike
     * @return
     */
    public static TinkerPatch init(ApplicationLike applicationLike) {
        return null;
    }

    /**
     * 自定义参数初始化TinkerPatch的SDK
     * @param tinkerPatch
     * @return
     */
    public static TinkerPatch init(TinkerPatch tinkerPatch) {
        return null;
    }

    /**
     * 获得TinkerPatch的实例
     * @return
     */
    public static TinkerPatch with() {
        return null;
    }

    /**
     * 获得ApplicationLike的实例
     * @return
     */
    public abstract ApplicationLike getApplcationLike();

    /**
     * 反射补丁的Library path, 自动加载library
     * 是否自动反射Library路径,无须手动加载补丁中的So文件
     * 注意,调用在反射接口之后才能生效,你也可以使用Tinker的方式加载Library
     * @return
     */
    public TinkerPatch reflectPatchLibrary() {
        return null;
    }

    /**
     * 向后台获得动态配置,默认的访问间隔为3个小时
     * 若参数为true,即每次调用都会真正的访问后台配置
     *
     * @param configRequestCallback
     * @param immediately           是否立刻请求,忽略时间间隔限制
     */
    public TinkerPatch fetchDynamicConfig(final ConfigRequestCallback configRequestCallback,