Sha256: 56b742586794969b93dfc8323b476c5e745bbdbfdc3729ed5fe45e7a0e80c0ff
Contents?: true
Size: 916 Bytes
Versions: 2
Compression:
Stored size: 916 Bytes
Contents
require 'cocoapods' require 'fileutils' module Pod class Podfile module DSL def pod_flutter(name = nil, *requirements) version = requirements.select { |r| r.is_a? String }.first reqHash = requirements.select { |r| r.is_a? Hash }.first flutterPath = reqHash[:flutterPath] isLocal = reqHash[:isLocal] if isLocal rbPath = File.join(flutterPath, '.ios', 'Flutter', 'podhelper.rb') if !File.exist?(rbPath) UI.warn("路径不存在,请检查路径:#{rbPath}") raise "路径不存在" end load rbPath install_all_flutter_pods(flutterPath) else if version != nil pod(name, version) else reqHash.delete(:flutterPath) reqHash.delete(:isLocal) pod(name, reqHash) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-tdf-flutter-0.0.33 | lib/cocoapods-tdf-flutter/native/podfile.rb |
cocoapods-tdf-flutter-0.0.32 | lib/cocoapods-tdf-flutter/native/podfile.rb |