Skip to content

Commit

Permalink
Replace deprecated ApplicationAndroidComponentExtension to new versio…
Browse files Browse the repository at this point in the history
…n. Change minimum AGP version to 7.0.0-beta04.
  • Loading branch information
ychescale9 committed Jul 22, 2021
1 parent eae04f9 commit 809c86f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
AGP_VERSION: ${{ matrix.agp-version }}
strategy:
matrix:
agp-version: [ 4.2.2, 7.0.0-rc01, 7.1.0-alpha04 ]
agp-version: [ 7.0.0-rc01, 7.1.0-alpha04 ]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ This [blogpost](https://dev.to/ychescale9/git-based-android-app-versioning-with-

## Android Gradle Plugin version compatibility

The minimum version of Android Gradle Plugin required is **4.2.1**.

All versions of **AGP 7.x** are supported.
The minimum version of Android Gradle Plugin required is **7.0.0-beta04**.

Version `0.4.0` of the plugin is the final version that's compatible with AGP **4.0** and **4.1**.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.github.reactivecircus.appversioning

import com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
import com.android.build.api.extension.ApplicationAndroidComponentsExtension
import com.android.build.api.variant.ApplicationAndroidComponentsExtension
import com.android.build.api.variant.ApplicationVariant
import com.android.build.api.variant.VariantOutputConfiguration
import com.android.build.gradle.AppPlugin
Expand Down Expand Up @@ -126,7 +126,7 @@ class AppVersioningPlugin : Plugin<Project> {

companion object {
private const val MIN_GRADLE_VERSION = "6.8"
private const val MIN_AGP_VERSION = "4.2.1"
private const val MIN_AGP_VERSION = "7.0.0-beta04"
}
}

Expand Down

0 comments on commit 809c86f

Please sign in to comment.