From 82aa3421c682bdb4a174d79fce7875949530c50b Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Mon, 1 Mar 2021 18:33:48 +0800 Subject: [PATCH] feat:update android project settings --- doric-android/app/build.gradle | 8 ++++++++ doric-android/doric/build.gradle | 9 +-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/doric-android/app/build.gradle b/doric-android/app/build.gradle index c8e17760..7edf088b 100644 --- a/doric-android/app/build.gradle +++ b/doric-android/app/build.gradle @@ -24,6 +24,14 @@ android { } } +afterEvaluate { + buildJSBundle.exec() +} + +task buildJSBundle(type: Exec) { + commandLine 'sh', project.getProjectDir().getParent() + "/../bundle.sh" +} + dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.1.0' diff --git a/doric-android/doric/build.gradle b/doric-android/doric/build.gradle index 474f85c4..7597ed9f 100644 --- a/doric-android/doric/build.gradle +++ b/doric-android/doric/build.gradle @@ -23,17 +23,10 @@ android { } sourceSets { main { - assets.srcDirs = [project.getProjectDir().getParentFile().getParent() + "/doric-js/bundle"] + assets.srcDirs = ["../../doric-js/bundle"] } } } -afterEvaluate { - buildJSBundle.exec() -} - -task buildJSBundle(type: Exec) { - commandLine 'sh', project.getProjectDir().getParent() + "/../bundle.sh" -} dependencies { implementation fileTree(dir: 'libs', include: ['*.jar'])