cocoapods-aqara-localzedLoader 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61f24b941b12ed539578952171873577a5856cf36e4f301a0275988eeb887e21
|
4
|
+
data.tar.gz: 6c00a48fe4b8f0f0377af8211fabd668f301b6ff5cd49bcf91df9dfd506cf4bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6819a5c6016508558b75d5f2ffc7256c624421ec678bb2967b98970833daef17e0f9fb5ff29ed178112d92926e4aea590511615040174ef7ad148774556cd39
|
7
|
+
data.tar.gz: 96093c5cce53e157fbbf8ecbd72b4e9d571c957c67a42d9e089481b215b2e38487d925a586236486b6e3eb5497d17d5e0ef7e8bcfef64dcad5caf4e6a66b2060
|
data/Gemfile.lock
CHANGED
@@ -48,6 +48,7 @@ def MakeHeader(headerText):
|
|
48
48
|
return s
|
49
49
|
|
50
50
|
def DownLatestLocalizableSource(downloadPath):
|
51
|
+
print("开始发送下载请求...")
|
51
52
|
iam_service = IamService()
|
52
53
|
ak123 = 'AKLTMjQ5NzU0YWY0ODU1NGVjOGIwMmVlYzk3ZGVhMjgzZmM'
|
53
54
|
sk = 'TkRZeE9UazRNVEl4TW1JNU5HSTRZV0U0TUdRNU1HTmxNMk5pWVRJMU1EYw=='
|
@@ -77,6 +78,7 @@ def DownLatestLocalizableSource(downloadPath):
|
|
77
78
|
code.write(resp.content)
|
78
79
|
code.close()
|
79
80
|
else:
|
81
|
+
print(resp.text)
|
80
82
|
raise Exception(resp.text)
|
81
83
|
|
82
84
|
|
@@ -8,13 +8,32 @@ class BundleGenerater
|
|
8
8
|
|
9
9
|
# INFO_PLIST_ARRAY = [NSAppleMusicUsageDescription","NSLocalNetworkUsageDescription"]
|
10
10
|
INFO_PLIST_MAP = {:common_app_name=>["CFBundleDisplayName"],other_perm_camera_permission_description:["NSCameraUsageDescription"],other_perm_location_permission_description:["NSLocationAlwaysAndWhenInUseUsageDescription","NSLocationWhenInUseUsageDescription","NSLocationAlwaysUsageDescription"],other_perm_bluetooth_permission_description:["NSBluetoothPeripheralUsageDescription","NSBluetoothAlwaysUsageDescription"],access_content_permssion_storage:["NSPhotoLibraryUsageDescription"],other_perm_mic_permission_description:["NSMicrophoneUsageDescription"],other_set_permissions_homedata_desc:["NSHomeKitUsageDescription"],other_set_permissions_asr_text:["NSSpeechRecognitionUsageDescription"],device_add_device:["Add_Device_Title"],automation_add:["Add_Automation_Title"],device_create_scene:["Add_Scene_Title"]}
|
11
|
+
|
12
|
+
#定义类变量记录下载次数
|
13
|
+
|
14
|
+
@@download_Count = 1
|
15
|
+
|
16
|
+
def self.downloadxls(project_path)
|
17
|
+
if @@download_Count > 1
|
18
|
+
sleep 10
|
19
|
+
end
|
20
|
+
puts "当前进行第#{@@download_Count}次尝试下载多语言文件"
|
21
|
+
Open3.capture3("cd #{File.dirname(__FILE__)};python3 DownloadNewLanguage.py #{project_path}")
|
22
|
+
#system "cd #{File.dirname(__FILE__)};python3 DownloadNewLanguage.py #{project_path}"
|
23
|
+
@@download_Count = @@download_Count + 1
|
24
|
+
end
|
25
|
+
|
11
26
|
def self.generate(project_path)
|
12
27
|
# 下载excel
|
13
28
|
puts "开始下载多语言文件...".green
|
14
|
-
|
15
|
-
|
29
|
+
|
30
|
+
|
16
31
|
f_path = "#{project_path}/download.xlsx"
|
17
|
-
|
32
|
+
printf(f_path)
|
33
|
+
|
34
|
+
until File.exist?(f_path)
|
35
|
+
self.downloadxls(project_path)
|
36
|
+
end
|
18
37
|
|
19
38
|
# 读取excel到内存
|
20
39
|
file_til = File_util.new
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-aqara-localzedLoader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zhaoxifan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|