cocoapods-flutter-dt 0.2.3 → 0.2.4

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: f05fc8a65dae84e742b6f61de971dfc8c3ab5b7dd044823ad7f53fa1789cd3c4
4
- data.tar.gz: a0892ade0ae14639612c1e28e53ac8590ce29b218d5361b2c51ffd522b6fa257
3
+ metadata.gz: 7d6f48c8b2c30eed6c96640d6fca157ffcd7f3d296a4033d2c28dbc3499cd6b4
4
+ data.tar.gz: 3fee21a26991ace46036335b93f4eb07866b55d241086c5923b1b5f96411a619
5
5
  SHA512:
6
- metadata.gz: a6d90440a72876892fa1b5ee19ae6f1582a8398fe065e404b94e2d2f1d3cb69cfac0f6dc1a9e1044664ca898c75a9da5c5fbcba935f5c2b9a009466eb557a595
7
- data.tar.gz: d37d7b449610b1466bd86358feda8dfb88564f5384a7cdb4ecee528c553fef3de393f1b033d17cd52f57fe501f12547c495285b7f1ce3cdb1de5b87bdf3caa9c
6
+ metadata.gz: e6465dd51a49d8d1f64efc656b88635fb235b2f451aadc5b7584ec6c08a42e4b112c902896ff832e7dba21ac821dd2c07f029c09079e7e6e690bdecea41033f7
7
+ data.tar.gz: 05be1f94f4a991114fb87436b9724f1c318c0f046ce57dad8c5e2be0a33f8ddfdce849c4bdf3e4d1962df309d4cab62152cd67cd5d5661e70e787e2df93ffba8
@@ -1,3 +1,3 @@
1
1
  module CocoapodsFlutter
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -62,6 +62,8 @@ class Archiver
62
62
  @plugins = fetch_plugins
63
63
 
64
64
  if @build_modes.include?('debug')
65
+ # Debug瘦身
66
+ thin_arm64 "#{@product_dir}Debug/App.framework/App"
65
67
  debug
66
68
  end
67
69
 
@@ -107,6 +109,22 @@ class Archiver
107
109
 
108
110
  private
109
111
 
112
+ def thin_arm64(path)
113
+ # thin arm64
114
+ thin_commands = [
115
+ 'lipo',
116
+ path,
117
+ '-thin',
118
+ "arm64",
119
+ '-output',
120
+ path,
121
+ ]
122
+
123
+ if CommandRunner.run(*thin_commands) == false
124
+ raise "Error running #{commands.join ' '} "
125
+ end
126
+ end
127
+
110
128
  def release
111
129
  app_file, sdk_file = zip_files @plugins, 'Release'
112
130
  upload_files app_file, sdk_file, 'Release'
@@ -222,6 +240,7 @@ class Archiver
222
240
  # FileUtils.remove_dir product_dir, true
223
241
  raise "Error running #{commands.join ' '} "
224
242
  end
243
+
225
244
  end
226
245
 
227
246
  def build_app(mode)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-flutter-dt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - "\bDreamtracer"
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-06 00:00:00.000000000 Z
11
+ date: 2021-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel