Skip to content

Commit

Permalink
[New Version for Jitpack] - main
Browse files Browse the repository at this point in the history
- Add doc
- change adapter
  • Loading branch information
Scythe14 committed Jun 16, 2021
1 parent 49168e8 commit 3a578b1
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
id 'maven-publish'
}

def library_version = '1.0.2'
def library_version = '1.0.3'

android {
compileSdkVersion 30
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ import kotlinx.android.synthetic.main.bucket_deep_blue.view.*
open class DeepBlueBucketView : BucketView {

//region constructors

constructor(context: Context) : super(context)
constructor(context: Context, attributeSet: AttributeSet?) : super(context, attributeSet)
constructor(context: Context, attributeSet: AttributeSet?, defStyleAttr: Int) : super(context, attributeSet, defStyleAttr)

//endregion constructors

class Configuration(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ import kotlinx.android.synthetic.main.bucket_action_informative.view.*
class InformativeActionBucketView : BucketView {

//region constructors

constructor(context: Context) : super(context)
constructor(context: Context, attributeSet: AttributeSet?) : super(context, attributeSet)
constructor(context: Context, attributeSet: AttributeSet?, defStyleAttr: Int) : super(context, attributeSet, defStyleAttr)

//endregion constructors

var onButtonClick: (() -> Unit)? = null
Expand Down
2 changes: 2 additions & 0 deletions library/src/main/java/com/spendesk/grapes/MessageBlockView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import kotlinx.android.synthetic.main.message_block_view.view.*
class MessageBlockView : ConstraintLayout {

//region constructors

constructor(context: Context) : super(context) {
initView(null)
}
Expand All @@ -38,6 +39,7 @@ class MessageBlockView : ConstraintLayout {
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super(context, attrs, defStyleAttr) {
initView(attrs)
}

//endregion constructors

init {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import com.spendesk.grapes.extensions.setDrawableLeft
class MessageInlineView : AppCompatTextView {

//region constructors

constructor(context: Context) : super(context) {
initView(null)
}
Expand All @@ -34,6 +35,7 @@ class MessageInlineView : AppCompatTextView {
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super(context, attrs, defStyleAttr) {
initView(attrs)
}

//endregion constructors

init {
Expand Down
2 changes: 2 additions & 0 deletions library/src/main/java/com/spendesk/grapes/PinCodeDotView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ import com.spendesk.grapes.extensions.setDrawable
class PinCodeDotView : LinearLayout {

//region constructors

constructor(context: Context) : super(context)
constructor(context: Context, attributeSet: AttributeSet?) : super(context, attributeSet, 0)
constructor(context: Context, attributeSet: AttributeSet?, defStyleAttr: Int) : super(context, attributeSet, defStyleAttr)

//endregion constructors

class Configuration(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import kotlinx.android.synthetic.main.user_supplier_inline_view.view.*
class UserSupplierInlineView : ConstraintLayout {

//region constructors

constructor(context: Context) : super(context) {
initView(null)
}
Expand All @@ -31,6 +32,7 @@ class UserSupplierInlineView : ConstraintLayout {
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super(context, attrs, defStyleAttr) {
initView(attrs)
}

//endregion constructors

class Configuration(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,5 @@ class HomePagerAdapter(
}

fun getTabText(position: Int): String =
when (val item = itemList[position]) {
is HomeTabItem.Avatars,
is HomeTabItem.Buttons,
is HomeTabItem.CheckBox,
is HomeTabItem.Contents,
is HomeTabItem.Inputs,
is HomeTabItem.Lists,
is HomeTabItem.Messages,
is HomeTabItem.Modals,
is HomeTabItem.Cards -> item::class.java.simpleName
}
itemList[position]::class.java.simpleName
}

0 comments on commit 3a578b1

Please sign in to comment.