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'])