Skip to content

Latest commit

ย 

History

History
88 lines (66 loc) ยท 2.74 KB

README.md

File metadata and controls

88 lines (66 loc) ยท 2.74 KB

แ„€แ…ตแ†บแ„’แ…ฅแ„‡แ…ณแ„‹แ…ตแ„†แ…ตแ„Œแ…ต

๐Ÿ”ฎ About

ํ•˜๋‚˜์˜ ์ฃผ์ œ์— ๋Œ€ํ•œ ๋‹ค์–‘ํ•œ ์ƒ๊ฐ๋“ค์„ ๊ธฐ๋กํ•  ์ˆ˜ ์žˆ๋Š” ์„œ๋น„์Šค

๊ฐœ๋ฐœ๊ธฐ๊ฐ„

2022.08. ~ 2023.02. (๋ฒ„์ „ 1.0.0)
2023.02. ~ 2023.10. (๋ฒ„์ „ 1.1.0)
2023.10. ~

PlayStore

https://play.google.com/store/apps/details?id=com.w36495.about

Index


๋นŒ๋“œ ํ™˜๊ฒฝ

Version
Android Gradle Plugin 7.3.1
Gradle Version 7.4
minSdk 21
targetSdk 33

์‚ฌ์šฉ ๊ธฐ์ˆ 

  • Kotlin
  • MVP(Model-View-Presenter)
  • Coroutine + Flow
  • viewBinding
  • Room Database
  • Jetpack Navigation

๋ฐ์ดํ„ฐ ํ๋ฆ„

แ„ƒแ…ฆแ„‹แ…ตแ„แ…ฅแ„’แ…ณแ„…แ…ณแ†ท


๊ธฐ๋Šฅ

แ„€แ…ตแ„‚แ…ณแ†ผแ„‰แ…ฉแ„€แ…ข2

Trouble Shooting

์ฃผ์ œ ๋ชฉ๋ก์— ํ•ด๋‹นํ•˜๋Š” ์ด ์ƒ๊ฐ ๊ฐœ์ˆ˜๊ฐ€ ์ผ์น˜ํ•˜์ง€ ์•Š๋Š” ๋ฌธ์ œ

  • ๋ฌธ์ œ ์ƒํ™ฉ

    แ„‡แ…ฅแ„€แ…ณ_แ„‰แ…ขแ†ผแ„€แ…กแ†จแ„€แ…ขแ„‰แ…ฎ

    • '์ทจ๋ฏธ' ๋ชฉ๋ก์˜ ์ƒ๊ฐ ๊ฐœ์ˆ˜์™€ '๋…์„œ' ๋ชฉ๋ก์˜ ์ƒ๊ฐ ๊ฐœ์ˆ˜๊ฐ€ ์ผ์น˜ํ•จ (๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์—๋Š” ์ผ์น˜ํ•˜์ง€ ์•Š์Œ)
  • ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• (๋งํฌ)

    • ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ topics ํ…Œ์ด๋ธ”๊ณผ thinks ํ…Œ์ด๋ธ”์„ ์กฐ์ธํ•˜์—ฌ select query ๋ฌธ ์ ์šฉ
    SELECT topics.id, topics.topic, COUNT(topicId) AS countOfThink, topics.registDate, topics.updateDate
    FROM topics
    LEFT JOIN thinks ON topics.id = thinks.topicId
    GROUP BY topics.id

์ƒ๊ฐ ํ™”๋ฉด์—์„œ Item์„ ์‚ญ์ œํ–ˆ์„ ๋•Œ NullPointerException ๋ฐœ์ƒ

  • ๋ฌธ์ œ ์ƒํ™ฉ

    แ„‰แ…ขแ†ผแ„€แ…กแ†จแ„‰แ…กแ†จแ„Œแ…ฆ-แ„‡แ…ฅแ„€แ…ณ

    • ์•„์ดํ…œ ์‚ญ์ œ ์‹œ, NullPointerException ๋ฐœ์ƒํ•˜๋ฉฐ ์•ฑ ์ข…๋ฃŒ
  • ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• (๋งํฌ)

    • UiState ํด๋ž˜์Šค์—์„œ ๋ฐ์ดํ„ฐ๋ฅผ ๊ฐ€์ ธ์˜ฌ ๋•Œ ํ˜ธ์ถœ๋˜๋Š” Success ํด๋ž˜์Šค์˜ ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ nullable ๋กœ ๋ณ€๊ฒฝ
    • ์ƒ๊ฐ ํ™”๋ฉด์—์„œ ๋ฐ์ดํ„ฐ๋ฅผ ๊ด€์ฐฐํ•  ๋•Œ, ๊ฐ’์ด null ์ธ ๊ฒฝ์šฐ popBackStack() ์„ ํ†ตํ•ด ์ด์ „ ํ™”๋ฉด์œผ๋กœ ์ด๋™ ์ฒ˜๋ฆฌ

ํ•™์Šตํ•œ ๋‚ด์šฉ

1) MVP ๋””์ž์ธ ํŒจํ„ด์—์„œ View ์™€ Presenter ๊ฐ€ 1:1 ๋กœ ๋Œ€์‘๋˜์–ด์•ผ ํ•˜๋Š” ์ด์œ