Closed keithyoder closed 1 year ago
Confirmed IPA is building with Kotlin 1.8.
Thanks for the info, the latest kotlin version has more strict checking.
@keithyoder can you provide the kotlin version that failing?
fun handleFlyBuyError(sdkError: SdkError?) {
when (sdkError?.type) {
ResponseEventType.NO_CONNECTION -> {
Log.e("FlyBuy SDK Error", "No Connection")
}
ResponseEventType.FAILED -> {
when (sdkError.code) {
425 -> {
Log.e("FlyBuy SDK Error", "Upgrade your app!")
}
else -> {
Log.e("FlyBuy SDK Error", sdkError.userError())
}
}
}
else -> {
// nothing to do.
}
}
}
map.putInt("siteID", order.site?.id!!)
I think this is okay since any order has to have a site.
I am planning to upgrade to RN 0.72 and and ended up running into Kotlin version issues as well.
> Task :react-native-bildit-flybuy:compileDebugKotlin FAILED
'compileDebugJavaWithJavac' task (current target is 11) and 'compileDebugKotlin' task (current target is 1.8) jvm target compatibility should be set to the same Java version.
Please, do we have any idea when we may have a release bumping Kotlin?
Thanks
@wilsolutions do you set any kotlin version in your build.gradle file?
@wilsolutions do you set any kotlin version in your build.gradle file?
I do:
kotlinVersion = '1.6.20'
@wilsolutions can you try using version 2.1.5
and send kotlinVersion = '1.8.0'
?
@wilsolutions can you try using version
2.1.5
and sendkotlinVersion = '1.8.0'
?
I will need to revisit this later, I was exploring the possibility of migrating a RN 0.70 App to RN 0.72 when I've found this issue, it will take me a few weeks until I'm able to look at this again...
But I did bump my project to the 2.1.5
version with RN 0.70 and kotlin 1.6.0 and I have no issues.
I'll close this issue for now. I've tested the latest version with kotlin 1.8.0 and it's working.
ItsPleinAir has reported errors trying to build their app.
Is this an issue using more recent Kotlin verions?