Switch to R8 dev releases (#1986)

This commit is contained in:
Harsh Shandilya 2022-07-07 14:28:45 +05:30 committed by GitHub
parent 9fbd7f0a6c
commit 786ee94a9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 40 additions and 4 deletions

View file

@ -56,6 +56,7 @@ gradlePlugin {
dependencies { dependencies {
implementation(libs.build.agp) implementation(libs.build.agp)
implementation(libs.build.mavenpublish) implementation(libs.build.mavenpublish)
implementation(libs.build.r8)
implementation(libs.build.semver) implementation(libs.build.semver)
implementation(libs.build.sentry) implementation(libs.build.sentry)
} }

View file

@ -61,6 +61,7 @@ dependencies {
implementation(libs.build.agp) implementation(libs.build.agp)
implementation(libs.build.binarycompat) implementation(libs.build.binarycompat)
implementation(libs.build.kotlin) implementation(libs.build.kotlin)
implementation(libs.build.r8)
implementation(libs.build.spotless) implementation(libs.build.spotless)
implementation(libs.build.vcu) implementation(libs.build.vcu)
implementation(libs.build.versions) implementation(libs.build.versions)

View file

@ -13,7 +13,6 @@ dependencyResolutionManagement {
filter { filter {
includeGroup("androidx.databinding") includeGroup("androidx.databinding")
includeGroup("com.android") includeGroup("com.android")
includeGroup("com.android.tools")
includeGroup("com.android.tools.analytics-library") includeGroup("com.android.tools.analytics-library")
includeGroup("com.android.tools.build") includeGroup("com.android.tools.build")
includeGroup("com.android.tools.build.jetifier") includeGroup("com.android.tools.build.jetifier")
@ -23,12 +22,24 @@ dependencyResolutionManagement {
includeGroup("com.android.tools.lint") includeGroup("com.android.tools.lint")
includeGroup("com.android.tools.utp") includeGroup("com.android.tools.utp")
includeGroup("com.google.testing.platform") includeGroup("com.google.testing.platform")
includeModule("com.android.tools", "annotations")
includeModule("com.android.tools", "common")
includeModule("com.android.tools", "desugar_jdk_libs")
includeModule("com.android.tools", "desugar_jdk_libs_configuration")
includeModule("com.android.tools", "dvlib")
includeModule("com.android.tools", "repository")
includeModule("com.android.tools", "sdklib")
includeModule("com.android.tools", "sdk-common")
} }
} }
exclusiveContent { exclusiveContent {
forRepository(::gradlePluginPortal) forRepository(::gradlePluginPortal)
filter { includeModule("com.github.ben-manes", "gradle-versions-plugin") } filter { includeModule("com.github.ben-manes", "gradle-versions-plugin") }
} }
exclusiveContent {
forRepository { maven("https://storage.googleapis.com/r8-releases/raw") }
filter { includeModule("com.android.tools", "r8") }
}
mavenCentral() mavenCentral()
} }
versionCatalogs { versionCatalogs {

View file

@ -12,7 +12,7 @@ leakcanary = "2.9.1"
lifecycle = "2.6.0-alpha01" lifecycle = "2.6.0-alpha01"
[libraries] [libraries]
android-desugarJdkLibs = "com.android.tools:desugar_jdk_libs:1.1.5" android-desugarJdkLibs = "com.android.tools:desugar_jdk_libs:1.2.0"
androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "androidx_activity" } androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "androidx_activity" }
androidx-activity-ktx = { module = "androidx.activity:activity-ktx", version.ref = "androidx_activity" } androidx-activity-ktx = { module = "androidx.activity:activity-ktx", version.ref = "androidx_activity" }
androidx-annotation = "androidx.annotation:annotation:1.4.0-beta01" androidx-annotation = "androidx.annotation:annotation:1.4.0-beta01"
@ -41,6 +41,7 @@ build-download = "de.undercouch:gradle-download-task:5.1.0"
build-kotlin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" } build-kotlin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
build-mavenpublish = "com.vanniktech:gradle-maven-publish-plugin:0.20.0" build-mavenpublish = "com.vanniktech:gradle-maven-publish-plugin:0.20.0"
build-okhttp = "com.squareup.okhttp3:okhttp:4.10.0" build-okhttp = "com.squareup.okhttp3:okhttp:4.10.0"
build-r8 = "com.android.tools:r8:4.0.17-dev"
build-semver = "com.vdurmont:semver4j:3.1.0" build-semver = "com.vdurmont:semver4j:3.1.0"
build-sentry = "io.sentry.android.gradle:io.sentry.android.gradle.gradle.plugin:3.1.2" build-sentry = "io.sentry.android.gradle:io.sentry.android.gradle.gradle.plugin:3.1.2"
build-spotless = "com.diffplug.spotless:spotless-plugin-gradle:6.8.0" build-spotless = "com.diffplug.spotless:spotless-plugin-gradle:6.8.0"

View file

@ -15,7 +15,6 @@ pluginManagement {
filter { filter {
includeGroup("androidx.databinding") includeGroup("androidx.databinding")
includeGroup("com.android") includeGroup("com.android")
includeGroup("com.android.tools")
includeGroup("com.android.tools.analytics-library") includeGroup("com.android.tools.analytics-library")
includeGroup("com.android.tools.build") includeGroup("com.android.tools.build")
includeGroup("com.android.tools.build.jetifier") includeGroup("com.android.tools.build.jetifier")
@ -25,6 +24,14 @@ pluginManagement {
includeGroup("com.android.tools.lint") includeGroup("com.android.tools.lint")
includeGroup("com.android.tools.utp") includeGroup("com.android.tools.utp")
includeGroup("com.google.testing.platform") includeGroup("com.google.testing.platform")
includeModule("com.android.tools", "annotations")
includeModule("com.android.tools", "common")
includeModule("com.android.tools", "desugar_jdk_libs")
includeModule("com.android.tools", "desugar_jdk_libs_configuration")
includeModule("com.android.tools", "dvlib")
includeModule("com.android.tools", "repository")
includeModule("com.android.tools", "sdklib")
includeModule("com.android.tools", "sdk-common")
} }
} }
exclusiveContent { exclusiveContent {
@ -35,6 +42,10 @@ pluginManagement {
includeModule("com.gradle.enterprise", "com.gradle.enterprise.gradle.plugin") includeModule("com.gradle.enterprise", "com.gradle.enterprise.gradle.plugin")
} }
} }
exclusiveContent {
forRepository { maven("https://storage.googleapis.com/r8-releases/raw") }
filter { includeModule("com.android.tools", "r8") }
}
mavenCentral() mavenCentral()
} }
} }
@ -56,7 +67,6 @@ dependencyResolutionManagement {
forRepository(::google) forRepository(::google)
filter { filter {
includeGroup("com.android") includeGroup("com.android")
includeGroup("com.android.tools")
includeGroup("com.android.tools.analytics-library") includeGroup("com.android.tools.analytics-library")
includeGroup("com.android.tools.build") includeGroup("com.android.tools.build")
includeGroup("com.android.tools.ddms") includeGroup("com.android.tools.ddms")
@ -65,6 +75,14 @@ dependencyResolutionManagement {
includeGroup("com.android.tools.layoutlib") includeGroup("com.android.tools.layoutlib")
includeGroup("com.android.tools.lint") includeGroup("com.android.tools.lint")
includeGroup("com.google.android.gms") includeGroup("com.google.android.gms")
includeModule("com.android.tools", "annotations")
includeModule("com.android.tools", "common")
includeModule("com.android.tools", "desugar_jdk_libs")
includeModule("com.android.tools", "desugar_jdk_libs_configuration")
includeModule("com.android.tools", "dvlib")
includeModule("com.android.tools", "repository")
includeModule("com.android.tools", "sdklib")
includeModule("com.android.tools", "sdk-common")
includeModule("com.google.android.material", "material") includeModule("com.google.android.material", "material")
includeGroupByRegex("androidx.*") includeGroupByRegex("androidx.*")
} }
@ -76,6 +94,10 @@ dependencyResolutionManagement {
includeModule("com.github.open-keychain.open-keychain", "sshauthentication-api") includeModule("com.github.open-keychain.open-keychain", "sshauthentication-api")
} }
} }
exclusiveContent {
forRepository { maven("https://storage.googleapis.com/r8-releases/raw") }
filter { includeModule("com.android.tools", "r8") }
}
mavenCentral() mavenCentral()
} }
} }