cocoapods-binary-flutter 0.0.2 → 0.0.3
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: f510f570e612e2fcd71c1afaa6c9cc74c63878552048d79b3a238d13b628ba4b
|
|
4
|
+
data.tar.gz: efa027c917e32d7ed971174498829365e7524eaedb5506136844b34406d410db
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 067d4ec109a57a5b61c9c82d3d3f0bd6e6b37bf0eb877db7cb4511c2c13fa2348e6e7224255951b1096b742edf8412be6f685d4cb6ea64612fcf44dfc83f57d7
|
|
7
|
+
data.tar.gz: 11c43bafcfa3405887ab9f9eab5e217e99b7a3bc8bd5c90b4b2052447224c1cf8457ddc062f5e5305af68a1536fe6bfab02e84da9cfad6a39c5794ba3d849c56
|
|
@@ -21,6 +21,9 @@ module Pod
|
|
|
21
21
|
flutter_f_home = Dir.home+'/Library/Caches/CocoaPods/Flutter/'
|
|
22
22
|
flutter_binary_home = flutter_f_home+md5value
|
|
23
23
|
flutter_binary_path = flutter_binary_home+'/binary'
|
|
24
|
+
|
|
25
|
+
#创建目录
|
|
26
|
+
FileUtils.mkdir_p(flutter_binary_home)
|
|
24
27
|
|
|
25
28
|
#清除超过30天的缓存
|
|
26
29
|
Dir.foreach(flutter_f_home) do |item|
|
|
@@ -39,8 +42,6 @@ module Pod
|
|
|
39
42
|
|
|
40
43
|
#判断缓存
|
|
41
44
|
if File::directory?(flutter_binary_path) == false
|
|
42
|
-
#创建目录
|
|
43
|
-
FileUtils.mkdir_p(flutter_binary_home)
|
|
44
45
|
#下载
|
|
45
46
|
puts "开始下载 "+url
|
|
46
47
|
uri = URI(url)
|
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.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- 单浩强
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-10-
|
|
11
|
+
date: 2021-10-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|