fastlane-plugin-buildstash 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 7ba2835dc2af3fae9a40e7132b7e41e7778e65b02a1304462cda7c47ac3efa80
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 76069bf392a0d554835535a1eb9795b0f1e7bfc9b38a14a6b56048b7a6d99054
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 4aa058135772962c9793194218405c7c62fc2be57fed53abeb27a0c8e255580b81482b7323f404a879daddbf585587e40f71749dd729c4700bd56ff970173644
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: d794165f479b22864d19ae04c4fc92f59bd76686c4a38ecebfd04692032fd647481b2849330b61882911e300b536b8174aebccfbba15e40ea5cbf96d756e8c9f
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -6,10 +6,14 @@ The `fastlane-plugin-buildstash` plugin allows you to upload build artifacts to 
     | 
|
| 
       6 
6 
     | 
    
         
             
            ## Installation
         
     | 
| 
       7 
7 
     | 
    
         
             
            You can install this plugin to your project running:
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
      
 9 
     | 
    
         
            +
            ### Preferred installation method
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
       9 
11 
     | 
    
         
             
            ```sh
         
     | 
| 
       10 
12 
     | 
    
         
             
            fastlane add_plugin buildstash
         
     | 
| 
       11 
13 
     | 
    
         
             
            ```
         
     | 
| 
       12 
14 
     | 
    
         | 
| 
      
 15 
     | 
    
         
            +
            ### Testing locally
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
       13 
17 
     | 
    
         
             
            Or, to use a copy of this plugin locally, add it to your `Pluginfile`:
         
     | 
| 
       14 
18 
     | 
    
         | 
| 
       15 
19 
     | 
    
         
             
            ```ruby
         
     | 
| 
         @@ -55,6 +59,8 @@ lane :run_buildstash_upload do |options| 
     | 
|
| 
       55 
59 
     | 
    
         
             
                version_component_extra: 'rc',
         
     | 
| 
       56 
60 
     | 
    
         
             
                version_component_meta: '2024.12.01',
         
     | 
| 
       57 
61 
     | 
    
         
             
                custom_build_number: '12345',
         
     | 
| 
      
 62 
     | 
    
         
            +
                labels: ["to-review", "signed"],
         
     | 
| 
      
 63 
     | 
    
         
            +
                architectures: ["armv6", "armv7", "armv8", "arm64v8", "armv9"],
         
     | 
| 
       58 
64 
     | 
    
         
             
                notes: '<AppChangelog>',
         
     | 
| 
       59 
65 
     | 
    
         
             
                source: 'ghactions',
         
     | 
| 
       60 
66 
     | 
    
         
             
                ci_pipeline: options[:ci_pipeline],
         
     | 
| 
         @@ -72,31 +78,33 @@ end 
     | 
|
| 
       72 
78 
     | 
    
         
             
            ```
         
     | 
| 
       73 
79 
     | 
    
         | 
| 
       74 
80 
     | 
    
         
             
            ## Parameters
         
     | 
| 
       75 
     | 
    
         
            -
            | Parameter 
     | 
| 
       76 
     | 
    
         
            -
             
     | 
| 
       77 
     | 
    
         
            -
            | `api_key` 
     | 
| 
       78 
     | 
    
         
            -
            | `structure` 
     | 
| 
       79 
     | 
    
         
            -
            | `primary_file_path` 
     | 
| 
       80 
     | 
    
         
            -
            | `platform` 
     | 
| 
       81 
     | 
    
         
            -
            | `stream` 
     | 
| 
       82 
     | 
    
         
            -
            | `version_component_1_major` 
     | 
| 
       83 
     | 
    
         
            -
            | `version_component_2_minor` 
     | 
| 
       84 
     | 
    
         
            -
            | `version_component_3_patch` 
     | 
| 
       85 
     | 
    
         
            -
            | `version_component_extra` 
     | 
| 
       86 
     | 
    
         
            -
            | `version_component_meta` 
     | 
| 
       87 
     | 
    
         
            -
            | `custom_build_number` 
     | 
| 
       88 
     | 
    
         
            -
            | ` 
     | 
| 
       89 
     | 
    
         
            -
            | ` 
     | 
| 
       90 
     | 
    
         
            -
            | ` 
     | 
| 
       91 
     | 
    
         
            -
            | ` 
     | 
