Skip to content

Commit

Permalink
Depend on ktx artifacts.
Browse files Browse the repository at this point in the history
  • Loading branch information
ychescale9 committed Jun 18, 2020
1 parent 29cecce commit 5578e9e
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion flowbinding-activity/fixtures/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ android.buildFeatures.viewBinding = true
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}"
implementation "androidx.activity:activity-ktx:${versions.androidx.activity}"
implementation "androidx.fragment:fragment:${versions.androidx.fragment}"
implementation "androidx.fragment:fragment-ktx:${versions.androidx.fragment}"
}
2 changes: 1 addition & 1 deletion flowbinding-android/fixtures/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ android.buildFeatures.viewBinding = true

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}"
implementation "androidx.fragment:fragment:${versions.androidx.fragment}"
implementation "androidx.fragment:fragment-ktx:${versions.androidx.fragment}"
}
2 changes: 1 addition & 1 deletion flowbinding-appcompat/fixtures/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ android.buildFeatures.viewBinding = true
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}"
implementation "androidx.appcompat:appcompat:${versions.androidx.appCompat}"
implementation "androidx.fragment:fragment:${versions.androidx.fragment}"
implementation "androidx.fragment:fragment-ktx:${versions.androidx.fragment}"
}
2 changes: 1 addition & 1 deletion flowbinding-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ android {
dependencies {
implementation project(':flowbinding-common')

implementation "androidx.core:core:${versions.androidx.core}"
implementation "androidx.core:core-ktx:${versions.androidx.core}"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:${versions.kotlinx.coroutines}"

lintChecks project(":lint-rules")
Expand Down
4 changes: 2 additions & 2 deletions flowbinding-core/fixtures/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ android.buildFeatures.viewBinding = true

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}"
implementation "androidx.core:core:${versions.androidx.core}"
implementation "androidx.fragment:fragment:${versions.androidx.fragment}"
implementation "androidx.core:core-ktx:${versions.androidx.core}"
implementation "androidx.fragment:fragment-ktx:${versions.androidx.fragment}"
}
2 changes: 1 addition & 1 deletion flowbinding-drawerlayout/fixtures/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ android.buildFeatures.viewBinding = true
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}"
implementation "androidx.drawerlayout:drawerlayout:${versions.androidx.drawerLayout}"
implementation "androidx.fragment:fragment:${versions.androidx.fragment}"
implementation "androidx.fragment:fragment-ktx:${versions.androidx.fragment}"
}
2 changes: 1 addition & 1 deletion flowbinding-lifecycle/fixtures/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ android.buildFeatures.viewBinding = true
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}"
implementation "androidx.lifecycle:lifecycle-common-java8:${versions.androidx.lifecycle}"
implementation "androidx.fragment:fragment:${versions.androidx.fragment}"
implementation "androidx.fragment:fragment-ktx:${versions.androidx.fragment}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import reactivecircus.flowbinding.common.safeOffer
fun Lifecycle.events(): Flow<Lifecycle.Event> = callbackFlow {
checkMainThread()
val observer = object : LifecycleObserver {
@Suppress("UNUSED_PARAMETER")
@OnLifecycleEvent(Lifecycle.Event.ON_ANY)
fun onEvent(owner: LifecycleOwner, event: Lifecycle.Event) {
safeOffer(event)
Expand Down
2 changes: 1 addition & 1 deletion flowbinding-material/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies {
implementation project(':flowbinding-common')

implementation "com.google.android.material:material:${versions.material}"
implementation "androidx.fragment:fragment:${versions.androidx.fragment}"
implementation "androidx.fragment:fragment-ktx:${versions.androidx.fragment}"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:${versions.kotlinx.coroutines}"

lintChecks project(":lint-rules")
Expand Down
2 changes: 1 addition & 1 deletion flowbinding-material/fixtures/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ android.buildFeatures.viewBinding = true
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}"
implementation "com.google.android.material:material:${versions.material}"
implementation "androidx.fragment:fragment:${versions.androidx.fragment}"
implementation "androidx.fragment:fragment-ktx:${versions.androidx.fragment}"
implementation "androidx.coordinatorlayout:coordinatorlayout:${versions.androidx.coordinatorLayout}"
}
2 changes: 1 addition & 1 deletion flowbinding-navigation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ android {
dependencies {
implementation project(':flowbinding-common')

implementation "androidx.navigation:navigation-runtime:${versions.androidx.navigation}"
implementation "androidx.navigation:navigation-runtime-ktx:${versions.androidx.navigation}"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:${versions.kotlinx.coroutines}"

lintChecks project(":lint-rules")
Expand Down
2 changes: 1 addition & 1 deletion flowbinding-navigation/fixtures/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ android.buildFeatures.viewBinding = true
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}"
implementation "androidx.navigation:navigation-fragment-ktx:${versions.androidx.navigation}"
implementation "androidx.fragment:fragment:${versions.androidx.fragment}"
implementation "androidx.fragment:fragment-ktx:${versions.androidx.fragment}"
}
2 changes: 1 addition & 1 deletion flowbinding-preference/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ android {
dependencies {
implementation project(':flowbinding-common')

implementation "androidx.preference:preference:${versions.androidx.preference}"
implementation "androidx.preference:preference-ktx:${versions.androidx.preference}"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:${versions.kotlinx.coroutines}"

lintChecks project(":lint-rules")
Expand Down
2 changes: 1 addition & 1 deletion flowbinding-preference/fixtures/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ android.buildFeatures.viewBinding = true

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}"
implementation "androidx.preference:preference:${versions.androidx.preference}"
implementation "androidx.preference:preference-ktx:${versions.androidx.preference}"
}
2 changes: 1 addition & 1 deletion flowbinding-recyclerview/fixtures/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ android.buildFeatures.viewBinding = true
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}"
implementation "androidx.recyclerview:recyclerview:${versions.androidx.recyclerView}"
implementation "androidx.fragment:fragment:${versions.androidx.fragment}"
implementation "androidx.fragment:fragment-ktx:${versions.androidx.fragment}"
}
2 changes: 1 addition & 1 deletion flowbinding-swiperefreshlayout/fixtures/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ android.buildFeatures.viewBinding = true
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}"
implementation "androidx.swiperefreshlayout:swiperefreshlayout:${versions.androidx.swipeRefreshLayout}"
implementation "androidx.fragment:fragment:${versions.androidx.fragment}"
implementation "androidx.fragment:fragment-ktx:${versions.androidx.fragment}"
}
2 changes: 1 addition & 1 deletion flowbinding-viewpager/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies {
implementation project(':flowbinding-common')

implementation "androidx.viewpager:viewpager:${versions.androidx.viewPager}"
implementation "androidx.fragment:fragment:${versions.androidx.fragment}"
implementation "androidx.fragment:fragment-ktx:${versions.androidx.fragment}"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:${versions.kotlinx.coroutines}"

lintChecks project(":lint-rules")
Expand Down
2 changes: 1 addition & 1 deletion flowbinding-viewpager/fixtures/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ android.buildFeatures.viewBinding = true
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}"
implementation "androidx.viewpager:viewpager:${versions.androidx.viewPager}"
implementation "androidx.fragment:fragment:${versions.androidx.fragment}"
implementation "androidx.fragment:fragment-ktx:${versions.androidx.fragment}"
}
2 changes: 1 addition & 1 deletion flowbinding-viewpager2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies {
implementation project(':flowbinding-common')

implementation "androidx.viewpager2:viewpager2:${versions.androidx.viewPager2}"
implementation "androidx.fragment:fragment:${versions.androidx.fragment}"
implementation "androidx.fragment:fragment-ktx:${versions.androidx.fragment}"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:${versions.kotlinx.coroutines}"

lintChecks project(":lint-rules")
Expand Down
2 changes: 1 addition & 1 deletion flowbinding-viewpager2/fixtures/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ android.buildFeatures.viewBinding = true
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}"
implementation "androidx.viewpager2:viewpager2:${versions.androidx.viewPager2}"
implementation "androidx.fragment:fragment:${versions.androidx.fragment}"
implementation "androidx.fragment:fragment-ktx:${versions.androidx.fragment}"
}

0 comments on commit 5578e9e

Please sign in to comment.