Skip to content

Commit 4c93d4f

Browse files
committed
fixed to android jscore works with the no-intl version again
1 parent 4934384 commit 4c93d4f

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group 'io.abner.fastdev.android'
2-
version '0.3.1'
2+
version '0.3.2'
33

44
buildscript {
55
repositories {

download-jsc/build.gradle

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,21 @@ buildscript {
1818
apply plugin: 'de.undercouch.download'
1919
apply plugin: 'java'
2020

21+
ask downloadOldJsc(type: Download) {
22+
23+
src 'https://registry.npmjs.org/jsc-android/-/jsc-android-245459.0.0.tgz'
24+
dest new File("${projectDir}/jsc-download-package")
25+
connectTimeout 25000
26+
onlyIfNewer true
27+
doLast {
28+
29+
copy {
30+
from tarTree(resources.gzip(new File("${projectDir}/jsc-download-package/jsc-android-245459.0.0.tgz")))
31+
into "${getProjectDir()}/libs/245459.0.0"
32+
}
33+
}
34+
}
35+
2136
task downloadJsc(type: Download) {
2237

2338
src 'https://registry.npmjs.org/jsc-android/-/jsc-android-250231.0.0.tgz'
@@ -52,6 +67,7 @@ task downloadJscIntl(type: Download) {
5267

5368
build.dependsOn downloadJsc
5469

70+
downloadJsc.dependsOn downloadOldJsc
5571
downloadJsc.dependsOn downloadJscIntl
5672

5773

jsc/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ android {
4646

4747
dependencies {
4848
embed "org.webkit:android-jsc:r250231"
49-
embed "org.webkit:android-jsc-cppruntime:r250231"
49+
embed "org.webkit:android-jsc-cppruntime:r245459"
5050
}

0 commit comments

Comments
 (0)