-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert data module to multiplatform
- Loading branch information
1 parent
906e2a5
commit 02ef8e5
Showing
10 changed files
with
62 additions
and
39 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
plugins { | ||
id("java-library") | ||
kotlin("multiplatform") | ||
} | ||
|
||
apply { | ||
from(file("$rootDir/gradle_tests_report.gradle.kts")) | ||
} | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
} | ||
|
||
kotlin { | ||
jvm() | ||
ios { | ||
binaries.framework { | ||
baseName = "data" | ||
} | ||
} | ||
|
||
sourceSets { | ||
val commonMain by getting { | ||
dependencies { | ||
implementation(project(":shared")) | ||
implementation(Deps.kotlin) | ||
implementation(Deps.coroutines_core) | ||
implementation(Deps.koin_core) | ||
} | ||
} | ||
|
||
val commonTest by getting { | ||
dependencies { | ||
implementation(Deps.commonTest) | ||
implementation(Deps.commonAnnotations) | ||
} | ||
} | ||
} | ||
|
||
} | ||
|
||
//dependencies { | ||
// implementation(project(":shared")) | ||
// implementation(Deps.kotlin) | ||
// implementation(Deps.coroutines_android) | ||
// implementation(Deps.koin_core) | ||
// | ||
// testImplementation(Deps.junit) | ||
// testImplementation(Deps.coroutines_test) | ||
// testImplementation(Deps.hamcrest) | ||
// testImplementation(Deps.mockito) | ||
// testImplementation(Deps.mockk) | ||
// testImplementation(Deps.koin_test) | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
data/src/commonMain/kotlin/com/soulesidibe/data/model/TodoData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.soulesidibe.data.model | ||
|
||
data class TodoData(val id: String, val title: String) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters