This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
-
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.
Rename modules for jetpack.io releases.
Related to #5
- Loading branch information
1 parent
5367fb9
commit e56d08b
Showing
20 changed files
with
54 additions
and
249 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 |
---|---|---|
@@ -1,90 +1,32 @@ | ||
plugins { | ||
kotlin("multiplatform") | ||
id("kotlinx-serialization") | ||
id(BuildPlugins.androidLibrary) | ||
id(BuildPlugins.kotlinAndroidExtensions) | ||
id("com.android.library") | ||
id("kotlin-android-extensions") | ||
id("dev.icerock.mobile.multiplatform") | ||
} | ||
|
||
android { | ||
compileSdkVersion(AndroidSdk.compile) | ||
defaultConfig { | ||
minSdkVersion(AndroidSdk.min) | ||
targetSdkVersion(AndroidSdk.target) | ||
versionCode = 1 | ||
versionName = "1.0" | ||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
} | ||
buildTypes { | ||
getByName("release") { | ||
isMinifyEnabled = false | ||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") | ||
} | ||
} | ||
setDefaults() | ||
} | ||
|
||
dependencies { | ||
implementation(Libraries.kotlinStdLib) | ||
implementation(Libraries.kotlinxCoroutinesCore) | ||
implementation(Libraries.kotlinxSerializeJvm) | ||
implementation(Libraries.ktorUtilsJvm) | ||
implementation(Libraries.ktorCoreJvm) | ||
implementation(Libraries.ktorSerializationJvm) | ||
implementation(Libraries.ktorLoggingJvm) | ||
implementation(Libraries.ktorOkhttpJvm) | ||
|
||
implementation("org.slf4j:slf4j-api:1.7.28") | ||
val mppModules = listOf( | ||
Modules.MultiPlatform.data, | ||
Modules.MultiPlatform.core | ||
) | ||
|
||
testImplementation(Libraries.kotlinTestJvm) | ||
testImplementation(Libraries.kotlinxCoroutinesCore) | ||
testImplementation(Libraries.kotlinTestJunit) | ||
dependencies { | ||
androidLibrary(Deps.Libs.Android.gson) | ||
mppLibrary(Deps.Libs.MultiPlatform.kotlinStdLib) | ||
mppLibrary(Deps.Libs.MultiPlatform.coroutines) | ||
mppLibrary(Deps.Libs.MultiPlatform.serialization) | ||
mppLibrary(Deps.Libs.MultiPlatform.ktorClient) | ||
mppLibrary(Deps.Libs.MultiPlatform.ktorClientJson) | ||
mppLibrary(Deps.Libs.MultiPlatform.ktorClientJsonSerializer) | ||
mppLibrary(Deps.Libs.MultiPlatform.ktorUtils) | ||
mppLibrary(Deps.Libs.MultiPlatform.ktorClientLogging) | ||
|
||
mppLibrary(Deps.Libs.MultiPlatform.settings) | ||
|
||
mppModules.forEach { mppModule(it) } | ||
} | ||
|
||
kotlin { | ||
targets { | ||
android() | ||
jvm() | ||
} | ||
sourceSets { | ||
val commonMain by getting { | ||
dependencies { | ||
implementation(project(":common:data")) | ||
|
||
implementation(Libraries.kotlinStdLibCommon) | ||
implementation(Libraries.kotlinxCoroutinesCommon) | ||
implementation(Libraries.ktorCoreCommon) | ||
implementation(Libraries.ktorUtilsCommon) | ||
implementation(Libraries.ktorSerializationCommon) | ||
implementation(Libraries.ktorLoggingCommon) | ||
} | ||
} | ||
|
||
val commonTest by getting { | ||
dependencies { | ||
implementation(Libraries.kotlinTestCommon) | ||
implementation(Libraries.kotlinTestAnnotations) | ||
implementation(Libraries.kotlinxCoroutinesCommon) | ||
|
||
} | ||
} | ||
|
||
val jvmMain by getting { | ||
dependencies { | ||
implementation(Libraries.kotlinStdLib) | ||
implementation(Libraries.kotlinxCoroutinesCore) | ||
implementation(Libraries.kotlinxSerializeJvm) | ||
implementation(Libraries.ktorUtilsJvm) | ||
implementation(Libraries.ktorCoreJvm) | ||
implementation(Libraries.ktorSerializationJvm) | ||
implementation(Libraries.ktorLoggingJvm) | ||
implementation(Libraries.ktorOkhttpJvm) | ||
} | ||
} | ||
val jvmTest by getting { | ||
dependencies { | ||
implementation(Libraries.kotlinTestJvm) | ||
implementation(Libraries.kotlinxCoroutinesCore) | ||
implementation(Libraries.kotlinTestJunit) | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
Oops, something went wrong.