Skip to content

Commit e864bd9

Browse files
Merge pull request android#296 from googlecodelabs/jv/basics-m3-bom
Update Compose Basics version
2 parents 95f72f2 + 55ee6f7 commit e864bd9

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

BasicsCodelab/app/build.gradle

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,21 @@ android {
5959
}
6060

6161
dependencies {
62+
def composeBom = platform('androidx.compose:compose-bom:2022.10.00')
63+
implementation(composeBom)
64+
androidTestImplementation(composeBom)
65+
6266
implementation 'androidx.core:core-ktx:1.7.0'
6367
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
6468
implementation 'androidx.activity:activity-compose:1.5.1'
65-
implementation "androidx.compose.ui:ui:$compose_version"
66-
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
67-
implementation 'androidx.compose.material3:material3:1.0.0-SNAPSHOT'
68-
implementation "androidx.compose.material:material-icons-extended:$compose_version"
69+
implementation "androidx.compose.ui:ui"
70+
implementation "androidx.compose.ui:ui-tooling-preview"
71+
implementation 'androidx.compose.material3:material3'
72+
implementation "androidx.compose.material:material-icons-extended"
6973
testImplementation 'junit:junit:4.13.2'
7074
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
7175
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
72-
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
73-
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
74-
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
76+
androidTestImplementation "androidx.compose.ui:ui-test-junit4"
77+
debugImplementation "androidx.compose.ui:ui-tooling"
78+
debugImplementation "androidx.compose.ui:ui-test-manifest"
7579
}

BasicsCodelab/build.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
*/
1616

1717
// Top-level build file where you can add configuration options common to all sub-projects/modules.
18-
buildscript {
19-
ext {
20-
compose_version = '1.3.0-SNAPSHOT'
21-
}
22-
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
2318
plugins {
2419
id 'com.android.application' version '7.3.0' apply false
2520
id 'com.android.library' version '7.3.0' apply false

BasicsCodelab/settings.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ dependencyResolutionManagement {
2525
repositories {
2626
google()
2727
mavenCentral()
28-
maven { url "https://androidx.dev/snapshots/builds/9153353/artifacts/repository/" }
2928
}
3029
}
3130
rootProject.name = "BasicsCodelab"

0 commit comments

Comments
 (0)