Skip to content

Commit

Permalink
Add lifecycle-common-java8 dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed May 16, 2020
1 parent 2f08209 commit 15daa88
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
1 change: 1 addition & 0 deletions balloon/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ android {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$versions.kotlin"
implementation "androidx.appcompat:appcompat:$versions.androidxAppcompat"
implementation "androidx.lifecycle:lifecycle-common-java8:$versions.lifecycle"
implementation "androidx.cardview:cardview:$versions.cardView"
}

Expand Down
2 changes: 1 addition & 1 deletion balloon/src/main/java/com/skydoves/balloon/Balloon.kt
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class Balloon(

@MainThread
private inline fun show(anchor: View, crossinline block: () -> Unit) {
if (!this.isShowing) {
if (!this.isShowing && !this.destroyed) {
this.isShowing = true
this.builder.preferenceName?.let {
if (balloonPersistence.shouldShowUP(it, builder.showTimes)) {
Expand Down
25 changes: 13 additions & 12 deletions dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
ext.versions = [
minSdk : 16,
compileSdk : 29,
versionCode : 17,
versionName : '1.1.6',
minSdk : 16,
compileSdk : 29,
versionCode : 17,
versionName : '1.1.6',

gradleBuildTool : '3.6.3',
spotlessGradle : '3.30.0',
dokkaGradle : '0.10.1',
bintrayRelease : '0.9.2',
gradleBuildTool : '3.6.3',
spotlessGradle : '3.30.0',
dokkaGradle : '0.10.1',
bintrayRelease : '0.9.2',

kotlin : '1.3.70',
androidxAppcompat : '1.1.0',
cardView : '1.0.0',
kotlin : '1.3.70',
androidxAppcompat: '1.1.0',
lifecycle : '2.3.0-alpha01',
cardView : '1.0.0',

// for demo
googleMaterial : '1.2.0-alpha06'
googleMaterial : '1.2.0-alpha06'
]

0 comments on commit 15daa88

Please sign in to comment.