Scala on Android

544 Members
Write Android apps in Scala! - scala-android.org2 Servers

Load older messages

19 Sep 2022
@_discord_192322936219238400:t2bot.ioAly afair we need shared lib generation 17:41:04
@_discord_632729825647525922:t2bot.ioekrich#7695 You have to call the application from a Java app - can't start a Process to run native? 17:43:00
@_discord_632729825647525922:t2bot.ioekrich#7695 It would be great if someone could verify that the Scala Native branch would work. 17:55:52
@_discord_154558903290560512:t2bot.ioJD557#8432 I think there was a discussion about that in the Native chat (https://discord.com/channels/632150470000902164/635668881951686686/1017347650594545664) but IIRC it would require scala-native to support JNI to get access to the Java-side APIs or something like that? 17:59:01
@_discord_632729825647525922:t2bot.ioekrich#7695 The shared library is different though so you could call it via Java and JNI. There was a demo of that someone did - maybe they should add a link to the PR - I am interested in this subject because I have done and am working on the Scala plugin. 18:07:52
@ak5fc:matrix.orgmrt joined the room.18:43:01
@ak5fc:matrix.orgmrt Hi. I try to develop a cross platform application, in particular including Android. I currently use the stack with gradle, scala 3, javafx. JavaFX is o.k., but I dislike that I would have to pay for it (not per se, but just because I am not certain whether this private project will pay off in case I go from private fun to commercial). So, I am wondering whether there are any good alternatives. I was thinking of using a two component architecture, with a JVM (Scala) backend and some browser-based frontend. For the browser part I'd probably use Scala.js. But then, I am wondering, how to deploy a two component application on an Android device. How can I run both components -- a webapplication in a browser for the UI and a server for he backend -- from a single APK? 18:58:25
In reply to @_discord_633374588629417994:t2bot.io
Yeah, I have seen this one. It uses GraalVM native image and JavaFX which is king of non-standard way of doing things on Android. In my experience native-image is painful to work with. My projects often failed to build after version updates (either GraalVM and/or Scala) and build time is unacceptably long.
And it needs a lot of memory!
20 Sep 2022
@_discord_736426164649853008:t2bot.iojkugiya joined the room.01:02:14
@_discord_402027995021443073:t2bot.iocheeze#2000 changed their profile picture.01:32:23
@_discord_981229229108781136:t2bot.iodrsocks changed their display name from drsocks to drsocks#0741.12:00:25
@_discord_981229229108781136:t2bot.iodrsocks changed their display name from drsocks#0741 to drsocks.12:00:33
@_discord_678756594842075146:t2bot.ioveegee joined the room.18:54:51
@_discord_163947104476200960:t2bot.ioTheElectronWill#4242 Isn't OpenJFX a free software?
@_discord_163947104476200960:t2bot.ioTheElectronWill#4242 * Isn't OpenJFX a free software?
https://openjfx.io/ reads "licensed under the GPL with the classpath exception"
21 Sep 2022
@_discord_631855417747832833:t2bot.iosideeffffect#8379 But Gluon isn't AFAIK 00:59:38
@_discord_1022043523199021056:t2bot.iovalerie_pe joined the room.07:18:27
@_discord_1022135739414220870:t2bot.iolilyevsky joined the room.13:33:11
@_discord_640118731174838272:t2bot.iomakingthematrix#9466 sideeffffect MrT
If you want to release your Android app for free, you can write to Gluon and ask for a free license.
@_discord_640118731174838272:t2bot.iomakingthematrix#9466 vitaly :
Since it's cross-platform, you can test it as a standard JVM app, and only when this works, compile it to Android. It still needs to be tested on Android, but it saves a lot of time.
22 Sep 2022
@kucoin-id:matrix.org@kucoin-id:matrix.org joined the room.19:10:52
@kucoin-id:matrix.org@kucoin-id:matrix.org left the room.20:08:24
@_discord_1022603280494379059:t2bot.iobsd joined the room.20:26:10
@coin_ex_exchange:matrix.org@coin_ex_exchange:matrix.org joined the room.20:48:40
23 Sep 2022
@_discord_738055209581805590:t2bot.iofirehooper joined the room.12:29:07
@_discord_153577795698556928:t2bot.ioRyMi joined the room.14:33:38
@_discord_959258912308199505:t2bot.ioAleja joined the room.17:40:18
@coin_ex_exchange:matrix.org@coin_ex_exchange:matrix.org left the room.19:37:54
24 Sep 2022
@_discord_604721821639507968:t2bot.iohchadswe1 joined the room.09:27:20
25 Sep 2022
@_discord_105318445331030016:t2bot.ioOlli joined the room.11:34:41

There are no newer messages yet.

Back to Room List