1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 03:11:30 +00:00

build: Use gradle plugin to execute python script (fixes #1783) (#1795)

This commit is contained in:
Simon Frei 2022-06-07 14:09:04 +02:00 committed by GitHub
parent 39dd858993
commit b30bcf940b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,12 @@
task buildNative(type: Exec) { plugins {
id 'ru.vyarus.use-python' version '2.3.0'
}
task buildNative(type: PythonTask) {
environment "NDK_VERSION", "$ndkVersionShared" environment "NDK_VERSION", "$ndkVersionShared"
inputs.dir("$projectDir/src/") inputs.dir("$projectDir/src/")
outputs.dir("$projectDir/../app/src/main/jniLibs/") outputs.dir("$projectDir/../app/src/main/jniLibs/")
executable = 'python3' command = "-u ./build-syncthing.py"
args = ['-u', './build-syncthing.py']
} }
/** /**