File tree Expand file tree Collapse file tree
buildSrc/src/main/java/com/example/crane/buildsrc
app/src/main/java/com/example/jetcaster/ui
buildSrc/src/main/java/com/example/jetcaster/buildsrc
buildSrc/src/main/java/com/example/compose/jetchat/buildsrc
buildSrc/src/main/java/com/example/jetsnack/buildsrc
buildSrc/src/main/java/com/example/compose/jetsurvey/buildsrc
buildSrc/src/main/java/com/example/owl/buildsrc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ buildscript {
3030}
3131
3232plugins {
33- id ' com.diffplug.spotless' version ' 5.17.1 '
33+ id ' com.diffplug.spotless' version ' 6.0.0 '
3434}
3535
3636subprojects {
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ object Libs {
3434 }
3535
3636 object Accompanist {
37- const val version = " 0.21.2 -beta"
37+ const val version = " 0.21.3 -beta"
3838 const val insets = " com.google.accompanist:accompanist-insets:$version "
3939 }
4040
@@ -60,7 +60,7 @@ object Libs {
6060
6161 object Compose {
6262 const val snapshot = " "
63- const val version = " 1.1.0-beta02 "
63+ const val version = " 1.1.0-beta03 "
6464
6565 const val runtime = " androidx.compose.runtime:runtime:$version "
6666 const val runtimeLivedata = " androidx.compose.runtime:runtime-livedata:$version "
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ dependencies {
118118
119119 implementation ' androidx.navigation:navigation-compose:2.4.0-beta02'
120120
121- implementation " androidx.window:window:1.0.0-beta03 "
121+ implementation " androidx.window:window:1.0.0-beta04 "
122122
123123 androidTestImplementation ' androidx.test:core:1.4.0'
124124 androidTestImplementation ' androidx.test:rules:1.4.0'
Original file line number Diff line number Diff line change 1616
1717buildscript {
1818 ext. kotlin_version = ' 1.5.31'
19- ext. compose_version = ' 1.1.0-beta02 '
19+ ext. compose_version = ' 1.1.0-beta03 '
2020 ext. coroutines_version = ' 1.5.2'
21- ext. accompanist_version = ' 0.21.2 -beta'
21+ ext. accompanist_version = ' 0.21.3 -beta'
2222
2323 repositories {
2424 google()
@@ -32,7 +32,7 @@ buildscript {
3232}
3333
3434plugins {
35- id ' com.diffplug.spotless' version ' 5.17.1 '
35+ id ' com.diffplug.spotless' version ' 6.0.0 '
3636}
3737
3838subprojects {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import androidx.core.view.WindowCompat
2323import androidx.lifecycle.flowWithLifecycle
2424import androidx.lifecycle.lifecycleScope
2525import androidx.window.layout.FoldingFeature
26- import androidx.window.layout.WindowInfoRepository .Companion.windowInfoRepository
26+ import androidx.window.layout.WindowInfoTracker .Companion.getOrCreate
2727import com.example.jetcaster.ui.theme.JetcasterTheme
2828import com.example.jetcaster.util.DevicePosture
2929import com.example.jetcaster.util.isBookPosture
@@ -43,7 +43,7 @@ class MainActivity : ComponentActivity() {
4343 /* *
4444 * Flow of [DevicePosture] that emits every time there's a change in the windowLayoutInfo
4545 */
46- val devicePosture = windowInfoRepository( ).windowLayoutInfo
46+ val devicePosture = getOrCreate( this ).windowLayoutInfo( this )
4747 .flowWithLifecycle(this .lifecycle)
4848 .map { layoutInfo ->
4949 val foldingFeature =
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ buildscript {
3030}
3131
3232plugins {
33- id ' com.diffplug.spotless' version ' 5.17.1 '
33+ id ' com.diffplug.spotless' version ' 6.0.0 '
3434}
3535
3636subprojects {
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ object Libs {
2525 const val jdkDesugar = " com.android.tools:desugar_jdk_libs:1.1.5"
2626
2727 object Accompanist {
28- const val version = " 0.21.2 -beta"
28+ const val version = " 0.21.3 -beta"
2929 const val insets = " com.google.accompanist:accompanist-insets:$version "
3030 const val pager = " com.google.accompanist:accompanist-pager:$version "
3131 }
@@ -71,7 +71,7 @@ object Libs {
7171
7272 object Compose {
7373 const val snapshot = " "
74- const val version = " 1.1.0-beta02 "
74+ const val version = " 1.1.0-beta03 "
7575
7676 @get:JvmStatic
7777 val snapshotUrl: String
@@ -120,7 +120,7 @@ object Libs {
120120 }
121121
122122 object Window {
123- const val window = " androidx.window:window:1.0.0-beta02 "
123+ const val window = " androidx.window:window:1.0.0-beta04 "
124124 }
125125 }
126126
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ buildscript {
3232}
3333
3434plugins {
35- id ' com.diffplug.spotless' version ' 5.17.1 '
35+ id ' com.diffplug.spotless' version ' 6.0.0 '
3636}
3737
3838subprojects {
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ object Libs {
2929 const val material3 = " com.google.android.material:material:1.5.0-alpha05"
3030
3131 object Accompanist {
32- const val version = " 0.21.2 -beta"
32+ const val version = " 0.21.3 -beta"
3333 const val insets = " com.google.accompanist:accompanist-insets:$version "
3434 }
3535
@@ -57,7 +57,7 @@ object Libs {
5757
5858 object Compose {
5959 const val snapshot = " "
60- const val version = " 1.1.0-beta02 "
60+ const val version = " 1.1.0-beta03 "
6161
6262 const val foundation = " androidx.compose.foundation:foundation:$version "
6363 const val layout = " androidx.compose.foundation:foundation-layout:$version "
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ buildscript {
2929}
3030
3131plugins {
32- id ' com.diffplug.spotless' version ' 5.17.1 '
32+ id ' com.diffplug.spotless' version ' 6.0.0 '
3333}
3434
3535subprojects {
You can’t perform that action at this time.
0 commit comments