cocoapods-binary-flutter 0.0.5 → 0.0.6

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: 56711746f3dae006843c13fac105cee635f8a239260a4434480f82cc84c00a08
4
+ data.tar.gz: 190ad47229df9a14faaeb557e475728b2f8cfbff3fe28c8c196ade71a2be1c4b
5
5
  SHA512:
6
- metadata.gz: 843536681be735fcce9564c8808f25a3fc8cfa2c11b09c2d6b9ebe4dd70618957f1311380ae9298dc9f3110e1e6cf2cf93ed91c2772f1cc42ad81d4dbb254faa
7
- data.tar.gz: 2d0f5ea33c1d56a7de3d7a2c8c3ca6ede2d72e3d31511d2381b2cc5151e1b5df79b5a61b54a8dd6f0d8cf23f932494614ff121b254bf51bf1c21ecaff01a4d8c
6
+ metadata.gz: af6e879e3bdce903f9b142bc4406c166c2b7c6a85285fb8364cd9e0a8797a32a5dcd777cb24ea7ba8e2cd6c5a4ac4b01b2d655a21ad28e28e92f570ac108e153
7
+ data.tar.gz: 1750e1764f6adb294f2842de882ea2611f377b0f976da8fb0cd8e23154a442cacab4a3605fe8103bcb64a21894a1290de3e630f4a7cbba6fcb48ba58447ff5fa
@@ -1,3 +1,3 @@
1
1
  module CocoapodsBinaryFlutter
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
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)
@@ -105,27 +120,6 @@ module Pod
105
120
  pod 'App', :path => File.join(flutter_binary_path, 'flutter'), :inhibit_warnings => true
106
121
  end
107
122
 
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
123
  end
130
124
  end
131
125
  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.6
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-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler