From f2650fdd6a31360cc12c722d9966321931ec5964 Mon Sep 17 00:00:00 2001 From: cundong Date: Mon, 7 Aug 2017 19:17:29 +0800 Subject: [PATCH] Remove unused files --- .../loader2/ActivityLifecycleCallbacks.java | 33 ------------------- .../java/com/qihoo360/replugin/RePlugin.java | 6 ++-- 2 files changed, 3 insertions(+), 36 deletions(-) delete mode 100644 replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/loader2/ActivityLifecycleCallbacks.java diff --git a/replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/loader2/ActivityLifecycleCallbacks.java b/replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/loader2/ActivityLifecycleCallbacks.java deleted file mode 100644 index 956b9ea..0000000 --- a/replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/loader2/ActivityLifecycleCallbacks.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2005-2017 Qihoo 360 Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed To in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -package com.qihoo360.loader2; - -import android.app.Activity; -import android.os.Bundle; - -/** - * @author RePlugin Team - */ -public interface ActivityLifecycleCallbacks { - void onActivityCreated(Activity activity, Bundle savedInstanceState); - void onActivityStarted(Activity activity); - void onActivityResumed(Activity activity); - void onActivityPaused(Activity activity); - void onActivityStopped(Activity activity); - void onActivitySaveInstanceState(Activity activity, Bundle outState); - void onActivityDestroyed(Activity activity); -} diff --git a/replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/replugin/RePlugin.java b/replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/replugin/RePlugin.java index 6a5c503..5cb0827 100644 --- a/replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/replugin/RePlugin.java +++ b/replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/replugin/RePlugin.java @@ -344,12 +344,12 @@ public class RePlugin { } /** - * 获取SDK的版本信息 + * 获取当前版本 * - * @return SDK的版本,如2.0.0等 + * @return 版本号,如2.0.0等 * @since 2.0.0 */ - public static String getSDKVersion() { + public static String getVersion() { return BuildConfig.VERSION_NAME; }