AppDetailsFragment: Move targetSdk info to more details fragment

Since past few years Google has a target SDK requirement making this info
not so useful as apps will sooner or later always target latest SDK.

Ref: https://developer.android.com/google/play/requirements/target-sdk

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2024-09-11 20:50:34 +05:30
parent f0cb542eae
commit a45dafc3d9
3 changed files with 6 additions and 13 deletions

View File

@@ -730,7 +730,6 @@ class AppDetailsFragment : BaseFragment<FragmentDetailsBinding>() {
txtSize.text = CommonUtil.addSiPrefix(app.size)
txtRating.text = app.labeledRating
txtSdk.text = ("Target SDK ${app.targetSdk}")
txtUpdated.text = app.updatedOn
txtDescription.text = HtmlCompat.fromHtml(
app.shortDescription,

View File

@@ -38,6 +38,7 @@ import com.aurora.store.view.epoxy.views.details.MoreBadgeViewModel_
import com.aurora.store.view.ui.commons.BaseFragment
import com.aurora.store.viewmodel.details.DetailsMoreViewModel
import dagger.hilt.android.AndroidEntryPoint
import java.util.UUID
import kotlinx.coroutines.launch
@AndroidEntryPoint
@@ -153,6 +154,11 @@ class DetailsMoreFragment : BaseFragment<FragmentDetailsMoreBinding>() {
.badge(it)
)
}
add(
InfoViewModel_()
.id(UUID.randomUUID().toString())
.badge(mapOf("targets" to "API ${app.targetSdk}").entries.first())
)
}
}
}

View File

@@ -86,18 +86,6 @@
app:drawableTint="?colorAccent"
tools:text="25 MB" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_sdk"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_small"
android:layout_marginEnd="@dimen/margin_small"
android:drawablePadding="@dimen/padding_small"
android:gravity="center_vertical"
android:textAppearance="@style/TextAppearance.Aurora.Line1"
app:drawableTint="?colorAccent"
tools:text="Android 7+" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_updated"
android:layout_width="wrap_content"