Skip to content

Commit

Permalink
wip port to compose resources
Browse files Browse the repository at this point in the history
  • Loading branch information
luca992 committed Oct 22, 2024
1 parent e6bd350 commit 235de7b
Show file tree
Hide file tree
Showing 1,135 changed files with 68 additions and 72 deletions.
44 changes: 18 additions & 26 deletions kotlin-js-store/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions libphonenumber/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import com.vanniktech.maven.publish.SonatypeHost
import org.gradle.kotlin.dsl.implementation

plugins {
alias(libs.plugins.org.jetbrains.kotlin.multiplatform)
alias(libs.plugins.com.android.library)
alias(libs.plugins.dev.icerock.mobile.multiplatform.resources)
alias(libs.plugins.org.kodein.mock.mockmp)
alias(libs.plugins.com.vanniktech.maven.publish)
alias(libs.plugins.org.jetbrains.compose)
alias(libs.plugins.compose.compiler)
}

group = project.property("GROUP") as String
Expand Down Expand Up @@ -47,12 +49,14 @@ kotlin {
sourceSets {
all {
languageSettings.optIn("kotlin.ExperimentalStdlibApi")
languageSettings.optIn("org.jetbrains.compose.resources.ExperimentalResourceApi")
}
val commonMain by getting {
dependencies {
implementation(libs.com.squareup.okio)
implementation(libs.co.touchlab.kermit)
implementation(libs.dev.icerock.moko.resources)
implementation(compose.runtime)
implementation(compose.components.resources)
}
}
val commonTest by getting {
Expand Down Expand Up @@ -149,10 +153,6 @@ android {
}
}

multiplatformResources {
resourcesPackage = "io.michaelrocks.libphonenumber"
}

mockmp {
usesHelper = true
installWorkaround() // (3)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ class AssetsMetadataLoader(private val assetManager: AssetManager) : MetadataLoa
assetManager.open(phoneMetadataResource.path)
} catch (exception: IOException) {
null
}
} as InputStream?
}
}
Loading

0 comments on commit 235de7b

Please sign in to comment.