From 4666c846b70e973b589786e0263c48666351561a Mon Sep 17 00:00:00 2001 From: yumiguan <41277086+yumiguan@users.noreply.github.com> Date: Fri, 28 Dec 2018 14:30:50 +0800 Subject: [PATCH] Feature/change event information (#19) * change keywords in event --- lyrebird_ios/config/comparison_table_model.json | 16 ++++++++++++---- lyrebird_ios/ui.py | 2 +- setup.py | 2 +- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/lyrebird_ios/config/comparison_table_model.json b/lyrebird_ios/config/comparison_table_model.json index 4f1c2bc..c14ed94 100644 --- a/lyrebird_ios/config/comparison_table_model.json +++ b/lyrebird_ios/config/comparison_table_model.json @@ -1,7 +1,7 @@ { "iPhone3,1": "iPhone 4", - "iPhone3,2": "iPhone 4", - "iPhone3,3": "iPhone 4", + "iPhone3,2": "iPhone 4 GSM Rev A", + "iPhone3,3": "iPhone 4 CDMA", "iPhone4,1": "iPhone 4S", "iPhone5,1": "iPhone 5", "iPhone5,2": "iPhone 5 GSM+CDMA", @@ -13,6 +13,7 @@ "iPhone7,2": "iPhone 6", "iPhone8,1": "iPhone 6s", "iPhone8,2": "iPhone 6s Plus", + "iPhone8,3": "iPhone SE GSM+CDMA", "iPhone8,4": "iPhone SE", "iPhone9,1": "iPhone 7", "iPhone9,2": "iPhone 7 Plus", @@ -20,5 +21,12 @@ "iPhone9,4": "iPhone 7 Plus", "iPhone10,1": "iPhone 8", "iPhone10,2": "iPhone 8 Plus", - "iPhone10,3": "iPhone X" -} \ No newline at end of file + "iPhone10,3": "iPhone X", + "iPhone10,4": "iPhone 8", + "iPhone10,5": "iPhone 8 Plus", + "iPhone10,6": "iPhone X", + "iPhone11,2": "iPhone XS", + "iPhone11,4": "iPhone XS Max", + "iPhone11,6": "iPhone XS Max", + "iPhone11,8": "iPhone XR" +} diff --git a/lyrebird_ios/ui.py b/lyrebird_ios/ui.py index d87f731..3e31256 100644 --- a/lyrebird_ios/ui.py +++ b/lyrebird_ios/ui.py @@ -108,7 +108,7 @@ def get_screen_shot(self, message): if message.get('cmd') != 'screenshot': return screen_shots = [] - device_list = message.get('id') + device_list = message.get('device_id') for device_id in device_list: device = device_service.devices.get(device_id) if not device: diff --git a/setup.py b/setup.py index b1941dd..60a2ddb 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setup( name='lyrebird-ios', - version='0.2.2', + version='0.2.3', packages=['lyrebird_ios'], url='https://github.com/meituan/lyrebird-ios', author='HBQA',