-
Notifications
You must be signed in to change notification settings - Fork 198
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
Integrate ktlint and fix codestyle violations #115
Changes from all commits
1c3b1d8
51ed43f
cbccdcd
7a46c8f
d0fbbc8
429d6cd
d5294f3
72fc43e
57ced1a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,5 @@ | |
.cxx | ||
*.xcuserstate | ||
*.xcbkptlist | ||
!/.idea/codeStyles/* | ||
!/.idea/inspectionProfiles/* |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ class MainApp : Application() { | |
modules(module { single<Context> { this@MainApp } }) | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<resources> | ||
<string name="app_name">KaMP Kit</string> | ||
<string name="set_breed_as_a_favorite">Set breed as a favorite</string> | ||
<string name="breed">Breed</string> | ||
</resources> |
This file was deleted.
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.
FYI a nice way to keep lint happy without needing to make this a string resource is to use
tools:text
. This will show it in the layout preview only. The other advantage of that is we won't accidentally leave bad initial text in-place if something fails to initialize in code.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.
I thought about this, but idk if in the case of failing to initialize blank is better than a default like this. I could see either way
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.
Yeah. Not a huge deal since it's just sample code anyway. Don't need to dig to hard on Android best-practices when most people's focus will be on KMP and iOS.