Skip to content

Commit

Permalink
Merge pull request #15 from wyjsonGo/develop
Browse files Browse the repository at this point in the history
publish v2.0.0
1.按需分组加载路由
2.模块Application生命周期功能
3.修改项目整体包结构
4.全新的生成路由文档方式(参见5-9)
5.升级Gradle8.1.2
6.注解处理器添加增量编译支持
7.优化可能会出现空指针的情况
8.开放CardMeta类setPath()方法, Card类setUri()方法访问范围
9.添加MIT LICENSE
  • Loading branch information
wyjsonGo authored Nov 13, 2023
2 parents 9848b53 + 0466d27 commit 58a3a48
Show file tree
Hide file tree
Showing 93 changed files with 3,130 additions and 1,331 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.wyjson.router.annotation;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.SOURCE;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

@Target({TYPE})
@Retention(SOURCE)
public @interface ApplicationModule {

}
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
@Target({TYPE})
@Retention(SOURCE)
public @interface Interceptor {

/**
* The priority of interceptor, GoRouter will be excute them follow the priority.
* The order of the interceptors will execute them in order from smallest to largest.
*/
int priority();
int ordinal();

/**
* The remark of interceptor, may be used to generate javadoc.
Expand Down
17 changes: 16 additions & 1 deletion GoRouter-Api/consumer-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,20 @@
@com.wyjson.router.annotation.Param <fields>;
}
# 自动注册模块路由加载类不混淆
-keep class * implements com.wyjson.router.load.IRouteModule
-keep class * implements com.wyjson.router.module.interfaces.IRouteModule
# 自动注册模块Application代理类不混淆
-keep class * implements com.wyjson.router.interfaces.IApplicationModule
# # ########## GoRouter # end ##########


# # ########## delete GoRouter logger # start ##########
# 1.使用混淆优化文件 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
# 2.不开启 -dontoptimize
# 3.满足以上两点下面的配置才会生效
-assumenosideeffects class com.wyjson.router.logger.DefaultLogger {
public *** debug(...);
public *** info(...);
public *** warning(...);
public *** error(...);
}
# # ########## GoRouter # end ##########
Loading

0 comments on commit 58a3a48

Please sign in to comment.