Skip to content

Commit

Permalink
graphql client
Browse files Browse the repository at this point in the history
  • Loading branch information
joreilly committed Jan 25, 2022
1 parent 539d27f commit ee1fd99
Show file tree
Hide file tree
Showing 53 changed files with 995 additions and 590 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package com.surrus.peopleinspace

import com.surrus.common.remote.Assignment
import com.surrus.common.remote.IssPosition
import com.surrus.common.model.Assignment
import com.surrus.common.model.IssPosition
import com.surrus.common.repository.PeopleInSpaceRepositoryInterface
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flowOf

class PeopleInSpaceRepositoryFake: PeopleInSpaceRepositoryInterface {
val peopleList = listOf(Assignment("Apollo 11", "Neil Armstrong"),
Assignment("Apollo 11", "Buzz Aldrin"))
Assignment("Apollo 11", "Buzz Aldrin")
)

val issPosition = IssPosition(53.2743394, -9.0514163)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import androidx.glance.layout.padding
import androidx.glance.text.FontWeight
import androidx.glance.text.TextStyle
import androidx.glance.unit.ColorProvider
import com.surrus.common.remote.Assignment
import com.surrus.common.model.Assignment
import com.surrus.common.repository.PeopleInSpaceRepositoryInterface
import com.surrus.peopleinspace.glance.util.BaseGlanceAppWidget
import kotlinx.coroutines.flow.first
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import androidx.compose.ui.semantics.SemanticsPropertyKey
import androidx.compose.ui.semantics.SemanticsPropertyReceiver
import androidx.compose.ui.semantics.semantics
import androidx.compose.ui.viewinterop.AndroidView
import com.surrus.common.remote.IssPosition
import com.surrus.common.model.IssPosition
import com.surrus.peopleinspace.util.collectAsStateWithLifecycle
import org.koin.androidx.compose.getViewModel
import org.osmdroid.util.GeoPoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import androidx.navigation.compose.currentBackStackEntryAsState
import com.google.accompanist.navigation.animation.AnimatedNavHost
import com.google.accompanist.navigation.animation.composable
import com.google.accompanist.navigation.animation.rememberAnimatedNavController
import com.surrus.common.remote.Assignment
import com.surrus.common.model.Assignment

class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.surrus.peopleinspace.ui

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.surrus.common.remote.Assignment
import com.surrus.common.model.Assignment
import com.surrus.common.repository.PeopleInSpaceRepositoryInterface
import kotlinx.coroutines.flow.SharingStarted
import kotlinx.coroutines.flow.stateIn
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.surrus.peopleinspace.ui

import androidx.compose.ui.tooling.preview.datasource.CollectionPreviewParameterProvider
import com.surrus.common.remote.Assignment
import com.surrus.common.model.Assignment

class PersonProvider : CollectionPreviewParameterProvider<Assignment>(
listOf(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import coil.compose.rememberImagePainter
import com.surrus.common.remote.Assignment
import com.surrus.common.model.Assignment
import org.koin.androidx.compose.getViewModel

const val PersonListTag = "PersonList"

@Composable
fun PersonListScreen(paddingValues: PaddingValues = PaddingValues(),
personSelected: (person: Assignment) -> Unit,
peopleInSpaceViewModel: PeopleInSpaceViewModel = getViewModel()
personSelected: (person: Assignment) -> Unit,
peopleInSpaceViewModel: PeopleInSpaceViewModel = getViewModel()
) {
val peopleState = peopleInSpaceViewModel.peopleInSpace.collectAsState()

Expand Down
1 change: 0 additions & 1 deletion backend/.gitignore

This file was deleted.

37 changes: 0 additions & 37 deletions backend/build.gradle.kts

This file was deleted.

2 changes: 0 additions & 2 deletions backend/src/main/appengine/app.yaml

This file was deleted.

Loading

0 comments on commit ee1fd99

Please sign in to comment.