mirror of
https://github.com/afollestad/nock-nock.git
synced 2025-04-19 19:15:23 +00:00
13 lines
No EOL
414 B
Groovy
13 lines
No EOL
414 B
Groovy
// This script must be applied in app/build.gradle for the paths here to work correctly
|
|
|
|
def copyMockFilesNeeded() {
|
|
def srcGoogleServicesFile = file("../mock/mock-google-services.json")
|
|
def destGoogleServicesFile = file("google-services.json")
|
|
if (!destGoogleServicesFile.exists()) {
|
|
destGoogleServicesFile.write(srcGoogleServicesFile.text)
|
|
}
|
|
}
|
|
|
|
afterEvaluate {
|
|
copyMockFilesNeeded()
|
|
} |