Skip to content

Commit 674d478

Browse files
authored
Remove deprecated filter inputs (#108)
* Remove deprecated filter inputs * *
1 parent e655023 commit 674d478

File tree

3 files changed

+0
-60
lines changed

3 files changed

+0
-60
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ You can also set up file path filters to avoid exporting unwanted archives or ma
103103
| `mapping_file_exclude_filter` | The Step will **not** copy the generated mapping files that match this filter into the Bitrise deploy directory. You can use this input to avoid moving a beta mapping file, for example. If you specify an empty filter, every mapping file (selected by `mapping_file_include_filter`) will be copied. Example: Do not copy any mapping.txt file that is in a `beta` directoy: ``` */beta/mapping.txt ``` | | `*/tmp/*` |
104104
| `cache_level` | `all` - will cache build-cache and dependencies `only_deps` - will cache dependencies only `none` - won't cache any of the above | required | `only_deps` |
105105
| `gradle_options` | Flags added to the end of the Gradle call. You can use multiple options, separated by a space. Example: `--stacktrace --debug` If `--debug` or `-d` options are set then only the last 20 lines of the raw gradle output will be visible in the build log. The full raw output will be exported to the `$BITRISE_GRADLE_RAW_RESULT_TEXT_PATH` variable and will be added as a build artifact. | | `--stacktrace` |
106-
| `apk_file_include_filter` | This input is **DEPRECATED** - use the `APK and AAB file include filter` input instead and set this input to empty value. The step will copy the generated APK files that match this filter into the Bitrise Deploy Directory. If you specify an empty filter, the new input "APK and AAB file include filter" will be used. Example: Copy every APK file: ``` "*.apk" ``` Copy every APK file with a filename that contains `release`, like (`./app/build/outputs/apk/app-release-unsigned.apk`): ``` *release*.apk ``` | | |
107-
| `apk_file_exclude_filter` | This input is **DEPRECATED** - use the `APK and AAB file exclude filter` input instead and set this input to empty value. One filter per line. The step will **not** copy the generated APK files that match this filters into the Bitrise Deploy Directory. You can use this filter to avoid moving unalinged and/or unsigned apk files. If you specify an empty filter, the new input "APK and AAB file exclude filter" will be used. Examples: Do not copy APK files with a filename that contains `unaligned`: ``` *unaligned*.apk ``` Do not copy APK files with a filename that contains `unaligned` and/or `Test`: ``` *unaligned*.apk *Test*.apk ``` | | |
108106
| `collect_metrics` | Enable Gradle metrics collection and send data to Bitrise. | | `no` |
109107
</details>
110108

main.go

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ type Config struct {
5353

5454
// Metrics
5555
CollectMetrics bool `env:"collect_metrics,opt[yes,no]"`
56-
57-
// Deprecated
58-
ApkFileIncludeFilter string `env:"apk_file_include_filter"`
59-
ApkFileExcludeFilter string `env:"apk_file_exclude_filter"`
6056
}
6157

6258
func runGradleTask(gradleTool, buildFile, tasks, options string, destDir string) error {
@@ -166,24 +162,6 @@ func validateAndMigrateConfig(config *Config) error {
166162
}
167163
}
168164

169-
if strings.TrimSpace(config.ApkFileIncludeFilter) != "" {
170-
log.Warnf(`Step input 'APK file include filter' (apk_file_include_filter) is deprecated and will be removed soon,
171-
use 'APK and AAB file include filter' (app_file_include_filter) instead.`)
172-
fmt.Println()
173-
log.Infof(`'APK file include filter' (apk_file_include_filter) is used, 'APK and AAB file include filter' (app_file_include_filter) is ignored.
174-
Use 'APK and AAB file include filter' and set 'APK file include filter' to empty value.`)
175-
fmt.Println()
176-
config.AppFileIncludeFilter = config.ApkFileIncludeFilter
177-
}
178-
if strings.TrimSpace(config.ApkFileExcludeFilter) != "" {
179-
log.Warnf(`Step input 'APK file exclude filter' (apk_file_exclude_filter) is deprecated and will be removed soon,
180-
use 'APK and AAB file exclude filter' (app_file_exclude_filter) instead.`)
181-
fmt.Println()
182-
log.Infof(`'APK file exclude filter' (apk_file_exclude_filter) is used, 'APK and AAB file exclude filter' (app_file_exclude_filter) is ignored.
183-
Use 'APK and AAB file exclude filter' and set 'APK file exclude filter' to empty value.`)
184-
fmt.Println()
185-
config.AppFileExcludeFilter = config.ApkFileExcludeFilter
186-
}
187165
return nil
188166
}
189167

step.yml

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -210,42 +210,6 @@ inputs:
210210
You can use multiple options, separated by a space. Example: `--stacktrace --debug`
211211
If `--debug` or `-d` options are set then only the last 20 lines of the raw gradle output will be visible in the build log.
212212
The full raw output will be exported to the `$BITRISE_GRADLE_RAW_RESULT_TEXT_PATH` variable and will be added as a build artifact.
213-
- apk_file_include_filter: null
214-
opts:
215-
category: Deprecated
216-
title: APK file include filter
217-
description: |
218-
This input is **DEPRECATED** - use the `APK and AAB file include filter` input instead and set this input to empty value.
219-
The step will copy the generated APK files that match this filter into the Bitrise Deploy Directory.
220-
If you specify an empty filter, the new input "APK and AAB file include filter" will be used.
221-
Example:
222-
Copy every APK file:
223-
```
224-
"*.apk"
225-
```
226-
Copy every APK file with a filename that contains `release`, like (`./app/build/outputs/apk/app-release-unsigned.apk`):
227-
```
228-
*release*.apk
229-
```
230-
- apk_file_exclude_filter: null
231-
opts:
232-
category: Deprecated
233-
title: APK file exclude filter
234-
description: |
235-
This input is **DEPRECATED** - use the `APK and AAB file exclude filter` input instead and set this input to empty value.
236-
One filter per line. The step will **not** copy the generated APK files that match this filters into the Bitrise Deploy Directory.
237-
You can use this filter to avoid moving unalinged and/or unsigned apk files.
238-
If you specify an empty filter, the new input "APK and AAB file exclude filter" will be used.
239-
Examples:
240-
Do not copy APK files with a filename that contains `unaligned`:
241-
```
242-
*unaligned*.apk
243-
```
244-
Do not copy APK files with a filename that contains `unaligned` and/or `Test`:
245-
```
246-
*unaligned*.apk
247-
*Test*.apk
248-
```
249213
- collect_metrics: "no"
250214
opts:
251215
title: Collect Gradle metrics

0 commit comments

Comments
 (0)