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

[Wiki] Using libGDX with Scala #154

Open
myyk opened this issue Sep 7, 2023 · 2 comments
Open

[Wiki] Using libGDX with Scala #154

myyk opened this issue Sep 7, 2023 · 2 comments
Labels
PRs welcome Feel free to submit a PR for this

Comments

@myyk
Copy link

myyk commented Sep 7, 2023

Hi there,

I'm just learning libGDX now and reading the docs and cross checking along the way, so I'm not yet comfortable to suggest an edit. I'm also new to Android and game programming.

I was reading https://libgdx.com/wiki/jvm-langs/using-libgdx-with-scala and it mentions:

In the dependencies include the scala library: compile "org.scala-lang:scala-library:2.11.12" (Scala 2.12.* requires java 8, but the majority of Android devices don’t support it)

From what I can tell, this is out of date. It seems to me like Android API level 33+ is required now - https://developer.android.com/google/play/requirements/target-sdk, which brings with it Java 11, I think. Also, I think Scala 2.13.11 and 3.3.0 seem to be mostly compatible with Java 8 and fully with later versions (Java 11).

Does anyone know if there are limitations that would make us not want to update the docs to suggest to use Scala 2.13.11 or 3.3.0?

@crykn
Copy link
Member

crykn commented Sep 12, 2023

I don't think there are a lot of Scala users to be found around here. The wiki page has been basically unchanged since 2015 and the note about Java 8 was added in 2018.

Apparently, there were (and maybe still are?) some issues with Android and later Scala versions, see here for example. Most of those seem to be resolved now, but I think it'd be nice to verify that before we change anything on the wiki. Ideally, we'd rewrite the whole wiki page if someone gets libGDX and Scala running in 2023.

@myyk
Copy link
Author

myyk commented Sep 13, 2023

I made some progress getting Scala 3 working with libgdx on Gradle but I was eventually defeated while trying to get R8 to dex the scala-library.jar.

My knowledge level for this was too limited and I switched to Kotlin so I'm not flying solo.

@crykn crykn changed the title Scala Support Docs Question [Wiki] Using libGDX with Scala Sep 26, 2023
@crykn crykn added the PRs welcome Feel free to submit a PR for this label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PRs welcome Feel free to submit a PR for this
Projects
None yet
Development

No branches or pull requests

2 participants