Skip to content

Commit

Permalink
database: Rename DB module to Database
Browse files Browse the repository at this point in the history
  • Loading branch information
sirambd committed Jul 9, 2024
1 parent 8378eed commit cb75029
Show file tree
Hide file tree
Showing 17 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion Core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ kotlin {
sourceSets {
commonMain.dependencies {
implementation(project(":Common"))
implementation(project(":DB"))
implementation(project(":Database"))
implementation(project(":Network"))
}
commonTest.dependencies {
Expand Down
4 changes: 2 additions & 2 deletions DB/build.gradle.kts → Database/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ kotlin {
publishLibraryVariants("release")
}

val xcframeworkName = "DB"
val xcframeworkName = "Database"
val xcf = XCFramework()
listOf(
iosX64(),
Expand Down Expand Up @@ -68,7 +68,7 @@ skie {
}

android {
namespace = "com.infomaniak.multiplatform_swisstransfer.db"
namespace = "com.infomaniak.multiplatform_swisstransfer.database"
compileSdk = Versions.compileSdk
defaultConfig {
minSdk = Versions.minSdk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package com.infomaniak.multiplatform_swisstransfer.db
package com.infomaniak.multiplatform_swisstransfer.database

class AndroidPlatform : Platform {
override val name: String = "Android ${android.os.Build.VERSION.SDK_INT}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package com.infomaniak.multiplatform_swisstransfer.db
package com.infomaniak.multiplatform_swisstransfer.database

import org.junit.Assert.assertTrue
import org.junit.Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package com.infomaniak.multiplatform_swisstransfer.db
package com.infomaniak.multiplatform_swisstransfer.database

interface Platform {
val name: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package com.infomaniak.multiplatform_swisstransfer.db
package com.infomaniak.multiplatform_swisstransfer.database

import com.infomaniak.multiplatform_swisstransfer.db.models.ContainerDB
import com.infomaniak.multiplatform_swisstransfer.db.models.FileDB
import com.infomaniak.multiplatform_swisstransfer.db.models.TransferDB
import com.infomaniak.multiplatform_swisstransfer.db.models.setting.AppSettings
import com.infomaniak.multiplatform_swisstransfer.db.models.upload.UploadTasks
import com.infomaniak.multiplatform_swisstransfer.database.models.ContainerDB
import com.infomaniak.multiplatform_swisstransfer.database.models.FileDB
import com.infomaniak.multiplatform_swisstransfer.database.models.TransferDB
import com.infomaniak.multiplatform_swisstransfer.database.models.setting.AppSettings
import com.infomaniak.multiplatform_swisstransfer.database.models.upload.UploadTasks
import io.realm.kotlin.Realm
import io.realm.kotlin.RealmConfiguration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package com.infomaniak.multiplatform_swisstransfer.db.models
package com.infomaniak.multiplatform_swisstransfer.database.models

import com.infomaniak.multiplatform_swisstransfer.common.interfaces.Container
import io.realm.kotlin.ext.realmListOf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package com.infomaniak.multiplatform_swisstransfer.db.models
package com.infomaniak.multiplatform_swisstransfer.database.models

import com.infomaniak.multiplatform_swisstransfer.common.interfaces.File
import io.realm.kotlin.types.RealmObject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package com.infomaniak.multiplatform_swisstransfer.db.models
package com.infomaniak.multiplatform_swisstransfer.database.models

import com.infomaniak.multiplatform_swisstransfer.common.interfaces.Transfer
import io.realm.kotlin.types.RealmObject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package com.infomaniak.multiplatform_swisstransfer.db.models.setting
package com.infomaniak.multiplatform_swisstransfer.database.models.setting

import io.realm.kotlin.types.RealmObject

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package com.infomaniak.multiplatform_swisstransfer.db.models.upload
package com.infomaniak.multiplatform_swisstransfer.database.models.upload

import io.realm.kotlin.types.RealmObject

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package com.infomaniak.multiplatform_swisstransfer.db
package com.infomaniak.multiplatform_swisstransfer.database

import kotlin.test.Test
import kotlin.test.assertEquals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package com.infomaniak.multiplatform_swisstransfer.db
package com.infomaniak.multiplatform_swisstransfer.database

import platform.UIKit.UIDevice

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package com.infomaniak.multiplatform_swisstransfer.db
package com.infomaniak.multiplatform_swisstransfer.database

import kotlin.test.Test
import kotlin.test.assertEquals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package com.infomaniak.multiplatform_swisstransfer.db
package com.infomaniak.multiplatform_swisstransfer.database

class MacOSPlatform : Platform {
override val name: String = "MacOS"
Expand Down
8 changes: 4 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ let package = Package(
.macOS(.v11)
],
products: [
.library(name: "Core", targets: ["Shared"]),
.library(name: "DB", targets: ["DB"]),
.library(name: "Core", targets: ["Core"]),
.library(name: "Database", targets: ["Database"]),
.library(name: "Network", targets: ["Network"])
],
targets: [
Expand All @@ -18,8 +18,8 @@ let package = Package(
path: "Core.xcframework.zip"
),
.binaryTarget(
name: "DB",
path: "DB.xcframework.zip"
name: "Database",
path: "Database.xcframework.zip"
),
.binaryTarget(
name: "Network",
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ dependencyResolutionManagement {
rootProject.name = "multiplatform-SwissTransfer"
include(":Common")
include(":Network")
include(":DB")
include(":Database")
include(":Core")

0 comments on commit cb75029

Please sign in to comment.