src/main/java/org/jenkinsci/plugins/awsdevicefarm/AWSDeviceFarm.java
public Upload uploadApp(Project project, String appArtifact) throws InterruptedException, IOException, AWSDeviceFarmException {
        AWSDeviceFarmUploadType type;
        if (appArtifact.toLowerCase().endsWith("apk")) {
            type = AWSDeviceFarmUploadType.ANDROID_APP;
        } else if (appArtifact.toLowerCase().endsWith("ipa") || appArtifact.toLowerCase().endsWith("zip")) {
            type = AWSDeviceFarmUploadType.IOS_APP;
        } else {
            throw new AWSDeviceFarmException(String.format("Unknown app artifact to upload: %s", appArtifact));
        }

        return upload(project, appArtifact, type);
    }
/**
     * Upload an app to Device Farm to be tested.
     *
     * @param project     The Device Farm project to upload to.
     * @param appArtifact String path to the app to be uploaded to Device Farm.
     * @return The Device Farm Upload object.
     * @throws IOException
     * @throws AWSDeviceFarmException
     */
Upload an app to Device Farm to be tested.
@param project     The Device Farm project to upload to.
@param appArtifact String path to the app to be uploaded to Device Farm.
@return The Device Farm Upload object.
Upload an app to Device Farm to be tested . @param project The Device Farm project to upload to . @param appArtifact String path to the app to be uploaded to Device Farm . @return The Device Farm Upload object .
public Upload uploadApp(Project project, String appArtifact) throws InterruptedException, IOException, AWSDeviceFarmException {
        AWSDeviceFarmUploadType type;
        if (appArtifact.toLowerCase().endsWith("apk")) {
            type = AWSDeviceFarmUploadType.ANDROID_APP;
        } else if (appArtifact.toLowerCase().endsWith("ipa") || appArtifact.toLowerCase().endsWith("zip")) {
            type = AWSDeviceFarmUploadType.IOS_APP;
        } else {
            throw new AWSDeviceFarmException(String.format("Unknown app artifact to upload: %s", appArtifact));
        }
        return upload(project, appArtifact, type);
    }
public Upload uploadApp ( Project project , String appArtifact ) throws InterruptedException , IOException , AWSDeviceFarmException { AWSDeviceFarmUploadType type ; if ( appArtifact . toLowerCase ( ) . endsWith ( "apk" ) ) { type = AWSDeviceFarmUploadType . ANDROID_APP ; } else if ( appArtifact . toLowerCase ( ) . endsWith ( "ipa" ) || appArtifact . toLowerCase ( ) . endsWith ( "zip" ) ) { type = AWSDeviceFarmUploadType . IOS_APP ; } else { throw new AWSDeviceFarmException ( String . format ( "Unknown app artifact to upload: %s" , appArtifact ) ) ; } return upload ( project , appArtifact , type ) ; }
Upload an app to Device Farm to be tested.
Upload an app to Device Farm to be tested .