Skip to content

Commit

Permalink
🚀 4.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemilla committed Oct 29, 2024
1 parent 9637047 commit 543cd84
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ dependencyResolutionManagement {

```gradle
dependencies {
implementation 'com.github.trycourier:courier-android:4.6.2' // Groovy
implementation("com.github.trycourier:courier-android:4.6.2") // Gradle.kts
implementation 'com.github.trycourier:courier-android:4.6.3' // Groovy
implementation("com.github.trycourier:courier-android:4.6.3") // Gradle.kts
}
```

Expand Down
2 changes: 1 addition & 1 deletion android/src/main/java/com/courier/android/Courier.kt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Courier private constructor(val context: Context) : Application.ActivityLi
companion object {

// Core
private const val VERSION = "4.6.2"
private const val VERSION = "4.6.3"
var agent: CourierAgent = CourierAgent.NativeAndroid(VERSION)

// Push
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import android.content.Context
import android.graphics.drawable.GradientDrawable
import android.util.AttributeSet
import android.util.TypedValue
import android.view.Gravity
import androidx.appcompat.widget.AppCompatTextView
import androidx.core.content.ContextCompat
import com.courier.android.utils.setCourierFont
Expand All @@ -19,7 +20,10 @@ class BadgeTextView @JvmOverloads constructor(
setTextColor(ContextCompat.getColor(context, android.R.color.white))
setPadding(12, 4, 12, 4)
setTextSize(TypedValue.COMPLEX_UNIT_SP, 16f)

// Center text horizontally and vertically
textAlignment = TEXT_ALIGNMENT_CENTER
gravity = Gravity.CENTER

// Set minimum width to 20dp
val minWidthPx = TypedValue.applyDimension(
Expand Down

0 comments on commit 543cd84

Please sign in to comment.