Skip to content

Commit

Permalink
fix foss build
Browse files Browse the repository at this point in the history
  • Loading branch information
psuzn committed Dec 22, 2023
1 parent dd005af commit 4cdc8e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lint.yaml → .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Lint and verify
name: CI

on:
pull_request:
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
ci:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@ import app.cash.sqldelight.db.SqlDriver
import app.cash.sqldelight.driver.jdbc.sqlite.JdbcSqliteDriver
import me.sujanpoudel.mputils.paths.appDataDirectory
import me.sujanpoudel.mputils.paths.utils.div
import me.sujanpoudel.playdeals.common.BuildKonfig
import me.sujanpoudel.playdeals.common.Constants
import me.sujanpoudel.playdeals.common.SqliteDatabase
import me.sujanpoudel.playdeals.common.BuildKonfig

actual fun createSqlDriver(): SqlDriver {

val path = appDataDirectory(BuildKonfig.PACKAGE_NAME) / Constants.DATABASE_NAME

return JdbcSqliteDriver(
url = "jdbc:sqlite:${path}",
url = "jdbc:sqlite:$path",
schema = SqliteDatabase.Schema.synchronous(),
migrateEmptySchema = true,
)
Expand Down

0 comments on commit 4cdc8e2

Please sign in to comment.