File tree 18 files changed +85
-38
lines changed
buildSrc/src/main/java/com/example/crane/buildsrc
buildSrc/src/main/java/com/example/jetcaster/buildsrc
buildSrc/src/main/java/com/example/compose/jetchat/buildsrc
buildSrc/src/main/java/com/example/jetsnack/buildsrc
buildSrc/src/main/java/com/example/compose/jetsurvey/buildsrc
buildSrc/src/main/java/com/example/owl/buildsrc
buildSrc/src/main/java/com/example/compose/rally/buildsrc
18 files changed +85
-38
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,9 @@ plugins {
23
23
24
24
// Reads the Google maps key that is used in the AndroidManifest
25
25
Properties properties = new Properties ()
26
- properties. load(project. rootProject. file(" local.properties" ). newDataInputStream())
26
+ if (rootProject. file(" local.properties" ). exists()) {
27
+ properties. load(rootProject. file(" local.properties" ). newDataInputStream())
28
+ }
27
29
28
30
android {
29
31
compileSdkVersion 30
Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ subprojects {
39
39
google()
40
40
jcenter()
41
41
mavenCentral()
42
- if (Libs.AndroidX.Compose . version. endsWith(" SNAPSHOT" )) {
42
+
43
+ if (! Libs.AndroidX.Compose . snapshot. isEmpty()) {
43
44
maven { url Urls . composeSnapshotRepo }
44
45
maven { url Urls . mavenCentralSnapshotRepo }
45
46
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ object Libs {
26
26
const val googleMaps = " com.google.android.libraries.maps:maps:3.1.0-beta"
27
27
28
28
object Accompanist {
29
- private const val version = " 0.1.9 "
29
+ private const val version = " 0.1.10.ui- ${ AndroidX . Compose .snapshot} -SNAPSHOT "
30
30
const val coil = " dev.chrisbanes.accompanist:accompanist-coil:$version "
31
31
}
32
32
@@ -41,8 +41,8 @@ object Libs {
41
41
const val appcompat = " androidx.appcompat:appcompat:1.3.0-alpha01"
42
42
43
43
object Compose {
44
- const val snapshot = " "
45
- const val version = " 0. 1.0-dev17 "
44
+ const val snapshot = " 6765009 "
45
+ const val version = " 1.0.0-SNAPSHOT "
46
46
47
47
const val runtime = " androidx.compose.runtime:runtime:$version "
48
48
const val runtimeLivedata = " androidx.compose.runtime:runtime-livedata:$version "
Original file line number Diff line number Diff line change 16
16
17
17
buildscript {
18
18
ext. kotlin_version = ' 1.4.0'
19
- ext. compose_version = ' 0. 1.0-dev17 '
19
+ ext. compose_version = ' 1.0.0-SNAPSHOT '
20
20
21
21
repositories {
22
22
google()
23
23
jcenter()
24
24
}
25
+
25
26
dependencies {
26
27
classpath ' com.android.tools.build:gradle:4.2.0-alpha07'
27
28
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
@@ -36,6 +37,10 @@ subprojects {
36
37
repositories {
37
38
google()
38
39
jcenter()
40
+
41
+ maven {
42
+ url " https://androidx.dev/snapshots/builds/6765009/artifacts/ui/repository/"
43
+ }
39
44
}
40
45
41
46
apply plugin : ' com.diffplug.spotless'
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ subprojects {
40
40
mavenCentral()
41
41
jcenter()
42
42
43
- if (Libs.AndroidX.Compose . version . endsWith( " SNAPSHOT " )) {
43
+ if (! Libs.AndroidX.Compose . snapshot . isEmpty( )) {
44
44
maven {
45
45
url " https://androidx.dev/snapshots/builds/${ Libs.AndroidX.Compose.snapshot} /artifacts/ui/repository/"
46
46
}
Original file line number Diff line number Diff line change @@ -29,8 +29,7 @@ object Libs {
29
29
const val material = " com.google.android.material:material:1.1.0"
30
30
31
31
object Accompanist {
32
- private const val version = " 0.1.9"
33
- const val mdcTheme = " dev.chrisbanes.accompanist:accompanist-mdc-theme:$version "
32
+ private const val version = " 0.1.10.ui-${AndroidX .Compose .snapshot} -SNAPSHOT"
34
33
const val coil = " dev.chrisbanes.accompanist:accompanist-coil:$version "
35
34
}
36
35
@@ -60,8 +59,8 @@ object Libs {
60
59
const val coreKtx = " androidx.core:core-ktx:1.5.0-alpha01"
61
60
62
61
object Compose {
63
- const val snapshot = " "
64
- const val version = " 0. 1.0-dev17 "
62
+ const val snapshot = " 6765009 "
63
+ const val version = " 1.0.0-SNAPSHOT "
65
64
66
65
const val runtime = " androidx.compose.runtime:runtime:$version "
67
66
const val foundation = " androidx.compose.foundation:foundation:${version} "
Original file line number Diff line number Diff line change @@ -19,12 +19,6 @@ import com.example.compose.jetchat.buildsrc.Libs
19
19
plugins {
20
20
id ' com.android.application'
21
21
id ' kotlin-android'
22
- id ' kotlin-kapt'
23
- }
24
-
25
- kapt {
26
- correctErrorTypes = true
27
- useBuildCache = true
28
22
}
29
23
30
24
android {
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ subprojects {
40
40
mavenCentral()
41
41
jcenter()
42
42
43
- if (Libs.AndroidX.Compose . version . endsWith( " SNAPSHOT " )) {
43
+ if (! Libs.AndroidX.Compose . snapshot . isEmpty( )) {
44
44
maven {
45
45
url " https://androidx.dev/snapshots/builds/${ Libs.AndroidX.Compose.snapshot} /artifacts/ui/repository/"
46
46
}
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ object Libs {
47
47
const val coreKtx = " androidx.core:core-ktx:1.5.0-alpha01"
48
48
49
49
object Compose {
50
- const val snapshot = " "
51
- const val version = " 0. 1.0-dev17 "
50
+ const val snapshot = " 6765009 "
51
+ const val version = " 1.0.0-SNAPSHOT "
52
52
53
53
const val core = " androidx.compose.ui:ui:$version "
54
54
const val foundation = " androidx.compose.foundation:foundation:$version "
Original file line number Diff line number Diff line change @@ -34,11 +34,18 @@ plugins {
34
34
35
35
subprojects {
36
36
repositories {
37
- maven { url " https://androidx.dev/snapshots/builds/${ Libs.AndroidX.Compose.snapshot} /artifacts/ui/repository" }
38
37
google()
39
- maven { url ' https://oss.sonatype.org/content/repositories/snapshots' }
40
38
jcenter()
39
+
40
+ if (! Libs.AndroidX.Compose . snapshot. isEmpty()) {
41
+ maven {
42
+ url " https://androidx.dev/snapshots/builds/${ Libs.AndroidX.Compose.snapshot} /artifacts/ui/repository/"
43
+ }
44
+ }
45
+
46
+ maven { url ' https://oss.sonatype.org/content/repositories/snapshots' }
41
47
}
48
+
42
49
tasks. withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile ). configureEach {
43
50
kotlinOptions {
44
51
jvmTarget = ' 1.8'
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ object Libs {
25
25
const val junit = " junit:junit:4.13"
26
26
27
27
object Accompanist {
28
- private const val version = " 0.1.9 "
28
+ private const val version = " 0.1.10.ui- ${ AndroidX . Compose .snapshot} -SNAPSHOT "
29
29
const val coil = " dev.chrisbanes.accompanist:accompanist-coil:$version "
30
30
}
31
31
@@ -48,8 +48,8 @@ object Libs {
48
48
const val coreKtx = " androidx.core:core-ktx:1.5.0-alpha01"
49
49
50
50
object Compose {
51
- const val snapshot = " "
52
- const val version = " 0. 1.0-dev17 "
51
+ const val snapshot = " 6765009 "
52
+ const val version = " 1.0.0-SNAPSHOT "
53
53
54
54
const val runtime = " androidx.compose.runtime:runtime:$version "
55
55
const val foundation = " androidx.compose.foundation:foundation:${version} "
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ subprojects {
38
38
mavenCentral()
39
39
jcenter()
40
40
41
- if (Libs.AndroidX.Compose . version . endsWith( " SNAPSHOT " )) {
41
+ if (! Libs.AndroidX.Compose . snapshot . isEmpty( )) {
42
42
maven {
43
43
url " https://androidx.dev/snapshots/builds/${ Libs.AndroidX.Compose.snapshot} /artifacts/ui/repository/"
44
44
}
Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ object Libs {
40
40
const val coreKtx = " androidx.core:core-ktx:1.5.0-alpha01"
41
41
42
42
object Compose {
43
- const val snapshot = " "
44
- const val version = " 0. 1.0-dev17 "
43
+ const val snapshot = " 6765009 "
44
+ const val version = " 1.0.0-SNAPSHOT "
45
45
46
46
const val core = " androidx.compose.ui:ui:$version "
47
47
const val foundation = " androidx.compose.foundation:foundation:$version "
Original file line number Diff line number Diff line change @@ -34,11 +34,18 @@ plugins {
34
34
35
35
subprojects {
36
36
repositories {
37
- maven { url " https://androidx.dev/snapshots/builds/${ Libs.AndroidX.Compose.snapshot} /artifacts/ui/repository" }
38
37
google()
39
- maven { url ' https://oss.sonatype.org/content/repositories/snapshots' }
40
38
jcenter()
39
+
40
+ if (! Libs.AndroidX.Compose . snapshot. isEmpty()) {
41
+ maven {
42
+ url " https://androidx.dev/snapshots/builds/${ Libs.AndroidX.Compose.snapshot} /artifacts/ui/repository/"
43
+ }
44
+ }
45
+
46
+ maven { url ' https://oss.sonatype.org/content/repositories/snapshots' }
41
47
}
48
+
42
49
tasks. withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile ). configureEach {
43
50
kotlinOptions {
44
51
jvmTarget = ' 1.8'
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ object Libs {
25
25
const val junit = " junit:junit:4.13"
26
26
27
27
object Accompanist {
28
- private const val version = " 0.1.9 "
28
+ private const val version = " 0.1.10.ui- ${ AndroidX . Compose .snapshot} -SNAPSHOT "
29
29
const val coil = " dev.chrisbanes.accompanist:accompanist-coil:$version "
30
30
}
31
31
@@ -48,8 +48,8 @@ object Libs {
48
48
const val coreKtx = " androidx.core:core-ktx:1.5.0-alpha01"
49
49
50
50
object Compose {
51
- const val snapshot = " "
52
- const val version = " 0. 1.0-dev17 "
51
+ const val snapshot = " 6765009 "
52
+ const val version = " 1.0.0-SNAPSHOT "
53
53
54
54
const val runtime = " androidx.compose.runtime:runtime:$version "
55
55
const val foundation = " androidx.compose.foundation:foundation:$version "
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ buildscript {
21
21
repositories {
22
22
google()
23
23
jcenter()
24
- maven { url ' https://dl.bintray.com/kotlin/kotlin-dev/' }
25
24
}
26
25
27
26
dependencies {
@@ -40,12 +39,11 @@ subprojects {
40
39
mavenCentral()
41
40
jcenter()
42
41
43
- if (Libs.AndroidX.Compose . version . endsWith( " SNAPSHOT " )) {
42
+ if (! Libs.AndroidX.Compose . snapshot . isEmpty( )) {
44
43
maven {
45
44
url " https://androidx.dev/snapshots/builds/${ Libs.AndroidX.Compose.snapshot} /artifacts/ui/repository/"
46
45
}
47
46
}
48
- maven { url ' https://dl.bintray.com/kotlin/kotlin-dev/' }
49
47
50
48
maven { url ' https://oss.sonatype.org/content/repositories/snapshots/' }
51
49
}
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ object Libs {
47
47
const val coreKtx = " androidx.core:core-ktx:1.5.0-alpha01"
48
48
49
49
object Compose {
50
- const val snapshot = " "
51
- const val version = " 0. 1.0-dev17 "
50
+ const val snapshot = " 6765009 "
51
+ const val version = " 1.0.0-SNAPSHOT "
52
52
53
53
const val core = " androidx.compose.ui:ui:$version "
54
54
const val foundation = " androidx.compose.foundation:foundation:$version "
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Copyright (C) 2020 The Android Open Source Project
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # #######################################################################
18
+ #
19
+ # Allows running of ./gradlew commands across all projects in
20
+ # folders of the current directory.
21
+ #
22
+ # Example: To run build over all projects run:
23
+ # ./scripts/gradlew_recursive.sh build
24
+ #
25
+ # #######################################################################
26
+
27
+ set -xe
28
+
29
+ # Crawl all gradlew files which indicate an Android project
30
+ # You may edit this if your repo has a different project structure
31
+ for GRADLEW in ` find . -name " gradlew" ` ; do
32
+ SAMPLE=$( dirname " ${GRADLEW} " )
33
+ bash " $GRADLEW " -p " $SAMPLE " --stacktrace $@
34
+ done
You can’t perform that action at this time.
0 commit comments