Created
March 28, 2019 17:17
-
-
Save twiceyuan/4a30737645f1028517e294c31e672e58 to your computer and use it in GitHub Desktop.
[编译结束后声音通知] #Gradle
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
android { | |
applicationVariants.all { variant -> | |
def assembleTask | |
if (variant.hasProperty('assembleProvider')) { | |
assembleTask = variant.assembleProvider.get() | |
} else { | |
assembleTask = variant.assemble | |
} | |
assembleTask.doLast { | |
exec { | |
commandLine 'say', 'Build Success' | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment