Skip to content

Commit

Permalink
Prepare v2.4.0 (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirland authored Oct 6, 2021
1 parent a6f6393 commit 504a741
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ Change Log
==========
All notable changes to this project will be documented in this file.

[Version 2.4.0] _(unreleased)_](https://github.com/xmartlabs/android-snapshot-publisher/releases/tag/v2.4.0)
[Version 2.4.0] _(2021-10-06)_](https://github.com/xmartlabs/android-snapshot-publisher/releases/tag/v2.4.0)
- Change min Android Gradle plugin gradle version to `7.0.0`.

- Upgrade Google Play Publisher dependency to [v3.6.0](https://github.com/Triple-T/gradle-play-publisher/releases/tag/3.6.0).
- Update Core libraries

[Version 2.3.0-AGP7.0 _(2021-05-18)_](https://github.com/xmartlabs/android-snapshot-publisher/releases/tag/v2.3.0-AGP7.0)
- Upgrade Google Play Publisher dependency to [v3.4.0-agp7.0](https://github.com/Triple-T/gradle-play-publisher/releases/tag/3.4.0-agp7.0).
Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,10 @@ buildscript {
google()
}
dependencies {
classpath "com.xmartlabs:snapshot-publisher:2.3.0"
classpath "com.xmartlabs:snapshot-publisher:2.4.0"
}
}
```
**Note:** If you're using AGP 7.0, you should use the `2.3.0-AGP7.0` version.

Apply the plugin to each individual `com.android.application` module where you want to use it.

Expand Down Expand Up @@ -134,8 +133,6 @@ snapshotPublisher {

**Known Issue:** after AGP 4.1 the version name cannot be applied only to specific plugin tasks.
In turn, it's applied in the configuration step, causing all builds to contain `versionNameFormat`.
AGP 4.2 fixes this issue but is still in alpha.
If you're using a lower version of AGP, you can use the version of [2.1.0](https://github.com/xmartlabs/android-snapshot-publisher/releases/tag/v2.1.0).

### Release notes
The `releaseNotes` block allows you to perform build release notes customizations.
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jacoco {
}

group = "com.xmartlabs"
version = "2.3.0-AGP7.0"
version = "2.4.0"

gradlePlugin {
plugins {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,7 @@ internal object PlayPublisherPluginHelper {
}

private fun checkAgp() {
val agpVersion = VersionNumber.parse(
try {
Version.ANDROID_GRADLE_PLUGIN_VERSION
} catch (e: NoClassDefFoundError) {
@Suppress("DEPRECATION") // TODO(#708): remove when 3.6 is the minimum
com.android.builder.model.Version.ANDROID_GRADLE_PLUGIN_VERSION
}
)
val agpVersion = VersionNumber.parse(Version.ANDROID_GRADLE_PLUGIN_VERSION)
check(agpVersion >= MIN_AGP_VERSION) {
"Android Snapshot Publisher's minimum Android Gradle Plugin version is at least " +
"$MIN_AGP_VERSION and yours is $agpVersion. Find the latest version " +
Expand Down

0 comments on commit 504a741

Please sign in to comment.