compose-ratingbar icon indicating copy to clipboard operation
compose-ratingbar copied to clipboard

Multiplatform support?

Open mbichlmeier opened this issue 2 years ago • 7 comments

Hi. Is there any kotlin/compose multiplatform support planned?

mbichlmeier avatar Oct 30 '23 07:10 mbichlmeier

hi @mbichlmeier , there is a PR created by @VictorKabata will check merge it

a914-gowtham avatar Oct 30 '23 08:10 a914-gowtham

Awesome, thank you guys!

mbichlmeier avatar Oct 30 '23 08:10 mbichlmeier

hi @a914-gowtham . I'm getting errors with your v1.3.9 . I'm quite sure I'm doing something wrong but I thought I only had to add the dependency to my common package?

sourceSets {
     val commonMain by getting {
            dependencies {
                 implementation("com.github.a914-gowtham:compose-ratingbar:1.3.9")
            }
    }
    ....
}

This fails with the following message:

Could not resolve all dependencies for configuration ':shared:iosSimulatorArm64CompileKlibraries'.
> Could not resolve com.github.a914-gowtham:compose-ratingbar:1.3.9.
  Required by:
      project :shared
   > No matching variant of com.github.a914-gowtham:compose-ratingbar:1.3.9 was found. The consumer was configured to find a usage of 'kotlin-api' of a library, preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native', attribute 'org.jetbrains.kotlin.native.target' with value 'ios_simulator_arm64' but:
       - Variant 'releaseApiElements-published' capability com.github.a914-gowtham:compose-ratingbar:1.3.9 declares an API of a library:
           - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
           - Other compatible attributes:
               - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
               - Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_simulator_arm64')
       - Variant 'releaseRuntimeElements-published' capability com.github.a914-gowtham:compose-ratingbar:1.3.9 declares a runtime of a library:
           - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
           - Other compatible attributes:
               - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
               - Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_simulator_arm64')
       - Variant 'releaseSourcesElements-published' capability com.github.a914-gowtham:compose-ratingbar:1.3.9 declares a runtime of a component:
           - Incompatible because this component declares documentation, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
           - Other compatible attributes:
               - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
               - Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_simulator_arm64')

Is there something I'm doing wrong? Seems like there is no iOS support?

mbichlmeier avatar Oct 31 '23 08:10 mbichlmeier

That is a sdk issue. Merged the PR but, the ratingbar module is being published instead of ratingbar-multiplatforn module

a914-gowtham avatar Oct 31 '23 14:10 a914-gowtham

@mbichlmeier have created a separate repo for mutliplatform https://github.com/a914-gowtham/compose-mutliplatform-ratingbar

having issue while publishing in jitpack. will check or move to maven central

a914-gowtham avatar Nov 20 '23 07:11 a914-gowtham

Thanks @a914-gowtham . I really appreciate your effort :)

mbichlmeier avatar Nov 20 '23 08:11 mbichlmeier

Any update on this?

hm-tamim avatar Dec 23 '23 07:12 hm-tamim