-
Notifications
You must be signed in to change notification settings - Fork 146
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
Convert util package into Kotlin #187
Convert util package into Kotlin #187
Conversation
feature: - remove `ScanListener` abstract class(replace high-order-function)
feature: - Change `checkGif_isCorrect` test(static method)
feature: - Distribute Radio Type (Text, Drawable, None) with sealed - Fix wrong words (unselect, drawTextCentred)
- isChecked -> isSelected - unSelect -> unselect
…/github.com/laco-dev/FishBun into feature/java-to-kotlin/util # Conflicts: # FishBun/src/main/java/com/sangcomz/fishbun/util/RadioWithTextButton.java
b897bfa
to
0ab6696
Compare
…ature/java-to-kotlin/util # Conflicts: # FishBun/src/androidTest/java/com/sangcomz/fishbun/util/RadioWithTextButtonTest.kt # FishBun/src/main/java/com/sangcomz/fishbun/util/RadioWithTextButton.java
ca6ad95
to
35e3f65
Compare
Codecov Report
@@ Coverage Diff @@
## develop #187 +/- ##
============================================
+ Coverage 3.14% 3.28% +0.14%
- Complexity 0 1 +1
============================================
Files 31 32 +1
Lines 1654 1613 -41
Branches 202 198 -4
============================================
+ Hits 52 53 +1
+ Misses 1600 1558 -42
Partials 2 2
Continue to review full report at Codecov.
|
I have a question. What are the advantages of moving setTextSizeForWidth to DrawUtil? (When I look at my old code, I wonder why I declared it a static method. 🤔) |
static method has features. from this site
setTextSizeForWidth was private static method in I don't know why test private method really (Let me know why?). Also kotlin can't use private or protected method directly (e.g in testcode). If to keep private method, Test code has to use reflection or another public method. |
You don't need to change to a private method. I was wondering why I just moved it. But I got some understanding. Thank you. @laco-dev |
Fixes issue
This PR changes:
Convert to
Except to
TouchImageView
is open source projectCameraUtil
is converting by이다혜
in contributon team.Change to
Add to
RadioWithTextButton
was used whether selected text or drawable. So I addedRadioType
sealed class.e.g)
DrawUtil
(RadioWithTextButton
>>DrawUtil
)Etc
isLandscape
function inUiUtil