cocoapods-binary-flutter 0.0.5 → 0.0.7

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: c7bd713354fcb6ef65505563fe38ff02c5a87f36334ac34e75db9c28448688e1
4
- data.tar.gz: 81d7ed3a1bad7fd0de0648754dc90b04eeef7f72ee1042d677105f39c921c2ca
3
+ metadata.gz: cf5221d75f343fc5b3e1a04fb0dc0fbfe39ccee6686ff716a28c7ed85b6eab58
4
+ data.tar.gz: 8e883c280d7ddd2b2c7a84db8d51b7d71c76c271536024086d3186bc2722c5fa
5
5
  SHA512:
6
- metadata.gz: 843536681be735fcce9564c8808f25a3fc8cfa2c11b09c2d6b9ebe4dd70618957f1311380ae9298dc9f3110e1e6cf2cf93ed91c2772f1cc42ad81d4dbb254faa
7
- data.tar.gz: 2d0f5ea33c1d56a7de3d7a2c8c3ca6ede2d72e3d31511d2381b2cc5151e1b5df79b5a61b54a8dd6f0d8cf23f932494614ff121b254bf51bf1c21ecaff01a4d8c
6
+ metadata.gz: 2a2e5604059b0ac44535d754c5de950206cd1333207d187153fb46151aebf16e9de5307ffe59e94e22cb8deace676626398b024964efaf8347da364648540731
7
+ data.tar.gz: c8b2c57175cd4d7d6c4172abf91c1aac18e9f8f6f60d5564203ebbb195c7e12a06be531b364103d5758895dee14e8c89f2113cc8cbb4495f407290fc371d1e46
@@ -1,3 +1,3 @@
1
1
  module CocoapodsBinaryFlutter
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -71,6 +71,21 @@ module Pod
71
71
 
72
72
  #安装
73
73
  def install_all_lzflutter_pods(flutter_binary_path)
74
+ # defined_in_file is a Pathname to the Podfile set by CocoaPods.
75
+ pod_contents = File.read(defined_in_file)
76
+ if pod_contents.include? 'flutter_post_install'
77
+ puts <<~POSTINSTALL
78
+ DELETE `flutter_post_install(installer)` to your Podfile `post_install` block to build Flutter plugins:
79
+
80
+ post_install do |installer|
81
+ flutter_post_install(installer)
82
+ end
83
+ POSTINSTALL
84
+ raise 'DELETE `flutter_post_install(installer)` in Podfile `post_install` block
85
+ Flutter产物依赖不需要flutter_post_install(installer)
86
+ '
87
+ end
88
+
74
89
  install_lzflutter_engine_pod(flutter_binary_path)
75
90
  install_lzflutter_plugin_pods(flutter_binary_path)
76
91
  install_lzflutter_application_pod(flutter_binary_path)
@@ -86,8 +101,10 @@ module Pod
86
101
  # Keep pod path relative so it can be checked into Podfile.lock.
87
102
  # Process will be run from project directory.
88
103
 
89
- #FlutterPluginRegistrant
90
- pod 'FlutterPluginRegistrant', :path => File.join(flutter_binary_path, 'flutter', 'FlutterPluginRegistrant'), :inhibit_warnings => true
104
+ registrantPath = File.join(flutter_binary_path, 'flutter', 'FlutterPluginRegistrant')
105
+ if File.exist?(registrantPath)
106
+ pod 'FlutterPluginRegistrant', :path => registrantPath, :inhibit_warnings => true
107
+ end
91
108
 
92
109
  #插件目录
93
110
  ios_plugins_directory_pathname = File.join(flutter_binary_path, 'plugins')
@@ -105,27 +122,6 @@ module Pod
105
122
  pod 'App', :path => File.join(flutter_binary_path, 'flutter'), :inhibit_warnings => true
106
123
  end
107
124
 
108
- # Run the post-install script to set build settings on Flutter plugins.
109
- #
110
- # @example
111
- # post_install do |installer|
112
- # flutter_post_install(installer)
113
- # end
114
- # @param [Pod::Installer] installer Passed to the `post_install` block.
115
- # @param [boolean] skip Do not change any build configurations. Set to suppress
116
- # "Missing `flutter_post_install" exception.
117
- def flutter_post_install(installer, skip: false)
118
- return if skip
119
-
120
- installer.pods_project.targets.each do |target|
121
- target.build_configurations.each do |build_configuration|
122
- # flutter_additional_ios_build_settings is in Flutter root podhelper.rb
123
- # Annotation under invoke for cocoapods-binary-flutter use
124
- # flutter_additional_ios_build_settings(target)
125
- end
126
- end
127
- end
128
-
129
125
  end
130
126
  end
131
127
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-binary-flutter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
- - 单浩强
7
+ - Jacky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-16 00:00:00.000000000 Z
11
+ date: 2023-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler