fastlane-plugin-clean_testflight_testers 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e837efe036ecda2d31fd11c2dadc676a02651219
4
- data.tar.gz: ef24ddc525defd6eb0c754e572e7484bf7473273
3
+ metadata.gz: 7959153b701cc09103e9c8c5593dbb9984c90358
4
+ data.tar.gz: de6a1c804eceb031f11c8a5ec690b22139659854
5
5
  SHA512:
6
- metadata.gz: 8c9fa639a9d4a4a3465f73d27fd87f91245d69546c572f91f7dd49249de6876019a4b77f1af78096f9b76697e9ba001033235fc9c82acf6492abe6f3f84e03a6
7
- data.tar.gz: e7ff1c90daf19446e22a13c2e70ae57019296fe1a17934636ff01ba31ea1deab3def76e6fc93667f2b1a1e1f83d404add0a8c2b1db8d01e85be209f35f8158e6
6
+ metadata.gz: 48ef207925226c4fac60ee5abe28577fa158781295e1e6510008d68555daccfb25aeb40e83c59cb366b500f9d589febb5dcfc1571452ac12d8ec7445e7922b43
7
+ data.tar.gz: 5b1bd35c52b68bca7bca6486895ac9dea3dc212a8e80d8f37fbb8f100c6b864d8ca727e5e8c95712c34cbe508573e3cf1236231b076c4a92af317d9fda93297d
@@ -34,6 +34,10 @@ module Fastlane
34
34
  # User had no sessions in the last e.g. 30 days, let's get rid of them
35
35
  remove_tester(current_tester, app_id, params[:dry_run])
36
36
  counter += 1
37
+ elsif params[:oldest_build_allowed] && current_tester.latest_install_info["latestInstalledVersion"].to_i > 0 && current_tester.latest_install_info["latestInstalledVersion"].to_i < params[:oldest_build_allowed]
38
+ # User has a build that is too old, let's get rid of them
39
+ remove_tester(current_tester, app_id, params[:dry_run])
40
+ counter += 1
37
41
  end
38
42
  end
39
43
  end
@@ -110,6 +114,16 @@ module Fastlane
110
114
  verify_block: proc do |value|
111
115
  UI.user_error!("Please enter a valid positive number of days") unless value.to_i > 0
112
116
  end),
117
+ FastlaneCore::ConfigItem.new(key: :oldest_build_allowed,
118
+ short_option: "-b",
119
+ env_name: "CLEAN_TESTFLIGHT_TESTERS_OLDEST_BUILD_ALLOWED",
120
+ description: "Oldest build number allowed. All testers with older builds will be removed",
121
+ optional: true,
122
+ default_value: 0,
123
+ type: Integer,
124
+ verify_block: proc do |value|
125
+ UI.user_error!("Please enter a valid build number") unless value.to_i >= 0
126
+ end),
113
127
  FastlaneCore::ConfigItem.new(key: :dry_run,
114
128
  short_option: "-d",
115
129
  env_name: "CLEAN_TESTFLIGHT_TESTERS_DRY_RUN",
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module CleanTestflightTesters
3
- VERSION = "0.1.2"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-clean_testflight_testers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-29 00:00:00.000000000 Z
11
+ date: 2018-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -140,10 +140,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  requirements: []
142
142
  rubyforge_project:
143
- rubygems_version: 2.6.8
143
+ rubygems_version: 2.6.10
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Automatically remove TestFlight testers that are not actually testing your
147
147
  app
148
148
  test_files: []
149
- has_rdoc: