Skip to content

Commit

Permalink
Update gradle build tool version & class documentations
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Aug 29, 2019
1 parent 5402522 commit f041998
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.skydoves.balloon

/** ArrowOrientation determines the orientation of the arrow. */
enum class ArrowOrientation {
BOTTOM,
TOP,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ package com.skydoves.balloon
import android.content.Context
import android.content.SharedPreferences

/** BalloonPreferenceManager helps to persist showing times. */
@Suppress("PrivatePropertyName", "MemberVisibilityCanBePrivate")
class BalloonPreferenceManager(context: Context) {
internal class BalloonPreferenceManager(context: Context) {

private val SHOWED_UP = "SHOWED_UP"

Expand Down
8 changes: 8 additions & 0 deletions balloon/src/main/java/com/skydoves/balloon/IconForm.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,18 @@ class IconForm(builder: Builder) {
@JvmField
var iconColor: Int = -3

/** sets the [Drawable] of the icon. */
fun setDrawable(value: Drawable?): Builder = apply { this.drawable = value }

/** sets the size of the icon. */
fun setIconSize(value: Int): Builder = apply { this.iconSize = value }

/** sets the space between the icon and the main text content. */
fun setIconSpace(value: Int): Builder = apply { this.iconSpace = value }

/** sets the color of the icon. */
fun setIconColor(value: Int): Builder = apply { this.iconColor = value }

fun build() = IconForm(this)
}
}
8 changes: 8 additions & 0 deletions balloon/src/main/java/com/skydoves/balloon/TextForm.kt
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,18 @@ class TextForm(builder: Builder) {
@JvmField
var textTypeface = Typeface.NORMAL

/** sets the content text of the form. */
fun setText(value: String): Builder = apply { this.text = value }

/** sets the size of the text. */
fun setTextSize(value: Float): Builder = apply { this.textSize = value }

/** sets the color of the text. */
fun setTextColor(value: Int): Builder = apply { this.textColor = value }

/** sets the [Typeface] of the text. */
fun setTextTypeFace(value: Int): Builder = apply { this.textTypeface = value }

fun build() = TextForm(this)
}
}
8 changes: 4 additions & 4 deletions dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
ext.versions = [
minSdk : 16,
compileSdk : 29,
versionCode : 5,
versionName : '1.0.4',
versionCode : 6,
versionName : '1.0.5',

gradleBuildTool : '3.4.2',
gradleBuildTool : '3.5.0',
spotlessGradle : '3.24.2',
dokkaGradle : '0.9.17',
bintrayRelease : '0.9.1',

kotlin : '1.3.41',
kotlin : '1.3.50',
androidxAppcompat : '1.1.0-rc01',

// for demo
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Jul 10 23:10:32 KST 2019
#Thu Aug 29 19:52:26 KST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip

0 comments on commit f041998

Please sign in to comment.