Commit c4ca06c
committed
feat(library): Port PolyUtil to Kotlin and enhance tests
This commit introduces a significant modernization of the `PolyUtil` class by porting it from Java to idiomatic Kotlin. This change improves the code's conciseness, readability, and null safety.
The key changes in this commit are:
- **Porting `PolyUtil` to Kotlin**: The `PolyUtil` class has been completely rewritten in Kotlin, taking advantage of features like top-level functions, default arguments, and extension functions. The public API has been preserved with `@JvmStatic` annotations to ensure backward compatibility for Java consumers.
- **Updating tests to use Google Truth**: The corresponding `PolyUtilTest` has been updated to use Google Truth assertions. This makes the tests more readable and expressive.1 parent 1476151 commit c4ca06c
File tree
3 files changed
+853
-702
lines changed- library/src
- main/java/com/google/maps/android
- test/java/com/google/maps/android
3 files changed
+853
-702
lines changed
0 commit comments