Skip to content

Commit

Permalink
Release/1.0.19 (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
kelianClerc authored Apr 15, 2022
1 parent 1315125 commit 17e58ac
Show file tree
Hide file tree
Showing 49 changed files with 1,591 additions and 393 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
buildscript {

ext {
grapes_version = '1.0.18'
grapes_version = '1.0.19'

kotlin_version = '1.5.31'
firebase_app_distribution_version = '2.1.2'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ import com.google.android.material.bottomsheet.BottomSheetBehavior
import com.google.android.material.bottomsheet.BottomSheetDialog
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
import com.spendesk.grapes.databinding.FragmentBottomSheetInfoBinding
import com.spendesk.grapes.extensions.getHeight
import com.spendesk.grapes.extensions.visibleOrGone
import com.spendesk.grapes.extensions.visibleWithTextOrGone
import com.spendesk.grapes.extensions.*

/**
* @author danyboucanova
Expand Down Expand Up @@ -95,8 +93,8 @@ open class ActionMessageBottomSheetDialogFragment : BottomSheetDialogFragment()
actionMessageBottomSheetTitleText.text = configuration.title

actionMessageBottomSheetDescriptionText.visibleWithTextOrGone(configuration.description)
actionMessageBottomSheetPrimaryButton.visibleWithTextOrGone(configuration.primaryButtonText)
actionMessageBottomSheetSecondaryButton.visibleWithTextOrGone(configuration.secondaryButtonText)
with(actionMessageBottomSheetPrimaryButton) { configuration.primaryButtonText?.let { visible(); setText(it) } ?: gone() }
with(actionMessageBottomSheetSecondaryButton) { configuration.secondaryButtonText?.let { visible(); setText(it) } ?: gone() }
actionMessageBottomSheetPullView.visibleOrGone(configuration.shouldShowHandle)

actionMessageBottomSheetDescriptionText.apply {
Expand Down
4 changes: 2 additions & 2 deletions library/src/main/java/com/spendesk/grapes/BadgeView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import android.graphics.Typeface
import android.util.AttributeSet
import android.util.TypedValue
import android.view.Gravity
import androidx.appcompat.widget.AppCompatTextView
import androidx.core.content.ContextCompat
import androidx.core.content.res.ResourcesCompat
import com.google.android.material.textview.MaterialTextView

/**
* @author danyboucanova
* @since 18/11/2020
*/
class BadgeView : AppCompatTextView {
class BadgeView : MaterialTextView {

//region constructors
constructor(context: Context) : super(context)
Expand Down
Loading

0 comments on commit 17e58ac

Please sign in to comment.