cocoapods-tdf-flutter 0.0.1 → 0.0.2

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: b77a5ac5cfe931afdbbd754c472aa2ad181d593289ce1dd687a824938f16c615
4
- data.tar.gz: 1a89a3345bf81cf1340fff41ada8c93ade1f34c7d6f2715cd78b394dc175cbba
3
+ metadata.gz: 453f8b3bfd97cf118373d9773aff09319aad5ff28d0c798f4cb61c6f142e151b
4
+ data.tar.gz: 011a82affe5578d9400d6dfb2fc7a788868bccb7931292a932db4bbf5b305259
5
5
  SHA512:
6
- metadata.gz: 7488e340e0bdadb3cf860c4b2313e558c0f0e6ea9b7eb374d9b60bac607f79145ec1bc173d48e6c99a1510a496cd1435d6983db4a36a21ad24abf615aaa36230
7
- data.tar.gz: 9b2ff6226ecd5f5e3732c22ab9ac53453882bee79fddc2895a99ff895eb12477a15b6f348960c7f080c1c15f1b97c40a4e887054d886ecc001b9cd59918ade0d
6
+ metadata.gz: 9358e71d022d964671566891df270c4ee13ee46812e4cbc04ec0f8cfdcc2458f8c4a108a63375560fec01e756a0c3dc6a6485b7eb56c096db17c2233ea674b04
7
+ data.tar.gz: 676d2534630d091962250b7782783247434b4ea831333f1ede5381ff829c41a96ca083af69529e086ace5a57f3d2c9d9fd59e673235b31494765bd2a76fbd167
@@ -21,7 +21,7 @@ module Pod
21
21
  self.summary = '协助集成 flutter 的 cocoapods 插件.'
22
22
 
23
23
  self.description = <<-DESC
24
- 协助集成 flutter 的 cocoapods 插件, pod_flutter '组件名', '版本号', :path => "flutter 源码路径", :enable => 是否开启源码的开关
24
+ 协助集成 flutter 的 cocoapods 插件, pod_flutter '组件名', '版本号', :flutterPath => "flutter 源码路径", :isLocal => 是否加载本地源码
25
25
  DESC
26
26
 
27
27
  self.arguments = 'NAME'
@@ -1,3 +1,3 @@
1
1
  module CocoapodsTdfFlutter
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -9,19 +9,19 @@ module Pod
9
9
  def pod_flutter(name = nil, *requirements)
10
10
  version = requirements.select { |r| r.is_a? String }.first
11
11
  reqHash = requirements.select { |r| r.is_a? Hash }.first
12
- path = reqHash[:path]
12
+ flutterPath = reqHash[:flutterPath]
13
13
  isLocal = reqHash[:isLocal]
14
14
  if isLocal
15
- rbPath = File.join(path, '.ios', 'Flutter', 'podhelper.rb')
15
+ rbPath = File.join(flutterPath, '.ios', 'Flutter', 'podhelper.rb')
16
16
  if !File.exist?(rbPath)
17
17
  UI.warn("路径不存在,请检查路径:#{rbPath}")
18
18
  raise "路径不存在"
19
19
  end
20
20
  load rbPath
21
- install_all_flutter_pods(path)
22
- pod(name, :path => path)
21
+ install_all_flutter_pods(flutterPath)
22
+ pod(name, :path => flutterPath)
23
23
  else
24
- pod(name, version)
24
+ pod(name, version)
25
25
  end
26
26
  end
27
27
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-tdf-flutter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - gaijiaofan