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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 453f8b3bfd97cf118373d9773aff09319aad5ff28d0c798f4cb61c6f142e151b
|
|
4
|
+
data.tar.gz: 011a82affe5578d9400d6dfb2fc7a788868bccb7931292a932db4bbf5b305259
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 '组件名', '版本号', :
|
|
24
|
+
协助集成 flutter 的 cocoapods 插件, pod_flutter '组件名', '版本号', :flutterPath => "flutter 源码路径", :isLocal => 是否加载本地源码
|
|
25
25
|
DESC
|
|
26
26
|
|
|
27
27
|
self.arguments = 'NAME'
|
|
@@ -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
|
-
|
|
12
|
+
flutterPath = reqHash[:flutterPath]
|
|
13
13
|
isLocal = reqHash[:isLocal]
|
|
14
14
|
if isLocal
|
|
15
|
-
rbPath = File.join(
|
|
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(
|
|
22
|
-
pod(name, :path =>
|
|
21
|
+
install_all_flutter_pods(flutterPath)
|
|
22
|
+
pod(name, :path => flutterPath)
|
|
23
23
|
else
|
|
24
|
-
|
|
24
|
+
pod(name, version)
|
|
25
25
|
end
|
|
26
26
|
end
|
|
27
27
|
|