Skip to content

Commit

Permalink
Update 依赖权限信息.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Omooo committed Aug 21, 2019
1 parent b0ac2ac commit a36541a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion blogs/Android/Gradle/依赖权限信息.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Gradle 练习之一 --- 输出项目第三方库以及本地依赖库的权限

```groovy
dependencies {
// 第三方库
// 第三方库
implementation 'com.android.support:appcompat-v7:28.0.0'
// 本地依赖库
implementation project(":mylibrary")
Expand Down Expand Up @@ -239,6 +239,8 @@ static String getArtifactName(ResolvedArtifactResult artifact) {

代码是参考 ProcessApplicationManifest 这个 Task 来写的,如果在较低版本的 Gradle 则名为 MergeTasks,看名字就知道这个 Task 是干什么的了。

其次,更改一下不同的 ArtifactType,会发现惊喜哦~

剩下还有一个需要完善的,那就是把整个流程封装成一个 Task 就好了,这就需要涉及到动态添加依赖了,毕竟这种方法必须要依赖 Gradle 源码了。

(逃~

0 comments on commit a36541a

Please sign in to comment.