Skip to content

Commit f75a4ac

Browse files
committed
Version 0.5.7-SNAPSHOT
1 parent 643283f commit f75a4ac

File tree

14 files changed

+61
-19
lines changed

14 files changed

+61
-19
lines changed

SQLager/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ version = VERSION_NAME
2525
kotlin {
2626
targets {
2727
// fromPreset(presets.jvm, 'jvm')
28-
fromPreset(presets.macosX64, 'nativeCommon')
28+
// fromPreset(presets.macosX64, 'nativeCommon')
2929

3030
fromPreset(presets.macosX64, 'macos') {
3131
compilations.each {

SQLager/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ GROUP=co.touchlab
2020
VERSION_NAME=0.1.1-SNAPSHOT
2121

2222
STATELY_VERSION=0.5.1
23-
SQLITER_VERSION=0.5.6
23+
SQLITER_VERSION=0.5.7-SNAPSHOT
2424
KOTLIN_VERSION=1.3.10
2525

2626
POM_URL=https://github.com/touchlab/SQLiter

SQLager/src/nativeCommonTest/kotlin/co/touchlab/sqlager/user/createDatabaseManager.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ package co.touchlab.sqlager.user
22

33
import co.touchlab.sqliter.DatabaseConfiguration
44
import co.touchlab.sqliter.DatabaseManager
5-
import co.touchlab.sqliter.NativeFileContext
5+
import co.touchlab.sqliter.DatabaseFileContext
66

77
actual fun createDatabaseManager(config: DatabaseConfiguration): DatabaseManager =
88
co.touchlab.sqliter.createDatabaseManager(config)
99

1010
actual fun deleteDatabase(name:String){
11-
NativeFileContext.deleteDatabase(name)
11+
DatabaseFileContext.deleteDatabase(name)
1212
}

SQLiter/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ kotlin {
8686
nativeCommonMain { }
8787
nativeCommonTest { }
8888

89-
configure([iosX64Main, iosArm64Main/*, macosMain, iosArm32Main*/]) {
89+
configure([iosX64Main, iosArm64Main, macosMain, iosArm32Main]) {
9090
dependsOn nativeCommonMain
9191
}
9292

93-
configure([iosX64Test, iosArm64Test/*, macosTest, iosArm32Test*/]) {
93+
configure([iosX64Test, iosArm64Test, macosTest, iosArm32Test]) {
9494
dependsOn nativeCommonTest
9595
}
9696
}

SQLiter/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
kotlin.code.style=official
1818

1919
GROUP=co.touchlab
20-
VERSION_NAME=0.5.6
20+
VERSION_NAME=0.5.7-SNAPSHOT
2121

2222
STATELY_VERSION=0.5.1
2323
KOTLIN_VERSION=1.3.10
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright (C) 2018 Touchlab, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package co.touchlab.sqliter
18+
19+
expect object DatabaseFileContext{
20+
fun deleteDatabase(name: String)
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright (C) 2018 Touchlab, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package co.touchlab.sqliter
18+
19+
actual object DatabaseFileContext {
20+
actual fun deleteDatabase(name: String) {}
21+
}

SQLiter/src/nativeCommonMain/kotlin/co/touchlab/sqliter/NativeFileContext.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import platform.Foundation.NSFileManager
2323
import platform.Foundation.NSSearchPathForDirectoriesInDomains
2424
import platform.Foundation.NSUserDomainMask
2525

26-
object NativeFileContext{
27-
fun deleteDatabase(name: String) {
26+
actual object DatabaseFileContext{
27+
actual fun deleteDatabase(name: String) {
2828
deleteDatabaseFile(databaseFile(name))
2929
}
3030

SQLiter/src/nativeCommonMain/kotlin/co/touchlab/sqliter/createDatabaseManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
package co.touchlab.sqliter
1818

1919
fun createDatabaseManager(configuration: DatabaseConfiguration): DatabaseManager {
20-
val databasePath = NativeFileContext.databasePath(configuration.name, configuration.inMemory)
20+
val databasePath = DatabaseFileContext.databasePath(configuration.name, configuration.inMemory)
2121
return NativeDatabaseManager(databasePath, configuration)
2222
}

SQLiter/src/nativeCommonTest/kotlin/co/touchlab/sqliter/BaseDatabaseTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package co.touchlab.sqliter
1818

19-
import co.touchlab.sqliter.NativeFileContext.deleteDatabase
19+
import co.touchlab.sqliter.DatabaseFileContext.deleteDatabase
2020
import kotlin.test.AfterEach
2121
import kotlin.test.BeforeEach
2222

0 commit comments

Comments
 (0)