-
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.
Browse files
Browse the repository at this point in the history
[#8] [KMM] [Backend] Set Up Network layer Core with Ktor
- Loading branch information
Showing
34 changed files
with
622 additions
and
155 deletions.
There are no files selected for viewing
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
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
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
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
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
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 @@ | ||
[submodule "nimble-jsonapi-kotlin"] | ||
path = nimble-jsonapi-kotlin | ||
url = git@github.com:blyscuit/nimble-jsonapi-kotlin.git |
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
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
10 changes: 10 additions & 0 deletions
10
buildSrc/src/main/kotlin/appPackage/BuildKonfig.kt.example
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,10 @@ | ||
object BuildKonfig { | ||
const val CLIENT_ID = "" | ||
const val CLIENT_SECRET = "" | ||
const val STAGING_BASE_URL = "" | ||
const val PRODUCTION_BASE_URL = "" | ||
const val CLIENT_ID_STAGING = "" | ||
const val CLIENT_SECRET_STAGING = "" | ||
const val UI_TEST_EMAIL = "" | ||
const val UI_TEST_PASSWORD = "" | ||
} |
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,38 @@ | ||
object Dependency { | ||
|
||
// Kotlin | ||
const val KOTLIN_GRADLE_PLUGIN = "org.jetbrains.kotlin:kotlin-gradle-plugin:${Version.KOTLIN}" | ||
const val GRADLE = "com.android.tools.build:gradle:${Version.GRADLE}" | ||
const val KOTLIN_SERIALIZATION = "org.jetbrains.kotlin:kotlin-serialization:${Version.KOTLIN}" | ||
const val KOTLIN_TEST = "org.jetbrains.kotlin:kotlin-test:${Version.KOTLIN}" | ||
|
||
// Kotlinx | ||
const val COROUTINES_CORE = "org.jetbrains.kotlinx:kotlinx-coroutines-core:${Version.COROUTINES_CORE}" | ||
const val KOVER = "org.jetbrains.kotlinx:kover:${Version.KOVER}" | ||
const val KOTLINX_SERIALIZATION = "org.jetbrains.kotlinx:kotlinx-serialization-core:${Version.KOTLINX_SERIALIZATION}" | ||
const val COROUTINES_TEST = "org.jetbrains.kotlinx:kotlinx-coroutines-test:${Version.COROUTINES_CORE}" | ||
|
||
// DETEKT | ||
const val DETEKT = "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:${Version.DETEKT}" | ||
|
||
// Ktor | ||
const val KTOR_CORE = "io.ktor:ktor-client-core:${Version.KTOR}" | ||
const val KTOR_SERIALIZATION = "io.ktor:ktor-client-serialization:${Version.KTOR}" | ||
const val KTOR_LOGGING = "io.ktor:ktor-client-logging:${Version.KTOR}" | ||
const val KTOR_CONTENT_NEGOTIATION = "io.ktor:ktor-client-content-negotiation:${Version.KTOR}" | ||
const val KTOR_JSON = "io.ktor:ktor-serialization-kotlinx-json:${Version.KTOR}" | ||
const val KTOR_ANDROID = "io.ktor:ktor-client-android:${Version.KTOR}" | ||
const val KTOR_IOS = "io.ktor:ktor-client-ios:${Version.KTOR}" | ||
const val KTOR_MOCK = "io.ktor:ktor-client-mock:${Version.KTOR}" | ||
|
||
// BuildKonfig | ||
const val BUILD_KONFIG = "com.codingfeline.buildkonfig:buildkonfig-gradle-plugin:${Version.BUILD_KONFIG}" | ||
|
||
// Native Coroutines | ||
const val NATIVE_COROUTINES = "com.rickclephas.kmp.nativecoroutines:${Version.NATIVE_COROUTINES_KOTLIN}" | ||
|
||
// Koin | ||
const val KOIN = "io.insert-koin:koin-core:${Version.KOIN}" | ||
const val KOIN_TEST = "io.insert-koin:koin-test:${Version.KOIN}" | ||
const val KOIN_ANDROID = "io.insert-koin:koin-android:${Version.KOIN}" | ||
} |
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 @@ | ||
object Module { | ||
const val JSONAPI_CORE = ":nimble-jsonapi-kotlin:core" | ||
} |
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,16 @@ | ||
object Plugin { | ||
const val ANDROID_APPLICATION = "com.android.application" | ||
const val GOOGLE_SERVICE = "com.google.gms.google-services" | ||
const val ANDROID = "android" | ||
|
||
const val MULTIPLATFORM = "multiplatform" | ||
const val COCOAPODS = "native.cocoapods" | ||
const val ANDROID_LIBRARY = "com.android.library" | ||
const val KOTLIN_SERIALIZATION = "plugin.serialization" | ||
const val KOTLINX_SERIALIZATION = "kotlinx-serialization" | ||
const val NATIVE_COROUTINES = "com.rickclephas.kmp.nativecoroutines" | ||
const val BUILD_KONFIG = "com.codingfeline.buildkonfig" | ||
|
||
const val KOVER = "kover" | ||
const val DETEKT = "io.gitlab.arturbosch.detekt" | ||
} |
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,18 @@ | ||
object Android { | ||
const val COMPILE_SDK = 32 | ||
const val TARGET_SDK = 32 | ||
const val MIN_SDK = 26 | ||
} | ||
|
||
object Version { | ||
const val KOTLIN = "1.7.10" | ||
const val GRADLE = "7.2.2" | ||
const val COROUTINES_CORE = "1.6.4" | ||
const val DETEKT = "1.21.0" | ||
const val KTOR = "2.1.1" | ||
const val KOVER = "0.6.0" | ||
const val BUILD_KONFIG = "0.13.3" | ||
const val KOTLINX_SERIALIZATION = "1.2.2" | ||
const val NATIVE_COROUTINES_KOTLIN = "0.12.6-new-mm" | ||
const val KOIN = "3.2.1" | ||
} |
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
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
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
Oops, something went wrong.