Skip to content

Commit

Permalink
【Gradle-17】动态删除清单文件中的某个权限
Browse files Browse the repository at this point in the history
  • Loading branch information
yechao committed May 12, 2024
1 parent 14fc891 commit 7c659d0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ plugins {
* 2.再解开这里和上面插件的注释 //id 'com.yechaoa.plugin.gradleX'
* 3.还有project > build.gradle里面的classpath
*/
gradleX {
printDependencies = false
analysisSo = false
checkSnapshot = false
blockSnapshot = false
// permissionsToRemove = ['android.permission.RECORD_AUDIO','android.permission.WRITE_EXTERNAL_STORAGE']
}
//gradleX {
// printDependencies = false
// analysisSo = false
// checkSnapshot = false
// blockSnapshot = false
//// permissionsToRemove = ['android.permission.RECORD_AUDIO','android.permission.WRITE_EXTERNAL_STORAGE']
//}

/**
* task 示例抽出去 解开注释可看效果
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ buildscript {
* 2.再解开app > build.gradle里面的插件的注释 //id 'com.yechaoa.plugin.gradleX'
* 3.还有app > build.gradle里面的gradleX{}
*/
// classpath('com.yechaoa.plugin:gradleX:1.6-SNAPSHOT')
classpath('com.yechaoa.plugin:gradleX:1.6-SNAPSHOT')
// 远端仓库地址
// classpath('com.github.yechaoa.GradleX:plugin:1.5')
classpath('com.github.yechaoa.GradleX:plugin:1.5')
}
}

Expand Down

0 comments on commit 7c659d0

Please sign in to comment.