Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Maciej Gorywoda
@makingthematrix
@chenakam : I'm kind of disappointed with the current state of Android widgets, tbh. I don't say JavaFX is better, but especially since Android 11 came out, my work is mostly about fixing bugs which are there in our app because the new SDK broke something. I would really like to have an alternative.

By the way, I decided to dig a bit deeper into JavaFX widgets. I want towrite more examples, each one testing one of the main features and Android app should have. The first one (well, second, if I count the dummy one) is based on "Fifty States" from Gluon Mobile samples. It's a scrollable list of European Union countries and Scotland. The flags of countries are being downloaded from Wikipedia in the run time and stored in a file cache.

I also added some notes about problems I faced, how you can write this from scratch, and what next I want to do.
Here's the link to GitHub: https://github.com/makingthematrix/scalaonandroid/wiki/European-Union-(and-Scotland)-example

Ondra Pelech
@sideeffffect
I awesome to hear that one can use Scala to build Android apps again! :tada:
Have you had any experience developing Android apps with Scala and React Native? ( https://slinky.dev/docs/native-and-vr/ )
If yes, how would you compare these two approaches? Scala+Gluon+GraalVM vs Scala.js+Slinky+ReactNative
Maciej Gorywoda
@makingthematrix
@sideeffffect : No, I didn't use React. But the last few years I work on Wire, an encrypted messager, in the Android team. We slowly migrate the codebase to Kotlin, but still 2/3 of it is in Scala (but it's Scala 2.11).
Chenai Nakam
@chenakam
@makingthematrix Android's component library is a bit complicated, due to the legacy issues of various versions.
And I just looked at Gluon and expect it to beat Flutter. It's worth a try.
Maciej Gorywoda
@makingthematrix
yup :)
Shafqat Ullah
@shafqatevo
A bit off-topic: does anyone here have experience with using Akka from a Kotlin Android app? What's the simplest way to go about it?
Shafqat Ullah
@shafqatevo
Our goal is to reuse certain Akka ActorSystems from backend in the Android app code
Maciej Gorywoda
@makingthematrix
@shafqatevo : You probably want to into the Java side of Akka (wow, the sound of it...) : https://developer.lightbend.com/guides/akka-quickstart-java/?_ga=2.162834234.724702319.1611691699-389016145.1611581822
From there it shouldn't be much trouble to use it in Kotlin
Chenai Nakam
@chenakam
直接用 Scala 写 Android app 不好吗?
Maciej Gorywoda
@makingthematrix
Hey,
A month ago I had a talk about Scala on Android on the ScalaLove conference. The video has just been published. And I also turned the transcription into a blog post:
https://makingthematrix.wordpress.com/2021/03/17/scala-on-android/
And here's a direct link to the video: https://youtu.be/i_fWL0tEsVM
Bjorn Regnell
@bjornregnell
coool! great talk! very interesting!!
Bjorn Regnell
@bjornregnell
perhaps this gitter thread should be renamed scala-android as it is about more then "just" the sbt plugin...
Bjorn Regnell
@bjornregnell
@makingthematrix I hope your interesting and enlightening talk will trigger the scala-android community to start experimenting with your stack. I'll have a go when I get some time over!
Maciej Gorywoda
@makingthematrix
@bjornregnell : Hey, thanks! :) I think a Gitter channel is linked to the repository. But if there's enough interest, maybe we can get a channel on one of Discord servers for learning Scala (I know about three already. Happy times.)
Maciej Gorywoda
@makingthematrix
It looks like things work pretty well.
Maciej Gorywoda
@makingthematrix

Hey,

We got an #android channel on the "Learning Scala" Discord for all things connected to Scala on Android:
https://discord.gg/XHMt6Yq4

Maciej Gorywoda
@makingthematrix
Aaaand now we also have an #scala-android channel on the official Scala discord: https://discord.gg/jn35GMzG
#Ivan0 -RooT
@ndr0cchiett0_twitter
HI All, I am a kotlin programmer and my colleague working on Scala Android got sick and cannot run his project
I get as cannot resolve R symbol, namely the system does not recognize the resources
SaMkiT Sharma
@samkitsharma_twitter
Hey guys
I came across this hack challenge for enhancing Android Libraries, thought of sharing it with you all, it has a cash prize of up to 10 lakh
I submitted my idea, you guys can also participate.
https://www.incubateind.com/hack/libathon
Ondra Pelech
@sideeffffect

In case you didn't know, there's this open PR
scala/scala#9752

ClassValueCompat to support systems without java.lang.ClassValue
The goal of this commit is to enable systems without java.lang.ClassValue to fall back to other method which does not utilize java.lang.ClassValue while keeping its current behavior as how it is for systems with java.lang.ClassValue. Use of java.lang.ClassValue seems mainly for caching as #7879 introduced, so I ran a related benchmark from one of the commits and got following results
...
This commit combined with #9739 will open Scala 2.13.x to wider range of systems including Android as discussed and demonstrated at users.scala-lang.org/t/scala-2-13-on-android/7235/24

1 reply