fastlane-plugin-ionic_integration 0.1.1 → 0.1.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
  SHA1:
3
- metadata.gz: 0ba9fec3748c954abd933f8ffa0d3a977e08735d
4
- data.tar.gz: 0f06cda86a66db09c5039294b648d8ce48cda9e3
3
+ metadata.gz: 57a557e5ea7f3cab4b60905323f2811ad6de6991
4
+ data.tar.gz: 463ffcb33cdc364a2c9f890868f18aebedcb32a0
5
5
  SHA512:
6
- metadata.gz: 022e8570269d014ff206a2e6f41ded5e5621a39ed81beecd11d70c39b97942a9be60ca8d77988b17fa7c89908b02085403307bfbbabb79b263a9ac8a6dce35d6
7
- data.tar.gz: 41d10824df9ed483e5a5727730ba2d107289829346532b5c973b4526bdc86d2e6b6bbdec3ee51ef71d9335031dccc5a7819b323a18105dd1fda618589d792dd0
6
+ metadata.gz: adaf8856f64c6eb42de5f05eb298a0532f4c513ecfa006b4838e22d5f570b47dd27d18879e8b52d1f1cff52d7e41a00748f253eae04041ab946a480dc9bb2170
7
+ data.tar.gz: a408e0762de3d045e293b5d5a668d6006d5b033cced1bd3fce7a05283bf88ac770ae987db221785db73a96e36349accf94d9b291328c5cec3cabd9fad4d9fe22
@@ -77,7 +77,7 @@ module Fastlane
77
77
  # Ok, let's rock and roll
78
78
  #
79
79
  UI.message "Creating UI Test Group #{scheme_name} for snapshots testing"
80
- snap_group = proj.new_group(scheme_name.to_s)
80
+ snap_group = proj.new_group(scheme_name.to_s, File.absolute_path(config_folder))
81
81
 
82
82
  UI.message "Finding Main Target (of the Project)..."
83
83
  main_target = nil
@@ -91,11 +91,22 @@ module Fastlane
91
91
  main_target || UI.user_error!("Unable to locate Main Target for Ionic App in #{project_name}")
92
92
 
93
93
  # Create a product for our ui unit test
94
- product_ref = proj.products_group.new_reference(scheme_name + '.xctest', :built_products)
94
+ product_ref_name = scheme_name + '.xctest'
95
+ proj.products_group.files.each do |ref|
96
+ if ref.path == product_ref_name
97
+ UI.message "Removing old #{ref.path}"
98
+ ref.remove_from_project
99
+ end
100
+ end
101
+
102
+ # product_ref.nil? || product_ref.remove_from_project
103
+
104
+ # product_ref = proj.products_group.new_reference(product_ref_name, :built_products)
95
105
 
96
106
  target = Xcodeproj::Project::ProjectHelper.new_target(proj, :ui_test_bundle,
97
107
  scheme_name, :ios, target_os, proj.products_group, :swift)
98
108
 
109
+ product_ref = proj.products_group.find_file_by_path(product_ref_name)
99
110
  target.product_reference = product_ref
100
111
 
101
112
  UI.message "Adding Main Target Dependency: " + main_target.to_s
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module IonicIntegration
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-ionic_integration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Regan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-21 00:00:00.000000000 Z
11
+ date: 2017-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry