-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: make this plugin configurable
- Loading branch information
Showing
6 changed files
with
225 additions
and
58 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
22 changes: 22 additions & 0 deletions
22
src/main/groovy/com/cpdroid/fat_aar/FatAarExtension.groovy
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,22 @@ | ||
package com.cpdroid.fat_aar | ||
|
||
import groovy.transform.CompileStatic | ||
|
||
@CompileStatic | ||
class FatAarExtension { | ||
boolean verboseLog = false | ||
boolean ignoreAndroidSupport = true | ||
private List<String> ignoreDependencies = new ArrayList<>() | ||
|
||
void ignoreDependencies(String... dependency) { | ||
Utils.logLevel2(dependency) | ||
for (String dep : dependency) { | ||
if (!ignoreDependencies.contains(dep)) | ||
ignoreDependencies.add(dep) | ||
} | ||
} | ||
|
||
List<String> getIgnoreDependencies() { | ||
return ignoreDependencies | ||
} | ||
} |
Oops, something went wrong.