Created
March 25, 2020 16:33
-
-
Save Audhil/947bee1772bb82793b36a20aaa4c31c9 to your computer and use it in GitHub Desktop.
custom task for 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
// custom task - https://blog.mindorks.com/gradle-for-android-developers-getting-the-most-of-it | |
task copyDebugAPKInDeskTop(dependsOn: 'assembleDebug') { | |
doLast { | |
def dest = "/Users/mohammed-2284/Desktop/" | |
def name = "GAppTrendingRepos.apk" | |
ext.apk = file("/Users/mohammed-2284/Documents/ZDaggerMigration/WorkerlyXMigration/app/build/outputs/apk/debug/app-debug.apk") | |
if (ext.apk.exists()) { | |
copy { | |
from ext.apk.absolutePath | |
into dest | |
rename { name } | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment