Simplified the StartsActivity by reducing the number of parameters through POJO class by email2vimalraj · Pull Request #579 · appium/java-client
Simplified the StartsActivity by reducing the number of parameters through POJO class
Change list
Currently the number of startActivity methods are unnecessary which can be solved by one single method with single parameter. So introduced the simple POJO class which in future can be expanded with any number of parameters.
Types of changes
What types of changes are you proposing/introducing to Java client?
- No changes in production code.
- Bugfix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)
- Breaking change (fix or feature that would cause existing functionality to not work as expected)
Details
The sample usage of new implementation is as follows:
Activity activity = new Activity(); activity.setAppPackage("com.foo"); activity.setAppActivity(".bar"); driver.startActivity(activity);