Skip to content

Commit

Permalink
Version bumps: compose, kotlin, AGP, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
popovanton0 committed Jan 24, 2024
1 parent 32436bd commit cfe24bb
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ Also, you can disable all the overhead of this library in your release builds by
2. Using the `no-op` version of the library:
```kotlin
dependencies {
debugImplementation("com.github.popovanton0.blueprint:blueprint:1.0.0-alpha04")
releaseImplementation("com.github.popovanton0.blueprint:blueprint-no-op:1.0.0-alpha04")
debugImplementation("com.github.popovanton0.blueprint:blueprint:1.0.0-alpha05")
releaseImplementation("com.github.popovanton0.blueprint:blueprint-no-op:1.0.0-alpha05")
}
```

Expand All @@ -155,7 +155,7 @@ Next, add the dependency below to your _module_'s `build.gradle` file:

```gradle
dependencies {
implementation "com.github.popovanton0.blueprint:blueprint:1.0.0-alpha04"
implementation "com.github.popovanton0.blueprint:blueprint:1.0.0-alpha05"
}
```

Expand All @@ -180,15 +180,15 @@ Next, add the dependency below to your _module_'s `build.gradle.kts` file:

```kotlin
dependencies {
implementation("com.github.popovanton0.blueprint:blueprint:1.0.0-alpha04")
implementation("com.github.popovanton0.blueprint:blueprint:1.0.0-alpha05")
}
```

Or using Gradle Version Catalog:

```toml
[versions]
blueprint = "1.0.0-alpha04"
blueprint = "1.0.0-alpha05"

[libraries]
blueprint = { module = "com.github.popovanton0.blueprint:blueprint", version.ref = "blueprint" }
Expand All @@ -197,7 +197,7 @@ blueprint = { module = "com.github.popovanton0.blueprint:blueprint", version.ref
</details>

> [!WARNING]
> Do not use this dependency notation: `com.github.popovanton0:blueprint:1.0.0-alpha04`.
> Do not use this dependency notation: `com.github.popovanton0:blueprint:1.0.0-alpha05`.
> It doesn't work!
### Licence
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {

android {
namespace = "com.popovanton0.blueprint.app"
compileSdk = 34
compileSdk = libs.versions.compileSdk.get().toInt()

defaultConfig {
applicationId = "com.popovanton0.blueprint.app"
Expand Down
4 changes: 2 additions & 2 deletions blueprint-no-op/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {

android {
namespace = "com.popovanton0.blueprint"
compileSdk = 33
compileSdk = libs.versions.compileSdk.get().toInt()

defaultConfig {
minSdk = 21
Expand Down Expand Up @@ -70,7 +70,7 @@ publishing {
register<MavenPublication>("release") {
groupId = "com.popovanton0.blueprint"
artifactId = "blueprint-no-op"
version = "1.0.0-alpha04"
version = libs.versions.blueprint.get()

afterEvaluate {
from(components["release"])
Expand Down
4 changes: 2 additions & 2 deletions blueprint/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {

android {
namespace = "com.popovanton0.blueprint"
compileSdk = 33
compileSdk = libs.versions.compileSdk.get().toInt()

defaultConfig {
minSdk = 21
Expand Down Expand Up @@ -73,7 +73,7 @@ publishing {
register<MavenPublication>("release") {
groupId = "com.popovanton0.blueprint"
artifactId = "blueprint"
version = "1.0.0-alpha04"
version = libs.versions.blueprint.get()

afterEvaluate {
from(components["release"])
Expand Down
25 changes: 25 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,29 @@ plugins {
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.paparazzi) apply false
alias(libs.plugins.androidx.benchmark) apply false
}

subprojects {
plugins.withId("app.cash.paparazzi") {
// Defer until afterEvaluate so that testImplementation is created by Android plugin.
afterEvaluate {
dependencies.constraints {
add("testImplementation", "com.google.guava:guava") {
attributes {
attribute(
TargetJvmEnvironment.TARGET_JVM_ENVIRONMENT_ATTRIBUTE,
objects.named(
TargetJvmEnvironment::class,
TargetJvmEnvironment.STANDARD_JVM
)
)
}
because(
"LayoutLib and sdk-common depend on Guava's -jre published variant." +
"See https://github.com/cashapp/paparazzi/issues/906."
)
}
}
}
}
}
24 changes: 13 additions & 11 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
[versions]
gradlePlugin = "8.2.0"
kotlin = "1.9.21"
compose = "1.5.4"
composeCompiler = "1.5.6"
paparazzi = "1.3.1"
blueprint = "1.0.0-alpha05"
compileSdk = "34"
gradlePlugin = "8.2.2"
kotlin = "1.9.22"
compose = "1.6.0"
composeCompiler = "1.5.8"
paparazzi = "1.3.2"
junit = "4.13.2"
testParameterInjector = "1.12"
equalsverifier = "3.14.2"
androidxTestJunit = "1.1.5"
androidxCoreKtx = "1.12.0"
lifecycleRuntimeKtx = "2.6.2"
androidxActivityCompose = "1.8.1"
androidx-benchmark = "1.2.2"
lifecycleRuntimeKtx = "2.7.0"
androidxActivityCompose = "1.8.2"
androidx-benchmark = "1.2.3"
test-runner = "1.5.2"
test-rules = "1.5.0"
benchmark-junit4 = "1.2.2"
uiAndroidStubs = "1.5.4"
androidxAnnotation = "1.7.0"
benchmark-junit4 = "1.2.3"
uiAndroidStubs = "1.6.0"
androidxAnnotation = "1.7.1"
composeMaterial = "1.1.2"
binaryCompatibility = "0.13.2"

Expand Down

0 comments on commit cfe24bb

Please sign in to comment.