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

Add examples and update dependencies #34

Merged
merged 68 commits into from
Jun 7, 2024
Merged

Add examples and update dependencies #34

merged 68 commits into from
Jun 7, 2024

Conversation

ImaginativeShohag
Copy link
Owner

No description provided.

}

// Use Android Studio menu "Code -> Generate -> toString()" to auto generate `toString()`.
override fun toString(): String {
Copy link

Choose a reason for hiding this comment

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

🚫 [ktlint] standard:function-expression-body reported by reviewdog 🐶
Function body should be replaced with body expression

var cache = mutableMapOf<String, Any>()
private set

inline fun <reified T> get(forKey: MemoryCacheKey): T? {
Copy link

Choose a reason for hiding this comment

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

🚫 [ktlint] standard:function-expression-body reported by reviewdog 🐶
Function body should be replaced with body expression

}
}

fun String.urlEncode(): String {
return URLEncoder.encode(this, "utf-8")
}

fun String.urlDecode(): String {
Copy link

Choose a reason for hiding this comment

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

🚫 [ktlint] standard:function-expression-body reported by reviewdog 🐶
Function body should be replaced with body expression

private var sharedPref: SharedPreferences? = null

@PublishedApi
internal fun getSharedPerf(): SharedPreferences {
Copy link

Choose a reason for hiding this comment

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

🚫 [ktlint] standard:function-expression-body reported by reviewdog 🐶
Function body should be replaced with body expression

companion object {
private val map = entries.associateBy(UIThemeMode::value)

fun fromValue(value: Int): UIThemeMode? {
Copy link

Choose a reason for hiding this comment

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

🚫 [ktlint] standard:function-expression-body reported by reviewdog 🐶
Function body should be replaced with body expression

}

fun getToken(): String? {
return getSharedPerf().getString(PREF_TOKEN, null)
fun getToken(): String {
Copy link

Choose a reason for hiding this comment

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

🚫 [ktlint] standard:function-expression-body reported by reviewdog 🐶
Function body should be replaced with body expression

@@ -95,7 +97,11 @@ fun GeneralAppBar(
toggleUIMode()
}) {
Icon(
imageVector = if (isDarkMode) Icons.Rounded.DarkMode else Icons.Rounded.LightMode,
imageVector = when(uiThemeMode) {
Copy link

Choose a reason for hiding this comment

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

🚫 [ktlint] standard:keyword-spacing reported by reviewdog 🐶
Missing spacing after "when"

@ImaginativeShohag ImaginativeShohag merged commit cfc7f17 into main Jun 7, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant