fastlane-plugin-firebase_app_distribution 0.9.0.pre.3 → 0.9.0.pre.5

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: 5d7ed4a0a9d749511bec75416ba92973ace84c89ba66b3a72334954fbcbf877b
4
- data.tar.gz: '089dedc3f702c9d6e96eb524e52297d05fdc0cd2fb5c24b7bbd2ab05bda5bf8d'
3
+ metadata.gz: aceee5f3b1696286ac2811aed9705f09d603d724c906845762f7ff76f3ed55e3
4
+ data.tar.gz: 7f8daaf84f2a08e82c064fd99dd9b0465434b4c11720f5616a39e82a82a945ec
5
5
  SHA512:
6
- metadata.gz: 48a14b02bd94c8af09891adea99ef689ed5c0f0098e470de9bcb528da947477f01e0b04bbb721fd44224ff7f0608bc7851a9d8b8b1265119015e84f3a0107120
7
- data.tar.gz: 167b00c19c2cd8fa0e15d7b14cb4a02f45d15854d5a6104120463264696ddbd0d1cb67cc134146edb4dc89a9e40e72d0f9fe39a90735bbaac4883ce5b0e0a4e5
6
+ metadata.gz: edd6b12487d3382f3ee7164e0b7f73d5e442b86262c046866ef475f52e32085375abc497d9809061f7f636f798b1c99653a212a44e8e6ab9cd50e8b32f0dc544
7
+ data.tar.gz: 53e4f7ec3690cd8784fb74aa36543b70b4de708e78c5c7ad3ebeaf89068db724265ba67cfb91f7354f73311d441f36144e13bed24b9020c90276d8420c0e57a2
@@ -88,8 +88,9 @@ module Fastlane
88
88
  get_value_from_value_or_file(params[:test_devices], params[:test_devices_file])
89
89
  if present?(test_devices)
90
90
  UI.message("🤖 Starting automated tests. Note: This feature is in beta.")
91
- release_test = test_release(alpha_client, release, test_devices, params[:test_username], params[:test_password], params[:test_username_resource], params[:test_password_resource])
92
- unless params[:test_async]
91
+ test_password = test_password_from_params(params)
92
+ release_test = test_release(alpha_client, release, test_devices, params[:test_username], test_password, params[:test_username_resource], params[:test_password_resource])
93
+ unless params[:test_non_blocking]
93
94
  poll_test_finished(alpha_client, release_test.name)
94
95
  end
95
96
  end
@@ -133,6 +134,12 @@ module Fastlane
133
134
  "Release your beta builds with Firebase App Distribution"
134
135
  end
135
136
 
137
+ def self.test_password_from_params(params)
138
+ test_password = get_value_from_value_or_file(params[:test_password], params[:test_password_file])
139
+ # Remove trailing newline if present
140
+ test_password && test_password.sub(/\r?\n$/, "")
141
+ end
142
+
136
143
  def self.app_id_from_params(params)
137
144
  if params[:app]
138
145
  app_id = params[:app]
@@ -522,23 +529,33 @@ module Fastlane
522
529
  optional: true,
523
530
  type: String),
524
531
  FastlaneCore::ConfigItem.new(key: :test_username,
532
+ env_name: "FIREBASEAPPDISTRO_TEST_USERNAME",
525
533
  description: "Username for automatic login",
526
534
  optional: true,
527
535
  type: String),
528
536
  FastlaneCore::ConfigItem.new(key: :test_password,
529
- description: "Password for automatic login",
537
+ env_name: "FIREBASEAPPDISTRO_TEST_PASSWORD",
538
+ description: "Password for automatic login. If using a real password consider using test_password_file or setting FIREBASEAPPDISTRO_TEST_PASSWORD to avoid exposing sensitive info",
530
539
  optional: true,
531
540
  type: String),
541
+ FastlaneCore::ConfigItem.new(key: :test_password_file,
542
+ env_name: "FIREBASEAPPDISTRO_TEST_PASSWORD_FILE",
543
+ description: "Path to file containing password for automatic login",
544
+ optional: true,
545
+ type: String),
532
546
  FastlaneCore::ConfigItem.new(key: :test_username_resource,
547
+ env_name: "FIREBASEAPPDISTRO_TEST_USERNAME_RESOURCE",
533
548
  description: "Resource name for the username field for automatic login",
534
549
  optional: true,
535
550
  type: String),
536
551
  FastlaneCore::ConfigItem.new(key: :test_password_resource,
552
+ env_name: "FIREBASEAPPDISTRO_TEST_PASSWORD_RESOURCE",
537
553
  description: "Resource name for the password field for automatic login",
538
554
  optional: true,
539
555
  type: String),
540
- FastlaneCore::ConfigItem.new(key: :test_async,
541
- description: "Run tests asynchronously. Visit the Firebase console for the automatic test results",
556
+ FastlaneCore::ConfigItem.new(key: :test_non_blocking,
557
+ env_name: "FIREBASEAPPDISTRO_TEST_NON_BLOCKING",
558
+ description: "Run automated tests without waiting for them to finish. Visit the Firebase console for the test results",
542
559
  optional: false,
543
560
  default_value: false,
544
561
  type: Boolean),
@@ -28,8 +28,9 @@ module Fastlane
28
28
  end
29
29
  udids = client.get_project_tester_udids(project_name(project_number)).tester_udids
30
30
 
31
- if udids.empty?
32
- UI.important("App Distribution fetched 0 tester UDIDs. Nothing written to output file.")
31
+ if udids.to_a.empty?
32
+ File.delete(params[:output_file]) if File.exist?(params[:output_file])
33
+ UI.important("App Distribution fetched 0 tester UDIDs. Removed output file.")
33
34
  else
34
35
  write_udids_to_file(udids, params[:output_file])
35
36
  UI.success("🎉 App Distribution tester UDIDs written to: #{params[:output_file]}")
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module FirebaseAppDistribution
3
- VERSION = "0.9.0.pre.3"
3
+ VERSION = "0.9.0.pre.5"
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.9.0.pre.3
4
+ version: 0.9.0.pre.5
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: 2024-02-01 00:00:00.000000000 Z
13
+ date: 2024-02-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: google-apis-firebaseappdistribution_v1