Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#13] [Part 2] Implement the base Clean Architecture with MVVM: data and domain layer #37

Merged

Conversation

kaungkhantsoe
Copy link
Contributor

@kaungkhantsoe kaungkhantsoe commented Aug 22, 2023

What happened 👀

  • Add buildSrc and extract dependencies
  • Add Koin DI
  • Add Ktor

Insight 📝

N/A

Proof Of Work 📹

Screenshot 2023-08-23 at 6 10 50 PM

@kaungkhantsoe kaungkhantsoe self-assigned this Aug 22, 2023
}

@Test
fun `When calling getUsersUseCase successfully - it returns users`() = runTest {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Function names should match the pattern: [a-zA-Z][a-zA-Z0-9]*

@bot-nimble
Copy link
Collaborator

bot-nimble commented Aug 22, 2023

11 Warnings
⚠️ Big PR
⚠️ Uh oh! ApiClient.kt is under 95% coverage!
⚠️ Uh oh! ApiException.kt is under 95% coverage!
⚠️ Uh oh! HttpRequestBuilderExtension.kt is under 95% coverage!
⚠️ Uh oh! UserRemoteDataSource.kt is under 95% coverage!
⚠️ Uh oh! Your project is under 80% coverage!
⚠️ shared/src/androidMain/kotlin/co/nimblehq/kmm/template/Platform.android.kt#L3 - The file name 'Platform.android' does not match the name of the single top-level declaration 'AndroidPlatform'.
⚠️ shared/src/androidUnitTest/kotlin/co/nimblehq/kmm/template/androidTest.kt#L6 - The file name 'androidTest' does not match the name of the single top-level declaration 'AndroidGreetingTest'.
⚠️ shared/src/commonTest/kotlin/co/nimblehq/kmm/template/commonTest.kt#L6 - The file name 'commonTest' does not match the name of the single top-level declaration 'CommonGreetingTest'.
⚠️ shared/src/iosMain/kotlin/co/nimblehq/kmm/template/Platform.ios.kt#L5 - The file name 'Platform.ios' does not match the name of the single top-level declaration 'IOSPlatform'.
⚠️ shared/src/iosTest/kotlin/co/nimblehq/kmm/template/iosTest.kt#L6 - The file name 'iosTest' does not match the name of the single top-level declaration 'IosGreetingTest'.

Kover report:

🧛 Unit Tests Code Coverage: 10.68%

Coverage of Modified Files:

File Coverage
ApiClient.kt 0.00%
ApiException.kt 0.00%
GetUsersUseCase.kt 100.00%
HttpRequestBuilderExtension.kt 0.00%
RepositoryImpl.kt 100.00%
ResponseMapping.kt 100.00%
UserModel.kt 100.00%
UserRemoteDataSource.kt 0.00%
UserResponse.kt 100.00%

Modified Files Not Found In Coverage Report:

.gitignore
AndroidManifest.xml
Configurations.kt
Dependencies.kt
Fake.kt
GetUsersUseCaseTest.kt
PlatformModule.kt
PlatformModule.kt
RemoteModule.kt
Repository.kt
RepositoryModule.kt
RepositoryTest.kt
ResponseMappingTest.kt
UseCaseModule.kt
build.gradle.kts
build.gradle.kts
build.gradle.kts
build.gradle.kts
build.gradle.kts
buildKonfig.properties.sample
detekt.yml
detekt.yml
test.yml

Codebase cunningly covered by count Shroud 🧛

Generated by 🚫 Danger

Copy link
Member

@luongvo luongvo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some early reviews for you 👋

android/build.gradle.kts Show resolved Hide resolved
android/build.gradle.kts Outdated Show resolved Hide resolved
buildKonfig.properties Outdated Show resolved Hide resolved
buildSrc/src/main/java/Configurations.kt Outdated Show resolved Hide resolved
buildSrc/src/main/java/Dependencies.kt Outdated Show resolved Hide resolved
Base automatically changed from feature/13-part-1-implement-koin-di-and-extract-dependencies to develop August 23, 2023 08:17
@kaungkhantsoe kaungkhantsoe force-pushed the feature/13-part-2-implement-ktor-and-backend-tasks-with-new branch from 4651efc to eed3db7 Compare August 23, 2023 08:30
@kaungkhantsoe kaungkhantsoe force-pushed the feature/13-part-2-implement-ktor-and-backend-tasks-with-new branch from 26fdb62 to b6c14ee Compare August 23, 2023 08:51
@kaungkhantsoe kaungkhantsoe force-pushed the feature/13-part-2-implement-ktor-and-backend-tasks-with-new branch from fde1683 to ba86c47 Compare August 23, 2023 09:37
@luongvo
Copy link
Member

luongvo commented Aug 23, 2023

@kaungkhantsoe is this PR ready for review yet?

@kaungkhantsoe
Copy link
Contributor Author

@kaungkhantsoe is this PR ready for review yet?

Not yet @luongvo, I am still working on it. 🙏

@kaungkhantsoe kaungkhantsoe force-pushed the feature/13-part-2-implement-ktor-and-backend-tasks-with-new branch from 2ada03f to d31fefd Compare August 23, 2023 11:13
@kaungkhantsoe kaungkhantsoe added this to the 0.1.0 milestone Aug 23, 2023
@kaungkhantsoe kaungkhantsoe marked this pull request as ready for review August 23, 2023 11:16
@kaungkhantsoe kaungkhantsoe force-pushed the feature/13-part-2-implement-ktor-and-backend-tasks-with-new branch from ed7140a to 13dde54 Compare August 23, 2023 12:13
.github/workflows/test.yml Show resolved Hide resolved
buildSrc/src/main/java/Dependencies.kt Show resolved Hide resolved
buildSrc/src/main/java/Dependencies.kt Outdated Show resolved Hide resolved
shared/build.gradle.kts Show resolved Hide resolved
shared/build.gradle.kts Show resolved Hide resolved
build.gradle.kts Outdated Show resolved Hide resolved
build.gradle.kts Outdated Show resolved Hide resolved
buildSrc/src/main/java/Dependencies.kt Outdated Show resolved Hide resolved
@kaungkhantsoe kaungkhantsoe force-pushed the feature/13-part-2-implement-ktor-and-backend-tasks-with-new branch from 79edc9f to 4c14109 Compare August 24, 2023 07:40
@kaungkhantsoe kaungkhantsoe force-pushed the feature/13-part-2-implement-ktor-and-backend-tasks-with-new branch from c72e7ef to 111c067 Compare August 24, 2023 09:07
android/build.gradle.kts Outdated Show resolved Hide resolved
shared/build.gradle.kts Outdated Show resolved Hide resolved
shared/build.gradle.kts Outdated Show resolved Hide resolved
shared/build.gradle.kts Outdated Show resolved Hide resolved
build.gradle.kts Outdated Show resolved Hide resolved
buildKonfig.properties.sample Outdated Show resolved Hide resolved
shared/build.gradle.kts Outdated Show resolved Hide resolved
@kaungkhantsoe kaungkhantsoe force-pushed the feature/13-part-2-implement-ktor-and-backend-tasks-with-new branch from 97f232c to 84fbc5c Compare August 25, 2023 03:40
@kaungkhantsoe kaungkhantsoe force-pushed the feature/13-part-2-implement-ktor-and-backend-tasks-with-new branch from b8f8e1d to d0922a6 Compare August 25, 2023 03:51
@kaungkhantsoe kaungkhantsoe force-pushed the feature/13-part-2-implement-ktor-and-backend-tasks-with-new branch from d0922a6 to 4f3eff3 Compare August 25, 2023 03:59
@kaungkhantsoe kaungkhantsoe force-pushed the feature/13-part-2-implement-ktor-and-backend-tasks-with-new branch from 26926a6 to bc97bff Compare August 25, 2023 04:19
Copy link
Member

@luongvo luongvo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good now

@phongvhd93 phongvhd93 merged commit bdadd78 into develop Aug 25, 2023
@phongvhd93 phongvhd93 deleted the feature/13-part-2-implement-ktor-and-backend-tasks-with-new branch August 25, 2023 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement the base Clean Architecture with MVVM: data and domain layer
4 participants