Compare commits
3 Commits
9d665cf4e9
...
67f8e89598
Author | SHA1 | Date | |
---|---|---|---|
67f8e89598 | |||
987116e877 | |||
7fa3f21e30 |
@ -58,7 +58,7 @@ dependencies {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
def room_version = '2.4.0'
|
||||
def room_version = "2.4.1"
|
||||
|
||||
implementation "androidx.room:room-runtime:$room_version"
|
||||
annotationProcessor "androidx.room:room-compiler:$room_version"
|
||||
@ -76,7 +76,7 @@ dependencies {
|
||||
testImplementation "androidx.room:room-testing:$room_version"
|
||||
|
||||
// optional - Paging 3 Integration
|
||||
implementation 'androidx.room:room-paging:2.4.0'
|
||||
implementation "androidx.room:room-paging:$room_version"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
@ -0,0 +1,6 @@
|
||||
query GetChats($id: ID!, $pw: String!){
|
||||
chats(user: $id, passwordHash: $pw){
|
||||
id
|
||||
users
|
||||
}
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
query GetGroupChats($id: ID!, $pw: String!){
|
||||
groupChats(user: $id, passwordHash: $pw){
|
||||
id
|
||||
users
|
||||
title
|
||||
description
|
||||
}
|
||||
}
|
@ -51,7 +51,7 @@ class MainActivity : AppCompatActivity() {
|
||||
val text: TextView = findViewById<TextView>(R.id.testData)
|
||||
|
||||
lifecycleScope.launchWhenResumed {
|
||||
val response = apolloClient.query(GetUsersQuery()).execute()
|
||||
val response = apolloClient.query(GetGroupChatsQuery("7bea8833b6d64a37ae0949619e06b692", "1234567890")).execute()
|
||||
|
||||
//Log.d("LaunchList", "Success ${response.data}")
|
||||
text.text = response.data.toString()
|
||||
|
@ -10,12 +10,12 @@ import androidx.lifecycle.ViewModelProvider
|
||||
import androidx.lifecycle.lifecycleScope
|
||||
import org.ddnss.sfs.git.wdg.noise.GetUsersQuery
|
||||
import org.ddnss.sfs.git.wdg.noise.apolloClient
|
||||
import org.ddnss.sfs.git.wdg.noise.databinding.FragmentGalleryBinding
|
||||
import org.ddnss.sfs.git.wdg.noise.databinding.FragmentSettingsBinding
|
||||
|
||||
class GalleryFragment : Fragment() {
|
||||
|
||||
private lateinit var galleryViewModel: GalleryViewModel
|
||||
private var _binding: FragmentGalleryBinding? = null
|
||||
private var _binding: FragmentSettingsBinding? = null
|
||||
|
||||
// This property is only valid between onCreateView and
|
||||
// onDestroyView.
|
||||
@ -31,7 +31,7 @@ class GalleryFragment : Fragment() {
|
||||
galleryViewModel =
|
||||
ViewModelProvider(this).get(GalleryViewModel::class.java)
|
||||
|
||||
_binding = FragmentGalleryBinding.inflate(inflater, container, false)
|
||||
_binding = FragmentSettingsBinding.inflate(inflater, container, false)
|
||||
val root: View = binding.root
|
||||
|
||||
return root
|
||||
|
@ -15,5 +15,5 @@
|
||||
android:id="@+id/nav_gallery"
|
||||
android:name="org.ddnss.sfs.git.wdg.noise.ui.gallery.GalleryFragment"
|
||||
android:label="@string/menu_settings"
|
||||
tools:layout="@layout/fragment_gallery" />
|
||||
tools:layout="@layout/fragment_settings" />
|
||||
</navigation>
|
Loading…
Reference in New Issue
Block a user