cocoapods-packager-ext 0.0.6 → 0.0.11

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
  SHA256:
3
- metadata.gz: 4264f49f24386e48fa678503705130bef2ba23e3b8fc5a0a14b8ee1db209ae75
4
- data.tar.gz: a101e747b0c0c9b2095eff2dffc6bc8e60525b9b85902c60aac8c06420ad6278
3
+ metadata.gz: 975c1587853affa9927f595278b2f4a14dbe1c043994dbffff6e79394d4f9519
4
+ data.tar.gz: d11655a9c1fd7dadaf3dd5bdb154b1b014aa7e20c2bde9cbe82bc2bf1d9dd2c2
5
5
  SHA512:
6
- metadata.gz: afbebc6f08605c3794b6e737d8d66fd409e846ffaef642b04d1af8e94324e275b1afcf0b25247746c0699362bb2f1021b288d43b53bbcf99d9155a8e711d19c6
7
- data.tar.gz: ac8bf3ff35af21113b2171682707fbc67832700f9cece448df28222523843caa3345a5ce0f2afe5af4ed2f3e889f4294e0f32108f0101a14d2e11938996d271d
6
+ metadata.gz: f8694a1df3a49c9b61d084694137626f95315cd1a42fc3d0a5b1587628c042d51d39f54741be2e9010ed145a2e82d475aea02153bc84ded6f51eb77735db1c3d
7
+ data.tar.gz: 525356691709d4ca1be7ec7d8d464c417d0d15dea6f4dcb9d27e17fc17d89c074eb26ee433e33f8a09ace24a53671f831d1e304b08705dfaed2bbdb28f8a7f7c
@@ -1 +1,2 @@
1
- require 'cocoapods-packager-ext/command/ext'
1
+ require 'cocoapods-packager-ext/command/install_ext'
2
+ require 'cocoapods-packager-ext/command/package_ext'
@@ -0,0 +1,91 @@
1
+ module Pod
2
+ class Installer
3
+ attr_accessor :dry_deps
4
+ alias install_t! install!
5
+ def install!()
6
+ if @dry_deps
7
+ prepare
8
+ resolve_dependencies
9
+ else
10
+ install_t!
11
+ end
12
+ end
13
+
14
+ end
15
+
16
+ class Command
17
+
18
+ # This is an example of a cocoapods plugin adding a top-level subcommand
19
+ # to the 'pod' command.
20
+ #
21
+ # You can also create subcommands of existing or new commands. Say you
22
+ # wanted to add a subcommand to `list` to show newly deprecated pods,
23
+ # (e.g. `pod list deprecated`), there are a few things that would need
24
+ # to change.
25
+ #
26
+ # - move this file to `lib/pod/command/list/deprecated.rb` and update
27
+ # the class to exist in the the Pod::Command::List namespace
28
+ # - change this class to extend from `List` instead of `Command`. This
29
+ # tells the plugin system that it is a subcommand of `list`.
30
+ # - edit `lib/cocoapods_plugins.rb` to require this file
31
+ #
32
+ # @todo Create a PR to add your plugin to CocoaPods/cocoapods.org
33
+ # in the `plugins.json` file, once your plugin is released.
34
+ #
35
+ class Install
36
+ def self.options
37
+ [
38
+ ['--repo-update', 'Force running `pod repo update` before install'],
39
+ ['--deployment', 'Disallow any changes to the Podfile or the Podfile.lock during installation'],
40
+ ['--clean-install', 'Ignore the contents of the project cache and force a full pod installation. This only ' \
41
+ 'applies to projects that have enabled incremental installation'],
42
+ ['--dry-deps','only test depend'],
43
+ ].concat(super).reject { |(name, _)| name == '--no-repo-update' }
44
+ end
45
+ # class << self
46
+ # alias options_t options
47
+ # def options
48
+ # o = options_t
49
+ # o.push(['--dry-deps','only test depend'])
50
+ # o.concat(super)
51
+ # end
52
+ #
53
+ # end
54
+ def initialize(argv)
55
+ super
56
+ @deployment = argv.flag?('deployment', false)
57
+ @clean_install = argv.flag?('clean-install', false)
58
+ @dry_deps = argv.flag?('dry-deps',false)
59
+ end
60
+
61
+ # alias run_t run
62
+ # def run
63
+ # if @dry_deps
64
+ # verify_podfile_exists!
65
+ # installer = installer_for_config
66
+ # installer.repo_update = repo_update?(:default => false)
67
+ # installer.update = false
68
+ # installer.deployment = @deployment
69
+ # installer.clean_install = @clean_install
70
+ # installer.dry_deps = @dry_deps
71
+ # installer.install!
72
+ # else
73
+ # run_t
74
+ # end
75
+ # end
76
+ def run
77
+ verify_podfile_exists!
78
+ installer = installer_for_config
79
+ installer.repo_update = repo_update?(:default => false)
80
+ installer.update = false
81
+ installer.deployment = @deployment
82
+ installer.clean_install = @clean_install
83
+ if @dry_deps
84
+ installer.dry_deps = @dry_deps
85
+ end
86
+ installer.install!
87
+ end
88
+
89
+ end
90
+ end
91
+ end
@@ -25,7 +25,7 @@ module Pod
25
25
  o.push(['--all-deps','add all-depends'])
26
26
  o.push(['--archs','select archs'])
27
27
  o.push(['--black-deps','select exclude deps'])
28
-
28
+ o.concat(super)
29
29
  end
30
30
 
31
31
  end
@@ -56,7 +56,7 @@ module Pod
56
56
  if @select_archs.size != 0
57
57
  return "ARCHS=\'#{@select_archs.join(' ')}\' OTHER_CFLAGS=\'-fembed-bitcode -Qunused-arguments\'"
58
58
  else
59
- return ios_build_options_t
59
+ return "ARCHS=\'x86_64 i386 arm64 armv7\' OTHER_CFLAGS=\'-fembed-bitcode -Qunused-arguments\'"
60
60
  end
61
61
  end
62
62
 
@@ -75,6 +75,15 @@ module Pod
75
75
  if @all_deps
76
76
  return if static_libs.count == 0
77
77
  sim_libs = static_libs_in_sandbox('build-sim')
78
+ for item in @black_deps
79
+ static_libs.delete_if do |obj|
80
+ obj.include? item
81
+ end
82
+ sim_libs.delete_if do |obj|
83
+ obj.include? item
84
+ end
85
+ end
86
+ UI.puts "links statics:#{static_libs.join(' ')}, sim_libs:#{sim_libs.join(' ')}"
78
87
  `xcrun -r libtool -no_warning_for_no_symbols -static -o #{output} #{static_libs.join(' ')} #{sim_libs.join(' ')}`
79
88
  else
80
89
  build_static_lib_for_ios static_libs,_defines,output
@@ -1,3 +1,3 @@
1
1
  module CocoapodsPackagerExt
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-packager-ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - kyle.zhou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-19 00:00:00.000000000 Z
11
+ date: 2021-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -67,7 +67,8 @@ files:
67
67
  - cocoapods-packager-ext.gemspec
68
68
  - lib/cocoapods-packager-ext.rb
69
69
  - lib/cocoapods-packager-ext/command.rb
70
- - lib/cocoapods-packager-ext/command/ext.rb
70
+ - lib/cocoapods-packager-ext/command/install_ext.rb
71
+ - lib/cocoapods-packager-ext/command/package_ext.rb
71
72
  - lib/cocoapods-packager-ext/ext/builder.rb
72
73
  - lib/cocoapods-packager-ext/gem_version.rb
73
74
  - lib/cocoapods_plugin.rb