Skip to content

Commit 0f3a226

Browse files
committed
Fix copyBuildDist gradle task
1 parent 865b3f8 commit 0f3a226

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/serious_python_android/android/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,10 @@ task copyCustomDist(type: Exec) {
8181

8282
task copyBuildDist(type: Copy) {
8383
def srcDir = System.getenv('SERIOUS_PYTHON_BUILD_DIST')
84-
from srcDir
85-
into 'src/main/jniLibs'
84+
if (srcDir != null) {
85+
from srcDir
86+
into 'src/main/jniLibs'
87+
}
8688
}
8789

8890
if (System.getenv('SERIOUS_PYTHON_P4A_DIST')) {

0 commit comments

Comments
 (0)