Skip to content

Commit 9ceed43

Browse files
committed
add @deprecated message
1 parent 05f84af commit 9ceed43

File tree

2 files changed

+5
-1
lines changed
  • bottomsheetdialog-compose/src/main/kotlin/com/holix/android/bottomsheetdialog/compose
  • buildSrc/src/main/kotlin/com/holix/android/bottomsheetdialog/compose

2 files changed

+5
-1
lines changed

bottomsheetdialog-compose/src/main/kotlin/com/holix/android/bottomsheetdialog/compose/BottomSheetDialog.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.holix.android.bottomsheetdialog.compose
22

3+
import android.annotation.SuppressLint
34
import android.content.Context
45
import android.graphics.Outline
56
import android.os.Build
@@ -51,6 +52,7 @@ class BottomSheetDialogProperties constructor(
5152
val navigationBarProperties: NavigationBarProperties = NavigationBarProperties()
5253
) {
5354

55+
@Deprecated("Use NavigationBarProperties(color = navigationBarColor) instead")
5456
constructor(
5557
dismissOnBackPress: Boolean = true,
5658
dismissOnClickOutside: Boolean = true,
@@ -417,6 +419,8 @@ private class BottomSheetDialogWrapper(
417419
}
418420
}
419421

422+
@Deprecated("Deprecated")
423+
@SuppressLint("MissingSuperCall")
420424
override fun onBackPressed() {
421425
if (properties.dismissOnBackPress) {
422426
cancel()

buildSrc/src/main/kotlin/com/holix/android/bottomsheetdialog/compose/Configuration.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package com.holix.android.bottomsheetdialog.compose
22

33
object Configuration {
44
const val compileSdk = 33
5-
const val targetSdk = 32
5+
const val targetSdk = 33
66
const val minSdk = 21
77
const val majorVersion = 1
88
const val minorVersion = 0

0 commit comments

Comments
 (0)