Skip to content

Conversation

@Deepak-Kambam
Copy link

Pull Request Title
Modernize Core Utilities (Target A) to Kotlin

Description
Converted DisplayMetricsUtil, AccessibilityUtil, HtmlUtil, and CalendarDateOnly from Java to Kotlin to improve type safety and reduce boilerplate.

Technical Highlights
Idiomatic Refactor: Migrated static methods to top-level functions and implemented Kotlin property syntax (e.g., layoutParams).
Java Interop: Utilized @file:JvmName to maintain seamless backward compatibility with existing Java call-sites.
Null-Safety: Overhauled type signatures to leverage Kotlin's native non-nullable types, replacing legacy annotations.
Clean Code: Leveraged string templates and scope functions (apply) to minimize logic complexity.
Verification
Build: Successfully compiled via ./gradlew assembleDebug.
Manual: Verified functional parity across Wallpaper aspect ratios, Spoiler animations, Bold text rendering, and Media date grouping.

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