sellmair / evas

Modern, high performance, tiny EventBus and State Container in Kotlin
MIT License
132 stars 1 forks source link

How to use this library in a simple Kotlin project #5

Closed shirishpandharikar closed 1 month ago

shirishpandharikar commented 1 month ago

Thanks for the wonderful library. I was trying to use this library in a non-Android project. The project is compiled using Maven. However even after adding the dependency I'm not able to see the required class for import. Is there anything I'm missing?

<dependency>
    <groupId>io.sellmair</groupId>
    <artifactId>evas</artifactId>
    <version>1.0.0-RC</version>
</dependency>
sellmair commented 1 month ago

I think for maven consumers it should work, using the evas-jvm instead of evas. I will check today evening ☺️

sellmair commented 1 month ago

I double checked ✅

        <dependency>
            <groupId>io.sellmair</groupId>
            <artifactId>evas-jvm</artifactId>
            <version>1.0.0-RC</version>
        </dependency>

Works. As evas supports many platforms, maven projects require to specify the -jvm platform

shirishpandharikar commented 1 month ago

Verified with the suggested evas-jvm dependency. Thanks. Would be good to add it to the readme for JVM users.