Skip to content

Commit

Permalink
Merge pull request #252 from gradle/no/latest-version
Browse files Browse the repository at this point in the history
Add support for AGP 7.2.0-beta03
  • Loading branch information
runningcode authored Mar 7, 2022
2 parents 96cc802 + d29182e commit 8fd4497
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: Verify Build

on:
push:
branches: [ master, citest ]
branches: [ main, citest ]
pull_request:
branches: [ master ]
branches: [ main ]
workflow_dispatch:

env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
jobs:
generate_versions:
name: Generate versions
runs-on: ubuntu-latest
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: gradle/gradle-build-action@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Some Android plugin versions have issues with Gradle's build cache feature. When applied to an Android project this plugin applies workarounds for these issues based on the Android plugin and Gradle versions. For other versions, please see [older versions.](#older-android-gradle-plugin-versions)

* Supported Gradle versions: 7.0+
* Supported Android Gradle Plugin versions: 7.0.4, 7.1.2, 7.2.0-beta02
* Supported Android Gradle Plugin versions: 7.0.4, 7.1.2, 7.2.0-beta03
* Supported Kotlin versions: 1.4.32+

We only test against the latest patch versions of each minor version of Android Gradle Plugin. This means that although it may work perfectly well with an older patch version (say 7.0.1), we do not test against these older patch versions, so the latest patch version is the only version from that minor release that we technically support.
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def isCI = (System.getenv('CI') ?: 'false').toBoolean()

// Maps supported Android plugin versions to the versions of Gradle that support it
def supportedVersions = [
"7.2.0-beta02": ["7.3.3"],
"7.2.0-beta03": ["7.3.3"],
"7.1.2": ["7.3.3"],
"7.0.4": ["7.3.3"],
]
Expand Down
2 changes: 2 additions & 0 deletions release/changes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Drop support for older AGP versions
* Add support for AGP 7.0.4, 7.1.1 and 7.2.0-beta03
2 changes: 1 addition & 1 deletion src/test/groovy/org/gradle/android/WorkaroundTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class WorkaroundTest extends Specification {
workarounds.collect { it.class.simpleName.replaceAll(/Workaround/, "") }.sort() == expectedWorkarounds.sort()
where:
androidVersion | expectedWorkarounds
"7.2.0-beta02" | ['ZipMergingTask', 'LibraryJniLibs', 'DataBindingMergeDependencyArtifacts', 'BundleLibraryClasses', 'MergeSourceSetFolders', 'MergeJavaResources', 'RoomSchemaLocation', 'StripDebugSymbols', 'MergeNativeLibs', 'CompileLibraryResources']
"7.2.0-beta03" | ['ZipMergingTask', 'LibraryJniLibs', 'DataBindingMergeDependencyArtifacts', 'BundleLibraryClasses', 'MergeSourceSetFolders', 'MergeJavaResources', 'RoomSchemaLocation', 'StripDebugSymbols', 'MergeNativeLibs', 'CompileLibraryResources']
"7.1.2" | ['ZipMergingTask', 'LibraryJniLibs', 'DataBindingMergeDependencyArtifacts', 'BundleLibraryClasses', 'MergeSourceSetFolders', 'MergeJavaResources', 'RoomSchemaLocation', 'StripDebugSymbols', 'MergeNativeLibs', 'CompileLibraryResources']
"7.0.4" | ['ZipMergingTask', 'LibraryJniLibs', 'DataBindingMergeDependencyArtifacts', 'BundleLibraryClasses', 'MergeSourceSetFolders', 'MergeJavaResources', 'RoomSchemaLocation', 'StripDebugSymbols', 'MergeNativeLibs', 'CompileLibraryResources']
}
Expand Down

0 comments on commit 8fd4497

Please sign in to comment.