cocoapods-flutter-dt 0.2.0 → 0.2.4

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
  SHA256:
3
- metadata.gz: d2421a480d1a7ad5eb76e8a4bd8254593832f4892dfa846c4c60036bff94a164
4
- data.tar.gz: 1e708eb4a7790856232eda465eda1647ec8312dc429bebe6d96192eae0e5c7f4
3
+ metadata.gz: 7d6f48c8b2c30eed6c96640d6fca157ffcd7f3d296a4033d2c28dbc3499cd6b4
4
+ data.tar.gz: 3fee21a26991ace46036335b93f4eb07866b55d241086c5923b1b5f96411a619
5
5
  SHA512:
6
- metadata.gz: cdfea592a158629ce42d65555e4d6f922aa01e64f04b78863e8e90c967820ca003bd47de679e9bee6468a9f9e660afac6981b419bc407b6a550e8ae009f21de7
7
- data.tar.gz: ccabda6e51e234003fa4b658809c4edbbb82fb53ab97bd1909ba4cae4d1affb1594ba736f24484dae8b3d6585e7b1c8bcccdd2a43b3b9f6f1e3fa1473152def2
6
+ metadata.gz: e6465dd51a49d8d1f64efc656b88635fb235b2f451aadc5b7584ec6c08a42e4b112c902896ff832e7dba21ac821dd2c07f029c09079e7e6e690bdecea41033f7
7
+ data.tar.gz: 05be1f94f4a991114fb87436b9724f1c318c0f046ce57dad8c5e2be0a33f8ddfdce849c4bdf3e4d1962df309d4cab62152cd67cd5d5661e70e787e2df93ffba8
@@ -1,3 +1,3 @@
1
1
  module CocoapodsFlutter
2
- VERSION = "0.2.0"
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)
@@ -414,6 +433,7 @@ end
414
433
 
415
434
  Dir.chdir temp_dir do |dir|
416
435
  Pod::Command::Repo::Push.run([@pod_repo, '--skip-import-validation', '--verbose', '--allow-warnings', "--sources=#{@sources.join(',')}"])
436
+ File.delete spec_file
417
437
  end
418
438
 
419
439
  end
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.0
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-08-07 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