Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Kamila/add ending screen #123

Merged
merged 17 commits into from
Mar 30, 2022
Merged

Kamila/add ending screen #123

merged 17 commits into from
Mar 30, 2022

Conversation

kamilababayeva
Copy link
Collaborator

@kamilababayeva kamilababayeva commented Mar 29, 2022

This PR is related to #117.

This PR contains:

  • package ch.sdp.vibester.activity: TypingGameActitiity.kt: connect ending game screen
  • change colors in EndingGameActivity activities according to our theme
  • appropriate test were done

The code coverage is [100%]
image

@codeclimate
Copy link

codeclimate bot commented Mar 29, 2022

Code Climate has analyzed commit ffac517 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (80% is the threshold).

This pull request will bring the total coverage in the repository to 91.7% (0.5% change).

View more on Code Climate.

@kamilababayeva kamilababayeva marked this pull request as ready for review March 29, 2022 10:27
@kamilababayeva kamilababayeva self-assigned this Mar 30, 2022
object ServiceBuilder {
private fun buildRetrofit(baseUrl:String) =
Retrofit.Builder()
.baseUrl(baseUrl)
.addConverterFactory(GsonConverterFactory.create())
.build()

fun <T> buildService(baseUrl: String, service: Class<T>): T {
/**
* Connect API interface to a retrofit service to make an API call.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good documentation

intent.putStringArrayListExtra("str_arr_val", statVal)

startActivity(intent)
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe refactor the creations of the ArrayListand the calls to putStringArrayListExtra into a separate function? (Unless the values we will use instead of the hardcoded ones are of types other than String). The rest of the function looks good to me.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

True, maybe I will mode the creation of the arraylist with the delimeter '-' inside the gameManager.... I will taake a note for myself for the next pr. thanks!

Copy link
Collaborator

@zwierski zwierski left a comment

Choose a reason for hiding this comment

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

Good work! I left some comments but the code looks good to me.

Copy link
Owner

@MaximeZmt MaximeZmt left a comment

Choose a reason for hiding this comment

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

Good work 👍 !

@kamilababayeva kamilababayeva merged commit 477d19a into main Mar 30, 2022
@kamilababayeva kamilababayeva deleted the kamila/add_ending_screen branch March 30, 2022 14:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create statistics after the game that shows correct and wrong songs with score
3 participants