|
@@ -68,7 +68,18 @@ def package(config, sdk):
|
|
|
|
|
|
jsonConfig['bgMusic'] = config['bgMusic']
|
|
|
if 'recordConfig' in config:
|
|
|
- setRecordConfig(jsonConfig, config['recordConfig'])
|
|
|
+ recordConfig = config['recordConfig']
|
|
|
+ setRecordConfig(jsonConfig, recordConfig)
|
|
|
+
|
|
|
+ userIcon = recordConfig['userIcon']
|
|
|
+ suffix = userIcon[userIcon.index('.'):]
|
|
|
+ item = {'formFile':userIcon, 'toFile':'res/drawable/float_sdk_user_icon' + suffix}
|
|
|
+
|
|
|
+ if 'copyList' in config:
|
|
|
+ copyList = config['copyList']
|
|
|
+ copyList.add(item)
|
|
|
+ else:
|
|
|
+ config['copyList'] = [item]
|
|
|
|
|
|
configData = jsonConfig['configData']
|
|
|
properties = jsonConfig['properties']
|
|
@@ -82,15 +93,7 @@ def package(config, sdk):
|
|
|
if 'deleteList' in config:
|
|
|
jsonConfig['deleteList'] = config['deleteList']
|
|
|
|
|
|
- userIcon = configData['userIcon']
|
|
|
- suffix = userIcon[userIcon.index('.'):]
|
|
|
- item = {'formFile':userIcon, 'toFile':'res/drawable/float_sdk_user_icon' + suffix}
|
|
|
-
|
|
|
- if 'copyList' in config:
|
|
|
- copyList = config['copyList']
|
|
|
- copyList.add(item)
|
|
|
- else:
|
|
|
- config['copyList'] = [item]
|
|
|
+
|
|
|
|
|
|
# 获取sdk相关配置
|
|
|
getSdkConfig(sdk, jsonConfig, config)
|