testflight 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68d832ec0989a3ae7b1b3775d2c04e9676ea36e3
4
- data.tar.gz: e76b82525992abdef89dc77c42b3148ccbe94a6a
3
+ metadata.gz: e3bf496bd0d3a310a3d7385d848c0cff6db65688
4
+ data.tar.gz: 4da0d57daf6c50b56583a01df0d606f0f059b32b
5
5
  SHA512:
6
- metadata.gz: 33b548b785b57ebc71db62d67ab72ffc8b9d74dbf7f3ee91f7e6b7bac213ad06b29e8c8129b4d99caabc33606201563bb69182f7f8b24679e9eb9d90425583f3
7
- data.tar.gz: 059043814ffbdb73b35892b3cb37b929748449f00ec1b318ce76dae2e2a4605b1b918aa6d50d7f0e19af13309159c8282eee7d4f0d8c8f224c8af4498788427f
6
+ metadata.gz: e31a79afa7d6d2db1b3be77948cead5e68b2f73d1d7a5c014ecddf349d118271adae7f4c92177f7d59bd0aafd6df2eda20589214013d75d9dca51799d8acbafd
7
+ data.tar.gz: 23992e27e390a366f20dd7af8486a9e1cad4c7fa03e91f176a7c387d5196112da92789f88d79549e8cf85d20efccbccc58d54ea90a1dde4063a13014c6eb658c
@@ -44,12 +44,14 @@ module Testflight
44
44
  if Testflight::Config.workspace?
45
45
  build_workspace(opts)
46
46
  package_workspace(opts)
47
+ package_workspace_dSYM(opts)
47
48
  else
48
49
  clean_project(opts)
49
50
  build_project(opts)
50
51
  package_project(opts)
51
- end
52
-
52
+ package_project_dSYM(opts)
53
+ end
54
+
53
55
  upload_to_testflightapp(opts)
54
56
 
55
57
  append_log_entry(opts)
@@ -74,8 +76,8 @@ module Testflight
74
76
  cmd = "#{XCODE_BUILDER} -workspace '#{Testflight::Config.workspace_name}' "
75
77
  cmd << "-scheme '#{Testflight::Config.application_name}' "
76
78
  cmd << "-sdk '#{Testflight::Config.sdk_version}' "
77
- cmd << "-configuration 'AdHoc' "
78
- cmd << "-arch 'armv6 armv7' "
79
+ cmd << "-configuration '#{Testflight::Config.configuration}' "
80
+ cmd << "-arch '#{Testflight::Config.architecture}' "
79
81
  cmd << "CONFIGURATION_BUILD_DIR='#{Testflight::Config.build_dir}' "
80
82
  execute(cmd, opts)
81
83
  end
@@ -103,22 +105,32 @@ module Testflight
103
105
 
104
106
  def package_workspace(opts = {})
105
107
  cmd = "#{XCODE_PACKAGER} -sdk iphoneos PackageApplication "
106
- cmd << "-v '#{Testflight::Config.build_dir}/#{Testflight::Config.application_name}.app' "
108
+ cmd << "-v '#{Testflight::Config.build_dir}/#{Testflight::Config.build_name}.app' "
107
109
  cmd << "-o '#{Testflight::Config.distribution_file}' "
108
110
  cmd << "--sign '#{Testflight::Config.developer_name}' "
109
111
  cmd << "--embed '#{Testflight::Config.provisioning_dir}/#{Testflight::Config.ad_hoc_provisioning_name}'"
110
112
  execute(cmd, opts)
111
113
  end
112
114
 
115
+ def package_workspace_dSYM(opts = {})
116
+ cmd = "zip -r '#{Testflight::Config.distribution_dsym_file}' '#{Testflight::Config.build_dir}/#{Testflight::Config.build_name}.app.dSYM'"
117
+ execute(cmd, opts)
118
+ end
119
+
113
120
  def package_project(opts = {})
114
121
  cmd = "#{XCODE_PACKAGER} -sdk iphoneos PackageApplication "
115
- cmd << "-v '#{Testflight::Config.build_dir}/Release-iphoneos/#{Testflight::Config.application_name}.app' "
122
+ cmd << "-v '#{Testflight::Config.release_dir}/#{Testflight::Config.application_name}.app' "
116
123
  cmd << "-o '#{Testflight::Config.distribution_file}' "
117
124
  cmd << "--sign '#{Testflight::Config.developer_name}' "
118
125
  cmd << "--embed '#{Testflight::Config.provisioning_dir}/#{Testflight::Config.ad_hoc_provisioning_name}'"
119
126
  execute(cmd, opts)
120
127
  end
121
128
 
129
+ def package_project_dSYM(opts = {})
130
+ cmd = "zip -r '#{Testflight::Config.distribution_dsym_file}' '#{Testflight::Config.release_dir}/#{Testflight::Config.build_name}.app.dSYM'"
131
+ execute(cmd, opts)
132
+ end
133
+
122
134
  ####################################################################################
123
135
  ## Uploading Project
124
136
  ####################################################################################
@@ -126,6 +138,7 @@ module Testflight
126
138
  def upload_to_testflightapp(opts = {})
127
139
  cmd = "curl #{TESTFLIGHT_ENDPOINT} "
128
140
  cmd << "-F file=@#{Testflight::Config.distribution_file} "
141
+ cmd << "-F dsym=@#{Testflight::Config.distribution_dsym_file} "
129
142
  cmd << "-F api_token=#{Testflight::Config.api_token} "
130
143
  cmd << "-F team_token=#{Testflight::Config.team_token} "
131
144
  cmd << "-F notify=#{opts[:notify]} "
@@ -44,6 +44,10 @@ module Testflight
44
44
  config["build"]
45
45
  end
46
46
 
47
+ def self.build_name
48
+ build["name"] || application_name
49
+ end
50
+
47
51
  def self.developer_name
48
52
  build["developer_name"]
49
53
  end
@@ -100,6 +104,10 @@ module Testflight
100
104
  ## Helper Methods
101
105
  ##################################################
102
106
 
107
+ def self.release_dir
108
+ "#{build_dir}/#{configuration}-iphoneos"
109
+ end
110
+
103
111
  def self.project_dir
104
112
  Dir.pwd
105
113
  end
@@ -164,6 +172,10 @@ module Testflight
164
172
  "#{distributions_dir}/#{application_name}_#{project_version_short}.ipa"
165
173
  end
166
174
 
175
+ def self.distribution_dsym_file
176
+ "#{distributions_dir}/#{application_name}_#{project_version_short}.app.dSYM.zip"
177
+ end
178
+
167
179
  def self.project_info_file_name
168
180
  "#{application_name}-Info.plist"
169
181
  end
@@ -22,7 +22,7 @@
22
22
  #++
23
23
 
24
24
  module Testflight
25
- VERSION = "1.0.1"
25
+ VERSION = "1.0.2"
26
26
  end
27
27
 
28
28
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testflight
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
  - Michael Berkovich