1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-22 19:01: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"
inputs.dir("$projectDir/src/")
outputs.dir("$projectDir/../app/src/main/jniLibs/")
executable = 'python3'
args = ['-u', './build-syncthing.py']
command = "-u ./build-syncthing.py"
}
/**