modified to allow multiple apks as well as generate a local maven entry

Ignoring my changes to the build.gradle and gradle.properties, I think this is a change that can be quite useful.  In my case I had a project with multiple buildTypes and productFlavors creating a bunch of different APKs that I wanted to upload to TestFlight.  The changes I implemented below allowed me to do that so I thought I'd share them.