-
Notifications
You must be signed in to change notification settings - Fork 46
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
Refactor EuTxManager Java to Kotlin #244
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@serim53 Thank you for refactoring EuTxManager! It looks good 👍
One thing I wanna comment is that txCore
is included at constructor. txCore
is only used at EuTxManager
internally, and its initialization is always same, so I think it would be removed at constructor. How about declaraing as private val
?
And, EuTxManagerTest
has unused imports, so how about removing it as well? 😄
As you said, txcore is only used internally, so I also think it's better to move it to the internal code! I corrected this part and deleted the import, and I commited it again! Thank you for checking carefully! 🥰 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! @serim53
Sorry for the late riview 😢
I read all your EuTxManager.kt
code.
- By replacing Handler with corountine, android os dependency has disappeared, and flexibility seems to have been strengthened.
- In addition, readability enhancement was noticeable through AudioTrack's Builder pattern.
Overall, the refactored code seems to be neatly written.
I leave some review-comments here :)
Great contribution! I read your codes and have some questions. In deprecated functions; setMode() and setCode(), does it also call txCore.setMode() and txCore.setCode()? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first Kotlin Transformation! 👍
I left some reviews about nullable :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since ReplaceWith
does not yet support the properties of getter and setter roles, it seems that there is currently only a way to display it with a message.
For the rest, the same expression was expressed more concisely.
@serim53 Thanks for your great migration & refactoring!
Refactor EuTxManager java to kotlin