| 
       92 
     | 
    
         
            -
            | ` 
     | 
| 
       93 
     | 
    
         
            -
            | ` 
     | 
| 
       94 
     | 
    
         
            -
            | ` 
     | 
| 
       95 
     | 
    
         
            -
            | ` 
     | 
| 
       96 
     | 
    
         
            -
            | ` 
     | 
| 
       97 
     | 
    
         
            -
            | ` 
     | 
| 
       98 
     | 
    
         
            -
            | ` 
     | 
| 
       99 
     | 
    
         
            -
            | ` 
     | 
| 
      
 81 
     | 
    
         
            +
            | Parameter                   | Description                                                                                                  | Required |
         
     | 
| 
      
 82 
     | 
    
         
            +
            |-----------------------------|--------------------------------------------------------------------------------------------------------------|----------|
         
     | 
| 
      
 83 
     | 
    
         
            +
            | `api_key`                   | The API key for authentication                                                                               | ✅       |
         
     | 
| 
      
 84 
     | 
    
         
            +
            | `structure`                 | 'file' for single file, 'file+expansion' to include Android expansion file. will default to 'file'           | ✖       |
         
     | 
| 
      
 85 
     | 
    
         
            +
            | `primary_file_path`         | './path/to/file.apk'                                                                                         | ✅       |
         
     | 
| 
      
 86 
     | 
    
         
            +
            | `platform`                  | 'android' or 'ios' (see [Buildstash docs for full list](https://docs.buildstash.com/integrations/platforms)) | ✅       |
         
     | 
| 
      
 87 
     | 
    
         
            +
            | `stream`                    | Exact name of a build stream in your app                                                                     | ✅       |
         
     | 
| 
      
 88 
     | 
    
         
            +
            | `version_component_1_major` | Semantic version (major component)                                                                           | ✅       |
         
     | 
| 
      
 89 
     | 
    
         
            +
            | `version_component_2_minor` | Semantic version (minor component)                                                                           | ✅       |
         
     | 
| 
      
 90 
     | 
    
         
            +
            | `version_component_3_patch` | Semantic version (patch component)                                                                           | ✅       |
         
     | 
| 
      
 91 
     | 
    
         
            +
            | `version_component_extra`   | Optional pre-release label (beta, rc1, etc)                                                                  | ✖       |
         
     | 
| 
      
 92 
     | 
    
         
            +
            | `version_component_meta`    | Optional release metadata                                                                                    | ✖       |
         
     | 
| 
      
 93 
     | 
    
         
            +
            | `custom_build_number`       | Optional custom build number in any format                                                                   | ✖       |
         
     | 
| 
      
 94 
     | 
    
         
            +
            | `labels`                    | Array of labels to attach to build (will be created if they do not already exist)                            | ✖       |
         
     | 
| 
      
 95 
     | 
    
         
            +
            | `architectures`             | Array of architectures this build supports (must be supported by platform)                                   | ✖       |
         
     | 
| 
      
 96 
     | 
    
         
            +
            | `notes`                     | Changelog or additional notes                                                                                | ✖️       |
         
     | 
| 
      
 97 
     | 
    
         
            +
            | `source`                    | Where build was produced (`ghactions`, `jenkins`, etc) defaults to cli-upload                                | ✖️       |
         
     | 
| 
      
 98 
     | 
    
         
            +
            | `ci_pipeline`               | CI pipeline name                                                                                             | ✖️       |
         
     | 
| 
      
 99 
     | 
    
         
            +
            | `ci_run_id`                 | CI run ID                                                                                                    | ✖️       |
         
     | 
| 
      
 100 
     | 
    
         
            +
            | `ci_run_url`                | CI run URL                                                                                                   | ✖️       |
         
     | 
| 
      
 101 
     | 
    
         
            +
            | `vc_host_type`              | Version control host type (git, svn, hg, perforce, etc)                                                      | ✖️       |
         
     | 
| 
      
 102 
     | 
    
         
            +
            | `vc_host`                   | Version control host (github, gitlab, etc)                                                                   | ✖️       |
         
     | 
| 
      
 103 
     | 
    
         
            +
            | `vc_repo_name`              | Repository name                                                                                              | ✖️       |
         
     | 
| 
      
 104 
     | 
    
         
            +
            | `vc_repo_url`               | Repository URL                                                                                               | ✖️       |
         
     | 
| 
      
 105 
     | 
    
         
            +
            | `vc_branch`                 | Branch name (if applicable)                                                                                  | ✖️       |
         
     | 
| 
      
 106 
     | 
    
         
            +
            | `vc_commit_sha`             | Commit SHA (if applicable)                                                                                   | ✖️       |
         
     | 
| 
      
 107 
     | 
    
         
            +
            | `vc_commit_url`             | Commit URL                                                                                                   | ✖️       |
         
     | 
| 
       100 
108 
     | 
    
         | 
| 
       101 
109 
     | 
    
         | 
| 
       102 
110 
     | 
    
         
             
            ## Example Output
         
     | 
| 
         @@ -20,6 +20,9 @@ module Fastlane 
     | 
|
| 
       20 
20 
     | 
    
         
             
                    stream = params[:stream]
         
     | 
| 
       21 
21 
     | 
    
         
             
                    notes = params[:notes]
         
     | 
| 
       22 
22 
     | 
    
         | 
| 
      
 23 
     | 
    
         
            +
                    labels = params[:labels]
         
     | 
| 
      
 24 
     | 
    
         
            +
                    architectures = params[:architectures]
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
       23 
26 
     | 
    
         
             
                    source = params[:source]
         
     | 
| 
       24 
27 
     | 
    
         | 
| 
       25 
28 
     | 
    
         
             
                    ci_pipeline = params[:ci_pipeline]
         
     | 
| 
         @@ -79,6 +82,9 @@ module Fastlane 
     | 
|
| 
       79 
82 
     | 
    
         
             
                      vc_commit_url: vc_commit_url
         
     | 
| 
       80 
83 
     | 
    
         
             
                    }
         
     | 
| 
       81 
84 
     | 
    
         | 
| 
      
 85 
     | 
    
         
            +
                    request_body[:labels] = labels if labels && !labels.empty?
         
     | 
| 
      
 86 
     | 
    
         
            +
                    request_body[:architectures] = architectures if architectures && !architectures.empty?
         
     | 
| 
      
 87 
     | 
    
         
            +
             
     | 
| 
       82 
88 
     | 
    
         
             
                    expansion_file_path = params[:expansion_file_path]
         
     | 
| 
       83 
89 
     | 
    
         
             
                    # Add expansion file info if structure is file+expansion and expansion file path provided
         
     | 
| 
       84 
90 
     | 
    
         
             
                    if structure == 'file+expansion' && expansion_file_path
         
     | 
| 
         @@ -350,6 +356,20 @@ module Fastlane 
     | 
|
| 
       350 
356 
     | 
    
         
             
                        type: String
         
     | 
| 
       351 
357 
     | 
    
         
             
                      ),
         
     | 
