Skip to content

Commit 3768529

Browse files
Merge pull request #632 from TikhomirovSergey/master
Dependendencies were updated.
2 parents c63d157 + 7416489 commit 3768529

File tree

5 files changed

+37
-12
lines changed

5 files changed

+37
-12
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ This is the Java language binding for writing Appium Tests, conforms to [Mobile
2020
## Changelog
2121

2222
*5.0.0 (under construction yet)*
23-
- New capabilities were added [#626](https://github.com/appium/java-client/pull/626):
23+
24+
*5.0.0-BETA8*
25+
- **[ENHANCEMENT]** Page factory classes became which had package visibility are `public` now. [#630](https://github.com/appium/java-client/pull/630)
26+
- `io.appium.java_client.pagefactory.AppiumElementLocatorFactory`
27+
- `io.appium.java_client.pagefactory.DefaultElementByBuilder`
28+
- `io.appium.java_client.pagefactory.WidgetByBuilder`
29+
30+
- **[ENHANCEMENT]** New capabilities were added [#626](https://github.com/appium/java-client/pull/626):
2431
- `AndroidMobileCapabilityType#AUTO_GRANT_PERMISSIONS`
2532
- `AndroidMobileCapabilityType#ANDROID_NATURAL_ORIENTATION`
2633
- `IOSMobileCapabilityType#XCODE_ORG_ID`
@@ -39,6 +46,14 @@ This is the Java language binding for writing Appium Tests, conforms to [Mobile
3946
- `IOSMobileCapabilityType#ALLOW_TOUCHID_ENROLL`
4047
- `MobileCapabilityType#EVENT_TIMINGS`
4148

49+
- **[UPDATE]** Dependencies were updated:
50+
- `org.seleniumhq.selenium:selenium-java` was updated to 3.4.0
51+
- `cglib:cglib` was updated to 3.2.5
52+
- `org.apache.httpcomponents:httpclient` was updated to 4.5.3
53+
- `commons-validator:commons-validator` was updated to 1.6
54+
- `org.springframework:spring-context` was updated to 4.3.8.RELEASE
55+
56+
4257
*5.0.0-BETA7*
4358
- **[ENHANCEMENT]** The ability to customize the polling strategy of the waiting was provided. [#612](https://github.com/appium/java-client/pull/612)
4459
- **[ENHANCEMENT]** **[REFACTOR]** Methods which were representing time deltas instead of elementary types became `Deprecated`. Methods which use `java.time.Duration` are suugested to be used. [#611](https://github.com/appium/java-client/pull/611)

build.gradle

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ apply plugin: 'signing'
77
apply plugin: 'maven-publish'
88

99
group 'io.appium'
10-
version '5.0.0-BETA7'
10+
version '5.0.0-BETA8'
1111

1212
repositories {
1313
jcenter()
@@ -54,21 +54,22 @@ compileJava {
5454
}
5555

5656
dependencies {
57-
compile('org.seleniumhq.selenium:selenium-java:3.3.1'){
57+
compile('org.seleniumhq.selenium:selenium-java:3.4.0'){
5858
exclude module: 'cglib'
5959
exclude group: 'com.google.code.gson'
6060
}
6161
compile 'com.google.code.gson:gson:2.8.0'
62-
compile 'org.apache.httpcomponents:httpclient:4.5.2'
63-
compile 'cglib:cglib:3.2.4'
64-
compile 'commons-validator:commons-validator:1.5.1'
62+
compile 'org.apache.httpcomponents:httpclient:4.5.3'
63+
compile 'cglib:cglib:3.2.5'
64+
compile 'commons-validator:commons-validator:1.6'
6565
compile 'org.apache.commons:commons-lang3:3.5'
6666
compile 'commons-io:commons-io:2.5'
67-
compile 'org.springframework:spring-context:4.3.5.RELEASE'
67+
compile 'org.springframework:spring-context:4.3.8.RELEASE'
6868
compile 'org.aspectj:aspectjweaver:1.8.10'
6969
compile 'org.openpnp:opencv:3.2.0-1'
7070

7171
testCompile 'junit:junit:4.12'
72+
testCompile 'org.hamcrest:hamcrest-all:1.3'
7273
}
7374

7475
ext {

src/main/java/io/appium/java_client/pagefactory/AppiumElementLocatorFactory.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,21 @@
2626
import java.lang.reflect.AnnotatedElement;
2727
import java.lang.reflect.Field;
2828

29-
class AppiumElementLocatorFactory implements CacheableElementLocatorFactory {
29+
public class AppiumElementLocatorFactory implements CacheableElementLocatorFactory {
3030
private final SearchContext searchContext;
3131
private final TimeOutDuration timeOutDuration;
3232
private final WebDriver originalWebDriver;
3333
private final AppiumByBuilder builder;
3434

35+
/**
36+
* Creates a new mobile element locator factory.
37+
*
38+
* @param searchContext The context to use when finding the element
39+
* @param timeOutDuration is a POJO which contains timeout parameters for the element to be searched
40+
* @param originalWebDriver is an instance of WebDriver that is going to be used by a proxied element
41+
* @param builder is handler of Appium-specific page object annotations
42+
*/
43+
3544
public AppiumElementLocatorFactory(SearchContext searchContext, TimeOutDuration timeOutDuration,
3645
WebDriver originalWebDriver, AppiumByBuilder builder) {
3746
this.searchContext = searchContext;

src/main/java/io/appium/java_client/pagefactory/DefaultElementByBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
import java.util.Map;
3535
import java.util.Optional;
3636

37-
class DefaultElementByBuilder extends AppiumByBuilder {
37+
public class DefaultElementByBuilder extends AppiumByBuilder {
3838

39-
protected DefaultElementByBuilder(String platform, String automation) {
39+
public DefaultElementByBuilder(String platform, String automation) {
4040
super(platform, automation);
4141
}
4242

src/main/java/io/appium/java_client/pagefactory/WidgetByBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
import java.util.List;
2929
import java.util.Optional;
3030

31-
class WidgetByBuilder extends DefaultElementByBuilder {
31+
public class WidgetByBuilder extends DefaultElementByBuilder {
3232

33-
protected WidgetByBuilder(String platform, String automation) {
33+
public WidgetByBuilder(String platform, String automation) {
3434
super(platform, automation);
3535
}
3636

0 commit comments

Comments
 (0)