Skip to content

Commit 6ef2f7b

Browse files
troytftwcandillon
andauthored
Gradle configuration cache support (#3095)
Co-authored-by: William Candillon <[email protected]>
1 parent 09aa642 commit 6ef2f7b

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

packages/skia/android/build.gradle

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,17 @@ afterEvaluate { project ->
295295
}
296296
}
297297

298+
def localBuildDir = buildDir
299+
def headersConfiguration = configurations.extractHeaders
300+
def jniConfiguration = configurations.extractJNI
301+
298302
task extractAARHeaders {
299303
doLast {
300-
configurations.extractHeaders.files.each {
301-
def file = it.absoluteFile
302-
copy {
303-
from zipTree(file)
304-
into "$buildDir/$file.name"
304+
headersConfiguration.files.each { file ->
305+
def absFile = file.absoluteFile
306+
project.copy {
307+
from project.zipTree(absFile)
308+
into "${localBuildDir}/${absFile.name}"
305309
include "**/*.h"
306310
}
307311
}
@@ -310,11 +314,11 @@ task extractAARHeaders {
310314

311315
task extractJNIFiles {
312316
doLast {
313-
configurations.extractJNI.files.each {
314-
def file = it.absoluteFile
315-
copy {
316-
from zipTree(file)
317-
into "$buildDir/$file.name"
317+
jniConfiguration.files.each { file ->
318+
def absFile = file.absoluteFile
319+
project.copy {
320+
from project.zipTree(absFile)
321+
into "${localBuildDir}/${absFile.name}"
318322
include "jni/**/*"
319323
}
320324
}

0 commit comments

Comments
 (0)