Compare commits

..

No commits in common. "67f8e89598923b7cf862a5d34b40a08e9eafc7ed" and "9d665cf4e941d3e14eb0c43a9ef2b8ba2d2b8c7d" have entirely different histories.

7 changed files with 7 additions and 21 deletions

View File

@ -58,7 +58,7 @@ dependencies {
} }
dependencies { dependencies {
def room_version = "2.4.1" def room_version = '2.4.0'
implementation "androidx.room:room-runtime:$room_version" implementation "androidx.room:room-runtime:$room_version"
annotationProcessor "androidx.room:room-compiler:$room_version" annotationProcessor "androidx.room:room-compiler:$room_version"
@ -76,7 +76,7 @@ dependencies {
testImplementation "androidx.room:room-testing:$room_version" testImplementation "androidx.room:room-testing:$room_version"
// optional - Paging 3 Integration // optional - Paging 3 Integration
implementation "androidx.room:room-paging:$room_version" implementation 'androidx.room:room-paging:2.4.0'
} }
dependencies { dependencies {

View File

@ -1,6 +0,0 @@
query GetChats($id: ID!, $pw: String!){
chats(user: $id, passwordHash: $pw){
id
users
}
}

View File

@ -1,8 +0,0 @@
query GetGroupChats($id: ID!, $pw: String!){
groupChats(user: $id, passwordHash: $pw){
id
users
title
description
}
}

View File

@ -51,7 +51,7 @@ class MainActivity : AppCompatActivity() {
val text: TextView = findViewById<TextView>(R.id.testData) val text: TextView = findViewById<TextView>(R.id.testData)
lifecycleScope.launchWhenResumed { lifecycleScope.launchWhenResumed {
val response = apolloClient.query(GetGroupChatsQuery("7bea8833b6d64a37ae0949619e06b692", "1234567890")).execute() val response = apolloClient.query(GetUsersQuery()).execute()
//Log.d("LaunchList", "Success ${response.data}") //Log.d("LaunchList", "Success ${response.data}")
text.text = response.data.toString() text.text = response.data.toString()

View File

@ -10,12 +10,12 @@ import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.lifecycleScope import androidx.lifecycle.lifecycleScope
import org.ddnss.sfs.git.wdg.noise.GetUsersQuery import org.ddnss.sfs.git.wdg.noise.GetUsersQuery
import org.ddnss.sfs.git.wdg.noise.apolloClient import org.ddnss.sfs.git.wdg.noise.apolloClient
import org.ddnss.sfs.git.wdg.noise.databinding.FragmentSettingsBinding import org.ddnss.sfs.git.wdg.noise.databinding.FragmentGalleryBinding
class GalleryFragment : Fragment() { class GalleryFragment : Fragment() {
private lateinit var galleryViewModel: GalleryViewModel private lateinit var galleryViewModel: GalleryViewModel
private var _binding: FragmentSettingsBinding? = null private var _binding: FragmentGalleryBinding? = null
// This property is only valid between onCreateView and // This property is only valid between onCreateView and
// onDestroyView. // onDestroyView.
@ -31,7 +31,7 @@ class GalleryFragment : Fragment() {
galleryViewModel = galleryViewModel =
ViewModelProvider(this).get(GalleryViewModel::class.java) ViewModelProvider(this).get(GalleryViewModel::class.java)
_binding = FragmentSettingsBinding.inflate(inflater, container, false) _binding = FragmentGalleryBinding.inflate(inflater, container, false)
val root: View = binding.root val root: View = binding.root
return root return root

View File

@ -15,5 +15,5 @@
android:id="@+id/nav_gallery" android:id="@+id/nav_gallery"
android:name="org.ddnss.sfs.git.wdg.noise.ui.gallery.GalleryFragment" android:name="org.ddnss.sfs.git.wdg.noise.ui.gallery.GalleryFragment"
android:label="@string/menu_settings" android:label="@string/menu_settings"
tools:layout="@layout/fragment_settings" /> tools:layout="@layout/fragment_gallery" />
</navigation> </navigation>