appium-espresso-driver 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [4.0.2](https://github.com/appium/appium-espresso-driver/compare/v4.0.1...v4.0.2) (2025-02-14)
2
+
3
+ ### Miscellaneous Chores
4
+
5
+ * Describe how to precompile the server into the AUT ([#1043](https://github.com/appium/appium-espresso-driver/issues/1043)) ([1a92717](https://github.com/appium/appium-espresso-driver/commit/1a92717510c5016bd1b795421805a47b54118a30))
6
+
1
7
  ## [4.0.1](https://github.com/appium/appium-espresso-driver/compare/v4.0.0...v4.0.1) (2025-02-14)
2
8
 
3
9
  ### Miscellaneous Chores
package/README.md CHANGED
@@ -37,6 +37,17 @@ On top of standard Appium requirements Espresso driver also expects the followin
37
37
  - Both the server package and the application under test must be signed with the same digital signature. Appium does sign them automatically upon session creation, so this could only be an issue if one wants to test an application, which is already installed on the device (using `noReset=true` capability).
38
38
  - The package under test must not have mangled class names (e.g. [Proguard](https://developer.android.com/studio/build/shrink-code) must not be enabled for it)
39
39
 
40
+
41
+ ## Consuming Espresso Server as Library
42
+
43
+ If you have access to the source code of the application under test then it is
44
+ possible to integrate Espresso server into your application and make it to a library.
45
+ This approach allows to simplify the dependency conflicts resolution
46
+ as well as to optimize the session startup performance.
47
+ Read the corresponding [article](./docs/as-library.md) from the driver
48
+ documentation for more details.
49
+
50
+
40
51
  ### Doctor
41
52
 
42
53
  Since driver version 2.31.0 you can automate the validation for the most of the above
@@ -1773,14 +1784,14 @@ Appium allows to do this on per-process (multiple server processes running on di
1773
1784
  or per-request basis (single server process managing multiple sessions, more preferable, uses less resources and ensures better control over running sessions). Check [Parallel Android Tests](docs/parallel-tests.md) article for
1774
1785
  more details.
1775
1786
 
1776
- > **Note**
1787
+ > [!NOTE]
1777
1788
  > If you are _not_ going to run your tests in parallel then consider enabling the `--session-override` Appium server argument. It forces the server to close all pending sessions before a new one could be opened,
1778
1789
  > which allows you to avoid possible issues with such sessions silently running/expiring in the background.
1779
1790
 
1780
-
1781
1791
  ## Troubleshooting
1782
1792
 
1783
- * If you observe Espresso server crash on startup and various exceptions about missing class/method in the logcat output then consider updating [appium:espressoBuildConfig](#espresso-build-config) capability with module versions that match your application under test. This might require some experimentation, as different apps have different module requirements. Check, for example, [issue #812](https://github.com/appium/appium-espresso-driver/issues/812)
1793
+ * If you observe Espresso server crash on startup and various exceptions about missing class/method in the logcat output then consider updating [appium:espressoBuildConfig](#espresso-build-config) capability with module versions that match your application under test. This might require some experimentation, as different apps have different module requirements. Check, for example, [issue #812](https://github.com/appium/appium-espresso-driver/issues/812). Another solution might be
1794
+ to [integrate](#consuming-espresso-server-as-library) Espresso Server with the application under test in form of a library.
1784
1795
  * If you experince issues with application activities being not found or not starting then consider checking [How To Troubleshoot Activities Startup](docs/activity-startup.md) article.
1785
1796
  * Espresso requires the debug APK and app-under-test APK (AUT) to have the same signature. It automatically signs the AUT with the `io.appium.espressoserver.test` signature. This may be problematic if you're using an outdated Android SDK tools and/or an outdated Java version.
1786
1797
  * If there are problems starting a session, set the capability `forceEspressoRebuild` to `true` and retry. This will force rebuilding of Espresso Server. If the following session startup is successfull, set it back to `false`, so the session startup performance is back to normal.
@@ -2,6 +2,6 @@ package io.appium.espressoserver.lib.helpers
2
2
 
3
3
  // This value is updated automatically by the NPM versioning script
4
4
  // It should be in sync with the NPM module version from package.json
5
- private const val VERSION = "4.0.1"
5
+ private const val VERSION = "4.0.2"
6
6
 
7
7
  fun getEspressoServerVersion() = VERSION
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "appium-espresso-driver",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "appium-espresso-driver",
9
- "version": "4.0.1",
9
+ "version": "4.0.2",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "appium-adb": "^12.12.0",
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "automated testing",
8
8
  "android"
9
9
  ],
10
- "version": "4.0.1",
10
+ "version": "4.0.2",
11
11
  "author": "Appium Contributors",
12
12
  "license": "Apache-2.0",
13
13
  "repository": {