Skip to content

Commit

Permalink
Merge pull request #47 from wyjsonGo/develop
Browse files Browse the repository at this point in the history
publish v2.5.1
优化inject()方法
  • Loading branch information
wyjsonGo authored Mar 13, 2024
2 parents 459fad7 + b3b4590 commit 8e3f204
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,13 @@ public static <T> 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;
}

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand All @@ -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'
}
```

Expand Down Expand Up @@ -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'
}
}
```
Expand Down Expand Up @@ -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'
}
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -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}"
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
VERSION=2.5.1
10 changes: 5 additions & 5 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 8e3f204

Please sign in to comment.