mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2024-11-23 09:57:42 -06:00
Bump about_libraries from 8.9.4 to 10.2.0 (#1858)
This commit is contained in:
parent
459c8330f9
commit
facf84d9a8
@ -132,7 +132,7 @@ android {
|
||||
|
||||
kotlinOptions {
|
||||
jvmTarget = "11"
|
||||
freeCompilerArgs += ["-Xopt-in=kotlin.RequiresOptIn", "-Xjvm-default=all"]
|
||||
freeCompilerArgs += ["-opt-in=kotlin.RequiresOptIn", "-Xjvm-default=all"]
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
|
@ -7,6 +7,7 @@ import javax.inject.Inject
|
||||
import javax.inject.Singleton
|
||||
|
||||
@Singleton
|
||||
@Suppress("UNUSED_PARAMETER", "unused")
|
||||
class InAppReviewHelper @Inject constructor(
|
||||
@ApplicationContext private val context: Context
|
||||
) {
|
||||
@ -14,4 +15,4 @@ class InAppReviewHelper @Inject constructor(
|
||||
fun showInAppReview(activity: MainActivity) {
|
||||
// do nothing
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -23,8 +23,9 @@ class LicenseAdapter @Inject constructor() : RecyclerView.Adapter<LicenseAdapter
|
||||
val item = items[position]
|
||||
|
||||
with(holder.binding) {
|
||||
licenseItemName.text = item.libraryName
|
||||
licenseItemSummary.text = item.licenses?.firstOrNull()?.licenseName?.takeIf { it.isNotBlank() } ?: item.libraryVersion
|
||||
licenseItemName.text = item.name
|
||||
licenseItemSummary.text = item.licenses.firstOrNull()?.name?.takeIf { it.isNotBlank() }
|
||||
?: item.artifactVersion
|
||||
|
||||
root.setOnClickListener { onClickListener(item) }
|
||||
}
|
||||
|
@ -9,6 +9,7 @@ import androidx.recyclerview.widget.LinearLayoutManager
|
||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||
import com.mikepenz.aboutlibraries.Libs
|
||||
import com.mikepenz.aboutlibraries.entity.Library
|
||||
import com.mikepenz.aboutlibraries.util.withContext
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
import io.github.wulkanowy.R
|
||||
import io.github.wulkanowy.databinding.FragmentLicenseBinding
|
||||
@ -28,7 +29,9 @@ class LicenseFragment : BaseFragment<FragmentLicenseBinding>(R.layout.fragment_l
|
||||
|
||||
override val titleStringId get() = R.string.license_title
|
||||
|
||||
override val appLibraries by lazy { Libs(requireContext()).libraries }
|
||||
override val appLibraries by lazy {
|
||||
Libs.Builder().withContext(requireContext()).build().libraries
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun newInstance() = LicenseFragment()
|
||||
|
@ -22,7 +22,7 @@ class LicensePresenter @Inject constructor(
|
||||
}
|
||||
|
||||
fun onItemSelected(library: Library) {
|
||||
view?.run { library.licenses?.firstOrNull()?.licenseDescription?.let { openLicense(it) } }
|
||||
view?.run { library.licenses.firstOrNull()?.licenseContent?.let { openLicense(it) } }
|
||||
}
|
||||
|
||||
private fun loadData() {
|
||||
|
@ -1,7 +1,7 @@
|
||||
buildscript {
|
||||
ext {
|
||||
kotlin_version = '1.6.21'
|
||||
about_libraries = '8.9.4'
|
||||
about_libraries = '10.2.0'
|
||||
hilt_version = "2.42"
|
||||
}
|
||||
repositories {
|
||||
|
Loading…
Reference in New Issue
Block a user