fastlane-plugin-ionic_integration 0.1.0 → 0.1.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ba9fec3748c954abd933f8ffa0d3a977e08735d
|
4
|
+
data.tar.gz: 0f06cda86a66db09c5039294b648d8ce48cda9e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 022e8570269d014ff206a2e6f41ded5e5621a39ed81beecd11d70c39b97942a9be60ca8d77988b17fa7c89908b02085403307bfbbabb79b263a9ac8a6dce35d6
|
7
|
+
data.tar.gz: 41d10824df9ed483e5a5727730ba2d107289829346532b5c973b4526bdc86d2e6b6bbdec3ee51ef71d9335031dccc5a7819b323a18105dd1fda618589d792dd0
|
@@ -55,11 +55,11 @@ module Fastlane
|
|
55
55
|
#
|
56
56
|
# Find existing code group or unit tests and remove if needed.
|
57
57
|
#
|
58
|
-
|
58
|
+
snap_group = nil
|
59
59
|
proj.groups.each do |g|
|
60
60
|
next unless g.name == scheme_name
|
61
61
|
g.clear
|
62
|
-
|
62
|
+
snap_group = g
|
63
63
|
UI.important "Found existing Code Group #{g.name}. Will be replaced."
|
64
64
|
break
|
65
65
|
end
|
@@ -68,16 +68,16 @@ module Fastlane
|
|
68
68
|
# Remove existing targets and groups if required.
|
69
69
|
#
|
70
70
|
target.nil? || target.remove_from_project
|
71
|
-
|
71
|
+
snap_group.nil? || snap_group.remove_from_project
|
72
72
|
|
73
73
|
target = nil
|
74
|
-
|
74
|
+
snap_group = nil
|
75
75
|
|
76
76
|
#
|
77
77
|
# Ok, let's rock and roll
|
78
78
|
#
|
79
79
|
UI.message "Creating UI Test Group #{scheme_name} for snapshots testing"
|
80
|
-
|
80
|
+
snap_group = proj.new_group(scheme_name.to_s)
|
81
81
|
|
82
82
|
UI.message "Finding Main Target (of the Project)..."
|
83
83
|
main_target = nil
|
@@ -110,7 +110,7 @@ module Fastlane
|
|
110
110
|
# Link our fastlane configured UI Unit Tests into the project
|
111
111
|
Dir["#{config_folder}/*.plist", "#{config_folder}/*.swift"].each do |file|
|
112
112
|
UI.message "Adding UI Test Source #{file}"
|
113
|
-
files <<
|
113
|
+
files << snap_group.new_reference(File.absolute_path(file))
|
114
114
|
end
|
115
115
|
|
116
116
|
target.add_file_references(files)
|
@@ -142,10 +142,10 @@ module Fastlane
|
|
142
142
|
target.build_configuration_list.set_setting('DEVELOPMENT_TEAM', team_id)
|
143
143
|
|
144
144
|
# Create a shared scheme for the UI tests
|
145
|
-
|
145
|
+
existing_scheme = Xcodeproj::XCScheme.shared_data_dir(xcode_project_path) + "/#{scheme_name}.xcscheme"
|
146
146
|
|
147
147
|
UI.message "Generating XCode Scheme #{scheme_name} to run UI Snapshot Tests"
|
148
|
-
scheme = File.exist?(
|
148
|
+
scheme = File.exist?(existing_scheme) ? Xcodeproj::XCScheme.new(existing_scheme) : Xcodeproj::XCScheme.new
|
149
149
|
|
150
150
|
scheme.add_test_target(target)
|
151
151
|
|
@@ -191,10 +191,12 @@ module Fastlane
|
|
191
191
|
FastlaneCore::ConfigItem.new(key: :team_id,
|
192
192
|
env_name: 'IONIC_TEAM_ID_IOS',
|
193
193
|
description: 'Team Id in iTunesConnect or Apple Developer',
|
194
|
+
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:team_id),
|
194
195
|
optional: false),
|
195
196
|
FastlaneCore::ConfigItem.new(key: :bundle_id,
|
196
197
|
env_name: 'IONIC_BUNDLE_ID_IOS',
|
197
198
|
description: 'The Bundle Id of the iOS App, eg: ie.littlevista.whateverapp',
|
199
|
+
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:package_name),
|
198
200
|
optional: false)
|
199
201
|
|
200
202
|
]
|
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.
|
4
|
+
version: 0.1.1
|
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-
|
11
|
+
date: 2017-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
147
|
rubyforge_project:
|
148
|
-
rubygems_version: 2.4.
|
148
|
+
rubygems_version: 2.4.6
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: Integrating Fastlane with Ionic Generated Projects
|