feat:update android project settings

This commit is contained in:
pengfei.zhou 2021-03-01 18:33:48 +08:00 committed by osborn
parent fa1c1a1948
commit 82aa3421c6
2 changed files with 9 additions and 8 deletions

View File

@ -24,6 +24,14 @@ android {
} }
} }
afterEvaluate {
buildJSBundle.exec()
}
task buildJSBundle(type: Exec) {
commandLine 'sh', project.getProjectDir().getParent() + "/../bundle.sh"
}
dependencies { dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar']) implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.appcompat:appcompat:1.1.0'

View File

@ -23,17 +23,10 @@ android {
} }
sourceSets { sourceSets {
main { 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 { dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar']) implementation fileTree(dir: 'libs', include: ['*.jar'])