Include sqlite sources in moor_ffi project

This allows us to drop the download step from the build
This commit is contained in:
Simon Binder 2019-11-27 12:28:06 +01:00
parent 925d28c080
commit 29a6475c85
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
3 changed files with 3 additions and 12 deletions

View File

@ -1,2 +1,3 @@
org.gradle.jvmargs=-Xmx1536M org.gradle.jvmargs=-Xmx1536M
android.enableR8=true

View File

@ -9,10 +9,6 @@ buildscript {
} }
} }
plugins {
id "de.undercouch.download" version "4.0.0"
}
group 'eu.simonbinder.moor_ffi' group 'eu.simonbinder.moor_ffi'
version '1.0' version '1.0'
@ -49,14 +45,8 @@ android {
} }
} }
task downloadSqlite(type: Download) { task extractSqlite(type: Copy) {
src 'https://sqlite.org/2019/sqlite-amalgamation-3290000.zip' from zipTree('sqlite.zip').matching {
dest 'sqlite_3290000.zip'
overwrite false
}
task extractSqlite(dependsOn: downloadSqlite, type: Copy) {
from zipTree(downloadSqlite.dest).matching {
include '*/sqlite3.c' include '*/sqlite3.c'
eachFile { it.setPath(it.getName()) } // Don't use top-level folder in zip eachFile { it.setPath(it.getName()) } // Don't use top-level folder in zip
} }

BIN
moor_ffi/android/sqlite.zip Normal file

Binary file not shown.