fastlane-plugin-firebase_app_distribution 0.6.0 → 0.6.1

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
  SHA256:
3
- metadata.gz: c8c5fed8eb93d2d6c62dee224fb08c366646a91b0ddd38d74689e5c34b0f355b
4
- data.tar.gz: 03ee7ef5569e510ae63370cd860ec6f118f6ce5d8771c2f961d9194609232709
3
+ metadata.gz: 5e7f18a8f8eafbf185e2668199992945f10c594eb0905a7f44dacc19d896dec7
4
+ data.tar.gz: 8d04a88db55901df3e117bd620d3db5b05080f7ba381b9a26cd7fd857c863bb2
5
5
  SHA512:
6
- metadata.gz: e0b67fbe3ac855aec3dd70be48726d44bcae8eb021a70984ff5274431b0e093c6849ad9ddf64f6186698ffa5701950acc53c602cb48583d520738a1bfa75f6b5
7
- data.tar.gz: ec59af9949e4d9086004c63561b2e74a3bf09b9a270b02a12e62d66a322198124c8019724ae7cd33f2f5097615dd9c068f416e3efa5bc48fe4b77e11133b6946
6
+ metadata.gz: 144d169438dbefce6a18448ef9b64012e29d2675487f638b11aeb99ccbb9b075391bb77d57bac106718d1510a791e70fa31d4ddcf6a3b757854e6b93f0e18fde
7
+ data.tar.gz: 114836ed3247cd167071a10ec5d1868da3c090c3f37c792913529438dce1a9ff7ce3d3f4ee3b9c67d2d5f9dae1ab8769872f7cd6992dc6210b0b651a3ab30739
@@ -26,11 +26,15 @@ module Fastlane
26
26
  UI.user_error!("A maximum of 1000 testers can be removed at a time.")
27
27
  end
28
28
 
29
- UI.message("⏳ Removing #{emails.count} testers from project #{params[:project_number]}...")
30
-
31
- count = fad_api_client.remove_testers(params[:project_number], emails)
32
-
33
- UI.success("✅ #{count} tester(s) removed successfully.")
29
+ if blank?(params[:group_alias])
30
+ UI.message("⏳ Removing #{emails.count} testers from project #{params[:project_number]}...")
31
+ count = fad_api_client.remove_testers(params[:project_number], emails)
32
+ UI.success("✅ #{count} tester(s) removed successfully.")
33
+ else
34
+ UI.message("⏳ Removing #{emails.count} testers from group #{params[:group_alias]}...")
35
+ fad_api_client.remove_testers_from_group(params[:project_number], params[:group_alias], emails)
36
+ UI.success("✅ Tester(s) removed successfully.")
37
+ end
34
38
  end
35
39
 
36
40
  def self.description
@@ -55,14 +59,19 @@ module Fastlane
55
59
  optional: false),
56
60
  FastlaneCore::ConfigItem.new(key: :emails,
57
61
  env_name: "FIREBASEAPPDISTRO_REMOVE_TESTERS_EMAILS",
58
- description: "Comma separated list of tester emails to be deleted. A maximum of 1000 testers can be deleted at a time",
62
+ description: "Comma separated list of tester emails to be deleted (or removed from a group if a group alias is specified). A maximum of 1000 testers can be deleted/removed at a time",
59
63
  optional: true,
60
64
  type: String),
61
65
  FastlaneCore::ConfigItem.new(key: :file,
62
66
  env_name: "FIREBASEAPPDISTRO_REMOVE_TESTERS_FILE",
63
- description: "Path to a file containing a comma separated list of tester emails to be deleted. A maximum of 1000 testers can be deleted at a time",
67
+ description: "Path to a file containing a comma separated list of tester emails to be deleted (or removed from a group if a group alias is specified). A maximum of 1000 testers can be deleted/removed at a time",
64
68
  optional: true,
65
69
  type: String),
70
+ FastlaneCore::ConfigItem.new(key: :group_alias,
71
+ env_name: "FIREBASEAPPDISTRO_REMOVE_TESTERS_GROUP_ALIAS",
72
+ description: "Alias of the group to remove the specified testers from. Testers will not be deleted from the project",
73
+ optional: true,
74
+ type: String),
66
75
  FastlaneCore::ConfigItem.new(key: :service_credentials_file,
67
76
  description: "Path to Google service credentials file",
68
77
  optional: true,
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module FirebaseAppDistribution
3
- VERSION = "0.6.0"
3
+ VERSION = "0.6.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-firebase_app_distribution
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Natchev
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-06-05 00:00:00.000000000 Z
13
+ date: 2023-06-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pry