Skip to content

Commit 16b8174

Browse files
committed
update to Compose 1.2.0
1 parent 9775e72 commit 16b8174

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+58
-81
lines changed

README.md

Lines changed: 1 addition & 1 deletion

app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ android {
2525
exclude("win32-x86-64/attach_hotspot_windows.dll")
2626
pickFirst("META-INF/licenses/ASM")
2727
}
28-
compileSdkVersion 31
28+
compileSdkVersion 32
2929
defaultConfig {
3030
applicationId "de.jensklingenberg.jetpackcomposeplayground"
3131
minSdkVersion 21
32-
targetSdkVersion 31
32+
targetSdkVersion 32
3333
versionCode 1
3434
versionName "1.0"
3535
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -83,7 +83,7 @@ subprojects {
8383
}
8484

8585
dependencies {
86-
def compose_version = "1.1.1"
86+
def compose_version = "1.2.0"
8787

8888
implementation fileTree(dir: 'libs', include: ['*.jar'])
8989
implementation "androidx.appcompat:appcompat:1.4.2"

app/src/main/java/de/jensklingenberg/jetpackcomposeplayground/mysamples/github/foundation/LazyVerticalGridDemo.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
package de.jensklingenberg.jetpackcomposeplayground.mysamples.github.foundation
22

3-
import androidx.compose.foundation.ExperimentalFoundationApi
43
import androidx.compose.foundation.layout.PaddingValues
54
import androidx.compose.foundation.layout.fillMaxWidth
65
import androidx.compose.foundation.layout.padding
7-
import androidx.compose.foundation.lazy.GridCells
8-
import androidx.compose.foundation.lazy.LazyVerticalGrid
6+
import androidx.compose.foundation.lazy.grid.GridCells
7+
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
98
import androidx.compose.material.Card
109
import androidx.compose.material.Text
1110
import androidx.compose.runtime.Composable
@@ -16,13 +15,12 @@ import androidx.compose.ui.text.style.TextAlign
1615
import androidx.compose.ui.unit.dp
1716
import androidx.compose.ui.unit.sp
1817

19-
@OptIn(ExperimentalFoundationApi::class)
2018
@Composable
2119
fun LazyVerticalGridDemo(){
2220
val list = (1..10).map { it.toString() }
2321

2422
LazyVerticalGrid(
25-
cells = GridCells.Adaptive(128.dp),
23+
columns = GridCells.Adaptive(128.dp),
2624

2725
// content padding
2826
contentPadding = PaddingValues(

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
buildscript {
55
ext {
6-
compose_version = '1.1.1'
6+
compose_version = '1.2.0'
77
kotlin_version = "1.7.0"
88
}
99
repositories {

docs/activity/backhandler.md

Lines changed: 1 addition & 1 deletion

docs/animation/crossfade.md

Lines changed: 1 addition & 1 deletion

docs/cookbook/get_android_context.md

Lines changed: 1 addition & 1 deletion

docs/cookbook/how_to_create_custom_shape.md

Lines changed: 1 addition & 1 deletion

docs/cookbook/loadimage.md

Lines changed: 1 addition & 1 deletion

docs/cookbook/textfield_changes.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)