<commit_before>= Publishing with the Google Play Developer API

== Maven Publisher
With help of the link:https://developers.google.com/android-publisher/[Google Play Developer API] it is now possible
to automatically publish APKs, update store listings, etc.

A link:https://github.com/Triple-T/gradle-play-publisher[Gradle plugin] for this was already created on which we based
the Maven Mojo's.

At the moment there are Mojo's for uploading APKs and updating the store listing including screen shots, feature graphics
etc. Both can be used inside a project or in a standalone fashion, but in both cases you need the publisher email and
a p12 key file. How to obtain these can be found link:https://developers.google.com/android-publisher/getting_started[here].

It is possible to pass the email and key file as arguments in the command line but the preferred way is to setup
a profile in settings.xml:
[source,xml]
<profile>
  <id>publisher</id>
      <activation>
        <activeByDefault>false</activeByDefault>
      </activation>
    <properties>
        <android.publisher.email>publisher email</android.publisher.email>
        <android.publisher.p12>path to p12 key file</android.publisher.p12>
    </properties>
</profile>

If you want to use the publisher outside of a project, you will need to supply the other required values:

[source,xml]
<android.publisher.apkpath>path to APK</android.publisher.apkpath>
<android.publisher.project.name>project title</android.publisher.project.name>
<android.publisher.listing.directory>path to listing directory</android.publisher.listing.directory>
<android.publisher.package.name>project package name</android.publisher.package.name>

Again these can be supplied in the commandline or added to the profile.

To update the listing comply to the following structure:
[source,text]
- [src]
  |
  + - [main]
      |
      + - [play]
          |
          + - [en-US]
          |   |
          |   + - [listing]
          |   |   |<commit_msg>Site: Fix publisher profile property names for publishing to Google Play.<commit_after>= Publishing with the Google Play Developer API

== Maven Publisher
With help of the link:https://developers.google.com/android-publisher/[Google Play Developer API] it is now possible
to automatically publish APKs, update store listings, etc.

A link:https://github.com/Triple-T/gradle-play-publisher[Gradle plugin] for this was already created on which we based
the Maven Mojo's.

At the moment there are Mojo's for uploading APKs and updating the store listing including screen shots, feature graphics
etc. Both can be used inside a project or in a standalone fashion, but in both cases you need the publisher email and
a p12 key file. How to obtain these can be found link:https://developers.google.com/android-publisher/getting_started[here].

It is possible to pass the email and key file as arguments in the command line but the preferred way is to setup
a profile in settings.xml:
[source,xml]
<profile>
  <id>publisher</id>
      <activation>
        <activeByDefault>false</activeByDefault>
      </activation>
    <properties>
        <android.publisher.google.email>publisher email</android.publisher.google.email>
        <android.publisher.google.p12>path to p12 key file</android.publisher.google.p12>
    </properties>
</profile>

If you want to use the publisher outside of a project, you will need to supply the other required values:

[source,xml]
<android.publisher.apkpath>path to APK</android.publisher.apkpath>
<android.publisher.project.name>project title</android.publisher.project.name>
<android.publisher.listing.directory>path to listing directory</android.publisher.listing.directory>
<android.publisher.package.name>project package name</android.publisher.package.name>

Again these can be supplied in the commandline or added to the profile.

To update the listing comply to the following structure:
[source,text]
- [src]
  |
  + - [main]
      |
      + - [play]
          |
          + - [en-US]
          |   |
          |   + - [listing]
          |   |   |
{'fraction_non_alphanumeric': 0.08992628992628993, 'fraction_numerical': 0.003931203931203931, 'mean_word_length': 3.7009237875288683, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5384575', 'n_tokens_mistral': 1174, 'n_tokens_neox': 1122, 'n_words': 416}