File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
plugin/src/main/groovy/com/therouter/plugin/agp8 Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,20 @@ public void execute(final Variant variant) {
45
45
System .out .println ("forceIncremental::" + theRouterExtension .forceIncremental );
46
46
System .out .println ("incrementalCachePath::" + cachePath );
47
47
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
+
48
54
if (isIncremental ) {
49
55
System .out .println ();
50
56
System .out .println ("本次构建已开启增量编译,可在:\n " + project .getBuildFile ().getAbsolutePath () + " 中设置关闭" );
51
57
System .out .println ("TheRouter { " );
52
58
System .out .println ("\t debug = false" );
53
59
System .out .println ("\t forceIncremental = false" );
54
60
System .out .println ("}" );
61
+ System .out .println ("详细原理请见文档:https://kymjs.com/code/2024/10/31/01/" );
55
62
}
56
63
57
64
System .out .println ("----------------------TheRouter Environment------------------------------" );
You can’t perform that action at this time.
0 commit comments