-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
这里主要解决的问题是需在要buildscript的dependencies中以classpath方式依赖一个Android Library。 AGP的Android Library的默认输出是一个aar包。尽管compileOnly方式依赖可以正常工作,但是classpath方式依赖不行。 所以早先没有时间深究的情况下,选择简单的新建一个普通的Java模块暴露aar中的jar包。 这次改造正常运用了Gradle的Configuration设计,添加了新的Configuration专门暴露jar包。然后classpath处显式指定依赖的configuration即可正常工作。 改造后Android Studio不会再将build目录中的jar包作为单独的jar文件索引了,所有类都可以直接跳转到对应的源码中。
- Loading branch information
Showing
26 changed files
with
51 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
projects/sdk/core/jar-wrapper/activity-container-debug/.gitignore
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
projects/sdk/core/jar-wrapper/activity-container-debug/build.gradle
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
projects/sdk/core/jar-wrapper/activity-container-release/.gitignore
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
projects/sdk/core/jar-wrapper/activity-container-release/build.gradle
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
includeBuild '../coding' | ||
include 'generate-delegate-code', 'loader', 'runtime', 'activity-container', 'transform', 'gradle-plugin', 'common', 'manager', 'load-parameters', 'transform-kit' | ||
include 'utils' | ||
include ':jar-wrapper:runtime-debug', ':jar-wrapper:runtime-release' | ||
include ':jar-wrapper:activity-container-debug', ':jar-wrapper:activity-container-release' | ||
include ':jar-wrapper:common-debug', ':jar-wrapper:common-realse' | ||
include 'utils' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters