cocoapods-aqara-localzedLoader 0.0.5 → 0.0.7
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: e1c8b35a21944c2257f6cda58ccde6d3e70c1c7a8cb59fb296f57da48624985f
         | 
| 4 | 
            +
              data.tar.gz: bc46aaae6ccc4d1d9690879a5749ee0f78c070d10452411c81268c6303cb5894
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: a472db5098379de9440faf436dd9157620fa07d920c77beab9762daab3f9f5897b1c93b0d784ce7d9a1435077273b5ea3dc5d41fdd6e3dbf259435eb5bbfa70b
         | 
| 7 | 
            +
              data.tar.gz: f4a581688db6c60c35766ddb01c1cb6c577331e194531083d974d13ccb726a336b47c570659b2ec39de7577bad2eea7f8e783cd106fbedf39a8f1989af9b71ea
         | 
    
        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.7
         | 
| 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
         |