https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
n

Napa Ram

05/18/2021, 8:42 AM
Hi, is there any example using Realm database with KMM as there sample app is not running https://github.com/realm/realm-kotlin/tree/master/examples/kmm-sample
j

John O'Reilly

05/18/2021, 8:47 AM
I've been trying it out in following branch https://github.com/joreilly/FantasyPremierLeague/tree/realm
p

Philipp Mayer

05/18/2021, 8:47 AM
j

John O'Reilly

05/18/2021, 8:47 AM
🙂
p

Philipp Mayer

05/18/2021, 8:47 AM
Oh wow, few seconds late..
j

John O'Reilly

05/18/2021, 8:48 AM
Waiting on JVM support before merging to
main
branch of that repo
👍 1
n

Napa Ram

05/18/2021, 8:51 AM
Thank @John O'Reilly i am going through it Do you have any idea after taking pull from realm-kotlin sample app, am not able to run it, i mean androidApp Configuration it self is not showing
sharing screenshot also
@John O'Reilly @Philipp Mayer same issue i am getting for below example also https://github.com/joreilly/FantasyPremierLeague/tree/realm
i am using Ubuntu and android 4.2.1
sharing screenshot also
j

John O'Reilly

05/18/2021, 8:56 AM
I'll do fresh clone later on and check if it's ok here.....using macOS and AS 4.2 here
n

Napa Ram

05/18/2021, 8:57 AM
i let me check in mac
j

John O'Reilly

05/18/2021, 8:58 AM
are you getting that btw for main branch or when you switch to
realm
one?
n

Napa Ram

05/18/2021, 8:59 AM
i downloaded as zip from realm branch
@Philipp Mayer @John O'Reilly app is crashing on mac running android app below is the issue Process: dev.johnoreilly.fantasypremierleague, PID: 9976   javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
p

Philipp Mayer

05/18/2021, 9:27 AM
Sorry, I can't help you with that, I only knew John wrote about it :)
j

John O'Reilly

05/18/2021, 9:29 AM
hmm, not sure, just cloned that repo and running here and it seems to be ok....what device are you running it on?
n

Napa Ram

05/18/2021, 9:33 AM
Emulator Pixel 2 API 30
j

John O'Reilly

05/18/2021, 9:54 AM
can you try on physical device as well as a test.....pretty sure I've run this on emulator as well but will try that in a while
n

Napa Ram

05/18/2021, 9:55 AM
okay will check on physical device can you please check on Ubuntu why app is not building as i am not able to see androidApp but in MAC i am able to build
j

John O'Reilly

05/18/2021, 9:58 AM
Are you seeing similar apps building ok on Ubuntu?
n

Napa Ram

05/18/2021, 9:59 AM
same app on Ubuntu it's not building but on MAC its building
j

John O'Reilly

05/18/2021, 11:01 AM
What I meant was are you able to build other KMM etc projects ok on Ubuntu there?
n

Napa Ram

05/18/2021, 11:02 AM
Yes i can build other project fine
j

John O'Reilly

05/18/2021, 11:02 AM
KMM projects?
n

Napa Ram

05/18/2021, 11:03 AM
Yes KMM Project
j

John O'Reilly

05/18/2021, 11:03 AM
I don't have Ubuntu setup here but following might have some useful info.....if you find solution then, as always, PRs are warmly welcomed 🙂 https://github.com/joreilly/PeopleInSpace/issues/8
n

Napa Ram

05/18/2021, 11:03 AM
Thanks
j

John O'Reilly

05/18/2021, 11:04 AM
Perhaps try with this project (PeopleInSpace) and if it's ok then there's something specific to the FantasyPremierLeague one
n

Napa Ram

05/18/2021, 11:04 AM
Sure will check
c

Carson Holzheimer

05/18/2021, 11:23 AM
I'm sure I've seen that exception before. Maybe try a newer emulator.
n

Napa Ram

05/19/2021, 12:04 PM
@John O'Reilly I was running App With Emulator x86 CPU Realm support only x86_64 CPU
j

John O'Reilly

05/19/2021, 12:05 PM
Ah, interesting
😀 1
Worth reporting to realm folks