Skip to content

Commit

Permalink
[All] Update to Compose 1.2.0-rc02 (android#853)
Browse files Browse the repository at this point in the history
* [All] Update to Compose 1.2.0-rc02

* Update Accompanist.

* Remove snapshot_version and also update upgrade_samples.sh to clear snapshot version when not provided.
  • Loading branch information
arriolac committed Jun 23, 2022
1 parent 3d0b54f commit e6f9d37
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ object Libs {

object Compose {
const val snapshot = ""
const val version = "1.2.0-rc01"
const val version = "1.2.0-rc02"

const val runtime = "androidx.compose.runtime:runtime:$version"
const val runtimeLivedata = "androidx.compose.runtime:runtime-livedata:$version"
Expand Down
4 changes: 2 additions & 2 deletions JetNews/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

buildscript {
ext.kotlin_version = '1.6.21'
ext.compose_version = '1.2.0-rc01'
ext.compose_version = '1.2.0-rc02'
ext.compose_snapshot_version = ''
ext.coroutines_version = '1.6.0'
ext.accompanist_version = '0.24.11-rc'
ext.accompanist_version = '0.24.12-rc'

repositories {
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ object Libs {
const val jdkDesugar = "com.android.tools:desugar_jdk_libs:1.1.5"

object Accompanist {
const val version = "0.24.11-rc"
const val version = "0.24.12-rc"
const val pager = "com.google.accompanist:accompanist-pager:$version"
}

Expand Down Expand Up @@ -70,7 +70,7 @@ object Libs {

object Compose {
const val snapshot = ""
const val version = "1.2.0-rc01"
const val version = "1.2.0-rc02"

@get:JvmStatic
val snapshotUrl: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ object Libs {

object Compose {
const val snapshot = ""
const val version = "1.2.0-rc01"
const val version = "1.2.0-rc02"

const val foundation = "androidx.compose.foundation:foundation:$version"
const val layout = "androidx.compose.foundation:foundation-layout:$version"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ object Libs {
const val androidGradlePlugin = "com.android.tools.build:gradle:7.2.1"

object Accompanist {
const val version = "0.24.11-rc"
const val version = "0.24.12-rc"
const val systemuicontroller = "com.google.accompanist:accompanist-systemuicontroller:$version"
const val flowlayouts = "com.google.accompanist:accompanist-flowlayout:$version"
}
Expand All @@ -48,7 +48,7 @@ object Libs {

object Compose {
const val snapshot = ""
const val version = "1.2.0-rc01"
const val version = "1.2.0-rc02"

const val foundation = "androidx.compose.foundation:foundation:${version}"
const val layout = "androidx.compose.foundation:foundation-layout:${version}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ object Libs {
const val junit = "junit:junit:4.13.2"

object Accompanist {
const val version = "0.24.11-rc"
const val version = "0.24.12-rc"
const val permissions = "com.google.accompanist:accompanist-permissions:$version"
}

Expand Down Expand Up @@ -61,7 +61,7 @@ object Libs {

object Compose {
const val snapshot = ""
const val version = "1.2.0-rc01"
const val version = "1.2.0-rc02"

@get:JvmStatic
val snapshotUrl: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ object Libs {

object Compose {
const val snapshot = ""
const val version = "1.2.0-rc01"
const val version = "1.2.0-rc02"

const val animation = "androidx.compose.animation:animation:$version"
const val foundation = "androidx.compose.foundation:foundation:$version"
Expand Down
4 changes: 2 additions & 2 deletions scripts/upgrade_samples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ for DEPENDENCIES_FILE in `find . -type f -iname "dependencies.kt"` ; do
if [[ $line == *"val version ="* && "$compose_version" != "" ]] && $COMPOSE_BLOCK = true; then
echo "$line" | sed -En 's/".*"/"'$compose_version'"/p'
MADE_CHANGE=true;
elif [[ $line == *"val snapshot ="* && "$snapshot_version" != "" ]] && $COMPOSE_BLOCK = true; then
elif [[ $line == *"val snapshot ="* ]] && $COMPOSE_BLOCK = true; then
echo "$line" | sed -En 's/".*"/"'$snapshot_version'"/p'
MADE_CHANGE=true;
elif [[ $line == *"val version ="* && "$accompanist_version" != "" ]] && $ACCOMPANIST_BLOCK = true; then
Expand Down Expand Up @@ -102,7 +102,7 @@ for DEPENDENCIES_FILE in `find . -type f -iname "build.gradle"` ; do
if [[ $line == *"ext.compose_version ="* && "$compose_version" != "" ]]; then
echo "$line" | sed -En "s/\'.*'/\'$compose_version\'/p"
MADE_CHANGE=true;
elif [[ $line == *"ext.compose_snapshot_version ="* && "$snapshot_version" != "" ]]; then
elif [[ $line == *"ext.compose_snapshot_version ="* ]]; then
echo "$line" | sed -En "s/\'.*'/\'$snapshot_version\'/p"
MADE_CHANGE=true;
elif [[ $line == *"ext.accompanist_version ="* && "$accompanist_version" != "" ]]; then
Expand Down

0 comments on commit e6f9d37

Please sign in to comment.