-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into fix/#330-calendar_…
…touch_area
- Loading branch information
Showing
24 changed files
with
190 additions
and
149 deletions.
There are no files selected for viewing
8 changes: 7 additions & 1 deletion
8
core/designsystem/src/main/java/com/terning/core/designsystem/util/CalendarDefaults.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
package com.terning.core.designsystem.util | ||
|
||
import com.terning.core.designsystem.extension.currentMonth | ||
import com.terning.core.designsystem.extension.currentYear | ||
import java.util.Calendar | ||
|
||
object CalendarDefaults { | ||
const val START_YEAR = 2010 | ||
const val END_YEAR = 2030 | ||
val END_YEAR = | ||
if (Calendar.getInstance().currentMonth >= 10) Calendar.getInstance().currentYear + 1 | ||
else Calendar.getInstance().currentYear | ||
const val START_MONTH = 1 | ||
const val END_MONTH = 12 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
data/search/src/main/java/com/terning/data/search/dto/response/SearchBannersResponseDto.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.terning.data.search.dto.response | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class SearchBannersResponseDto( | ||
@SerialName("banners") | ||
val banners: List<BannerDto>, | ||
) { | ||
@Serializable | ||
data class BannerDto( | ||
@SerialName("imageUrl") | ||
val imageUrl: String, | ||
@SerialName("link") | ||
val link: String, | ||
) | ||
} |
13 changes: 13 additions & 0 deletions
13
data/search/src/main/java/com/terning/data/search/mapper/SearchBannersMapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.terning.data.search.mapper | ||
|
||
import com.terning.data.search.dto.response.SearchBannersResponseDto | ||
import com.terning.domain.search.entity.SearchBanner | ||
|
||
fun SearchBannersResponseDto.toSearchBannerList(): List<SearchBanner> { | ||
return banners.map { | ||
SearchBanner( | ||
imageUrl = it.imageUrl, | ||
url = it.link, | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
domain/search/src/main/java/com/terning/domain/search/entity/SearchBanner.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package com.terning.domain.search.entity | ||
|
||
data class SearchBanner( | ||
val imageRes: Int, | ||
val url: String | ||
val imageUrl: String, | ||
val url: String, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.