Commit Graph

24 Commits (d350d1a04857c182970b989025ae10276f35204e)

Author SHA1 Message Date
Lonami Exo d350d1a048 Load messages from API 2022-10-29 13:06:38 +02:00
Lonami Exo 43421f6e54 Use UDL interface to avoid passing around pointers 2022-10-27 20:12:41 +02:00
Lonami Exo 004a921299 Use UDL dictionaries to simplify return values 2022-10-27 18:42:48 +02:00
Lonami Exo 1a56b03614 Move MessageAck enum to UDL 2022-10-27 18:08:57 +02:00
Lonami Exo 812597f027 Replace manual native bindings with UniFFI 2022-10-27 17:42:55 +02:00
Lonami Exo ea53d3cb1d Add modifier parameter to composables
For context, see:
https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-api-guidelines.md#elements-accept-and-respect-a-modifier-parameter

> Element functions MUST accept a parameter of type Modifier.
> This parameter MUST be named modifier and MUST appear as the
> first optional parameter in the element function's parameter list
2022-10-24 14:15:20 +02:00
Lonami Exo 35ed8e12c6 Remove unnecessary Card for Dialog 2022-10-24 12:44:41 +02:00
Lonami Exo 0db1599cf7 Remove unnecessary comments from template and stray semicolon 2022-10-24 11:40:29 +02:00
Lonami Exo 50a2403a85 Reformat code in theme package 2022-10-24 11:31:23 +02:00
Lonami Exo 442b019134 Load more dialog data from the API 2022-10-23 20:25:45 +02:00
Lonami Exo 51ef704cf7 Improve dialog screen by displaying more info 2022-10-23 20:01:24 +02:00
Lonami Exo 6c652e3e1b Fix references to DialogRepository and other imports 2022-10-21 20:34:25 +02:00
Lonami Exo 999c59e9ec Create a separate package for UI screens and state 2022-10-21 20:31:29 +02:00
Lonami Exo c627db973c Rename model package to models for consistency 2022-10-21 20:27:33 +02:00
Lonami Exo fc7dc68b62 Rename Source to Repository
This is more in line with the repository
google-developer-training/basic-android-kotlin-compose-training-mars-photos
which contains good practices.
2022-10-21 20:24:29 +02:00
Lonami Exo 189c1e8db8 Use mock dialog values in preview 2022-10-21 14:19:34 +02:00
Lonami Exo 476f80cb5e Integrate with Telegram's API 2022-10-12 21:26:51 +02:00
Lonami Exo fee6c52606 Add navigation 2022-10-12 11:44:38 +02:00
Lonami Exo 6e856fa70f Use atomic state update in chat view model 2022-10-11 21:37:42 +02:00
Lonami Exo 57cc2119dd Scroll to the bottom on sending a message 2022-10-11 21:34:18 +02:00
Lonami Exo 29c164c4ae Add a text field to send messages 2022-10-11 21:26:11 +02:00
Lonami Exo 3a8b2b4e32 Create view models for chat and dialog UI 2022-10-11 20:58:40 +02:00
Lonami Exo aeaf831edb Separate screen code into different files 2022-10-11 20:10:31 +02:00
Lonami Exo 0abdd79f72 Initial Commit 2022-10-11 10:51:26 +02:00