Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update / Migrate Library to Kotlin 2.0.0+ #109

Closed
fthomys opened this issue Jan 16, 2025 · 2 comments
Closed

Update / Migrate Library to Kotlin 2.0.0+ #109

fthomys opened this issue Jan 16, 2025 · 2 comments

Comments

@fthomys
Copy link

fthomys commented Jan 16, 2025

It would be nice, to update the library, to support kotlin 2.0+

When i include this librarys main branch as a submodule, it build on its own, but it doesnt build included in the app.

When i downgrade the app to Kotlin 1.9.24, it works fine

But on 2.0.0+ this happens:

Argument type mismatch: actual type is '@ParameterName(...) cz.mroczis.netmonster.core.feature.config.UpdateResult<android.telephony.TelephonyCallback, kotlin.Nothing?>', but 'cz.mroczis.netmonster.core.feature.config.UpdateResult<android.telephony.TelephonyCallback, android.telephony.CellLocation>' was expected.
Argument type mismatch: actual type is '@ParameterName(...) cz.mroczis.netmonster.core.feature.config.UpdateResult<cz.mroczis.netmonster.core.util.SingleEventPhoneStateListener, kotlin.Nothing?>', but 'cz.mroczis.netmonster.core.feature.config.UpdateResult<cz.mroczis.netmonster.core.util.SingleEventPhoneStateListener, android.telephony.CellLocation>' was expected.
rgument type mismatch: actual type is '@ParameterName(...) cz.mroczis.netmonster.core.feature.config.UpdateResult<android.telephony.TelephonyCallback, kotlin.Nothing?>', but 'cz.mroczis.netmonster.core.feature.config.UpdateResult<android.telephony.TelephonyCallback, android.telephony.TelephonyDisplayInfo>' was expected.
rgument type mismatch: actual type is '@ParameterName(...) cz.mroczis.netmonster.core.feature.config.UpdateResult<cz.mroczis.netmonster.core.util.SingleEventPhoneStateListener, kotlin.Nothing?>', but 'cz.mroczis.netmonster.core.feature.config.UpdateResult<cz.mroczis.netmonster.core.util.SingleEventPhoneStateListener, android.telephony.TelephonyDisplayInfo>' was expected.
Argument type mismatch: actual type is '@ParameterName(...) cz.mroczis.netmonster.core.feature.config.UpdateResult<android.telephony.TelephonyCallback, kotlin.Nothing?>', but 'cz.mroczis.netmonster.core.feature.config.UpdateResult<android.telephony.TelephonyCallback, android.telephony.ServiceState>' was expected.
Argument type mismatch: actual type is '@ParameterName(...) cz.mroczis.netmonster.core.feature.config.UpdateResult<cz.mroczis.netmonster.core.util.SingleEventPhoneStateListener, kotlin.Nothing?>', but 'cz.mroczis.netmonster.core.feature.config.UpdateResult<cz.mroczis.netmonster.core.util.SingleEventPhoneStateListener, android.telephony.ServiceState>' was expected.
79 Argument type mismatch: actual type is '@ParameterName(...) cz.mroczis.netmonster.core.feature.config.UpdateResult<android.telephony.TelephonyCallback, kotlin.Nothing?>', but 'cz.mroczis.netmonster.core.feature.config.UpdateResult<android.telephony.TelephonyCallback, android.telephony.SignalStrength>' was expected.
90 Argument type mismatch: actual type is '@ParameterName(...) cz.mroczis.netmonster.core.feature.config.UpdateResult<cz.mroczis.netmonster.core.util.SingleEventPhoneStateListener, kotlin.Nothing?>', but 'cz.mroczis.netmonster.core.feature.config.UpdateResult<cz.mroczis.netmonster.core.util.SingleEventPhoneStateListener, android.telephony.SignalStrength>' was expected.
@mroczis
Copy link
Owner

mroczis commented Jan 21, 2025

Just bumped the lib to Kotlin 2.1.0, tried to build lib and sample app and had no issues.

@fthomys
Copy link
Author

fthomys commented Jan 22, 2025

Works now, thank you!

@fthomys fthomys closed this as completed Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants