Skip to content

Commit

Permalink
chore: Update various packages (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored Oct 21, 2023
1 parent 9c049ec commit 406590e
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 18 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
app
doc
gen
2 changes: 1 addition & 1 deletion .github/workflows/functional-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
java-version: '17'
- run: nohup adb logcat > logcat.log &
name: Capture Logcat
- uses: reactivecircus/android-emulator-runner@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Set up JDK 11
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '11'
java-version: '17'
distribution: 'temurin'
cache: gradle
- run: npm install --no-package-lock
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
java-version: '17'
- run: npm install --no-package-lock
name: Install dev dependencies
- run: npm run lint:java
Expand Down
27 changes: 21 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
classpath 'com.android.tools.build:gradle:8.1.2'
classpath 'com.github.bjoernq:unmockplugin:0.7.9'
}
}
Expand All @@ -14,7 +14,7 @@ apply plugin: 'com.android.application'
apply plugin: 'de.mobilej.unmock'

android {
compileSdkVersion 30
compileSdk 30
defaultConfig {
applicationId 'io.appium.uiautomator2'
minSdkVersion 21
Expand Down Expand Up @@ -50,7 +50,23 @@ android {
}
}
testOptions {
unitTests.returnDefaultValues = true
unitTests {
includeAndroidResources = true
returnDefaultValues = true
all {
it.jvmArgs([
'--add-opens', 'java.base/java.lang=ALL-UNNAMED',
'--add-opens', 'java.base/java.time=ALL-UNNAMED',
'--add-opens', 'java.base/java.time.format=ALL-UNNAMED',
'--add-opens', 'java.base/java.util=ALL-UNNAMED',
'--add-opens', 'java.base/java.util.concurrent=ALL-UNNAMED',
'--add-exports', 'java.base/sun.nio.ch=ALL-UNNAMED',
'--add-opens', 'java.base/java.lang.reflect=ALL-UNNAMED',
'--add-opens', 'java.base/java.io=ALL-UNNAMED',
'--add-exports', 'jdk.unsupported/sun.misc=ALL-UNNAMED',
])
}
}
}
packagingOptions {
resources {
Expand All @@ -76,7 +92,7 @@ dependencies {
implementation 'androidx.test.uiautomator:uiautomator:2.2.0'
implementation 'androidx.test:core:1.4.0'
implementation 'androidx.test:runner:1.4.0'
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'com.google.code.gson:gson:2.10.1'
//noinspection GradleDependency
implementation 'commons-io:commons-io:2.6'
implementation 'io.netty:netty-all:4.0.41.Final'
Expand All @@ -86,7 +102,6 @@ dependencies {
implementation 'com.github.vbmacher:java-cup-runtime:11b-20160615-1'
//noinspection GradleDependency
implementation 'com.ibm.icu:icu4j:60.2'
unmock 'org.robolectric:android-all:7.1.0_r7-robolectric-0'
testImplementation 'androidx.test.ext:junit:1.1.3'
//noinspection GradleDependency
testImplementation 'junit:junit:4.12'
Expand All @@ -95,7 +110,7 @@ dependencies {
testImplementation 'org.powermock:powermock-classloading-xstream:2.0.9'
testImplementation 'org.powermock:powermock-module-junit4-rule:2.0.9'
testImplementation 'org.powermock:powermock-module-junit4:2.0.9'
testImplementation 'org.robolectric:robolectric:4.5.1'
testImplementation 'org.robolectric:robolectric:4.10.3'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'com.squareup.okhttp:okhttp:2.7.5'
androidTestImplementation 'androidx.test.espresso:espresso-web:3.4.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ public void parsesComplexXpath2() {
}

@Test
@Ignore("robolectric depends on com.ibm.icu:icu4j:72.1 while psychopath requires 60.2")
public void parsesXpath2UsingIcu() {
String query = "//android.widget.TextView[substring(@text, 1) = 'some, text']";
List<Node> nodes = findNodesUsingXpath2(XML, query, false);
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
classpath 'com.android.tools.build:gradle:8.1.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
11 changes: 7 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
# Default value: -Xmx10248m
# org.gradle.jvmargs=-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
org.gradle.jvmargs=-Xms512m -Xmx2048m -XX\:MaxPermSize\=1g -XX\:MaxMetaspaceSize\=1g
org.gradle.parallel=true
org.gradle.jvmargs=-Xms512m -Xmx2048m -XX\:MaxMetaspaceSize\=1g
android.useAndroidX=true
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
"test": "./gradlew testServerDebugUnitTest"
},
"devDependencies": {
"@appium/eslint-config-appium": "^6.0.0",
"@appium/eslint-config-appium": "^8.0.0",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"android-apidemos": "^4.0.0",
"appium-adb": "^11.0.1",
"bluebird": "^3.7.2",
"conventional-changelog-conventionalcommits": "^7.0.1",
"fancy-log": "^2.0.0",
"eslint": "^7.32.0",
"eslint": "^8.40.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-promise": "^6.0.0",
"semantic-release": "^22.0.5",
Expand Down

0 comments on commit 406590e

Please sign in to comment.