Last active
February 22, 2016 16:02
-
-
Save aaalaniz/92df2fcac44af77ab446 to your computer and use it in GitHub Desktop.
Mutate Link Task Flags
This file contains hidden or 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
class LinkerFlagsRuleSource extends RuleSource { | |
@Mutate | |
void modifyLinkerFlags(@Path('tasks.linkMy_moduleArmeabi-v7aDebugSharedLibrary') Task linkTask) { | |
linkTask.doFirst { | |
def newLinkerArgs = [] | |
properties["linkerArgs"].each { linkerArg -> | |
def newLinkerArg = linkerArg.replaceAll(/ARCH/, 'armeabi-v7a') | |
newLinkerArgs.add(newLinkerArg) | |
} | |
setProperty("linkerArgs", newLinkerArgs) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It does work...damn instant run..