Skip to content

Commit

Permalink
Prepare release 0.5.0:
Browse files Browse the repository at this point in the history
* bump version to 0.5.0
* comment some non-usable entries in SQLite bindings file (sqlite.scala)
* re-enable Scala 2.11 build
* change Scala 2.13 version (from 2.13.6 to 2.13.8)
* change scribe version to 3.6.2 (latest version supporting Scala 2.11)
* change nativeMode to "debug" and nativeLTO to"none" for speed-up CI builds
* add SBT JVM config in .sbopts (-Xmx4096m -XX:ReservedCodeCacheSize=256m -XX:MaxMetaspaceSize=512m)
  • Loading branch information
david-bouyssie committed Apr 21, 2022
1 parent 49aa5de commit 95870f2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .sbtopts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-J-Xmx4096m
-J-XX:ReservedCodeCacheSize=256m
-J-XX:MaxMetaspaceSize=512m
12 changes: 6 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name := "sqlite4s"
organization := "com.github.david-bouyssie"
version := "0.4.1"
scalaVersion := "2.13.6"
crossScalaVersions := Seq("3.1.2", "2.13.6", "2.12.15") // , "2.11.12"
version := "0.5.0"
scalaVersion := "2.13.8"
crossScalaVersions := Seq("3.1.2", "2.13.8", "2.12.15", "2.11.12")

libraryDependencies += "com.outr" %%% "scribe" % "3.8.2"
libraryDependencies += "com.outr" %%% "scribe" % "3.6.2"
libraryDependencies += "com.lihaoyi" %%% "utest" % "0.7.11" % Test

testFrameworks += new TestFramework("utest.runner.Framework")
Expand All @@ -16,8 +16,8 @@ enablePlugins(ScalaNativePlugin)
// Set to false or remove if you want to show stubs as linking errors
nativeLinkStubs := true

nativeMode := "release-fast" //"release-fast"
nativeLTO := "thin" //"none" //"thin"
nativeMode := "debug" //"release-fast"
nativeLTO := "none" //"none" //"thin"
nativeLinkingOptions ++= Seq(
"-L" ++ baseDirectory.value.getAbsolutePath() ++ "/nativelib"
)
Expand Down
6 changes: 3 additions & 3 deletions src/main/scala/com/github/sqlite4s/bindings/sqlite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ object sqlite {
type fts5_tokenizer = struct_fts5_tokenizer
//type struct_fts5_api = CStruct4[CInt, CFuncPtr5[Ptr[Byte], CString, Ptr[Byte], Ptr[struct_fts5_tokenizer], CFuncPtr1[Ptr[Byte], Unit], CInt], CFuncPtr4[Ptr[Byte], CString, Ptr[Ptr[Byte]], Ptr[struct_fts5_tokenizer], CInt], CFuncPtr5[Ptr[Byte], CString, Ptr[Byte], CFuncPtr5[Ptr[struct_Fts5ExtensionApi], Ptr[struct_Fts5Context], Ptr[struct_sqlite3_context], CInt, Ptr[Ptr[struct_sqlite3_value]], Unit], CFuncPtr1[Ptr[Byte], Unit], CInt]]
//type fts5_api = struct_fts5_api
val sqlite3_version: CString = extern
val sqlite3_temp_directory: CString = extern
val sqlite3_data_directory: CString = extern
//val sqlite3_version: CString = extern // not always exported, use sqlite3_libversion()
//def sqlite3_temp_directory: CString = extern // FIXME: can't be used for now, but can be changed on Windows (see sqlite_addons.sqlite3_win32_set_directory)
//def sqlite3_data_directory: CString = extern // FIXME: can't be used for now, but can be changed on Windows (see sqlite_addons.sqlite3_win32_set_directory)
def sqlite3_libversion(): CString = extern
def sqlite3_sourceid(): CString = extern
def sqlite3_libversion_number(): CInt = extern
Expand Down

0 comments on commit 95870f2

Please sign in to comment.