Skip to content

Commit

Permalink
fix formatting so it passes ktlint (configured with -a option) at com…
Browse files Browse the repository at this point in the history
…mand line
  • Loading branch information
Tim-Rapp authored and tiembo committed Aug 5, 2020
1 parent a4e9eac commit 281309e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ interface UnsplashService {
@Query("page") page: Int,
@Query("per_page") perPage: Int,
@Query("client_id") clientId: String = BuildConfig.UNSPLASH_ACCESS_KEY
) : UnsplashSearchResponse
): UnsplashSearchResponse

companion object {
private const val BASE_URL = "https://api.unsplash.com/"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import com.google.samples.apps.sunflower.api.UnsplashService

private const val UNSPLASH_STARTING_PAGE_INDEX = 1

class UnsplashPagingSource (
class UnsplashPagingSource(
private val service: UnsplashService,
private val query: String
) : PagingSource<Int, UnsplashPhoto>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ import com.google.gson.annotations.SerializedName
* For more details, consult the API documentation
* [here](https://unsplash.com/documentation#example-image-use).
*/
data class UnsplashPhotoUrls (
data class UnsplashPhotoUrls(
@field:SerializedName("small") val small: String
)
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import androidx.paging.PagingData
import com.google.samples.apps.sunflower.api.UnsplashService
import kotlinx.coroutines.flow.Flow

class UnsplashRepository (private val service: UnsplashService) {
class UnsplashRepository(private val service: UnsplashService) {

fun getSearchResultStream(query: String): Flow<PagingData<UnsplashPhoto>> {
return Pager(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import com.google.gson.annotations.SerializedName
* project are listed below. For a full list of fields, consult the API documentation
* [here](https://unsplash.com/documentation#get-a-users-public-profile).
*/
data class UnsplashUser (
data class UnsplashUser(
@field:SerializedName("name") val name: String,
@field:SerializedName("username") val username: String
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.google.samples.apps.sunflower.data.UnsplashRepository

class GalleryViewModelFactory (
class GalleryViewModelFactory(
private val unsplashRepository: UnsplashRepository
) : ViewModelProvider.Factory {

Expand Down

0 comments on commit 281309e

Please sign in to comment.