Permalink
Browse files

Changed serialno order in ViewClient constructor

- Changed the order of the parameters to support the most common use
case which is ViewClient(device, serialno)
- Version bumped to 2.0
  • Loading branch information...
1 parent 56aae7a commit 60c6c0da514aa9d4727913dfc24ed58f0408e2c5 @dtmilano committed Oct 12, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 AndroidViewClient/src/com/dtmilano/android/viewclient.py
@@ -17,7 +17,7 @@
@author: diego
'''
-__version__ = '1.2'
+__version__ = '2.0'
import sys
import subprocess
@@ -657,18 +657,18 @@ class ViewClient:
mapping is created.
'''
- def __init__(self, device, adb=os.path.join(ANDROID_HOME, 'platform-tools', ADB), autodump=True, serialno='emulator-5554'):
+ def __init__(self, device, serialno='emulator-5554', adb=os.path.join(ANDROID_HOME, 'platform-tools', ADB), autodump=True):
'''
Constructor
@type device: MonkeyDevice
@param device: The device running the C{View server} to which this client will connect
+ @type serialno: str
+ @param serialno: the serial number of the device or emulator to connect to
@type adb: str
@param adb: the path of the C{adb} executable
@type autodump: boolean
@param autodump: whether an automatic dump is performed at the end of this constructor
- @type serialno: str
- @param serialno: the serial number of the device or emulator to connect to
'''
if not device:

0 comments on commit 60c6c0d

Please sign in to comment.