Skip to content

Commit

Permalink
init core auth
Browse files Browse the repository at this point in the history
  • Loading branch information
stslex committed Dec 17, 2023
1 parent 19c03c2 commit c21cc85
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 1 deletion.
47 changes: 47 additions & 0 deletions core/auth/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.androidLibrary)
alias(libs.plugins.kotlinCocoapods)
}

kotlin {
androidTarget {
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
}
}
}

jvm("desktop")

iosX64()
iosArm64()
iosSimulatorArm64()
cocoapods {
summary = "Some description for the Shared Module"
homepage = "Link to the Shared Module homepage"
version = "1.0"
ios.deploymentTarget = "16.0"
podfile = project.file(project.rootProject.projectDir.path + "/iosApp/CoreAuthPodfile")
framework {
baseName = "coreAuth"
}
}

sourceSets {
commonMain.dependencies {
implementation(project(":core:core"))
implementation(project(":core:database"))
implementation(project(":core:network"))
}
}
}

android {
namespace = "com.stslex.core.auth"
compileSdk = libs.versions.android.compileSdk.get().toInt()
defaultConfig {
minSdk = libs.versions.android.minSdk.get().toInt()
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.stslex.core.network.api.base

import com.stslex.core.core.AppDispatcher
import com.stslex.core.network.api.base.model.DefaultRequest
import com.stslex.core.network.api.base.NetworkClientBuilder.setupDefaultRequest
import com.stslex.core.network.api.base.NetworkClientBuilder.setupLogging
import com.stslex.core.network.api.base.NetworkClientBuilder.setupNegotiation
import com.stslex.core.network.api.base.model.DefaultRequest
import io.ktor.client.HttpClient
import io.ktor.client.engine.cio.CIO
import io.ktor.client.plugins.cache.HttpCache
Expand Down
8 changes: 8 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ kamel = "0.9.0"
coil = "2.5.0"

buildConfig = "4.2.0"
lifecycleRuntimeKtx = "2.6.2"
composeBom = "2023.08.00"
[libraries]
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
kotlin-test-junit = { module = "org.jetbrains.kotlin:kotlin-test-junit", version.ref = "kotlin" }
Expand Down Expand Up @@ -79,6 +81,12 @@ coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", ve
coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "coroutines" }

coil-compose = { module = "io.coil-kt:coil-compose", version.ref = "coil" }
androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycleRuntimeKtx" }
androidx-compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "composeBom" }
androidx-ui-graphics = { group = "androidx.compose.ui", name = "ui-graphics" }
androidx-ui-test-manifest = { group = "androidx.compose.ui", name = "ui-test-manifest" }
androidx-ui-test-junit4 = { group = "androidx.compose.ui", name = "ui-test-junit4" }
androidx-material3 = { group = "androidx.compose.material3", name = "material3" }

[plugins]
kotlinJvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
Expand Down
5 changes: 5 additions & 0 deletions iosApp/CoreAuthPodfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
target 'test' do
use_frameworks!
platform :ios, '16.0'
pod 'auth', :path => '../core/auth'
end
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ include(":feature:film")
include(":feature:profile")
include(":feature:match_feed")
include(":feature:auth")
include(":core:auth")

0 comments on commit c21cc85

Please sign in to comment.