-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from simonschiller/feature/task-configuration
Allow configuration of tasks
- Loading branch information
Showing
8 changed files
with
127 additions
and
12 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
23 changes: 23 additions & 0 deletions
23
buildSrc/src/main/kotlin/io/github/simonschiller/permissioncheck/PermissionCheckExtension.kt
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package io.github.simonschiller.permissioncheck | ||
|
||
import org.gradle.api.file.ProjectLayout | ||
import org.gradle.api.file.RegularFile | ||
import org.gradle.api.model.ObjectFactory | ||
import org.gradle.api.provider.Property | ||
import org.gradle.kotlin.dsl.property | ||
|
||
@Suppress("UnstableApiUsage") | ||
open class PermissionCheckExtension(objects: ObjectFactory, layout: ProjectLayout) { | ||
|
||
/** Location of the baseline file, should be somewhere in your project directory. */ | ||
val baselineFile: Property<RegularFile> = objects.fileProperty() | ||
|
||
/** When enabled, removed permissions and decreased max SDK versions will also be detected. */ | ||
val strict: Property<Boolean> = objects.property() | ||
|
||
// Setup default values | ||
init { | ||
baselineFile.convention(layout.projectDirectory.file("permission-baseline.xml")) | ||
strict.convention(false) | ||
} | ||
} |
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
File renamed without changes.