From 64ece8acc2cee3b41203961454f9e91d02fb2be6 Mon Sep 17 00:00:00 2001 From: Wyjson Date: Wed, 13 Mar 2024 17:34:38 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BC=98=E5=8C=96inject()=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/wyjson/router/core/RouteCenter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GoRouter-Api/src/main/java/com/wyjson/router/core/RouteCenter.java b/GoRouter-Api/src/main/java/com/wyjson/router/core/RouteCenter.java index b5515d6..3f894bb 100644 --- a/GoRouter-Api/src/main/java/com/wyjson/router/core/RouteCenter.java +++ b/GoRouter-Api/src/main/java/com/wyjson/router/core/RouteCenter.java @@ -167,12 +167,13 @@ public static void inject(T target, Intent intent, Bundle bundle, boolean is try { bundle = getBundle(target, intent, bundle); } catch (Exception e) { - throw new RuntimeException("inject() " + e.getMessage()); + GoRouter.logger.warning(null, "inject() " + e.getMessage()); + return; } String path = getCurrentPath(bundle); if (TextUtils.isEmpty(path)) { - GoRouter.logger.error(null, "[inject] The " + ROUTER_CURRENT_PATH + " parameter was not found in the intent"); + GoRouter.logger.warning(null, "[inject] The " + ROUTER_CURRENT_PATH + " parameter was not found in the intent"); return; } From b3b4590a23eaa065e297715ad8a8c725b00eaa14 Mon Sep 17 00:00:00 2001 From: Wyjson Date: Wed, 13 Mar 2024 17:38:16 +0800 Subject: [PATCH 2/2] publish v2.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 优化inject()方法 --- README.md | 8 ++++---- build.gradle | 2 +- gradle.properties | 2 +- settings.gradle | 10 +++++----- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index c9a5793..ecc7ef5 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ dependencyResolutionManagement { } dependencies { - api 'com.github.wyjsonGo.GoRouter:GoRouter-Api:2.5.0' + api 'com.github.wyjsonGo.GoRouter:GoRouter-Api:2.5.1' } // Kotlin配置参见8-1 ``` @@ -89,7 +89,7 @@ android { } dependencies { - annotationProcessor 'com.github.wyjsonGo.GoRouter:GoRouter-Compiler:2.5.0' + annotationProcessor 'com.github.wyjsonGo.GoRouter:GoRouter-Compiler:2.5.1' } ``` @@ -157,7 +157,7 @@ pluginManagement { // 项目根目录下的build.gradle buildscript { dependencies { - classpath 'com.github.wyjsonGo.GoRouter:GoRouter-Gradle-Plugin:2.5.0' + classpath 'com.github.wyjsonGo.GoRouter:GoRouter-Gradle-Plugin:2.5.1' } } ``` @@ -894,7 +894,7 @@ kapt { } dependencies { - kapt 'com.github.wyjsonGo.GoRouter:GoRouter-Compiler:2.5.0' + kapt 'com.github.wyjsonGo.GoRouter:GoRouter-Compiler:2.5.1' } ``` diff --git a/build.gradle b/build.gradle index d57a804..00cdbb7 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { dependencies { - classpath "com.github.wyjsonGo.GoRouter:GoRouter-Gradle-Plugin:${VERSION}" +// classpath "com.github.wyjsonGo.GoRouter:GoRouter-Gradle-Plugin:${VERSION}" } } diff --git a/gradle.properties b/gradle.properties index 40acbfd..299ee86 100644 --- a/gradle.properties +++ b/gradle.properties @@ -25,4 +25,4 @@ android.nonTransitiveRClass=true # org.gradle.jvmargs=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 GROUP_ID=com.github.wyjsonGo.GoRouter -VERSION=2.5.0 \ No newline at end of file +VERSION=2.5.1 \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index 5bccdc8..ead4687 100644 --- a/settings.gradle +++ b/settings.gradle @@ -18,11 +18,11 @@ dependencyResolutionManagement { rootProject.name = "GoRouter" -include ':app' -include ':module_main' -include ':module_user' -include ':module_kotlin' -include ':module_common' +//include ':app' +//include ':module_main' +//include ':module_user' +//include ':module_kotlin' +//include ':module_common' include ':GoRouter-Api' include ':GoRouter-Annotation'