From 86b6c63588b2e3e1b493b51cd78d52348e817143 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Mon, 8 Nov 2021 10:29:18 +0800 Subject: [PATCH] android: add flag to decide whether use webview only --- doric-android/app/build.gradle | 15 +++++++++++++-- doric-android/build.gradle | 1 + 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/doric-android/app/build.gradle b/doric-android/app/build.gradle index bda62ace..1d8f367e 100644 --- a/doric-android/app/build.gradle +++ b/doric-android/app/build.gradle @@ -36,8 +36,19 @@ dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.1.0' implementation "com.google.android.material:material:1.1.0" - implementation "pub.doric:core:${rootProject.ext.Version}" - implementation "pub.doric:devkit:${rootProject.ext.Version}" + if (rootProject.ext.UseWebViewOnly) { + implementation("pub.doric:core:${rootProject.ext.Version}") { + exclude group: 'com.github.penfeizhou', module: 'jsc4a' + } + implementation("pub.doric:devkit:${rootProject.ext.Version}") { + exclude group: 'com.github.penfeizhou', module: 'jsc4a' + } + implementation "pub.doric:jse:${rootProject.ext.Version}" + } else { + implementation("pub.doric:core:${rootProject.ext.Version}") + implementation("pub.doric:devkit:${rootProject.ext.Version}") + } + implementation "com.google.android.material:material:1.1.0" implementation 'com.github.penfeizhou.android.animation:glide-plugin:2.5.0' implementation 'com.github.bumptech.glide:glide:4.11.0' implementation 'com.github.bumptech.glide:annotations:4.11.0' diff --git a/doric-android/build.gradle b/doric-android/build.gradle index 3760ac83..0a334a35 100644 --- a/doric-android/build.gradle +++ b/doric-android/build.gradle @@ -46,6 +46,7 @@ task clean(type: Delete) { Properties properties = new Properties() properties.load(project.rootProject.file('version.properties').newDataInputStream()) ext { + UseWebViewOnly = true Version = properties.version }