diff --git a/doric-android/doric/build.gradle b/doric-android/doric/build.gradle index 9fba60a8..cb5b3f2e 100644 --- a/doric-android/doric/build.gradle +++ b/doric-android/doric/build.gradle @@ -27,13 +27,12 @@ android { } } } - afterEvaluate { buildJSBundle.exec() } task buildJSBundle(type: Exec) { - commandLine 'sh', project.rootDir.getParent() + "/bundle.sh" + commandLine 'sh', project.getProjectDir().getParent() + "/../bundle.sh" } dependencies { @@ -63,4 +62,6 @@ dependencies { implementation 'com.facebook.yoga.android:yoga-layout:1.16.0' } -apply from: rootProject.file('scripts/upload.gradle') \ No newline at end of file +if (new File('scripts/upload.gradle').exists()) { + apply from: rootProject.file('scripts/upload.gradle') +}