123456789101112131415161718192021222324 |
- from V2 import file_utils
- import os
- from V2.print_log import printlog
- def HuaweiReplace(prj_path, key, value):
- if key == 'agconnect-services.json':
- printlog('replace huawei agconnect-services.json')
- huawei_sdk_config_path = os.path.join(prj_path, 'assets', key)
- file_utils.copy_file(value, huawei_sdk_config_path)
- pass
- specialReplace = {
- "huawei": HuaweiReplace
- }
- def get_special_replace(sdk_name):
- if sdk_name in specialReplace:
- return specialReplace[sdk_name]
- else:
- return None
- pass
|