File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // The Android Gradle Plugin builds the native code with the Android NDK.
2-
31group ' com.flet.serious_python'
4- version ' 1.0 '
2+ version ' 0.1.5 '
53
64buildscript {
75 repositories {
@@ -12,6 +10,7 @@ buildscript {
1210 dependencies {
1311 // The Android Gradle Plugin knows how to build native code with the NDK.
1412 classpath ' com.android.tools.build:gradle:7.3.0'
13+ classpath ' de.undercouch:gradle-download-task:4.1.2'
1514 }
1615}
1716
@@ -23,6 +22,7 @@ rootProject.allprojects {
2322}
2423
2524apply plugin : ' com.android.library'
25+ apply plugin : ' de.undercouch.download'
2626
2727android {
2828 // Bumping the plugin compileSdkVersion requires all clients of this plugin
@@ -57,3 +57,17 @@ android {
5757 minSdkVersion 16
5858 }
5959}
60+
61+ import de.undercouch.gradle.tasks.download.Download
62+
63+ task downloadZipFile (type : Download ) {
64+ src " https://github.com/flet-dev/serious-python/releases/download/v${ version} /python-android-dist-v${ version} .zip"
65+ dest new File (buildDir, " python-android-dist-v${ version} .zip" )
66+ }
67+
68+ task unzipFile (dependsOn : downloadZipFile, type : Copy ) {
69+ from zipTree(downloadZipFile. dest)
70+ into ' src/main/jniLibs'
71+ }
72+
73+ preBuild. dependsOn unzipFile
You can’t perform that action at this time.
0 commit comments