Aqara_localizable 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +44 -0
  4. data/bin/Aqaralocalizable +13 -0
  5. data/lib/Aqara_localizable/cocoapods_plugin.rb +12 -0
  6. data/lib/Aqara_localizable/command/command_gen.rb +37 -0
  7. data/lib/Aqara_localizable/command/zxf.py +1 -0
  8. data/lib/Aqara_localizable/command.rb +21 -0
  9. data/lib/Aqara_localizable/gem_version.rb +3 -0
  10. data/lib/Aqara_localizable.rb +9 -0
  11. data/lib/script/git_shell/addPrefix.sh +124 -0
  12. data/lib/script/git_shell/android_git_clean.sh +18 -0
  13. data/lib/script/git_shell/commit_push.sh +45 -0
  14. data/lib/script/git_shell/creat_new_branch.sh +40 -0
  15. data/lib/script/git_shell/git_branch.sh +36 -0
  16. data/lib/script/git_shell/git_checkout.sh +37 -0
  17. data/lib/script/git_shell/git_delete_branch.sh +42 -0
  18. data/lib/script/git_shell/git_pull.sh +37 -0
  19. data/lib/script/git_shell/ios_commit_push.sh +23 -0
  20. data/lib/script/git_shell/ios_sdk_Build.sh +43 -0
  21. data/lib/script/git_shell/ios_sdk_checkout.sh +19 -0
  22. data/lib/script/git_shell/reset_hard.sh +36 -0
  23. data/lib/script/git_shell/switch_master_branch.sh +125 -0
  24. data/lib/script/ios_py_code/AqaraHome.xlsx +0 -0
  25. data/lib/script/ios_py_code/DownloadNewLanguage.py +59 -0
  26. data/lib/script/ios_py_code/__pycache__/DownloadNewLanguage.cpython-310.pyc +0 -0
  27. data/lib/script/ios_py_code/__pycache__/DownloadNewLanguage.cpython-39.pyc +0 -0
  28. data/lib/script/ios_py_code/__pycache__/handel_localize.cpython-39.pyc +0 -0
  29. data/lib/script/ios_py_code/handel_localize.py +120 -0
  30. data/lib/script/ios_py_code/handle_all_hit_tool.py +35 -0
  31. data/lib/script/ios_py_code/ios_sp_str_generator.py +149 -0
  32. data/lib/script/ios_py_code/new_value_notfoundkey.xlsx +0 -0
  33. data/lib/script/ios_py_code/notFoundKeys.xlsx +0 -0
  34. data/lib/script/ios_py_code/replace_ios.xlsx +0 -0
  35. data/lib/script/ios_py_code/result_notfoundkey.xlsx +0 -0
  36. data/lib/script/ios_py_code/scanKeyInCode.py +475 -0
  37. data/lib/script/ios_py_code/source.xlsx +0 -0
  38. data/lib/script/main.py +16 -0
  39. data/lib/script/output_file/ios/de.lproj/Localizable.strings +5109 -0
  40. data/lib/script/output_file/ios/en.lproj/Localizable.strings +5202 -0
  41. data/lib/script/output_file/ios/es.lproj/Localizable.strings +5107 -0
  42. data/lib/script/output_file/ios/fr.lproj/Localizable.strings +5101 -0
  43. data/lib/script/output_file/ios/it.lproj/Localizable.strings +5097 -0
  44. data/lib/script/output_file/ios/ko.lproj/Localizable.strings +5013 -0
  45. data/lib/script/output_file/ios/ru.lproj/Localizable.strings +4226 -0
  46. data/lib/script/output_file/ios/zh-HK.lproj/Localizable.strings +4807 -0
  47. data/lib/script/output_file/ios/zh-Hans.lproj/Localizable.strings +5166 -0
  48. data/lib/script/output_file/ios/zh-Hant-TW.lproj/Localizable.strings +4786 -0
  49. data/lib/script/source_language/hit_all_str.xlsx +0 -0
  50. data/lib/script/source_language/hit_all_str_copy.xlsx +0 -0
  51. data/lib/script/source_language/hit_all_str_new.xlsx +0 -0
  52. data/lib/script/source_language/hit_all_str_origin.xlsx +0 -0
  53. data/lib/script/source_language/hit_all_str_storage.xlsx +0 -0
  54. data/lib/script/source_language/offer_text.xlsx +0 -0
  55. data/lib/script/source_language/~$hit_all_str.xlsx +0 -0
  56. data/lib/script/util_code/ModifyInfo.py +16 -0
  57. data/lib/script/util_code/ShareStringElement.py +8 -0
  58. data/lib/script/util_code/__pycache__/ModifyInfo.cpython-310.pyc +0 -0
  59. data/lib/script/util_code/__pycache__/ModifyInfo.cpython-39.pyc +0 -0
  60. data/lib/script/util_code/__pycache__/delete_and_replace_for_ios.cpython-39.pyc +0 -0
  61. data/lib/script/util_code/__pycache__/file_util.cpython-310.pyc +0 -0
  62. data/lib/script/util_code/__pycache__/file_util.cpython-39.pyc +0 -0
  63. data/lib/script/util_code/__pycache__/lang_enum.cpython-310.pyc +0 -0
  64. data/lib/script/util_code/__pycache__/lang_enum.cpython-39.pyc +0 -0
  65. data/lib/script/util_code/__pycache__/replace_info.cpython-310.pyc +0 -0
  66. data/lib/script/util_code/__pycache__/replace_info.cpython-39.pyc +0 -0
  67. data/lib/script/util_code/__pycache__/str_config.cpython-39.pyc +0 -0
  68. data/lib/script/util_code/__pycache__/string_element.cpython-310.pyc +0 -0
  69. data/lib/script/util_code/__pycache__/string_element.cpython-39.pyc +0 -0
  70. data/lib/script/util_code/__pycache__/string_repeat_filter.cpython-310.pyc +0 -0
  71. data/lib/script/util_code/__pycache__/string_repeat_filter.cpython-39.pyc +0 -0
  72. data/lib/script/util_code/add_access_str.py +67 -0
  73. data/lib/script/util_code/android_general_script.py +224 -0
  74. data/lib/script/util_code/android_prepare.py +30 -0
  75. data/lib/script/util_code/android_saowei.py +44 -0
  76. data/lib/script/util_code/android_string_arrays_extract.py +48 -0
  77. data/lib/script/util_code/app_used_str_generator.py +162 -0
  78. data/lib/script/util_code/delete_and_replace_for_android.py +177 -0
  79. data/lib/script/util_code/delete_and_replace_for_ios.py +125 -0
  80. data/lib/script/util_code/duplicat_filter.py +32 -0
  81. data/lib/script/util_code/file_util.py +311 -0
  82. data/lib/script/util_code/final_lan_hit.py +80 -0
  83. data/lib/script/util_code/final_strdata.py +24 -0
  84. data/lib/script/util_code/git_conflict_resovle.py +19 -0
  85. data/lib/script/util_code/hit_android_project_replace.py +68 -0
  86. data/lib/script/util_code/hit_check_project_replace.py +89 -0
  87. data/lib/script/util_code/hit_ios_project_replace.py +59 -0
  88. data/lib/script/util_code/incremental_for_android/add_unexist_key.py +24 -0
  89. data/lib/script/util_code/incremental_for_android/android_incremental_str.py +47 -0
  90. data/lib/script/util_code/incremental_for_android/android_incremental_str_by_txt.py +21 -0
  91. data/lib/script/util_code/incremental_for_android/check_unexist_for_android.py +168 -0
  92. data/lib/script/util_code/incremental_for_android/incremental_module.py +51 -0
  93. data/lib/script/util_code/incremental_for_android/manual_review_replace.py +23 -0
  94. data/lib/script/util_code/incremental_for_android/serveral_incremental_str.py +23 -0
  95. data/lib/script/util_code/incremental_for_android/test_manual_review_replace.py +29 -0
  96. data/lib/script/util_code/incremental_for_android/unexist_key_process.py +58 -0
  97. data/lib/script/util_code/incremental_for_android/unexist_key_process_replace.py +24 -0
  98. data/lib/script/util_code/incremental_for_ios/incremental_module.py +56 -0
  99. data/lib/script/util_code/incremental_for_ios/manual_review_replace.py +23 -0
  100. data/lib/script/util_code/ios_camera_unique.py +49 -0
  101. data/lib/script/util_code/ios_general_script.py +209 -0
  102. data/lib/script/util_code/ios_handle_format.py +199 -0
  103. data/lib/script/util_code/ios_module_script.py +199 -0
  104. data/lib/script/util_code/ios_project_key_replace.py +62 -0
  105. data/lib/script/util_code/ios_saowei.py +29 -0
  106. data/lib/script/util_code/ios_share_xlsx_processor.py +72 -0
  107. data/lib/script/util_code/lang_enum.py +13 -0
  108. data/lib/script/util_code/leak_translate_complete.py +29 -0
  109. data/lib/script/util_code/multi_lan_main.py +120 -0
  110. data/lib/script/util_code/platform_merge_key.py +193 -0
  111. data/lib/script/util_code/product_android_project_replace.py +63 -0
  112. data/lib/script/util_code/product_data.py +25 -0
  113. data/lib/script/util_code/product_feature.py +14 -0
  114. data/lib/script/util_code/product_ios_project_replace.py +54 -0
  115. data/lib/script/util_code/product_repeat_key_replace.py +209 -0
  116. data/lib/script/util_code/product_song.py +14 -0
  117. data/lib/script/util_code/project_module_analyze.py +119 -0
  118. data/lib/script/util_code/replace_info.py +7 -0
  119. data/lib/script/util_code/run_all.py +75 -0
  120. data/lib/script/util_code/simple_task.py +7 -0
  121. data/lib/script/util_code/str_config.py +36 -0
  122. data/lib/script/util_code/str_copy_to_multilan.py +22 -0
  123. data/lib/script/util_code/string_element.py +39 -0
  124. data/lib/script/util_code/string_repeat_filter.py +341 -0
  125. data/lib/script/util_code/test_platform_merge_key.py +188 -0
  126. data/lib/script/util_code/test_product_repeat_key_replace.py +232 -0
  127. data/lib/script/util_code/unuse_string_scan_android.py +223 -0
  128. data/lib/script/util_code/unuse_string_scan_ios.py +162 -0
  129. data/lib/script/util_code/xiangrui.py +31 -0
  130. data/lib/script/zresult_platform/en.lproj/InfoPlist.strings +24 -0
  131. data/lib/script/zresult_platform/en.lproj/Localizable.strings +4703 -0
  132. data/lib/script/zresult_platform/ko.lproj/InfoPlist.strings +23 -0
  133. data/lib/script/zresult_platform/ko.lproj/Localizable.strings +4579 -0
  134. data/lib/script/zresult_platform/ru.lproj/InfoPlist.strings +23 -0
  135. data/lib/script/zresult_platform/ru.lproj/Localizable.strings +3800 -0
  136. data/lib/script/zresult_platform/zh-HK.lproj/InfoPlist.strings +25 -0
  137. data/lib/script/zresult_platform/zh-HK.lproj/Localizable.strings +4360 -0
  138. data/lib/script/zresult_platform/zh-Hans.lproj/InfoPlist.strings +23 -0
  139. data/lib/script/zresult_platform/zh-Hans.lproj/Localizable.strings +4710 -0
  140. data/lib/script/zresult_platform/zh-Hant-TW.lproj/InfoPlist.strings +25 -0
  141. data/lib/script/zresult_platform/zh-Hant-TW.lproj/Localizable.strings +4340 -0
  142. metadata +308 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d60fa736dfb0db80fef1a6d8cbbd386c16a0ed3d4af05bf76205c5f470a0308d
