Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #61

Merged
merged 5 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,8 @@ plugins {
`kotlin-dsl`
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = JavaVersion.VERSION_11.toString()
}

java {
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
kotlin {
jvmToolchain(11)
}

dependencies {
Expand All @@ -18,5 +13,5 @@ dependencies {
implementation(stack.gradle.android.cacheFixGradlePlugin)
implementation(stack.kotlin.gradlePlugin)
implementation(stack.detekt.gradlePlugin)
implementation(libs.android.gradlePlugin)
implementation(stack.android.tools.build.gradle)
}
10 changes: 5 additions & 5 deletions buildSrc/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ pluginManagement {

@Suppress("UnstableApiUsage")
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS

repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
includeGroupAndSubgroups("com.android")
includeGroupAndSubgroups("com.google")
includeGroupAndSubgroups("androidx")
}
}

Expand All @@ -24,7 +24,7 @@ dependencyResolutionManagement {
}

versionCatalogs {
val version = "2024.04.10"
val version = "2024.08.01"
create("rmr") {
from("com.redmadrobot.versions:versions-redmadrobot:$version")
}
Expand Down
10 changes: 0 additions & 10 deletions buildSrc/src/main/kotlin/convention.detekt.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
import io.gitlab.arturbosch.detekt.Detekt
import io.gitlab.arturbosch.detekt.DetektCreateBaselineTask

plugins {
id("io.gitlab.arturbosch.detekt")
}

tasks.withType<Detekt>().configureEach {
jvmTarget = JavaVersion.VERSION_11.toString()
}
tasks.withType<DetektCreateBaselineTask>().configureEach {
jvmTarget = JavaVersion.VERSION_11.toString()
}

dependencies {
//noinspection UseTomlInstead
detektPlugins("io.gitlab.arturbosch.detekt:detekt-rules-libraries:1.23.6")
Expand Down
14 changes: 14 additions & 0 deletions buildSrc/src/main/kotlin/convention.jvm.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import com.redmadrobot.build.dsl.isRunningOnCi
import org.jetbrains.kotlin.gradle.dsl.kotlinExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile

kotlinExtension.jvmToolchain(11)

// Treat all warnings as errors on CI
val warningsAsErrors = findProperty("warningsAsErrors") == "true" || isRunningOnCi

tasks.withType<KotlinJvmCompile>().configureEach {
compilerOptions {
allWarningsAsErrors = warningsAsErrors
}
}
14 changes: 11 additions & 3 deletions buildSrc/src/main/kotlin/convention.library.android.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
plugins {
id("com.redmadrobot.android-library")
id("com.android.library")
kotlin("android")
id("org.gradle.android.cache-fix")
id("convention.jvm")
id("convention.publishing")
id("convention.detekt")
}

redmadrobot {
android.minSdk = 19
android {
compileSdk = 34
defaultConfig.minSdk = 21
}

kotlin {
explicitApi()
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
plugins {
id("com.redmadrobot.kotlin-library")
kotlin("jvm")
id("convention.jvm")
id("convention.publishing")
id("convention.detekt")
}

kotlin {
explicitApi()
}
8 changes: 3 additions & 5 deletions buildSrc/src/main/kotlin/convention.library.ktx.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import com.redmadrobot.build.dsl.kotlinCompile

plugins {
id("convention.library.android")
}

kotlinCompile {
kotlinOptions {
moduleName = "redmadrobot.${project.name}"
kotlin {
compilerOptions {
"redmadrobot.${project.name}"
}
}
5 changes: 3 additions & 2 deletions gears/gears-compose/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# gears-compose <GitHub path="RedMadRobot/gears-android/tree/main/gears/compose"/>

[![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/gears-compose?style=flat-square)][mavenCentral]
[![License](https://img.shields.io/github/license/RedMadRobot/gears-android?style=flat-square)][license]

A set of gears for Jetpack Compose.

---
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
Expand All @@ -12,8 +15,6 @@

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

A set of gears for compose.

## Installation

Add the dependency:
Expand Down
15 changes: 2 additions & 13 deletions gears/gears-compose/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
plugins {
convention.library.android
alias(stack.plugins.kotlin.compose)
}

version = "0.1.0"
description = "A set of gears for compose"

redmadrobot {
android.minSdk = 21
}
description = "A set of gears for Jetpack Compose"

android {
namespace = "$group.compose"

buildFeatures {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = androidx.versions.compose.compiler.get()
}
}

dependencies {
Expand Down
5 changes: 3 additions & 2 deletions gears/gears-kotlin/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# gears-kotlin <GitHub path="RedMadRobot/gears-android/tree/main/gears/kotlin"/>

[![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/kotlin?style=flat-square)][mavenCentral]
[![License](https://img.shields.io/github/license/RedMadRobot/gears-android?style=flat-square)][license]

A set of gears for Kotlin.

---
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
Expand All @@ -12,8 +15,6 @@

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

A set of gears for kotlin.

## Installation

Add the dependency:
Expand Down
2 changes: 1 addition & 1 deletion gears/gears-kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

version = "0.1.0"
description = "A set of gears for kotlin"
description = "A set of gears for Kotlin"

dependencies {
api(kotlin("stdlib"))
Expand Down
6 changes: 2 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
[versions]
androidGradlePlugin = "8.4.1"
assertj-core = "3.25.1"
androidx-arch-core = "2.2.0"
viewbinding = "8.4.1"
publish-plugin = "0.28.0"
viewbinding = "8.5.1"
publish-plugin = "0.29.0"

[libraries]
androidx-viewbinding = { module = "androidx.databinding:viewbinding", version.ref = "viewbinding" }
assertj-core = { module = "org.assertj:assertj-core", version.ref = "assertj-core" }
androidx-arch-core-testing = { module = "androidx.arch.core:core-testing", version.ref = "androidx-arch-core"}
android-gradlePlugin = { module = "com.android.tools.build:gradle", version.ref = "androidGradlePlugin" }
publish-gradlePlugin = { module = "com.vanniktech:gradle-maven-publish-plugin", version.ref = "publish-plugin" }
3 changes: 3 additions & 0 deletions ktx/core-ktx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Unreleased

### Changes

- `minSdk` version changed 19 → 21
- **SharedPreferences**: Removed nullable accessors with default parameter
- **Context**: Added `Context.findActivity()` and `Context.findWindow()` extensions

Expand Down
3 changes: 3 additions & 0 deletions ktx/fragment-args-ktx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Unreleased

### Changes

- `minSdk` version changed 19 → 21
- **Bundle**: Removed nullable accessors with default parameter
- **Bundle**: Accessors for `Serializable` and `Parcelizable` are turned into inline-functions

Expand Down
4 changes: 4 additions & 0 deletions ktx/fragment-ktx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Unreleased

### Changes

- `minSdk` version changed 19 → 21

## [1.3.6-0] (2021-10-02)

### Dependencies
Expand Down
1 change: 1 addition & 0 deletions ktx/lifecycle-livedata-ktx/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### Changes

- `minSdk` version changed 19 → 21
- **Breaking change!** `EventQueue` has been moved to a separate module and renamed to `ViewModelEvents`. See the appropriate [documentation](../../viewmodelevents/README.md)

### Dependencies
Expand Down
1 change: 1 addition & 0 deletions ktx/resources-ktx/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### Changed

- `minSdk` version changed 19 → 21
- **Breaking change**: `Text` moved to a separate library [com.redmadrobot.textvalue](https://github.com/RedMadRobot/TextValue).

## [1.3.1-0] (2021-10-03)
Expand Down
4 changes: 4 additions & 0 deletions ktx/viewbinding-ktx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Unreleased

### Changes

- `minSdk` version changed 19 → 21

### Dependencies

- androidx.fragment 1.3.5 -> 1.3.6
Expand Down
26 changes: 23 additions & 3 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,18 +1,38 @@
@file:Suppress("UnstableApiUsage", "StringLiteralDuplication")

pluginManagement {
repositories {
google()
google {
content {
includeGroupAndSubgroups("com.android")
includeGroupAndSubgroups("com.google")
includeGroupAndSubgroups("androidx")
}
}
gradlePluginPortal()
}
}

@Suppress("UnstableApiUsage")
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

dependencyResolutionManagement {
repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS

repositories {
google {
content {
includeGroupAndSubgroups("com.android")
includeGroupAndSubgroups("com.google")
includeGroupAndSubgroups("androidx")
}
}
mavenCentral()
}

versionCatalogs {
val version = "2024.04.10"
val version = "2024.08.01"
create("rmr") {
from("com.redmadrobot.versions:versions-redmadrobot:$version")
}
Expand Down
9 changes: 1 addition & 8 deletions viewmodelevents/viewmodelevents-compose/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
plugins {
convention.library.android
alias(stack.plugins.kotlin.compose)
}

description = "ViewModelEvents extensions for compose"

android {
namespace = "$group.compose"

buildFeatures {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = androidx.versions.compose.compiler.get()
}
}

dependencies {
Expand Down