Skip to content

Commit 784bfad

Browse files
zhangtaozhangtao
zhangtao
authored and
zhangtao
committed
修改提示语
1 parent a52551d commit 784bfad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

plugin/src/main/groovy/com/therouter/plugin/agp8/AGP8Plugin.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,20 @@ public void execute(final Variant variant) {
4545
System.out.println("forceIncremental::" + theRouterExtension.forceIncremental);
4646
System.out.println("incrementalCachePath::" + cachePath);
4747

48+
if (theRouterExtension.forceIncremental && theRouterExtension.incrementalCachePath.isBlank()) {
49+
System.out.println(LogUI.C_WARN.getValue() + "TheRouter警告:" + LogUI.E_NORMAL.getValue());
50+
System.out.println(LogUI.C_WARN.getValue() + "你配置了forceIncremental=true,但未配置incrementalCachePath,这有可能造成prd包运行时执行反射逻辑,建议修改!" + LogUI.E_NORMAL.getValue());
51+
System.out.println(LogUI.C_WARN.getValue() + "配置逻辑请见文档:https://therouter.cn/docs/2024/07/22/01" + LogUI.E_NORMAL.getValue());
52+
}
53+
4854
if (isIncremental) {
4955
System.out.println();
5056
System.out.println("本次构建已开启增量编译,可在:\n" + project.getBuildFile().getAbsolutePath() + " 中设置关闭");
5157
System.out.println("TheRouter { ");
5258
System.out.println("\tdebug = false");
5359
System.out.println("\tforceIncremental = false");
5460
System.out.println("}");
61+
System.out.println("详细原理请见文档:https://kymjs.com/code/2024/10/31/01/");
5562
}
5663

5764
System.out.println("----------------------TheRouter Environment------------------------------");

0 commit comments

Comments
 (0)