Class Deploy


  • public class Deploy
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Deploy​(java.nio.file.Path checksPath)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addDebugSymbolInfo​(java.nio.file.Path appPath, java.lang.String appName)
      Adds debug symbols into a .dSYM bundle
      java.nio.file.Path getIosDeployPath()
      For tests only
      boolean install​(java.lang.String app)
      Installs the .app bundle on a connected iOS device, but it doesn't launch it
      boolean run​(java.lang.String app, java.lang.String bundleID)
      Runs an app on a connected iOS device, providing that is already installed, and enters debug mode
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Deploy

        public Deploy​(java.nio.file.Path checksPath)
               throws java.io.IOException,
                      java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
    • Method Detail

      • addDebugSymbolInfo

        public void addDebugSymbolInfo​(java.nio.file.Path appPath,
                                       java.lang.String appName)
                                throws java.io.IOException,
                                       java.lang.InterruptedException
        Adds debug symbols into a .dSYM bundle
        Parameters:
        appPath - the path of the app bundle
        appName - the name of the app
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • install

        public boolean install​(java.lang.String app)
                        throws java.io.IOException,
                               java.lang.InterruptedException
        Installs the .app bundle on a connected iOS device, but it doesn't launch it
        Parameters:
        app - The path of the .app bundle
        Returns:
        True if the process succeeds
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • run

        public boolean run​(java.lang.String app,
                           java.lang.String bundleID)
                    throws java.io.IOException,
                           java.lang.InterruptedException
        Runs an app on a connected iOS device, providing that is already installed, and enters debug mode
        Parameters:
        app - The path of the .app bundle
        bundleID - The bundle id of the installed app
        Returns:
        True if the process succeeds
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • getIosDeployPath

        public java.nio.file.Path getIosDeployPath()
        For tests only
        Returns:
        the path of ios-deploy