gradlekotlinize icon indicating copy to clipboard operation
gradlekotlinize copied to clipboard

Update to the newest GradleKotlinConverter

Open arifaizin opened this issue 1 year ago • 3 comments

hello, I try and it has different result with the terminal version of GradleKotlinConverter

The different is apps will result error if there is compileOptions,

Beside that, there is no parenthesis at implementation conversion.

I have tried the terminal version, and it running well. So, I thing the problem is the code is not updated. Thanks!

arifaizin avatar Jul 26 '23 08:07 arifaizin

Hello, This may be due to some changes I had to make in order to compile the code on the Javascript backend, as there are some regex flags that are used that are not available on Kotlin/JS. I hoped they would add them, but so far they haven't.

cvb941 avatar Jul 26 '23 08:07 cvb941

Okay, thanks for the updates. We hope they can update it, we really depend on this feature because in the new Android Studio (Giraffe) using KTS as default.

Btw, I will help to create issue to that repo, can you define the specific problem?

arifaizin avatar Jul 31 '23 02:07 arifaizin

You can try pasting the code from the original repo into my project.

You should get errors for missing RegexOption enums, as you can see on the Kotlin Docs, they are not available for Kotlin/JS.

It would be necessary to remove those missing options and adjust each affected regex to maintain their original behaviour.

cvb941 avatar Jul 31 '23 06:07 cvb941

I made a new version of my converter in a web version inspired by you: https://gradle-kotlin-converter.vercel.app/

bernaferrari avatar Sep 25 '24 20:09 bernaferrari