-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from manununhez/epic/40-code-improvement
epic/40-code-improvement
- Loading branch information
Showing
49 changed files
with
727 additions
and
317 deletions.
There are no files selected for viewing
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,4 +1,4 @@ | ||
# PurrfectPics | ||
# PurrfectPics ![ic_launcher_round](https://github.com/manununhez/purrfect-pics/assets/5048531/1fab47b6-03fb-4901-b6c9-0fe60cbaecd1) | ||
|
||
PurrfectPics is your ultimate companion for discovering, customizing, and sharing adorable cat | ||
images on Android. With a wide range of features, PurrfectPics brings joy to every cat lover's | ||
|
@@ -16,23 +16,29 @@ heart. | |
|
||
### Android Libraries | ||
|
||
- **UI Components:** [AndroidX Core KTX](https://developer.android.com/jetpack/androidx/releases/core) | [Material Components for Android](https://github.com/material-components/material-components-android) | [Compose UI](https://developer.android.com/jetpack/androidx/releases/compose-ui) | ||
- **Testing:** [JUnit](https://junit.org/junit5/) | [MockK](https://mockk.io/) | [Turbine](https://github.com/cashapp/turbine) | ||
- **Dependency Injection:** [Hilt](https://developer.android.com/training/dependency-injection/hilt-android) | ||
- **UI Components: | ||
** [AndroidX Core KTX](https://developer.android.com/jetpack/androidx/releases/core) | [Material Components for Android](https://github.com/material-components/material-components-android) | [Compose UI](https://developer.android.com/jetpack/androidx/releases/compose-ui) | ||
- **Testing: | ||
** [JUnit](https://junit.org/junit5/) | [MockK](https://mockk.io/) | [Turbine](https://github.com/cashapp/turbine) | ||
- **Dependency Injection: | ||
** [Hilt](https://developer.android.com/training/dependency-injection/hilt-android) | ||
- **Coroutines:** [Kotlin Coroutines](https://kotlinlang.org/docs/coroutines-overview.html) | ||
- **Networking:** [Retrofit](https://square.github.io/retrofit/) | ||
- **Image Loading:** [Coil](https://coil-kt.github.io/coil/) | ||
|
||
### Compose Libraries | ||
|
||
- **UI Components:** [Material3](https://developer.android.com/jetpack/androidx/releases/compose-material3) | [Compose UI](https://developer.android.com/jetpack/androidx/releases/compose-ui) | ||
- **Navigation:** [Navigation Compose](https://developer.android.com/jetpack/androidx/releases/navigation) | [Hilt Navigation Compose](https://developer.android.com/training/dependency-injection/hilt-android#navigation-compose) | ||
- **Material Design:** [Material Components for Android](https://github.com/material-components/material-components-android) | ||
- **UI Components: | ||
** [Material3](https://developer.android.com/jetpack/androidx/releases/compose-material3) | [Compose UI](https://developer.android.com/jetpack/androidx/releases/compose-ui) | ||
- **Navigation: | ||
** [Navigation Compose](https://developer.android.com/jetpack/androidx/releases/navigation) | [Hilt Navigation Compose](https://developer.android.com/training/dependency-injection/hilt-android#navigation-compose) | ||
- **Material Design: | ||
** [Material Components for Android](https://github.com/material-components/material-components-android) | ||
|
||
## Screenshots | ||
|
||
| ![Screenshot 2024-04-15 at 6 34 16 PM](https://github.com/manununhez/purrfect-pics/assets/5048531/a8024c0c-e31f-4189-b268-1167048658ad) | ![Screenshot 2024-04-15 at 6 35 33 PM](https://github.com/manununhez/purrfect-pics/assets/5048531/1a72c5ea-ee22-4470-8e98-6215ebb86924) | ![Screenshot 2024-04-15 at 6 36 08 PM](https://github.com/manununhez/purrfect-pics/assets/5048531/c31637d7-ddfe-436a-8e16-d27244d638ea) | | ||
|---|---|---| | ||
| ![Screenshot 2024-04-16 at 10 26 30 AM](https://github.com/manununhez/purrfect-pics/assets/5048531/c08f645e-a362-4d2e-bfff-c99d8966e2b8) | ![Screenshot 2024-04-15 at 6 34 16 PM](https://github.com/manununhez/purrfect-pics/assets/5048531/a8024c0c-e31f-4189-b268-1167048658ad) | ![Screenshot 2024-04-15 at 6 35 33 PM](https://github.com/manununhez/purrfect-pics/assets/5048531/1a72c5ea-ee22-4470-8e98-6215ebb86924) | ![Screenshot 2024-04-15 at 6 36 08 PM](https://github.com/manununhez/purrfect-pics/assets/5048531/c31637d7-ddfe-436a-8e16-d27244d638ea) | | ||
|------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------| | ||
|
||
## Considerations | ||
|
||
|
@@ -44,7 +50,8 @@ heart. | |
the other hand, Coil image lib does use disk and memory cache to smooth image loading. | ||
- KtfmtFormat plugin applied for code formatting. | ||
- There is a known issue with the splash screen not showing on Android 12. A temporary | ||
solution is to **open the app from the app tray**, as indicated [here](https://stackoverflow.com/questions/69812590/android-12-splash-screen-icon-not-displaying)) | ||
solution is to **open the app from the app tray**, as | ||
indicated [here](https://stackoverflow.com/questions/69812590/android-12-splash-screen-icon-not-displaying)) | ||
|
||
## Getting Started | ||
|
||
|
@@ -82,4 +89,4 @@ PurrfectPics is licensed under the [MIT License](LICENSE). | |
## About | ||
|
||
PurrfectPics is developed and maintained by [Manuel Nuñez](mailto:[email protected]). For | ||
inquiries, please contact [[email protected]]. | ||
inquiries, please contact [[email protected]]. |
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
61 changes: 0 additions & 61 deletions
61
core/common-ui/src/main/kotlin/com/manuelnunez/apps/core/ui/component/AlertDialog.kt
This file was deleted.
Oops, something went wrong.
48 changes: 0 additions & 48 deletions
48
core/common-ui/src/main/kotlin/com/manuelnunez/apps/core/ui/component/ImageCard.kt
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
core/common-ui/src/main/kotlin/com/manuelnunez/apps/core/ui/component/TextCard.kt
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
core/common-ui/src/main/kotlin/com/manuelnunez/apps/core/ui/component/TitleText.kt
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
core/common/src/test/kotlin/com/manuelnunez/apps/core/common/EitherTest.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,27 @@ | ||
package com.manuelnunez.apps.core.common | ||
|
||
import org.junit.jupiter.api.Assertions.assertEquals | ||
import org.junit.jupiter.api.Test | ||
|
||
class EitherTest { | ||
|
||
@Test | ||
fun `test fold with success`() { | ||
val successData = 42 | ||
val successValue: Either<Int, String> = eitherSuccess(successData) | ||
val result = successValue.fold(success = { "Success: $it" }, error = { "Error: $it" }) | ||
|
||
assertEquals(Either.Success(successData), successValue) | ||
assertEquals("Success: $successData", result) | ||
} | ||
|
||
@Test | ||
fun `test fold with error`() { | ||
val messageError = "An error occurred" | ||
val errorValue: Either<Int, String> = eitherError(messageError) | ||
val result = errorValue.fold(success = { "Success: $it" }, error = { "Error: $it" }) | ||
|
||
assertEquals(Either.Error(messageError), errorValue) | ||
assertEquals(messageError, result) | ||
} | ||
} |
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.