Hi.
Is there already any more official way how to implement own sign mechanism
which will be used for apk and app bundles?
We are using a special server where we send the apk and it returns back
signed version.
Currenty we are creating a custom task for every variant which handle
remote sign in this way
project.android.applicationVariants.all { ApplicationVariant variant ->
if (!isReleaseBuildType(variant)) {
return
}
variant.outputs.each { ApkVariantOutput output ->
project.getLogger().info "Remote signing enabled for build variant:
$project.name $variant.name"
// create a signing task for this
project.tasks.create(
"remoteSign${output.name.capitalize()}Apk", RemoteSignApkTask,
new RemoteSignApkTask.ConfigAction(variant, output)
)
}
variant.testVariant?.outputs?.each { ApkVariantOutput output ->
project.getLogger().info "Remote signing enabled for build test
variant: $project.name $variant.testVariant.name"
// create a signing task for this
project.tasks.create(
"remoteSign${output.name.capitalize()}Apk", RemoteSignApkTask,
new RemoteSignApkTask.ConfigAction(variant, output)
)
}
}
But it starting to be obsolete, it should be rewritten to more lazy way.
So I'm asking if there is any better way already.
--
You received this message because you are subscribed to the Google Groups
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.