fastlane-plugin-firebase_test_lab 1.0.1 → 1.0.2

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: a94d09a3da15a19b9bbef5ab63df267e07b813981be32c76743f7b5c9db68b51
4
- data.tar.gz: 2b3f3e6d23b125d39fd4a532dbf38e0af34e7b6b03f2797b89ed6472528c26e1
3
+ metadata.gz: f1f5308778530af81a939aef7c88ad0ddb51dfeda8ce51bb31df4c0938f680e4
4
+ data.tar.gz: bab0b9409cc86d8e57b088daabeaa56b0a8fba5bd297950947d350ed76008f42
5
5
  SHA512:
6
- metadata.gz: 30a62e9d815248e5e5f91d3d557a8b108b2b5137fc03314e35f9447cbfc24d7fcc42a16f10f45651917601ff4e74f1a2d42d8bf3a20ac7971282fd3abac2534f
7
- data.tar.gz: 5c44f93b44dbc5e326e8ab596e07036c490c614c209fbd06fbb45beffc58f93cd56892c072f1e99cefe3a491b14e83abf9f18e16e5be9acfe0ba6879a4cdb155
6
+ metadata.gz: 7e6dea344e8f58c2b8969344e42566ba9a20f35c0f85fe7cb8d03a7522a8cd54972ec200eeb8bfb0d79f44e2773b807dfa103cb31a8f018f87afdff95fef4c47
7
+ data.tar.gz: 41b581f107235ab63c71ab57a599a3588b4e4b5603ab3d9947b36c5746f698884e826f3fe249327d0416e012f8ea63dc44b5f1b965c5ef31a26f5bb9c2442a1f
@@ -14,14 +14,29 @@ module Fastlane
14
14
  end
15
15
 
16
16
  conf = Plist.parse_xml(xctestrun_files.first.get_input_stream)
17
+
18
+ # Ensure we only have one scheme (other than the metadata if that's present)
17
19
  size = conf.size
18
20
  if conf['__xctestrun_metadata__']
19
21
  size -= 1
20
- end
22
+ end
21
23
  unless size == 1
22
- UI.user_error!("The app bundle may contain only one scheme, #{size} found")
24
+ UI.user_error!("The app bundle may contain only one scheme, #{size} found.")
25
+ end
26
+
27
+ # Find the tests scheme that's not the metadata scheme
28
+ scheme_conf = nil
29
+ conf.each do |key, value|
30
+ if scheme_conf.nil? && key != '__xctestrun_metadata__'
31
+ scheme_conf = value
32
+ end
23
33
  end
24
- _, scheme_conf = conf.first
34
+
35
+ # Ensure we found the tests scheme
36
+ if scheme_conf.nil?
37
+ UI.user_error!("Failed to find your UI tests scheme in your .xctestrun file.")
38
+ end
39
+
25
40
  unless scheme_conf["IsUITestBundle"]
26
41
  UI.user_error!("The app bundle is not a UI test bundle. Did you build with build-for-testing argument?")
27
42
  end
@@ -1,6 +1,6 @@
1
1
  module Fastlane
2
2
  module FirebaseTestLab
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  PLUGIN_NAME = "fastlane-plugin-firebase_test_lab"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-firebase_test_lab
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shihua Zheng
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-27 00:00:00.000000000 Z
11
+ date: 2018-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday