Skip to content

Commit

Permalink
[All] Update to Compose 1.2.0-beta01 (#799)
Browse files Browse the repository at this point in the history
* Compose 1.2.0-alpha08 -> 1.2.0-beta01
* AGP 7.1.2 -> 7.2.0
* Gradle 7.3.2 -> 7.4.2
* Kotlin 1.6.20 -> 1.6.21
* Spotless 6.4.2 -> 6.5.2
* Accompanist 0.24.7-alpha -> 0.24.8-beta
  • Loading branch information
IanGClifton authored May 12, 2022
1 parent b2a640b commit b73bdeb
Show file tree
Hide file tree
Showing 23 changed files with 50 additions and 44 deletions.
8 changes: 8 additions & 0 deletions Crane/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ android {
excludes += "/META-INF/AL2.0"
excludes += "/META-INF/LGPL2.1"
}

// TODO: Lint issues https://github.com/android/compose-samples/issues/800
// Lint fails to run for this sample and suggests disabling these specific checks. That at least
// lets us verify everything else is working, but we should figure out why the error is
// happening.
lintOptions {
disable "JvmStaticProvidesInObjectDetector", "FieldSiteTargetOnQualifierAnnotation", "ModuleCompanionObjects", "ModuleCompanionObjectsNotInModuleParent"
}
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion Crane/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ buildscript {
}

plugins {
id 'com.diffplug.spotless' version '6.4.2'
id 'com.diffplug.spotless' version '6.5.2'
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ object Versions {
}

object Libs {
const val androidGradlePlugin = "com.android.tools.build:gradle:7.1.2"
const val androidGradlePlugin = "com.android.tools.build:gradle:7.2.0"
const val ktLint = "com.pinterest:ktlint:${Versions.ktLint}"

const val coreLibraryDesugar = "com.android.tools:desugar_jdk_libs:1.1.5"
Expand All @@ -36,7 +36,7 @@ object Libs {
}

object Kotlin {
private const val version = "1.6.20"
private const val version = "1.6.21"
const val stdlib = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$version"
const val gradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$version"
const val extensions = "org.jetbrains.kotlin:kotlin-android-extensions:$version"
Expand All @@ -57,7 +57,7 @@ object Libs {

object Compose {
const val snapshot = ""
const val version = "1.2.0-alpha08"
const val version = "1.2.0-beta01"

const val runtime = "androidx.compose.runtime:runtime:$version"
const val runtimeLivedata = "androidx.compose.runtime:runtime-livedata:$version"
Expand Down
2 changes: 1 addition & 1 deletion Crane/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
10 changes: 5 additions & 5 deletions JetNews/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@
*/

buildscript {
ext.kotlin_version = '1.6.20'
ext.compose_version = '1.2.0-alpha08'
ext.kotlin_version = '1.6.21'
ext.compose_version = '1.2.0-beta01'
ext.compose_snapshot_version = ''
ext.coroutines_version = '1.6.0'
ext.accompanist_version = '0.24.7-alpha'
ext.accompanist_version = '0.24.8-beta'

repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath 'com.android.tools.build:gradle:7.2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

plugins {
id 'com.diffplug.spotless' version '6.4.2'
id 'com.diffplug.spotless' version '6.5.2'
}

subprojects {
Expand Down
2 changes: 1 addition & 1 deletion JetNews/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.lifecycle.viewmodel.compose.viewModel
import coil.annotation.ExperimentalCoilApi
import coil.compose.rememberImagePainter
import com.example.jetcaster.R
import com.example.jetcaster.data.PodcastWithExtraInfo
Expand Down Expand Up @@ -344,7 +343,6 @@ fun FollowedPodcasts(
}
}

@OptIn(ExperimentalCoilApi::class)
@Composable
private fun FollowedPodcastCarouselItem(
modifier: Modifier = Modifier,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ val PreviewEpisodes = listOf(
podcastUri = PreviewPodcasts[0].uri,
title = "Episode 140: Bubbles!",
summary = "In this episode, Romain, Chet and Tor talked with Mady Melor and Artur Tsurkan from the System UI team about... Bubbles!",
published = OffsetDateTime.of(2020, 6, 2, 9, 27, 0, 0, ZoneOffset.of("PST"))
published = OffsetDateTime.of(2020, 6, 2, 9, 27, 0, 0, ZoneOffset.of("-0800"))
)
)
2 changes: 1 addition & 1 deletion Jetcaster/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ buildscript {
}

plugins {
id 'com.diffplug.spotless' version '6.4.2'
id 'com.diffplug.spotless' version '6.5.2'
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ object Versions {
}

object Libs {
const val androidGradlePlugin = "com.android.tools.build:gradle:7.1.2"
const val androidGradlePlugin = "com.android.tools.build:gradle:7.2.0"
const val jdkDesugar = "com.android.tools:desugar_jdk_libs:1.1.5"

object Accompanist {
const val version = "0.24.7-alpha"
const val version = "0.24.8-beta"
const val pager = "com.google.accompanist:accompanist-pager:$version"
}

object Kotlin {
private const val version = "1.6.20"
private const val version = "1.6.21"
const val stdlib = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$version"
const val gradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$version"
const val extensions = "org.jetbrains.kotlin:kotlin-android-extensions:$version"
Expand Down Expand Up @@ -70,7 +70,7 @@ object Libs {

object Compose {
const val snapshot = ""
const val version = "1.2.0-alpha08"
const val version = "1.2.0-beta01"

@get:JvmStatic
val snapshotUrl: String
Expand Down
2 changes: 1 addition & 1 deletion Jetcaster/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion Jetchat/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ buildscript {
}

plugins {
id 'com.diffplug.spotless' version '6.4.2'
id 'com.diffplug.spotless' version '6.5.2'
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ object Versions {
}

object Libs {
const val androidGradlePlugin = "com.android.tools.build:gradle:7.1.2"
const val androidGradlePlugin = "com.android.tools.build:gradle:7.2.0"
const val jdkDesugar = "com.android.tools:desugar_jdk_libs:1.1.5"

const val junit = "junit:junit:4.13"

const val material3 = "com.google.android.material:material:1.6.0-alpha03"

object Kotlin {
private const val version = "1.6.20"
private const val version = "1.6.21"
const val stdlib = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$version"
const val gradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$version"
const val extensions = "org.jetbrains.kotlin:kotlin-android-extensions:$version"
Expand All @@ -52,7 +52,7 @@ object Libs {

object Compose {
const val snapshot = ""
const val version = "1.2.0-alpha08"
const val version = "1.2.0-beta01"

const val foundation = "androidx.compose.foundation:foundation:$version"
const val layout = "androidx.compose.foundation:foundation-layout:$version"
Expand Down
2 changes: 1 addition & 1 deletion Jetchat/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
6 changes: 3 additions & 3 deletions Jetsnack/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ buildscript {
}

plugins {
id 'com.diffplug.spotless' version '6.4.2'
id 'com.android.test' version '7.3.0-alpha07' apply false
id 'org.jetbrains.kotlin.android' version '1.6.20' apply false
id 'com.diffplug.spotless' version '6.5.2'
id 'com.android.test' version '7.3.0-alpha09' apply false
id 'org.jetbrains.kotlin.android' version '1.6.21' apply false
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ object Versions {
}

object Libs {
const val androidGradlePlugin = "com.android.tools.build:gradle:7.3.0-alpha07"
const val androidGradlePlugin = "com.android.tools.build:gradle:7.3.0-alpha09"

object Accompanist {
const val version = "0.24.7-alpha"
const val version = "0.24.8-beta"
const val systemuicontroller = "com.google.accompanist:accompanist-systemuicontroller:$version"
const val flowlayouts = "com.google.accompanist:accompanist-flowlayout:$version"
}

object Kotlin {
private const val version = "1.6.20"
private const val version = "1.6.21"
const val stdlib = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$version"
const val gradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$version"
const val extensions = "org.jetbrains.kotlin:kotlin-android-extensions:$version"
Expand All @@ -49,7 +49,7 @@ object Libs {

object Compose {
const val snapshot = ""
const val version = "1.2.0-alpha08"
const val version = "1.2.0-beta01"

const val foundation = "androidx.compose.foundation:foundation:${version}"
const val layout = "androidx.compose.foundation:foundation-layout:${version}"
Expand Down
2 changes: 1 addition & 1 deletion Jetsnack/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion Jetsurvey/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ buildscript {
}

plugins {
id 'com.diffplug.spotless' version '6.4.2'
id 'com.diffplug.spotless' version '6.5.2'
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ object Versions {
}

object Libs {
const val androidGradlePlugin = "com.android.tools.build:gradle:7.1.2"
const val androidGradlePlugin = "com.android.tools.build:gradle:7.2.0"
const val jdkDesugar = "com.android.tools:desugar_jdk_libs:1.1.5"

const val junit = "junit:junit:4.13"

object Accompanist {
const val version = "0.24.7-alpha"
const val version = "0.24.8-beta"
const val permissions = "com.google.accompanist:accompanist-permissions:$version"
}

object Kotlin {
private const val version = "1.6.20"
private const val version = "1.6.21"
const val stdlib = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$version"
const val gradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$version"
const val extensions = "org.jetbrains.kotlin:kotlin-android-extensions:$version"
Expand Down Expand Up @@ -61,7 +61,7 @@ object Libs {

object Compose {
const val snapshot = ""
const val version = "1.2.0-alpha08"
const val version = "1.2.0-beta01"

@get:JvmStatic
val snapshotUrl: String
Expand Down
2 changes: 1 addition & 1 deletion Jetsurvey/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion Owl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ buildscript {
}

plugins {
id 'com.diffplug.spotless' version '6.4.2'
id 'com.diffplug.spotless' version '6.5.2'
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ object Versions {
}

object Libs {
const val androidGradlePlugin = "com.android.tools.build:gradle:7.1.2"
const val androidGradlePlugin = "com.android.tools.build:gradle:7.2.0"

object Kotlin {
private const val version = "1.6.20"
private const val version = "1.6.21"
const val stdlib = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$version"
const val gradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$version"
const val extensions = "org.jetbrains.kotlin:kotlin-android-extensions:$version"
Expand Down Expand Up @@ -52,7 +52,7 @@ object Libs {

object Compose {
const val snapshot = ""
const val version = "1.2.0-alpha08"
const val version = "1.2.0-beta01"

const val animation = "androidx.compose.animation:animation:$version"
const val foundation = "androidx.compose.foundation:foundation:$version"
Expand Down
2 changes: 1 addition & 1 deletion Owl/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit b73bdeb

Please sign in to comment.