Skip to content

Commit

Permalink
v2.2.0 (#545)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Saveau <[email protected]>
  • Loading branch information
SUPERCILEX authored Apr 5, 2019
1 parent 7f71509 commit 66d253b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 5 deletions.
44 changes: 40 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ through the `plugins {}` DSL:
```kt
plugins {
id("com.android.application")
id("com.github.triplet.play") version "2.1.0"
id("com.github.triplet.play") version "2.2.0"
}
```

Expand All @@ -107,7 +107,7 @@ plugins {
```groovy
plugins {
id 'com.android.application'
id 'com.github.triplet.play' version '2.1.0'
id 'com.github.triplet.play' version '2.2.0'
}
```

Expand Down Expand Up @@ -235,6 +235,42 @@ channel, `default.txt` will be uploaded.

> Note: the Play Store limits your release notes to a maximum of 500 characters.
#### Uploading developer facing release names

The Play Console supports customizing release names. These aren't visible to users, but may be
useful for internal processes. Similar to release notes, release names may be specified by placing
a `[track].txt` file in the `release-names` directory under your `play` folder. For example, here's
a custom release name for the alpha track in the `play/release-names/alpha.txt` file:

```
My custom release name
```

> Note: the Play Store limits your release names to a maximum of 50 characters.
#### Uploading a pre-existing artifact

By default GPP will rebuild your project before every release. In advanced use cases, this might not
be the desired behavior. For example, if you need to inject translations into your APK or App Bundle
_after_ building it but _before_ publishing it. Or maybe it's a simple as you already having an
artifact you want to publish. GPP supports this class of use cases by letting you specify a
directory in which publishable artifacts may be found:

```kt
play {
// ...
artifactDir = file("path/to/apk-or-app-bundle/dir")
}
```

For quick access, you can also use the `--artifact-dir` CLI option:

```sh
./gradlew publishBundle --artifact-dir path/to/app-bundle/dir
```

> Note: all artifacts in the specified directory will be published.
### Publishing an App Bundle

Run `./gradlew publishBundle`.
Expand Down Expand Up @@ -630,15 +666,15 @@ android {
playConfigs {
myCustomVariantOrProductFlavor {
isEnabled = true
enabled = true
}
// ...
}
}
play {
isEnabled = false // This disables GPP by default. It could be the other way around.
enabled = false // This disables GPP by default. It could be the other way around.
// ...
}
```
Expand Down
2 changes: 1 addition & 1 deletion plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ tasks.named<Delete>("clean") {
}

group = "com.github.triplet.gradle"
version = "2.2.0-SNAPSHOT"
version = "2.2.0"

gradlePlugin {
plugins.create("play") {
Expand Down

0 comments on commit 66d253b

Please sign in to comment.