Skip to content

Commit

Permalink
Release 3.1.1 (#54)
Browse files Browse the repository at this point in the history
* release Siksha 3.1.0-rc1

* release Siksha 3.1.0

* fix sementicVersionToSerializedCode

* give change to sikshaVersion

* release Siksha 3.1.0

* api fix

* release 3.1.1

* ํ•˜๋“œ์ฝ”๋”ฉ ํ”ผํ•˜๊ธฐ

* ktlint reformat

---------

Co-authored-by: eastshine2741 <[email protected]>
  • Loading branch information
wjshim2003 and eastshine2741 authored Jan 14, 2024
1 parent 648658f commit 1dbc140
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ interface SikshaApi {
suspend fun fetchReviews(
@Query("menu_id") menuId: Long,
@Query("page") page: Long,
@Query("perPage") perPage: Long
@Query("per_page") perPage: Long
): FetchReviewsResult

@GET("/reviews/filter")
suspend fun fetchReviewsWithImage(
@Query("menu_id") menuId: Long,
@Query("page") page: Long,
@Query("perPage") perPage: Long,
@Query("per_page") perPage: Long,
@Query("etc") etc: Boolean = true
): FetchReviewsResult

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class MenuReviewPagingSource(
return try {
val response = api.fetchReviews(menuId, key, params.loadSize.toLong())
val prevKey = if (key == 1L) null else key - 1
val nextKey = if (response.result.isEmpty()) null else key + 1
val nextKey = if (response.result.isEmpty()) null else if (key == STARTING_PAGE_INDEX) key + params.loadSize / PAGE_LOAD_SIZE else key + 1

LoadResult.Page(
response.result,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class MenuReviewWithImagePagingSource(
return try {
val response = api.fetchReviewsWithImage(menuId, key, params.loadSize.toLong())
val prevKey = if (key == 1L) null else key - 1
val nextKey = if (response.result.isEmpty()) null else key + 1
val nextKey = if (response.result.isEmpty()) null else if (key == STARTING_PAGE_INDEX) key + params.loadSize / PAGE_LOAD_SIZE else key + 1

LoadResult.Page(
response.result,
Expand Down
2 changes: 1 addition & 1 deletion version.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sikshaVersion=3.1.0
sikshaVersion=3.1.1

0 comments on commit 1dbc140

Please sign in to comment.