awslabs / aws-mobile-appsync-sdk-android

Android SDK for AWS AppSync.
https://docs.amplify.aws/sdk/api/graphql/q/platform/android/
Apache License 2.0
105 stars 58 forks source link

fix(build): add signing options for automation #342

Closed rjuliano closed 3 years ago

rjuliano commented 3 years ago

Issue #, if available:

Description of changes: Neglected to add the bits to allow the signing and publishing process to work within the automation framework we're using. That framework uses environment variables prefixed with ORG_GRADLE_PROJECT_ to set gradle project properties used during the deployment process (i.e. signing.* and NEXUS*). That allows us to avoid passing that information through config files or command line parameters.

In order to fix this, I needed to add changes similar to the ones made in amplify-android gradle files. Unfortunately, the version of gradle used in this repo does not automatically interpret environment variables prefixed with ORG_GRADLE_PROJECT_ as gradle project properties.

As a result, the implementation I came up with for this repo is a bit different. It has to read the ORG_GRADLE_PROJECT_ environment variables manually. A little ugly, but not a huge deal.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.