| 
       352 
358 
     | 
    
         | 
| 
      
 359 
     | 
    
         
            +
                      FastlaneCore::ConfigItem.new(
         
     | 
| 
      
 360 
     | 
    
         
            +
                        key: :labels,
         
     | 
| 
      
 361 
     | 
    
         
            +
                        description: "Labels to attach to build",
         
     | 
| 
      
 362 
     | 
    
         
            +
                        optional: true,
         
     | 
| 
      
 363 
     | 
    
         
            +
                        type: Array
         
     | 
| 
      
 364 
     | 
    
         
            +
                      ),
         
     | 
| 
      
 365 
     | 
    
         
            +
             
     | 
| 
      
 366 
     | 
    
         
            +
                      FastlaneCore::ConfigItem.new(
         
     | 
| 
      
 367 
     | 
    
         
            +
                        key: :architectures,
         
     | 
| 
      
 368 
     | 
    
         
            +
                        description: "Architectures this build supports",
         
     | 
| 
      
 369 
     | 
    
         
            +
                        optional: true,
         
     | 
| 
      
 370 
     | 
    
         
            +
                        type: Array
         
     | 
| 
      
 371 
     | 
    
         
            +
                      ),
         
     | 
| 
      
 372 
     | 
    
         
            +
             
     | 
| 
       353 
373 
     | 
    
         
             
                      FastlaneCore::ConfigItem.new(
         
     | 
| 
       354 
374 
     | 
    
         
             
                        key: :notes,
         
     | 
| 
       355 
375 
     | 
    
         
             
                        description: "Changelog or additional notes",
         
     |