mirror of https://github.com/AMT-Cheif/drift.git
Include sqlite sources in moor_ffi project
This allows us to drop the download step from the build
This commit is contained in:
parent
925d28c080
commit
29a6475c85
|
@ -1,2 +1,3 @@
|
||||||
org.gradle.jvmargs=-Xmx1536M
|
org.gradle.jvmargs=-Xmx1536M
|
||||||
|
|
||||||
|
android.enableR8=true
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue