Class SignedApkMappingStrategy

java.lang.Object
hudson.model.AbstractDescribableImpl<SignedApkMappingStrategy>
org.jenkinsci.plugins.androidsigning.SignedApkMappingStrategy
All Implemented Interfaces:
ExtensionPoint, Describable<SignedApkMappingStrategy>
Direct Known Subclasses:
SignedApkMappingStrategy.UnsignedApkBuilderDirMapping, SignedApkMappingStrategy.UnsignedApkSiblingMapping

public abstract class SignedApkMappingStrategy extends AbstractDescribableImpl<SignedApkMappingStrategy> implements ExtensionPoint
  • Constructor Details

    • SignedApkMappingStrategy

      public SignedApkMappingStrategy()
  • Method Details

    • destinationForUnsignedApk

      public abstract FilePath destinationForUnsignedApk(FilePath unsignedApk, FilePath workspace)
    • destinationForUnsignedAab

      public FilePath destinationForUnsignedAab(FilePath unsignedAab, FilePath workspace)
      Return the destination for the signed AAB given its unsigned input. The default implementation writes the signed AAB as a sibling of the unsigned AAB, mirroring SignedApkMappingStrategy.UnsignedApkSiblingMapping but with a .aab extension. A concrete (non-abstract) default keeps existing third-party SignedApkMappingStrategy implementations source and binary compatible.
      Parameters:
      unsignedAab - the unsigned AAB to sign
      workspace - the build workspace
      Returns:
      the destination FilePath for the signed AAB
    • all

    • unqualifiedNameOfUnsignedApk

      public static String unqualifiedNameOfUnsignedApk(FilePath unsignedApk)
      Return the name of the given APK without the .apk extension and without any -unsigned suffix, if present. For example, myApp-unsigned.apk returns myApp, and myApp-someFlavor.apk returns myApp-someFlavor.
      Parameters:
      unsignedApk -
      Returns: