lib/cocoapods-tdf-bin/native/podfile.rb in cocoapods-tdf-bin-0.0.35 vs lib/cocoapods-tdf-bin/native/podfile.rb in cocoapods-tdf-bin-0.0.36
- old
+ new
@@ -11,9 +11,19 @@
module DSL
def allow_prerelease!
set_internal_hash_value(ALLOW_PRERELEASE, true)
end
+ # 统一使用这种引用方式,跟flutter本地开发方式统一
+ def pods(pod_list, branch)
+ # 固定路径
+ local_path = "./.tdf_ios/"
+ if not Dir.exist? local_path
+ Dir.mkdir local_path
+ end
+ batch_pod_local(pod_list, local_path, branch)
+ end
+
def batch_pod(pods, path = "../../", *requirements)
isLocal = requirements[0][:isLocal]
branch = requirements[0][:branch]
if isLocal.nil?
isLocal = false