Bryan L

06/04/2021, 2:54 PM
Day 67
• Listened to Jetpack Compose Compilation by Android Developers Backstage podcast on Spotify • Implement basic login / register in Compose ◦ Screens & Navigation implemented ◦ App now connects to network to register / login user • Worked on implementing DataStore
• Basic Login / Register page set up with a few simple animations added ◦ Navigate LoginScreen <-> RegisterScreen ◦ Password visiblity option, Button is only enabled no field is empty & passwords match(register screen) ◦ password/confirmed password change to green when both match & are not empty. Confirmed password is red when focused and does not match password ◦ I could dive much further into prettying this up, but functioning features take priority • Had some trouble connecting to server through Daily Doc. After some trial & error and hours later, it turned out I had the wrong BASE_URL saved (https not http) as I haven't added the security/keystore yet. • DataStore is sure giving me a tough time! I'm still having trouble comprehending how it's used. Shared Preferences seemed much easier.. I'm definitely missing the connection, once I figure it out I'll be set(hopefully tomorrow). After some hours researching and failing to implement, I decided to sleep on it and continue implementing tomorrow.
Goals Tomorrow
• Continue working on Daily Doc ◦ Finish implementing DataStore
Issue with Ktor server
Exception in thread "main" java.lang.IllegalArgumentException: Neither port nor sslPort specified. Use command line options -port/-sslPort or configure connectors in application.conf
Fixed by File > Settings > Other Settings > Kotlin Compiler > Change Target JVM Version from 1.6 to 1.8
Spent a few hours on the following error.
2021-06-04 16:01:24.296 1902-1902/? E/netmgr: Failed to open QEMU pipe 'qemud:network': Invalid argument
2021-06-04 16:01:27.012 2440-3177/? E/ActivityThread: Failed to find provider info for
2021-06-04 16:01:27.275 1905-1905/? E/wifi_forwarder: RemoteConnection failed to initialize: RemoteConnection failed to open pipe
Finally tracked it down after trial & error. Made a simple mistake. I had the wrong BASE_URL as I haven't implemented security features yet utilizing keystore Changed:
const val BASE_URL = "<>"
const val BASE_URL = "<>"
😆🤦‍♂️ Also added code below to AndroidManifest.xml