Skip to content

Instantly share code, notes, and snippets.

@PiotrPrus
Created April 26, 2022 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PiotrPrus/e851444537a50d32c2bd03cd063e0a5e to your computer and use it in GitHub Desktop.
Save PiotrPrus/e851444537a50d32c2bd03cd063e0a5e to your computer and use it in GitHub Desktop.
plugins {
kotlin("multiplatform")
id("com.android.library")
id("dev.icerock.mobile.multiplatform-resources")
}
kotlin {
android()
iosArm64()
iosX64()
sourceSets {
val commonMain by getting {
dependencies {
api(Deps.Resources.core)
}
}
val androidMain by getting {
dependencies {
api(Deps.Resources.compose)
}
}
}
}
android {
compileSdk = Versions.Android.compileSdk
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
defaultConfig {
minSdk = Versions.Android.minSdk
targetSdk = Versions.Android.targetSdk
}
}
multiplatformResources {
multiplatformResourcesPackage = "com.example.sharedResources" // required
multiplatformResourcesClassName = "SharedRes" // optional, default MR
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment