Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
abner authored Feb 27, 2022
1 parent 77889c3 commit 7442b6c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions download-jsc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ apply plugin: 'java'

task downloadJsc(type: Download) {

src 'https://registry.npmjs.org/jsc-android/-/jsc-android-245459.0.0.tgz'
src 'https://registry.npmjs.org/jsc-android/-/jsc-android-250230.2.1.tgz'
dest new File("${projectDir}/jsc-download-package")
connectTimeout 25000
onlyIfNewer true
doLast {

copy {
from tarTree(resources.gzip(new File("${projectDir}/jsc-download-package/jsc-android-245459.0.0.tgz")))
from tarTree(resources.gzip(new File("${projectDir}/jsc-download-package/jsc-android-250230.2.1.tgz")))
into "${getProjectDir()}/libs"

}
Expand All @@ -39,5 +39,5 @@ build.dependsOn downloadJsc
task replaceAndroidJsc(type: Copy) {
from file('${project.rootDir}/jsc/build.gradle')
into '${project.rootDir}/jsc/'
filter { line -> line.replaceAll('/*ANDROID_JSC_DEPENDENCY*/', 'embed "org.webkit:android-jsc:r245459"') }
}
filter { line -> line.replaceAll('/*ANDROID_JSC_DEPENDENCY*/', 'embed "org.webkit:android-jsc:+"') }
}

0 comments on commit 7442b6c

Please sign in to comment.