Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'io.abner.fastdev.android'
version '0.1.8'
version '0.2.0'

buildscript {
repositories {
Expand Down
18 changes: 18 additions & 0 deletions download-jsc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,28 @@ task downloadJscNewest(type: Download) {
}
}

task downloadJscNewestIntl(type: Download) {

src 'https://registry.npmjs.org/jsc-android/-/jsc-android-294992.0.0.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-294992.0.0.tgz")))
into "${getProjectDir()}/libs/294992.0.0"

}
}
}

build.dependsOn downloadJsc

downloadJsc.dependsOn downloadJscNewest

downloadJsc.dependsOn downloadJscNewestIntl


task replaceAndroidJsc(type: Copy) {
from file('${project.rootDir}/jsc/build.gradle')
Expand Down
14 changes: 2 additions & 12 deletions jsc-intl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,15 @@ buildscript {
repositories {
google()
jcenter()
maven {
// Local Maven repo containing AARs with JSC library built for Android
url "$projectDir/../download-jsc/libs/245459.0.0/package/dist"
}
maven {
// Local Maven repo containing AARs with JSC library built for Android
url "$projectDir/../download-jsc/libs/250230.2.1/package/dist"
url "$projectDir/../download-jsc/libs/294992.0.0/package/dist"
}
}

apply plugin: 'com.kezong.fat-aar'

android {

// packagingOptions {
// pickFirst '**/libjsc.so'
// pickFirst '**/libc++_shared.so'
// }
defaultConfig {
externalNativeBuild {
cmake {
Expand All @@ -47,6 +38,5 @@ android {
}

dependencies {
embed "org.webkit:android-jsc-intl:r250230"
embed "org.webkit:android-jsc-cppruntime:r245459"
embed "org.webkit:android-jsc-intl:r294992"
}