Skip to content

Commit

Permalink
Bump Aztec to 2.1.4
Browse files Browse the repository at this point in the history
Adjust artifact coordinates, use `design_bottom_sheet` from `material` library (instead of referencing to aztec's file, which I'm guessing was added by a mistake)
  • Loading branch information
wzieba committed Aug 13, 2024
1 parent ba22646 commit 96aec12
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions WooCommerce/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ repositories {
includeGroup "com.automattic"
includeGroup "com.automattic.tracks"
includeGroup "com.gravatar"
includeGroup "org.wordpress.aztec"
}
}
maven {
Expand Down Expand Up @@ -281,13 +282,13 @@ dependencies {
exclude group: "org.wordpress", module: "fluxc"
}

implementation("com.github.wordpress-mobile.WordPress-Aztec-Android:aztec:$aztecVersion") {
implementation("org.wordpress:aztec:$aztecVersion") {
exclude group: "com.android.volley"
exclude group: "com.android.support"
exclude group: "org.wordpress", module: "utils"
}

implementation("com.github.wordpress-mobile.WordPress-Aztec-Android:glide-loader:$aztecVersion") {
implementation("org.wordpress.aztec:glide-loader:$aztecVersion") {
exclude group: "com.android.volley"
exclude group: "com.android.support"
exclude group: "org.wordpress", module: "utils"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ open class WCBottomSheetDialogFragment : BottomSheetDialogFragment {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
dialog?.setOnShowListener {
val dialog = it as BottomSheetDialog
dialog.findViewById<View>(org.wordpress.aztec.R.id.design_bottom_sheet)?.let { sheet ->
dialog.findViewById<View>(com.google.android.material.R.id.design_bottom_sheet)?.let { sheet ->
// if device height is 32dp bigger than sheet height, show full sheet
val heightPixels = view.context.resources.displayMetrics.heightPixels
val topPadding = DisplayUtils.dpToPx(context, TOP_OFFSET_BEFORE_SHOWING_FULL_SHEET_DP)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ ext {
googlePlayWearableVersion = '18.1.0'
coroutinesVersion = '1.8.1'
lifecycleVersion = '2.7.0'
aztecVersion = 'v1.3.45'
aztecVersion = 'v2.1.4'
flipperVersion = '0.176.1'
stateMachineVersion = '0.2.0'
coreKtxVersion = '1.13.1'
Expand Down

0 comments on commit 96aec12

Please sign in to comment.