Refactor checkNewVersion function to use LatestVersionInfo data class (#1733)

- Updated the checkNewVersion function to return a LatestVersionInfo
data class instead of a Triple.
- Defined default null value for LatestVersionInfo in case of failure.
- Improved readability and maintainability by replacing the Triple with
a data class.
- Included version code, download URL, and changelog in the
LatestVersionInfo data class.

---------

Co-authored-by: weishu <twsxtd@gmail.com>
This commit is contained in:
Alex
2024-05-16 13:05:14 +05:30
committed by GitHub
parent 0576495b4b
commit d36e365921
5 changed files with 28 additions and 9 deletions

View File

@@ -1,3 +1,4 @@
android.experimental.enableNewResourceShrinker.preciseShrinking=true
android.enableAppCompileTimeRClass=true
android.useAndroidX=true
org.gradle.jvmargs=-Xmx3072m