Skip to content

Commit

Permalink
Update main | Compose 1.2.1 | Compiler 1.3.0 | Kotlin 1.7.10 (#924)
Browse files Browse the repository at this point in the history
* Update versions

* Address review comments
  • Loading branch information
JolandaVerhoef authored Aug 12, 2022
1 parent 0589ee1 commit c739be3
Show file tree
Hide file tree
Showing 17 changed files with 231 additions and 93 deletions.
4 changes: 2 additions & 2 deletions Crane/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ android {

dependencies {
implementation Libs.Kotlin.stdlib
implementation Libs.Kotlin.Coroutines.android
implementation Libs.Coroutines.android
implementation Libs.GoogleMaps.maps
implementation Libs.GoogleMaps.composeMaps
constraints {
Expand Down Expand Up @@ -144,7 +144,7 @@ dependencies {
androidTestImplementation Libs.AndroidX.Test.espressoCore
androidTestImplementation Libs.AndroidX.Test.rules
androidTestImplementation Libs.AndroidX.Test.Ext.junit
androidTestImplementation Libs.Kotlin.Coroutines.test
androidTestImplementation Libs.Coroutines.test
androidTestImplementation Libs.AndroidX.Compose.uiTest
androidTestImplementation Libs.Hilt.android
androidTestImplementation Libs.Hilt.testing
Expand Down
3 changes: 3 additions & 0 deletions Crane/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ subprojects {
if (!Libs.AndroidX.Compose.snapshot.isEmpty()) {
maven { url Urls.composeSnapshotRepo }
}
if (!Libs.AndroidX.Compose.compilerSnapshot.isEmpty()) {
maven { url Urls.composeCompilerSnapshotRepo }
}
}

apply plugin: 'com.diffplug.spotless'
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.2.1"
const val androidGradlePlugin = "com.android.tools.build:gradle:7.2.2"
const val secretsGradlePlugin = "com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin:2.0.1"
const val ktLint = "com.pinterest:ktlint:${Versions.ktlint}"

Expand All @@ -37,16 +37,16 @@ object Libs {
}

object Kotlin {
private const val version = "1.7.0"
private const val version = "1.7.10"
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"
}

object Coroutines {
private const val version = "1.6.0"
const val android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$version"
const val test = "org.jetbrains.kotlinx:kotlinx-coroutines-test:$version"
}
object Coroutines {
private const val version = "1.6.0"
const val android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$version"
const val test = "org.jetbrains.kotlinx:kotlinx-coroutines-test:$version"
}

object AndroidX {
Expand All @@ -57,9 +57,10 @@ object Libs {
const val appcompat = "androidx.appcompat:appcompat:1.4.1"

object Compose {
const val compilerVersion = "1.2.0"
const val compilerSnapshot = ""
const val compilerVersion = "1.3.0"
const val snapshot = ""
const val version = "1.2.0"
const val version = "1.2.1"

const val runtime = "androidx.compose.runtime:runtime:$version"
const val runtimeLivedata = "androidx.compose.runtime:runtime-livedata:$version"
Expand Down Expand Up @@ -125,4 +126,6 @@ object Urls {
const val mavenCentralSnapshotRepo = "https://oss.sonatype.org/content/repositories/snapshots/"
const val composeSnapshotRepo = "https://androidx.dev/snapshots/builds/" +
"${Libs.AndroidX.Compose.snapshot}/artifacts/repository/"
const val composeCompilerSnapshotRepo = "https://androidx.dev/snapshots/builds/" +
"${Libs.AndroidX.Compose.compilerSnapshot}/artifacts/repository/"
}
11 changes: 8 additions & 3 deletions JetNews/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
*/

buildscript {
ext.kotlin_version = '1.7.0'
ext.compose_compiler_version = '1.2.0'
ext.compose_version = '1.2.0'
ext.kotlin_version = '1.7.10'
ext.compose_compiler_version = '1.3.0'
ext.compose_compiler_snapshot_version = ''
ext.compose_version = '1.2.1'
ext.compose_snapshot_version = ''
ext.coroutines_version = '1.6.0'
ext.accompanist_version = '0.25.1'
Expand Down Expand Up @@ -47,6 +48,10 @@ subprojects {
maven { url "https://androidx.dev/snapshots/builds/" +
"${compose_snapshot_version}/artifacts/repository/" }
}
if (!compose_compiler_snapshot_version.isEmpty()) {
maven { url "https://androidx.dev/snapshots/builds/" +
"${compose_compiler_snapshot_version}/artifacts/repository/" }
}
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}

Expand Down
4 changes: 4 additions & 0 deletions Jetcaster/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

import com.example.jetcaster.buildsrc.Libs
import com.example.jetcaster.buildsrc.Urls
import com.example.jetcaster.buildsrc.Versions

buildscript {
Expand Down Expand Up @@ -42,6 +43,9 @@ subprojects {
if (!Libs.AndroidX.Compose.snapshot.isEmpty()) {
maven { url "https://androidx.dev/snapshots/builds/${Libs.AndroidX.Compose.snapshot}/artifacts/repository/" }
}
if (!Libs.AndroidX.Compose.compilerSnapshot.isEmpty()) {
maven { url Urls.composeCompilerSnapshotRepo }
}
if (Libs.Accompanist.version.endsWith('SNAPSHOT')) {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
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.2.1"
const val androidGradlePlugin = "com.android.tools.build:gradle:7.2.2"
const val jdkDesugar = "com.android.tools:desugar_jdk_libs:1.1.5"

object Accompanist {
const val version = "0.25.0"
const val version = "0.25.1"
const val pager = "com.google.accompanist:accompanist-pager:$version"
}

object Kotlin {
private const val version = "1.7.0"
private const val version = "1.7.10"
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 @@ -69,13 +69,10 @@ object Libs {
}

object Compose {
const val compilerVersion = "1.2.0"
const val compilerSnapshot = ""
const val compilerVersion = "1.3.0"
const val snapshot = ""
const val version = "1.2.0"

@get:JvmStatic
val snapshotUrl: String
get() = "https://androidx.dev/snapshots/builds/$snapshot/artifacts/repository/"
const val version = "1.2.1"

const val runtime = "androidx.compose.runtime:runtime:$version"
const val foundation = "androidx.compose.foundation:foundation:${version}"
Expand Down Expand Up @@ -135,3 +132,11 @@ object Libs {
const val coilCompose = "io.coil-kt:coil-compose:2.0.0"
}
}

object Urls {
const val mavenCentralSnapshotRepo = "https://oss.sonatype.org/content/repositories/snapshots/"
const val composeSnapshotRepo = "https://androidx.dev/snapshots/builds/" +
"${Libs.AndroidX.Compose.snapshot}/artifacts/repository/"
const val composeCompilerSnapshotRepo = "https://androidx.dev/snapshots/builds/" +
"${Libs.AndroidX.Compose.compilerSnapshot}/artifacts/repository/"
}
3 changes: 3 additions & 0 deletions Jetchat/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ subprojects {
if (!Libs.AndroidX.Compose.snapshot.isEmpty()) {
maven { url Urls.composeSnapshotRepo }
}
if (!Libs.AndroidX.Compose.compilerSnapshot.isEmpty()) {
maven { url Urls.composeCompilerSnapshotRepo }
}
}

apply plugin: 'com.diffplug.spotless'
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.2.1"
const val androidGradlePlugin = "com.android.tools.build:gradle:7.2.2"
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.7.0"
private const val version = "1.7.10"
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 @@ -51,9 +51,10 @@ object Libs {
}

object Compose {
const val compilerVersion = "1.2.0"
const val compilerSnapshot = ""
const val compilerVersion = "1.3.0"
const val snapshot = ""
const val version = "1.2.0"
const val version = "1.2.1"

const val foundation = "androidx.compose.foundation:foundation:$version"
const val layout = "androidx.compose.foundation:foundation-layout:$version"
Expand Down Expand Up @@ -110,6 +111,8 @@ object Libs {
object Urls {
const val composeSnapshotRepo = "https://androidx.dev/snapshots/builds/" +
"${Libs.AndroidX.Compose.snapshot}/artifacts/repository/"
const val composeCompilerSnapshotRepo = "https://androidx.dev/snapshots/builds/" +
"${Libs.AndroidX.Compose.compilerSnapshot}/artifacts/repository/"
const val composeMaterial3SnapshotRepo = "https://androidx.dev/snapshots/builds/" +
"${Libs.AndroidX.Compose.Material3.snapshot}/artifacts/repository/"
const val accompanistSnapshotRepo = "https://oss.sonatype.org/content/repositories/snapshots"
Expand Down
4 changes: 4 additions & 0 deletions Jetsnack/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

import com.example.jetsnack.buildsrc.Libs
import com.example.jetsnack.buildsrc.Urls
import com.example.jetsnack.buildsrc.Versions

buildscript {
Expand Down Expand Up @@ -42,6 +43,9 @@ subprojects {
if (!Libs.AndroidX.Compose.snapshot.isEmpty()) {
maven { url "https://androidx.dev/snapshots/builds/${Libs.AndroidX.Compose.snapshot}/artifacts/repository/" }
}
if (!Libs.AndroidX.Compose.compilerSnapshot.isEmpty()) {
maven { url Urls.composeCompilerSnapshotRepo }
}
if (Libs.Accompanist.version.endsWith("SNAPSHOT")) {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
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.2.1"
const val androidGradlePlugin = "com.android.tools.build:gradle:7.2.2"

object Accompanist {
const val version = "0.25.0"
const val version = "0.25.1"
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.7.0"
private const val version = "1.7.10"
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 @@ -47,9 +47,10 @@ object Libs {
const val coreKtx = "androidx.core:core-ktx:1.7.0"

object Compose {
const val compilerVersion = "1.2.0"
const val compilerSnapshot = ""
const val compilerVersion = "1.3.0"
const val snapshot = ""
const val version = "1.2.0"
const val version = "1.2.1"

const val foundation = "androidx.compose.foundation:foundation:${version}"
const val layout = "androidx.compose.foundation:foundation-layout:${version}"
Expand Down Expand Up @@ -105,3 +106,11 @@ object Libs {
const val coilCompose = "io.coil-kt:coil-compose:2.0.0"
}
}

object Urls {
const val mavenCentralSnapshotRepo = "https://oss.sonatype.org/content/repositories/snapshots/"
const val composeSnapshotRepo = "https://androidx.dev/snapshots/builds/" +
"${Libs.AndroidX.Compose.snapshot}/artifacts/repository/"
const val composeCompilerSnapshotRepo = "https://androidx.dev/snapshots/builds/" +
"${Libs.AndroidX.Compose.compilerSnapshot}/artifacts/repository/"
}
6 changes: 5 additions & 1 deletion Jetsurvey/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

import com.example.compose.jetsurvey.buildsrc.Libs
import com.example.compose.jetsurvey.buildsrc.Urls
import com.example.compose.jetsurvey.buildsrc.Versions

buildscript {
Expand All @@ -38,7 +39,10 @@ subprojects {
mavenCentral()

if (!Libs.AndroidX.Compose.snapshot.isEmpty()) {
maven { url Libs.AndroidX.Compose.snapshotUrl }
maven { url Urls.composeSnapshotRepo }
}
if (!Libs.AndroidX.Compose.compilerSnapshot.isEmpty()) {
maven { url Urls.composeCompilerSnapshotRepo }
}
if (Libs.Accompanist.version.endsWith('SNAPSHOT')) {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
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.2.1"
const val androidGradlePlugin = "com.android.tools.build:gradle:7.2.2"
const val jdkDesugar = "com.android.tools:desugar_jdk_libs:1.1.5"

const val junit = "junit:junit:4.13.2"

object Accompanist {
const val version = "0.25.0"
const val version = "0.25.1"
const val permissions = "com.google.accompanist:accompanist-permissions:$version"
}

object Kotlin {
private const val version = "1.7.0"
private const val version = "1.7.10"
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 @@ -60,13 +60,10 @@ object Libs {
}

object Compose {
const val compilerVersion = "1.2.0"
const val compilerSnapshot = ""
const val compilerVersion = "1.3.0"
const val snapshot = ""
const val version = "1.2.0"

@get:JvmStatic
val snapshotUrl: String
get() = "https://androidx.dev/snapshots/builds/$snapshot/artifacts/repository/"
const val version = "1.2.1"

const val foundation = "androidx.compose.foundation:foundation:$version"
const val layout = "androidx.compose.foundation:foundation-layout:$version"
Expand Down Expand Up @@ -113,3 +110,11 @@ object Libs {
const val robolectric = "org.robolectric:robolectric:4.5.1"
}
}

object Urls {
const val mavenCentralSnapshotRepo = "https://oss.sonatype.org/content/repositories/snapshots/"
const val composeSnapshotRepo = "https://androidx.dev/snapshots/builds/" +
"${Libs.AndroidX.Compose.snapshot}/artifacts/repository/"
const val composeCompilerSnapshotRepo = "https://androidx.dev/snapshots/builds/" +
"${Libs.AndroidX.Compose.snapshot}/artifacts/repository/"
}
6 changes: 5 additions & 1 deletion Owl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

import com.example.owl.buildsrc.Libs
import com.example.owl.buildsrc.Urls
import com.example.owl.buildsrc.Versions

buildscript {
Expand All @@ -38,7 +39,10 @@ subprojects {
mavenCentral()

if (!Libs.AndroidX.Compose.snapshot.isEmpty()) {
maven { url "https://androidx.dev/snapshots/builds/${Libs.AndroidX.Compose.snapshot}/artifacts/repository/" }
maven { url Urls.composeSnapshotRepo }
}
if (!Libs.AndroidX.Compose.compilerSnapshot.isEmpty()) {
maven { url Urls.composeCompilerSnapshotRepo }
}
}

Expand Down
Loading

0 comments on commit c739be3

Please sign in to comment.