4
+ data.tar.gz: ce3fc2c27b75c36958eaefde370ed108b5c18abfd75f841430aebf3925b27b03
5
+ SHA512:
6
+ metadata.gz: 4fda4aa5fafa775c907d36b387f57641fafb0aef37035e572e0b5815a18f2930750eb01f4173e91dfc349b8b44dd8d1e76de91c3eb6d9a3076d46053eddf3435
7
+ data.tar.gz: 9c3592ad307c795dc76af7efae9fc187b06d7779b3cb4aab32559bc5282f9a4b8896adaec8ace9926f0f773924f68b326e466be68c5b104ba80d071563b2b1bc
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 zhaoxifan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,44 @@
1
+ # AqaraLocalizable
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/Aqara_localizable`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'Aqara_localizable'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install Aqara_localizable
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/Aqara_localizable. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/Aqara_localizable/blob/master/CODE_OF_CONDUCT.md).
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
41
+
42
+ ## Code of Conduct
43
+
44
+ Everyone interacting in the AqaraLocalizable project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/Aqara_localizable/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env bash
2
+ # frozen_string_literal: true
3
+
4
+ if $PROGRAM_NAME == __FILE__
5
+ ENV['BUNDLE_GEMFILE'] = File.expand_path('../Gemfile', __dir__)
6
+ require 'bundler/setup'
7
+ end
8
+
9
+ require 'Aqara_localizable'
10
+
11
+ AqaraLocalizable::Command.run(ARGV)
12
+
13
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,12 @@
1
+
2
+ require 'Aqara_localizable'
3
+
4
+ module Pod
5
+ # hook
6
+ @HooksManager = HooksManager
7
+ @HooksManager.register('Aqara_Localizable', :post_install) do |_, _options|
8
+ args = ['gen', "--project-directory=#{Config.instance.installation_root}"]
9
+
10
+ AqaraLocalizable::Command.run(args)
11
+ end
12
+ end
@@ -0,0 +1,37 @@
1
+
2
+
3
+ module AqaraLocalizable
4
+ class Command
5
+ class Gen < Command
6
+ self.summary = '开始下载多语言平台的代码并替换项目多语言文件'
7
+
8
+ def initialize(argv)
9
+ super
10
+ project_directory = argv.option('project-directory')
11
+ project_directory = Dir.pwd if project_directory.nil?
12
+ @project_directory = Pathname.new(project_directory).expand_path
13
+ end
14
+
15
+ def validate!
16
+ super
17
+ if @project_directory.nil?
18
+ help! 'error: no input project directory which to use with the `--project-directory` option.'
19
+ end
20
+ end
21
+
22
+ def self.options
23
+ [
24
+ ['--project-directory=/project/dir/', 'The path to the root of the project directory']
25
+ ].concat(super)
26
+ end
27
+
28
+ def run
29
+ puts '你妈是智障吧'
30
+ target_path = Pathname.new(File.dirname(__FILE__)).realpath.parent.parent
31
+ puts target_path
32
+ system "cd #{target_path}/script/ios_py_code;python3 ios_sp_str_generator.py #{@project_directory}"
33
+ # system 'cd /lib/script/ios_py_code;python3 ios_sp_str_generator.py'
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1 @@
1
+ print ('你妈也是智障吧')
@@ -0,0 +1,21 @@
1
+
2
+ module AqaraLocalizable
3
+ class Command < CLAide::Command
4
+
5
+ require 'Aqara_localizable/command/command_gen'
6
+
7
+ self.abstract_command = false
8
+ self.command = 'Aqaralocaliabzle'
9
+ self.version = VERSION
10
+ self.description = 'Run AqaraHome localizable download and replace the .localizable from the project'
11
+ self.plugin_prefixes = %w[claide gen]
12
+
13
+ def initialize(argv)
14
+ super
15
+ return if ansi_output?
16
+
17
+ Colored2.disable!
18
+ String.send(:define_method, :colorize) { |string, _| string }
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,3 @@
1
+ module AqaraLocalizable
2
+ VERSION = '0.0.1'.freeze unless defined? AqaraLocalizable::VERSION
3
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'xcodeproj'
4
+
5
+ module AqaraLocalizable
6
+ require 'Aqara_localizable/gem_version'
7
+
8
+ autoload :Command, 'Aqara_localizable/command'
9
+ end
@@ -0,0 +1,124 @@
1
+ #!/usr/bin/env bash
2
+ #===============================================================================
3
+ #
4
+ # FILE: addPrefix.sh
5
+ #
6
+ # USAGE: ./addPrefix.sh addPrefix excludePrefix
7
+ #
8
+ # DESCRIPTION: 请将脚本放在需要批量添加前缀的模块的根目录下使用
9
+ #
10
+ # 免责声明:本脚本只在Linux平台验证,并且只在摄像头模块验证过。不保证覆盖所有可能的情况,也就是不保证能全部都添加上前缀。
11
+ #
12
+ # 首先本脚本只能添加前缀,不能替换,删除前缀。所以使用的时候请注意。
13
+ #
14
+ # 例子:摄像头模块大部分都是camera_前缀了,但是需要全部改成lm_camera_前缀。那么只需要执行下面的命令即可
15
+ # $ ./addPrefix.sh camera_ "public" #先将所有没有添加camera_的添加上camera_前缀,并且排除public_前缀的资源
16
+ # $ ./addPrefix.sh lm_camera_ "public" #将所有资源添加上lm_camera_前缀,并且排除public_前缀的资源
17
+ #
18
+ # OPTIONS: ---
19
+ # REQUIREMENTS: ---
20
+ # BUGS: ---
21
+ # NOTES: ---
22
+ # AUTHOR: XieJiaHua
23
+ # ORGANIZATION:
24
+ # CREATED: 10/29/2021 11:38
25
+ # REVISION: ---
26
+ #===============================================================================
27
+
28
+ prefix=$1
29
+ #只对changeXmlContent有效
30
+ excludePrefix=$2
31
+
32
+ if [[ $excludePrefix != "" ]]; then
33
+ excludePrefix="|"${excludePrefix}
34
+ fi
35
+
36
+ function changeReference() {
37
+ #string
38
+ # echo "${1}"
39
+ # echo "${2}"
40
+ local type=${1}
41
+ shift
42
+ local oldList=("$@")
43
+ echo "$type"
44
+ # echo "${oldList[@]}"
45
+ #R.string R.string.${prefix}
46
+ for old in ${oldList[@]} ; do
47
+ # echo "${old} \n"
48
+ if [[ ${old} != ${prefix}* ]]; then
49
+ # :
50
+ #R.string/ @
51
+ local filePathList=`grep -P "R\.${type}\.(?=${old})" . -rl --exclude-dir=build '--include=*'.{kt,java}`
52
+ if [[ $filePathList != "" ]]; then
53
+ perl -pi -e "s/R\.${type}\.(?=${old})/R\.${type}\.${prefix}/g" $filePathList
54
+ fi
55
+
56
+ if [[ $type == "layout" ]]; then
57
+ filePathList=`grep -P "kotlinx.android.synthetic.main.(?=${old})" . -rl --exclude-dir=build '--include=*.kt'`
58
+ if [[ $filePathList != "" ]]; then
59
+ perl -pi -e "s/kotlinx\.android\.synthetic\.main\.(?=${old})/kotlinx.android.synthetic.main\.${prefix}/g" $filePathList
60
+ fi
61
+ fi
62
+
63
+ #@string/ @string/${prefix}
64
+ filePathList=`grep -P "\@${type}\/(?=${old})" . -rl --exclude-dir=build --include \*.xml`
65
+ if [[ $filePathList != "" ]]; then
66
+ perl -pi -e "s/\@${type}\/(?=${old})/\@${type}\/${prefix}/g" $filePathList
67
+ fi
68
+ fi
69
+ done
70
+ }
71
+
72
+
73
+ function changeXmlContent() {
74
+ local type=${1}
75
+ #<string name=" <string name="${prefix}
76
+ #<color name=" <color name="${prefix}
77
+
78
+ #这里是数据的源头,以这些为准来修改reference
79
+ local list=$(grep -P "(?<=\<${type} name=\").*?(?=\")" . -roh --exclude-dir=build --include \*.xml | sort | uniq)
80
+ if [[ ${list} != "" ]]; then
81
+ perl -pi -e "s/\<${type} name=\"(?!${prefix}${excludePrefix})/\<${type} name=\"${prefix}/g" `grep -P "(?<=\<${type}).*" . -rl --exclude-dir=build --include \*.xml`
82
+ if [[ $type == "string-array" ]]; then
83
+ type="array"
84
+ fi
85
+ changeReference ${type} ${list}
86
+ fi
87
+ }
88
+
89
+ function changeResFileName() {
90
+ local type=${1}
91
+ #rename file
92
+ local dirs=$(find ${PWD} -name ${type}\* -type d | grep -P '(\/res\/)')
93
+ #echo "dirs"
94
+ local curPwd=${PWD}
95
+ local list=()
96
+ for dir in $dirs; do
97
+ cd $dir
98
+ echo "${PWD}"
99
+ local fileList=($(ls -1))
100
+ # echo "filePathList = ${filePathList[@]}"
101
+ # list+=${fileList[@]}
102
+ for filename in ${fileList[@]}; do
103
+ # echo "mv \"$filename\" \"${prefix}$filename\""
104
+ if [[ $filename != ${prefix}* ]]; then
105
+ list+=(${filename%%.*})
106
+ # echo ${list[@]}
107
+ mv "$filename" "${prefix}$filename"
108
+ fi
109
+ done;
110
+ done;
111
+ cd $curPwd
112
+ changeReference ${type} ${list[@]}
113
+ }
114
+
115
+ changeXmlContent string
116
+ changeXmlContent string-array
117
+ changeXmlContent color
118
+ changeXmlContent dimen
119
+ #这个有个问题,就是没有能修改parent,如果想使用可以取消注释,然后手动修改style的parent
120
+ #changeXmlContent style
121
+
122
+ changeResFileName drawable
123
+ changeResFileName anim
124
+ changeResFileName layout
@@ -0,0 +1,18 @@
1
+ #android aqara home
2
+ cd /Users/lumi/code/
3
+ cd aqarahome
4
+ git clean -f -d
5
+ cd ..
6
+
7
+ cd sdk
8
+ for file in *
9
+ do
10
+ if test -d $file
11
+ then
12
+ cd $file
13
+ echo "file is ${file}"
14
+ git clean -f -d
15
+ cd ..
16
+ fi
17
+ done
18
+ cd ..
@@ -0,0 +1,45 @@
1
+ #android aqara home
2
+ cd /Users/lumi/code/
3
+ cd aqarahome
4
+ git add .
5
+ git commit -m 'feat(multilan) str replace product keys'
6
+ git push
7
+ cd ..
8
+
9
+ cd sdk
10
+ for file in *
11
+ do
12
+ if test -d $file
13
+ then
14
+ cd $file
15
+ echo "file is ${file}"
16
+ git add .
17
+ git commit -m 'feat(multilan) str replace product keys'
18
+ git push
19
+ cd ..
20
+ fi
21
+ done
22
+ cd ..
23
+
24
+ #ios
25
+ cd ios
26
+ cd aqarahome
27
+ git add .
28
+ git commit -m 'feat(multilan) str replace product keys'
29
+ git push
30
+ cd ..
31
+
32
+ cd sdk-ios
33
+ for file in *
34
+ do
35
+ if test -d $file
36
+ then
37
+ cd $file
38
+ echo "file is ${file}"
39
+ git add .
40
+ git commit -m 'feat(multilan) str replace product keys'
41
+ git push
42
+ cd ..
43
+ fi
44
+ done
45
+ cd ..
@@ -0,0 +1,40 @@
1
+ #android aqara home
2
+ cd /Users/lumi/code/
3
+ cd aqarahome
4
+ git checkout -b feature_lan_yi
5
+ git push --set-upstream origin feature_lan_yi_num
6
+ cd ..
7
+
8
+ cd sdk
9
+ for file in *
10
+ do
11
+ if test -d $file
12
+ then
13
+ cd $file
14
+ echo "file is ${file}"
15
+ git checkout -b feature_lan_yi
16
+ git push --set-upstream origin feature_lan_yi
17
+ cd ..
18
+ fi
19
+ done
20
+ cd ..
21
+
22
+ #ios
23
+ cd ios
24
+ cd aqarahome
25
+ git checkout -b feature_lan_yi
26
+ git push --set-upstream origin feature_lan_yi
27
+ cd ..
28
+
29
+ cd sdk-ios
30
+ for file in *
31
+ do
32
+ if test -d $file
33
+ then
34
+ cd $file
35
+ echo "file is ${file}"
36
+ git checkout -b feature_lan_yi
37
+ git push --set-upstream origin feature_lan_yi
38
+ cd ..
39
+ fi
40
+ done
@@ -0,0 +1,36 @@
1
+ #android aqara home
2
+ cd /Users/lumi/code/
3
+ cd aqarahome
4
+ git branch -vv
5
+ cd ..
6
+
7
+ cd sdk
8
+ for file in *
9
+ do
10
+ if test -d $file
11
+ then
12
+ cd $file
13
+ echo "file is ${file}"
14
+ git branch -vv
15
+ cd ..
16
+ fi
17
+ done
18
+ cd ..
19
+
20
+ #ios
21
+ cd ios
22
+ cd aqarahome
23
+ git branch -vv
24
+ cd ..
25
+
26
+ cd sdk-ios
27
+ for file in *
28
+ do
29
+ if test -d $file
30
+ then
31
+ cd $file
32
+ echo "file is ${file}"
33
+ git branch -vv
34
+ cd ..
35
+ fi
36
+ done
@@ -0,0 +1,37 @@
1
+ #android aqara home
2
+ cd /Users/lumi/code/
3
+ cd aqarahome
4
+ git checkout feature_lan_digamma
5
+ cd ..
6
+
7
+ cd sdk
8
+ for file in *
9
+ do
10
+ if test -d $file
11
+ then
12
+ cd $file
13
+ echo "file is ${file}"
14
+ git checkout feature_lan_digamma
15
+ cd ..
16
+ fi
17
+ done
18
+ cd ..
19
+
20
+ #ios
21
+ cd ios
22
+ cd aqarahome
23
+ git checkout feature_lan_digamma
24
+ cd ..
25
+
26
+ cd sdk-ios
27
+ for file in *
28
+ do
29
+ if test -d $file
30
+ then
31
+ cd $file
32
+ echo "file is ${file}"
33
+ git checkout feature_lan_digamma
34
+ cd ..
35
+ fi
36
+ done
37
+ cd ..
@@ -0,0 +1,42 @@
1
+ #android aqara home
2
+ cd /Users/lumi/code/
3
+ cd aqarahome
4
+ git branch -D feature_lan_zeta
5
+ git push origin --delete feature_lan_zeta
6
+
7
+ cd ..
8
+
9
+ cd sdk
10
+ for file in *
11
+ do
12
+ if test -d $file
13
+ then
14
+ cd $file
15
+ echo "file is ${file}"
16
+ git branch -D feature_lan_zeta
17
+ git push origin --delete feature_lan_zeta
18
+ cd ..
19
+ fi
20
+ done
21
+ cd ..
22
+
23
+ #ios
24
+ cd ios
25
+ cd aqarahome
26
+ git branch -D feature_lan_zeta
27
+ git push origin --delete feature_lan_zeta
28
+ cd ..
29
+
30
+ cd sdk-ios
31
+ for file in *
32
+ do
33
+ if test -d $file
34
+ then
35
+ cd $file
36
+ echo "file is ${file}"
37
+ git branch -D feature_lan_zeta
38
+ git push origin --delete feature_lan_zeta
39
+ cd ..
40
+ fi
41
+ done
42
+ cd ..
@@ -0,0 +1,37 @@
1
+ #android aqara home
2
+ cd /Users/lumi/code/
3
+ cd aqarahome
4
+ git pull
5
+ cd ..
6
+
7
+ cd sdk
8
+ for file in *
9
+ do
10
+ if test -d $file
11
+ then
12
+ cd $file
13
+ echo "file is ${file}"
14
+ git pull
15
+ cd ..
16
+ fi
17
+ done
18
+ cd ..
19
+
20
+ #ios
21
+ cd ios
22
+ cd aqarahome
23
+ git pull
24
+ cd ..
25
+
26
+ cd sdk-ios
27
+ for file in *
28
+ do
29
+ if test -d $file
30
+ then
31
+ cd $file
32
+ echo "file is ${file}"
33
+ git pull
34
+ cd ..
35
+ fi
36
+ done
37
+ cd ..
@@ -0,0 +1,23 @@
1
+
2
+ #ios
3
+ cd ios
4
+ cd aqarahome
5
+ git add .
6
+ git commit -m 'feat(multilan) ios str match expand'
7
+ git push
8
+ cd ..
9
+
10
+ cd sdk-ios
11
+ for file in *
12
+ do
13
+ if test -d $file
14
+ then
15
+ cd $file
16
+ echo "file is ${file}"
17
+ git add .
18
+ git commit -m 'feat(multilan) ios str match expand'
19
+ git push
20
+ cd ..
21
+ fi
22
+ done
23
+ cd ..
@@ -0,0 +1,43 @@
1
+ #0
2
+ #cd /Users/lumi/Desktop/companyCode/电信SDK/摄像头SDK/
3
+ #xcodebuild -workspace LMCameraFramework.xcworkspace -scheme LMCameraFramework -configuration=Release OBJROOT=./build/ SYMROOT=./build/
4
+ #cp -rf ./build/Release-iphoneos/LMCameraFramework.framework /Users/lumi/Desktop/companyCode/电信SDK/摄像头SDK/SourceSDK/
5
+
6
+ ##1
7
+ #cd /Users/lumi/Desktop/companyCode/电信SDK/登录模块SDK/
8
+ #xcodebuild -workspace LMLoginFramework.xcworkspace -scheme LMLoginFramework -configuration=Release OBJROOT=./build/ SYMROOT=./build/
9
+ #cp -rf ./build/Release-iphoneos/LMLoginFramework.framework /Users/lumi/Desktop/companyCode/电信SDK/登录模块SDK/SourceSDK/
10
+ #
11
+ ###3
12
+ #cd /Users/lumi/Desktop/companyCode/电信SDK/基础库SDK/
13
+ #xcodebuild -workspace LMFramework.xcworkspace -scheme LMFramework -configuration=Release OBJROOT=./build/ SYMROOT=./build/
14
+ #cp -rf ./build/Release-iphoneos/LMFramework.framework /Users/lumi/Desktop/companyCode/电信SDK/基础库SDK/SourceSDK/
15
+
16
+ #4
17
+ #cd /Users/lumi/Desktop/companyCode/电信SDK/OTA\ SDK/
18
+ #xcodebuild -workspace LMFirmwareUpgradeFramework.xcworkspace -scheme LMFirmwareUpgradeFramework -configuration=Release OBJROOT=./build/ SYMROOT=./build/
19
+ #cp -rf ./build/Release-iphoneos/LMFirmwareUpgradeFramework.framework /Users/lumi/Desktop/companyCode/电信SDK/AqaraHome/AqaraHome/Common/Frameworks/LMOTAFramework/
20
+ ##
21
+ ##5
22
+ #cd /Users/lumi/Desktop/companyCode/电信SDK/设备控制SDK/
23
+ #xcodebuild -workspace LMMeshDriver_UI.xcworkspace -scheme LMMeshDriver_UI -configuration=Release OBJROOT=./build/ SYMROOT=./build/
24
+ #cp -rf ./build/Release-iphoneos/LMMeshDriver_UI.framework /Users/lumi/Desktop/companyCode/电信SDK/AqaraHome/AqaraHome/Common/Frameworks/LMMeshDriverFramework/
25
+ ##
26
+ ##6
27
+ #cd /Users/lumi/Desktop/companyCode/电信SDK/入网SDK/APP_iOS_AccessNetSDK/LumiConnectSDK/LMDeviceAccessNet/
28
+ #xcodebuild -workspace LMDeviceAccessNet.xcworkspace -scheme LMDeviceAccessNet -configuration=Release OBJROOT=./build/ SYMROOT=./build/
29
+ #cp -rf ./build/Release-iphoneos/LMDeviceAccessNet.framework /Users/lumi/Desktop/companyCode/电信SDK/AqaraHome/AqaraHome/Common/Frameworks/
30
+ #
31
+ ##7
32
+ #cd /Users/lumi/Desktop/companyCode/电信SDK/红外SDK/
33
+ #xcodebuild -workspace LMIrcodeFramework.xcworkspace -scheme LMIrcodeFramework -configuration=Release OBJROOT=./build/ SYMROOT=./build/
34
+ #cp -rf ./build/Release-iphoneos/LMIrcodeFramework.framework /Users/lumi/Desktop/companyCode/电信SDK/AqaraHome/AqaraHome/Common/Frameworks/LMIrcodeFramework/
35
+ #
36
+ #8
37
+ #cd /Users/lumi/Desktop/companyCode/电信SDK/曲线Framework/
38
+ #xcodebuild -workspace LMChartFramework.xcworkspace -scheme LMChartFramework -configuration=Release -destination='Defines Module=YES' OBJROOT=./build/ SYMROOT=./build/
39
+ #cp -rf ./build/Release-iphoneos/LMChartFramework.framework /Users/lumi/Desktop/companyCode/AqaraHome/AqaraHome/Common/Frameworks/
40
+
41
+ cd /Users/lumi/Desktop/companyCode/电信SDK/家庭位置SDK/LMPositionFramework/LMPositionFramework/
42
+ xcodebuild -workspace LMPositionFramework.xcworkspace -scheme LMPositionFramework -configuration=Release -sdk iphoneos OBJROOT=./build/ SYMROOT=./build/
43
+ cp -rf ./build/Release-iphoneos/LMPositionFramework.framework /Users/lumi/Desktop/companyCode/电信SDK/AqaraHome/AqaraHome/Common/Frameworks/
@@ -0,0 +1,19 @@
1
+ cd /Users/lumi/Desktop/companyCode/电信SDK
2
+
3
+ os.sy
4
+ for file in *
5
+ do
6
+ if test -d $file
7
+ then
8
+ cd $file
9
+ echo "file is ${file}"
10
+ # git stash
11
+ git clean -d -f
12
+ git reset --hard head
13
+ git restore ./
14
+ git checkout feature_lan_yi
15
+ git pull --rebase
16
+ cd ..
17
+ git
18
+ fi
19
+ done