my-cocoapods-packager 1.5.0 → 1.5.1
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 +4 -4
- data/cocoapods-packager-1.5.0.gem +0 -0
- data/cocoapods-packager.gemspec +1 -1
- data/lib/cocoapods-packager/builder.rb +0 -9
- data/lib/cocoapods-packager/pod_utils.rb +1 -1
- data/lib/cocoapods_packager.rb +1 -1
- data/lib/pod/command/package.rb +5 -5
- metadata +4 -5
- data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcworkspace/contents.xcworkspacedata +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c6e11b7e11e732fb6c41cd125554c0b22a5d5116e30e6b3afad3d986cfbd8f3
|
4
|
+
data.tar.gz: fdd04b006db46ed0493c79a102b19a4a4ed59aed994d5d95a7793035f1c7187b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 616563e01a240fb16bb7f5137203c9b9d86527af6f24a3930ed82f22e3e493c994220d8ca80be5cc3e93d837519aa0c946bf7472d0059ad6cd44666578d5b5cd
|
7
|
+
data.tar.gz: 9ada972c01caccbd31438ebd80f7fef77f71ad8f9e2efeceace598797abfa4e50aa16acf6671f4baec1219c957795976594aa3cb9dcd2fdd7b9071c6a04faa83
|
Binary file
|
data/cocoapods-packager.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Pod::Packager::VERSION
|
9
9
|
spec.authors = ['Kyle Fuller', 'Boris Bügling']
|
10
10
|
spec.summary = 'CocoaPods plugin which allows you to generate a framework or static library from a podspec.'
|
11
|
-
spec.homepage = '
|
11
|
+
spec.homepage = 'http://gitlab.douyuios.com/liusilan/cocoapods-packager.git'
|
12
12
|
spec.license = 'MIT'
|
13
13
|
spec.files = `git ls-files`.split($/)
|
14
14
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
@@ -95,8 +95,6 @@ module Pod
|
|
95
95
|
|
96
96
|
linker_flags = lib_linker_flags.push(framework_link_flas)
|
97
97
|
|
98
|
-
puts linker_flags
|
99
|
-
|
100
98
|
defines = "#{defines} OTHER_LDFLAGS='$(inherited) #{linker_flags.join(' ')}'"
|
101
99
|
|
102
100
|
# Build Target Dynamic Framework for both device and Simulator
|
@@ -105,9 +103,6 @@ module Pod
|
|
105
103
|
|
106
104
|
device_options = ios_build_options << ' -sdk iphoneos'
|
107
105
|
|
108
|
-
puts device_defines
|
109
|
-
puts linker_flags
|
110
|
-
|
111
106
|
xcodebuild(device_defines, device_options, 'build', @spec.name.to_s, @dynamic_sandbox_root.to_s)
|
112
107
|
|
113
108
|
sim_defines = "#{defines} LIBRARY_SEARCH_PATHS=\"#{Dir.pwd}/#{@static_sandbox_root}/build-sim\" ONLY_ACTIVE_ARCH=NO"
|
@@ -301,7 +296,6 @@ MAP
|
|
301
296
|
end
|
302
297
|
|
303
298
|
def static_linker_flags_in_sandbox
|
304
|
-
puts static_libs_in_sandbox.map
|
305
299
|
linker_flags = static_libs_in_sandbox.map do |lib|
|
306
300
|
lib.slice!('lib')
|
307
301
|
lib_flag = lib.chomp('.a').split('/').last
|
@@ -319,10 +313,7 @@ MAP
|
|
319
313
|
args = "#{args} CODE_SIGN_IDENTITY=\"\" CODE_SIGNING_REQUIRED=NO"
|
320
314
|
end
|
321
315
|
|
322
|
-
UI.puts project_root
|
323
|
-
|
324
316
|
command = "xcodebuild #{defines} #{args} CONFIGURATION_BUILD_DIR=#{build_dir} clean build -configuration #{config} -target #{target} -project #{project_root}/Pods.xcodeproj 2>&1"
|
325
|
-
puts command
|
326
317
|
output = `#{command}`.lines.to_a
|
327
318
|
|
328
319
|
if $?.exitstatus != 0
|
data/lib/cocoapods_packager.rb
CHANGED
data/lib/pod/command/package.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'tmpdir'
|
2
2
|
module Pod
|
3
3
|
class Command
|
4
|
-
class
|
4
|
+
class MyPackage < Command
|
5
5
|
self.summary = 'Package a podspec into a static library.'
|
6
6
|
self.arguments = [
|
7
7
|
CLAide::Argument.new('NAME', true),
|
@@ -65,8 +65,8 @@ module Pod
|
|
65
65
|
return if target_dir.nil?
|
66
66
|
build_package
|
67
67
|
|
68
|
-
`mv "#{work_dir}" "#{target_dir}"`
|
69
|
-
Dir.chdir(@source_dir)
|
68
|
+
# `mv "#{work_dir}" "#{target_dir}"`
|
69
|
+
# Dir.chdir(@source_dir)
|
70
70
|
end
|
71
71
|
|
72
72
|
private
|
@@ -87,8 +87,8 @@ module Pod
|
|
87
87
|
perform_build(platform, static_sandbox, dynamic_sandbox)
|
88
88
|
|
89
89
|
ensure # in case the build fails; see Builder#xcodebuild.
|
90
|
-
Pathname.new(config.sandbox_root).rmtree
|
91
|
-
FileUtils.rm_f('Podfile.lock')
|
90
|
+
# Pathname.new(config.sandbox_root).rmtree
|
91
|
+
# FileUtils.rm_f('Podfile.lock')
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: my-cocoapods-packager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Fuller
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-01-
|
12
|
+
date: 2018-01-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cocoapods
|
@@ -75,6 +75,7 @@ files:
|
|
75
75
|
- LICENSE
|
76
76
|
- README.md
|
77
77
|
- Rakefile
|
78
|
+
- cocoapods-packager-1.5.0.gem
|
78
79
|
- cocoapods-packager.gemspec
|
79
80
|
- lib/cocoapods-packager/builder.rb
|
80
81
|
- lib/cocoapods-packager/framework.rb
|
@@ -99,7 +100,6 @@ files:
|
|
99
100
|
- spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/project.pbxproj
|
100
101
|
- spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/project.xcworkspace/contents.xcworkspacedata
|
101
102
|
- spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/xcshareddata/xcschemes/LibraryConsumer.xcscheme
|
102
|
-
- spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcworkspace/contents.xcworkspacedata
|
103
103
|
- spec/fixtures/LibraryConsumerDemo/LibraryConsumer/AppDelegate.h
|
104
104
|
- spec/fixtures/LibraryConsumerDemo/LibraryConsumer/AppDelegate.m
|
105
105
|
- spec/fixtures/LibraryConsumerDemo/LibraryConsumer/Info.plist
|
@@ -136,7 +136,7 @@ files:
|
|
136
136
|
- spec/specification/builder_spec.rb
|
137
137
|
- spec/specification/spec_builder_spec.rb
|
138
138
|
- spec/user_interface/build_failed_report_spec.rb
|
139
|
-
homepage:
|
139
|
+
homepage: http://gitlab.douyuios.com/liusilan/cocoapods-packager.git
|
140
140
|
licenses:
|
141
141
|
- MIT
|
142
142
|
metadata: {}
|
@@ -173,7 +173,6 @@ test_files:
|
|
173
173
|
- spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/project.pbxproj
|
174
174
|
- spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/project.xcworkspace/contents.xcworkspacedata
|
175
175
|
- spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/xcshareddata/xcschemes/LibraryConsumer.xcscheme
|
176
|
-
- spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcworkspace/contents.xcworkspacedata
|
177
176
|
- spec/fixtures/LibraryConsumerDemo/LibraryConsumer/AppDelegate.h
|
178
177
|
- spec/fixtures/LibraryConsumerDemo/LibraryConsumer/AppDelegate.m
|
179
178
|
- spec/fixtures/LibraryConsumerDemo/LibraryConsumer/Info.plist
|