appium-espresso-driver 8.0.0 → 8.2.0
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 +16 -0
- package/README.md +5 -0
- package/build/lib/server-builder.d.ts +8 -3
- package/build/lib/server-builder.d.ts.map +1 -1
- package/build/lib/server-builder.js +8 -0
- package/build/lib/server-builder.js.map +1 -1
- package/espresso-server/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk +0 -0
- package/espresso-server/app/build.gradle.kts +20 -15
- package/espresso-server/build.gradle.kts +3 -18
- package/espresso-server/buildSrc/.gradle/9.4.1/executionHistory/executionHistory.bin +0 -0
- package/espresso-server/buildSrc/.gradle/9.4.1/executionHistory/executionHistory.lock +0 -0
- package/espresso-server/buildSrc/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/espresso-server/buildSrc/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/espresso-server/buildSrc/.gradle/file-system.probe +0 -0
- package/espresso-server/buildSrc/build/classes/kotlin/main/META-INF/buildSrc.kotlin_module +0 -0
- package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/CapabilityVersionKt.class +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.values.at +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/counters.tab +1 -1
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/last-build.bin +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
- package/espresso-server/buildSrc/build/libs/buildSrc.jar +0 -0
- package/espresso-server/buildSrc/build.gradle.kts +2 -1
- package/espresso-server/buildSrc/src/main/kotlin/io/appium/espressoserver/gradle/CapabilityVersion.kt +12 -0
- package/espresso-server/gradle/libs.versions.toml +16 -0
- package/espresso-server/gradle.properties +1 -12
- package/espresso-server/library/build.gradle.kts +53 -32
- package/espresso-server/library/src/composeOff/java/io/appium/espressoserver/lib/compose/ComposeHandlerBridge.kt +73 -0
- package/espresso-server/library/src/composeOff/java/io/appium/espressoserver/lib/helpers/ComposeViewCache.kt +29 -0
- package/espresso-server/library/src/composeOff/java/io/appium/espressoserver/lib/http/Server.kt +21 -0
- package/espresso-server/library/src/composeOff/java/io/appium/espressoserver/lib/model/SourceDocumentComposeHooks.kt +26 -0
- package/espresso-server/library/src/composeOn/java/io/appium/espressoserver/lib/compose/ComposeHandlerBridge.kt +180 -0
- package/espresso-server/library/src/composeOn/java/io/appium/espressoserver/lib/compose/ComposeScreenshot.kt +49 -0
- package/espresso-server/library/src/composeOn/java/io/appium/espressoserver/lib/drivers/DriverContextComposeRule.kt +29 -0
- package/espresso-server/library/src/{main → composeOn}/java/io/appium/espressoserver/lib/helpers/ComposeNodeFinder.kt +1 -0
- package/espresso-server/library/src/composeOn/java/io/appium/espressoserver/lib/helpers/ComposeViewCache.kt +37 -0
- package/espresso-server/library/src/composeOn/java/io/appium/espressoserver/lib/http/Server.kt +30 -0
- package/espresso-server/library/src/composeOn/java/io/appium/espressoserver/lib/model/ComposeElement.kt +33 -0
- package/espresso-server/library/src/composeOn/java/io/appium/espressoserver/lib/model/SourceDocumentComposeHooks.kt +103 -0
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/drivers/DriverContext.kt +3 -6
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/Clear.kt +2 -12
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/Click.kt +2 -12
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/DeleteSession.kt +2 -2
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/ElementScreenshot.kt +2 -3
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/ElementValue.kt +2 -12
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/FindElement.kt +3 -12
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/FindElements.kt +3 -7
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/GetAttribute.kt +3 -7
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/GetDisplayed.kt +2 -9
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/GetEnabled.kt +2 -4
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/GetLocation.kt +2 -6
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/GetName.kt +2 -6
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/GetRect.kt +2 -4
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/GetSelected.kt +2 -4
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/GetSize.kt +2 -6
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/Keys.kt +2 -16
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/MobileSwipe.kt +2 -24
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/RequestHandler.kt +8 -1
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/Text.kt +2 -4
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/exceptions/ComposeNotSupportedException.kt +28 -0
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/exceptions/InvalidArgumentException.kt +1 -1
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/EspressoViewsCache.kt +0 -17
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/ScreenshotHelpers.kt +0 -13
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/Version.kt +1 -1
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/http/Router.kt +1 -1
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/http/{Server.kt → ServerBase.kt} +32 -20
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/model/Element.kt +0 -13
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/model/SourceDocument.kt +4 -85
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/model/settings/DriverSetting.kt +15 -4
- package/espresso-server/settings.gradle.kts +30 -0
- package/lib/server-builder.ts +15 -2
- package/npm-shrinkwrap.json +36 -14
- package/package.json +2 -1
- /package/espresso-server/library/src/{main → composeOn}/java/io/appium/espressoserver/lib/model/ComposeNodeElement.kt +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## [8.2.0](https://github.com/appium/appium-espresso-driver/compare/v8.1.0...v8.2.0) (2026-04-20)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* Add a possibility to build espresso without compose support ([#1153](https://github.com/appium/appium-espresso-driver/issues/1153)) ([1753aaa](https://github.com/appium/appium-espresso-driver/commit/1753aaa2c425bea12eca13342d8b2a0e695ae761))
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* allow Java 17+ ([#1154](https://github.com/appium/appium-espresso-driver/issues/1154)) ([741954d](https://github.com/appium/appium-espresso-driver/commit/741954dfc830b2040417a06fda51d7b9f4cfcf84))
|
|
10
|
+
|
|
11
|
+
## [8.1.0](https://github.com/appium/appium-espresso-driver/compare/v8.0.0...v8.1.0) (2026-04-18)
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* add version catalog for Dependabot ([#1152](https://github.com/appium/appium-espresso-driver/issues/1152)) ([16ce10e](https://github.com/appium/appium-espresso-driver/commit/16ce10ea5e32ece75d5e7e55307d2fe2ccc20bc7))
|
|
16
|
+
|
|
1
17
|
## [8.0.0](https://github.com/appium/appium-espresso-driver/compare/v7.2.1...v8.0.0) (2026-04-18)
|
|
2
18
|
|
|
3
19
|
### ⚠ BREAKING CHANGES
|
package/README.md
CHANGED
|
@@ -251,6 +251,10 @@ on the Compose usage in general:
|
|
|
251
251
|
|
|
252
252
|
Espresso server is in tight connection with the application under test. That is why it is important that the server uses the same versions of common dependencies and there are no conflicts. Espresso driver allows to configure several build options via `espressoBuildConfig` capability. The configuration JSON supports the following entries:
|
|
253
253
|
|
|
254
|
+
### composeSupport
|
|
255
|
+
|
|
256
|
+
When set to `false`, the Espresso server is built **without** Jetpack Compose UI test dependencies (smaller test APK and no Compose on the classpath). The default is `true` when this key is omitted. If Compose support is disabled, setting the `driver` setting to `compose` or using Compose-only flows returns a clear server error; rebuild with `composeSupport` enabled (or remove the key) to use Compose.
|
|
257
|
+
|
|
254
258
|
### toolsVersions
|
|
255
259
|
|
|
256
260
|
This entry allows to explicitly set the versions of different server components. The following map entries are supported:
|
|
@@ -283,6 +287,7 @@ The value of this entry must be a non empty array of dependent module names with
|
|
|
283
287
|
|
|
284
288
|
```json
|
|
285
289
|
{
|
|
290
|
+
"composeSupport": false,
|
|
286
291
|
"toolsVersions": {
|
|
287
292
|
"androidGradlePlugin": "4.0.0"
|
|
288
293
|
},
|
|
@@ -15,15 +15,20 @@ export interface BuildServerSigningConfigArgs {
|
|
|
15
15
|
keyPassword: string;
|
|
16
16
|
}
|
|
17
17
|
export declare function buildServerSigningConfig(args: BuildServerSigningConfigArgs): ServerSigningConfig;
|
|
18
|
-
interface
|
|
18
|
+
export interface EspressoBuildConfiguration {
|
|
19
19
|
toolsVersions?: Record<string, string>;
|
|
20
|
+
/**
|
|
21
|
+
* When false, the Espresso server is built without Jetpack Compose dependencies.
|
|
22
|
+
* Defaults to true when omitted.
|
|
23
|
+
*/
|
|
24
|
+
composeSupport?: boolean;
|
|
20
25
|
additionalAppDependencies?: string[];
|
|
21
26
|
additionalAndroidTestDependencies?: string[];
|
|
22
27
|
}
|
|
23
28
|
export interface ServerBuilderOptions {
|
|
24
29
|
serverPath: string;
|
|
25
30
|
showGradleLog?: boolean;
|
|
26
|
-
buildConfiguration?:
|
|
31
|
+
buildConfiguration?: EspressoBuildConfiguration;
|
|
27
32
|
testAppPackage?: string;
|
|
28
33
|
signingConfig?: ServerSigningConfig | null;
|
|
29
34
|
}
|
|
@@ -36,6 +41,7 @@ export declare class ServerBuilder {
|
|
|
36
41
|
private readonly signingConfig?;
|
|
37
42
|
private readonly additionalAppDependencies;
|
|
38
43
|
private readonly additionalAndroidTestDependencies;
|
|
44
|
+
private readonly composeSupport;
|
|
39
45
|
constructor(log: AppiumLogger, args: ServerBuilderOptions);
|
|
40
46
|
build(): Promise<void>;
|
|
41
47
|
private getCommand;
|
|
@@ -44,5 +50,4 @@ export declare class ServerBuilder {
|
|
|
44
50
|
private insertAdditionalDependencies;
|
|
45
51
|
private runBuildProcess;
|
|
46
52
|
}
|
|
47
|
-
export {};
|
|
48
53
|
//# sourceMappingURL=server-builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-builder.d.ts","sourceRoot":"","sources":["../../lib/server-builder.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAIhD,eAAO,MAAM,mBAAmB,uEACsC,CAAC;AAMvE,eAAO,MAAM,YAAY,8NAcf,CAAC;AAEX,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,4BAA4B;IAC3C,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,4BAA4B,GAAG,mBAAmB,CAQ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CAAC,aAAa,CAAC,CAAU;IACzC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAyD;IACxF,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAS;IACzC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAA6B;IAC5D,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAW;IACrD,OAAO,CAAC,QAAQ,CAAC,iCAAiC,CAAW;IAC7D,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAU;gBAE7B,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,oBAAoB;IA8BnD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAW5B,OAAO,CAAC,UAAU;YA4CJ,uBAAuB;IAYrC,OAAO,CAAC,mBAAmB;YAOb,4BAA4B;YA0C5B,eAAe;CAmC9B"}
|
|
@@ -51,11 +51,13 @@ class ServerBuilder {
|
|
|
51
51
|
signingConfig;
|
|
52
52
|
additionalAppDependencies;
|
|
53
53
|
additionalAndroidTestDependencies;
|
|
54
|
+
composeSupport;
|
|
54
55
|
constructor(log, args) {
|
|
55
56
|
this.log = log;
|
|
56
57
|
this.serverPath = args.serverPath;
|
|
57
58
|
this.showGradleLog = args.showGradleLog;
|
|
58
59
|
const buildConfiguration = args.buildConfiguration || {};
|
|
60
|
+
this.composeSupport = buildConfiguration.composeSupport !== false;
|
|
59
61
|
const versionConfiguration = buildConfiguration.toolsVersions || {};
|
|
60
62
|
this.serverVersions = lodash_1.default.reduce(versionConfiguration, (acc, value, key) => {
|
|
61
63
|
if (exports.VERSION_KEYS.includes(key)) {
|
|
@@ -108,6 +110,12 @@ class ServerBuilder {
|
|
|
108
110
|
args.push(targetPackageArg);
|
|
109
111
|
}
|
|
110
112
|
}
|
|
113
|
+
if (!this.composeSupport) {
|
|
114
|
+
const composeArg = buildProperty('appiumComposeSupport', 'false');
|
|
115
|
+
if (composeArg) {
|
|
116
|
+
args.push(composeArg);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
111
119
|
args.push('app:assembleAndroidTest');
|
|
112
120
|
return { cmd, args };
|
|
113
121
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-builder.js","sourceRoot":"","sources":["../../lib/server-builder.ts"],"names":[],"mappings":";;;;;;AAgDA,4DAQC;AAxDD,+CAAwC;AACxC,4CAA0C;AAC1C,oDAAuB;AACvB,0DAA6B;AAC7B,qCAA4B;AAC5B,mCAA8C;AAG9C,MAAM,kBAAkB,GAAG,QAAQ,CAAC;AACpC,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;AAChC,QAAA,mBAAmB,GAC9B,oEAAoE,CAAC;AACvE,MAAM,qBAAqB,GAAG;IAC5B,2BAA2B;IAC3B,mCAAmC;CAC3B,CAAC;AAEE,QAAA,YAAY,GAAG;IAC1B,kBAAkB;IAClB,qBAAqB;IACrB,YAAY;IACZ,YAAY;IACZ,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,qBAAqB;IACrB,qBAAqB;IACrB,WAAW;IACX,gBAAgB;IAChB,iBAAiB;IACjB,mBAAmB;CACX,CAAC;AAiBX,SAAgB,wBAAwB,CAAC,IAAkC;IACzE,OAAO;QACL,QAAQ,EAAE,IAAI;QACd,YAAY,EAAE,IAAI,CAAC,YAAY;QAC/B,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;QACvC,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,WAAW,EAAE,IAAI,CAAC,WAAW;KAC9B,CAAC;AACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"server-builder.js","sourceRoot":"","sources":["../../lib/server-builder.ts"],"names":[],"mappings":";;;;;;AAgDA,4DAQC;AAxDD,+CAAwC;AACxC,4CAA0C;AAC1C,oDAAuB;AACvB,0DAA6B;AAC7B,qCAA4B;AAC5B,mCAA8C;AAG9C,MAAM,kBAAkB,GAAG,QAAQ,CAAC;AACpC,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;AAChC,QAAA,mBAAmB,GAC9B,oEAAo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D,CAAC,CAAC;QACpF,WAAW,CAAC,EAAE,CAAC,aAAa,EAAE,CAAC,IAAY,EAAE,EAAE;YAC7C,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC;YAClC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC;QACH,WAAW,CAAC,EAAE,CAAC,aAAa,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC,CAAC;QAEnF,IAAI,CAAC;YACH,MAAM,WAAW,CAAC,KAAK,EAAE,CAAC;YAC1B,MAAM,WAAW,CAAC,IAAI,EAAE,CAAC;QAC3B,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAClB,MAAM,GAAG,GACP,qCAAqC,GAAG,CAAC,OAAO,IAAI;gBACpD,wBAAwB,aAAG,GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YACzD,MAAM,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC;QACzC,CAAC;gBAAS,CAAC;YACT,WAAW,CAAC,kBAAkB,EAAE,CAAC;QACnC,CAAC;IACH,CAAC;CACF;AAhMD,sCAgMC"}
|
|
Binary file
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
plugins {
|
|
2
|
-
|
|
2
|
+
alias(libs.plugins.android.application)
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
+
import io.appium.espressoserver.gradle.resolveCapabilityVersion
|
|
5
6
|
import io.appium.espressoserver.jvmtarget.AppiumJvmTarget
|
|
6
7
|
import org.gradle.api.GradleException
|
|
7
8
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
@@ -14,17 +15,13 @@ val appiumTargetPackage: String by project
|
|
|
14
15
|
val appiumSourceCompatibility: String by project
|
|
15
16
|
val appiumTargetCompatibility: String by project
|
|
16
17
|
val appiumJvmTarget: String by project
|
|
17
|
-
|
|
18
|
-
val
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
val
|
|
23
|
-
val
|
|
24
|
-
val appiumNanohttpdVersion: String by project
|
|
25
|
-
val appiumRobolectricVersion: String by project
|
|
26
|
-
val appiumJUnitVersion: String by project
|
|
27
|
-
val appiumUiAutomatorVersion: String by project
|
|
18
|
+
|
|
19
|
+
val useComposeLibrary: Boolean =
|
|
20
|
+
(findProperty("appiumComposeSupport") as String?)?.equals("false", ignoreCase = true) != true
|
|
21
|
+
|
|
22
|
+
// Align androidTest dependency versions with :library when Espresso driver passes -PappiumJUnitVersion / -PappiumAndroidxTestVersion.
|
|
23
|
+
val junitVersion = resolveCapabilityVersion("appiumJUnitVersion", libs.versions.junit.get())
|
|
24
|
+
val androidxTestVersion = resolveCapabilityVersion("appiumAndroidxTestVersion", libs.versions.androidxTest.get())
|
|
28
25
|
|
|
29
26
|
android {
|
|
30
27
|
compileSdk = appiumCompileSdk.toInt()
|
|
@@ -32,6 +29,14 @@ android {
|
|
|
32
29
|
namespace = "io.appium.espressoserver"
|
|
33
30
|
|
|
34
31
|
defaultConfig {
|
|
32
|
+
missingDimensionStrategy(
|
|
33
|
+
"composeSupport",
|
|
34
|
+
if (useComposeLibrary) {
|
|
35
|
+
"composeOn"
|
|
36
|
+
} else {
|
|
37
|
+
"composeOff"
|
|
38
|
+
},
|
|
39
|
+
)
|
|
35
40
|
// <instrumentation android:targetPackage=""/>
|
|
36
41
|
applicationId = appiumTargetPackage
|
|
37
42
|
// <manifest package=""/>
|
|
@@ -97,9 +102,9 @@ kotlin {
|
|
|
97
102
|
|
|
98
103
|
dependencies {
|
|
99
104
|
androidTestImplementation(project(":library"))
|
|
100
|
-
androidTestImplementation("junit:junit:$
|
|
101
|
-
androidTestImplementation("androidx.test:core:$
|
|
102
|
-
androidTestImplementation("androidx.test:runner:$
|
|
105
|
+
androidTestImplementation("junit:junit:$junitVersion")
|
|
106
|
+
androidTestImplementation("androidx.test:core:$androidxTestVersion")
|
|
107
|
+
androidTestImplementation("androidx.test:runner:$androidxTestVersion")
|
|
103
108
|
|
|
104
109
|
// additionalAndroidTestDependencies placeholder (don't change or delete this line)
|
|
105
110
|
}
|
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
repositories {
|
|
7
|
-
google()
|
|
8
|
-
mavenCentral()
|
|
9
|
-
}
|
|
10
|
-
dependencies {
|
|
11
|
-
classpath("com.android.tools.build:gradle:$appiumAndroidGradlePlugin")
|
|
12
|
-
|
|
13
|
-
// NOTE: Do not place your application dependencies here; they belong
|
|
14
|
-
// in the individual module build.gradle.kts files
|
|
15
|
-
}
|
|
3
|
+
plugins {
|
|
4
|
+
alias(libs.plugins.android.application) apply false
|
|
5
|
+
alias(libs.plugins.android.library) apply false
|
|
16
6
|
}
|
|
17
7
|
|
|
18
8
|
allprojects {
|
|
19
|
-
repositories {
|
|
20
|
-
google()
|
|
21
|
-
mavenCentral()
|
|
22
|
-
}
|
|
23
|
-
|
|
24
9
|
group = "io.appium.espressoserver"
|
|
25
10
|
}
|
|
26
11
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#
|
|
1
|
+
#Mon Apr 20 17:45:25 UTC 2026
|
|
2
2
|
gradle.version=9.4.1
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
2
|
|
2
2
|
0
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
package io.appium.espressoserver.gradle
|
|
2
|
+
|
|
3
|
+
import org.gradle.api.Project
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Resolves a dependency version from an optional Gradle property (e.g. `-PappiumKotlin=…` from the
|
|
7
|
+
* Espresso driver's `toolsVersions` / `espressoBuildConfig`) with fallback to the version catalog default.
|
|
8
|
+
*/
|
|
9
|
+
fun Project.resolveCapabilityVersion(propertyName: String, catalogDefaultVersion: String): String {
|
|
10
|
+
val fromCapability = findProperty(propertyName)?.toString()?.trim()
|
|
11
|
+
return if (!fromCapability.isNullOrEmpty()) fromCapability else catalogDefaultVersion
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
[versions]
|
|
2
|
+
androidGradlePlugin = "9.1.1"
|
|
3
|
+
kotlin = "2.3.20"
|
|
4
|
+
androidxTest = "1.5.0"
|
|
5
|
+
annotation = "1.6.0"
|
|
6
|
+
composeUiTest = "1.1.1"
|
|
7
|
+
gson = "2.10.1"
|
|
8
|
+
espresso = "3.5.1"
|
|
9
|
+
nanohttpd = "2.3.1"
|
|
10
|
+
robolectric = "4.9.2"
|
|
11
|
+
junit = "4.13.2"
|
|
12
|
+
uiautomator = "2.2.0"
|
|
13
|
+
|
|
14
|
+
[plugins]
|
|
15
|
+
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
|
|
16
|
+
android-library = { id = "com.android.library", version.ref = "androidGradlePlugin" }
|
|
@@ -34,15 +34,4 @@ appiumSourceCompatibility=VERSION_1_8
|
|
|
34
34
|
appiumTargetCompatibility=VERSION_1_8
|
|
35
35
|
appiumJvmTarget=1.8
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
appiumKotlin=2.3.20
|
|
39
|
-
appiumAndroidxTestVersion=1.5.0
|
|
40
|
-
appiumAnnotationVersion=1.6.0
|
|
41
|
-
appiumComposeVersion=1.1.1
|
|
42
|
-
appiumGsonVersion=2.10.1
|
|
43
|
-
appiumEspressoVersion=3.5.1
|
|
44
|
-
appiumMockitoVersion=5.1.1
|
|
45
|
-
appiumNanohttpdVersion=2.3.1
|
|
46
|
-
appiumRobolectricVersion=4.9.2
|
|
47
|
-
appiumJUnitVersion=4.13.2
|
|
48
|
-
appiumUiAutomatorVersion=2.2.0
|
|
37
|
+
# Dependency and plugin versions for Dependabot live in gradle/libs.versions.toml
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
plugins {
|
|
2
|
-
|
|
2
|
+
alias(libs.plugins.android.library)
|
|
3
3
|
`maven-publish`
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
import io.appium.espressoserver.gradle.resolveCapabilityVersion
|
|
6
7
|
import io.appium.espressoserver.jvmtarget.AppiumJvmTarget
|
|
7
8
|
import org.gradle.api.GradleException
|
|
8
9
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
@@ -14,22 +15,42 @@ val appiumBuildTools: String by project
|
|
|
14
15
|
val appiumSourceCompatibility: String by project
|
|
15
16
|
val appiumTargetCompatibility: String by project
|
|
16
17
|
val appiumJvmTarget: String by project
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
val
|
|
20
|
-
val
|
|
21
|
-
val
|
|
22
|
-
|
|
23
|
-
val
|
|
24
|
-
val
|
|
25
|
-
val
|
|
26
|
-
val
|
|
18
|
+
|
|
19
|
+
// Versions: defaults from gradle/libs.versions.toml; -Pappium* overrides from Espresso driver (toolsVersions / capabilities).
|
|
20
|
+
val kotlinVersion = resolveCapabilityVersion("appiumKotlin", libs.versions.kotlin.get())
|
|
21
|
+
val annotationVersion = resolveCapabilityVersion("appiumAnnotationVersion", libs.versions.annotation.get())
|
|
22
|
+
val composeUiTestVersion =
|
|
23
|
+
resolveCapabilityVersion("appiumComposeVersion", libs.versions.composeUiTest.get())
|
|
24
|
+
val gsonVersion = resolveCapabilityVersion("appiumGsonVersion", libs.versions.gson.get())
|
|
25
|
+
val espressoVersion = resolveCapabilityVersion("appiumEspressoVersion", libs.versions.espresso.get())
|
|
26
|
+
val nanohttpdVersion = resolveCapabilityVersion("appiumNanohttpdVersion", libs.versions.nanohttpd.get())
|
|
27
|
+
val androidxTestVersion = resolveCapabilityVersion("appiumAndroidxTestVersion", libs.versions.androidxTest.get())
|
|
28
|
+
val robolectricVersion = resolveCapabilityVersion("appiumRobolectricVersion", libs.versions.robolectric.get())
|
|
29
|
+
val junitVersion = resolveCapabilityVersion("appiumJUnitVersion", libs.versions.junit.get())
|
|
30
|
+
val uiautomatorVersion = resolveCapabilityVersion("appiumUiAutomatorVersion", libs.versions.uiautomator.get())
|
|
27
31
|
|
|
28
32
|
android {
|
|
29
33
|
compileSdk = appiumCompileSdk.toInt()
|
|
30
34
|
buildToolsVersion = appiumBuildTools
|
|
31
35
|
namespace = "io.appium.espressoserver.lib"
|
|
32
36
|
|
|
37
|
+
buildFeatures {
|
|
38
|
+
buildConfig = true
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
flavorDimensions += "composeSupport"
|
|
42
|
+
productFlavors {
|
|
43
|
+
create("composeOn") {
|
|
44
|
+
dimension = "composeSupport"
|
|
45
|
+
isDefault = true
|
|
46
|
+
buildConfigField("boolean", "COMPOSE_SUPPORT", "true")
|
|
47
|
+
}
|
|
48
|
+
create("composeOff") {
|
|
49
|
+
dimension = "composeSupport"
|
|
50
|
+
buildConfigField("boolean", "COMPOSE_SUPPORT", "false")
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
33
54
|
defaultConfig {
|
|
34
55
|
minSdk = appiumMinSdk.toInt()
|
|
35
56
|
}
|
|
@@ -53,7 +74,7 @@ android {
|
|
|
53
74
|
}
|
|
54
75
|
|
|
55
76
|
publishing {
|
|
56
|
-
singleVariant("
|
|
77
|
+
singleVariant("composeOnRelease") {
|
|
57
78
|
withSourcesJar()
|
|
58
79
|
}
|
|
59
80
|
}
|
|
@@ -76,7 +97,7 @@ publishing {
|
|
|
76
97
|
publications {
|
|
77
98
|
register<MavenPublication>("release") {
|
|
78
99
|
afterEvaluate {
|
|
79
|
-
from(components["
|
|
100
|
+
from(components["composeOnRelease"])
|
|
80
101
|
}
|
|
81
102
|
}
|
|
82
103
|
}
|
|
@@ -85,39 +106,39 @@ publishing {
|
|
|
85
106
|
dependencies {
|
|
86
107
|
// additionalAppDependencies placeholder (don't change or delete this line)
|
|
87
108
|
|
|
88
|
-
api("androidx.annotation:annotation:$
|
|
89
|
-
api("androidx.test.espresso:espresso-contrib:$
|
|
109
|
+
api("androidx.annotation:annotation:$annotationVersion")
|
|
110
|
+
api("androidx.test.espresso:espresso-contrib:$espressoVersion") {
|
|
90
111
|
// Exclude transitive dependencies to limit conflicts with AndroidX libraries from AUT.
|
|
91
112
|
// Link to PR with fix and discussion https://github.com/appium/appium-espresso-driver/pull/596
|
|
92
113
|
isTransitive = false
|
|
93
114
|
}
|
|
94
|
-
api("androidx.test.espresso:espresso-web:$
|
|
115
|
+
api("androidx.test.espresso:espresso-web:$espressoVersion") {
|
|
95
116
|
because("Espresso Web Atoms support (mobile: webAtoms)")
|
|
96
117
|
}
|
|
97
|
-
api("androidx.test.uiautomator:uiautomator:$
|
|
118
|
+
api("androidx.test.uiautomator:uiautomator:$uiautomatorVersion") {
|
|
98
119
|
because("UiAutomator support (mobile: uiautomator)")
|
|
99
120
|
}
|
|
100
|
-
api("androidx.test:core:$
|
|
101
|
-
api("androidx.test:runner:$
|
|
102
|
-
api("androidx.test:rules:$
|
|
103
|
-
api("com.google.code.gson:gson:$
|
|
104
|
-
api("org.nanohttpd:nanohttpd-webserver:$
|
|
105
|
-
api("org.jetbrains.kotlin:kotlin-stdlib:$
|
|
106
|
-
api("org.jetbrains.kotlin:kotlin-reflect:$
|
|
107
|
-
|
|
121
|
+
api("androidx.test:core:$androidxTestVersion")
|
|
122
|
+
api("androidx.test:runner:$androidxTestVersion")
|
|
123
|
+
api("androidx.test:rules:$androidxTestVersion")
|
|
124
|
+
api("com.google.code.gson:gson:$gsonVersion")
|
|
125
|
+
api("org.nanohttpd:nanohttpd-webserver:$nanohttpdVersion")
|
|
126
|
+
api("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
|
|
127
|
+
api("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
|
|
128
|
+
add("composeOnApi", "androidx.compose.ui:ui-test:$composeUiTestVersion") {
|
|
108
129
|
because("Android Compose support")
|
|
109
130
|
}
|
|
110
|
-
|
|
131
|
+
add("composeOnApi", "androidx.compose.ui:ui-test-junit4:$composeUiTestVersion") {
|
|
111
132
|
because("Android Compose support")
|
|
112
133
|
}
|
|
113
134
|
|
|
114
|
-
testImplementation("androidx.test.espresso:espresso-contrib:$
|
|
115
|
-
testImplementation("junit:junit:$
|
|
116
|
-
testImplementation("org.robolectric:robolectric:$
|
|
117
|
-
testImplementation("org.jetbrains.kotlin:kotlin-test:$
|
|
118
|
-
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$
|
|
135
|
+
testImplementation("androidx.test.espresso:espresso-contrib:$espressoVersion")
|
|
136
|
+
testImplementation("junit:junit:$junitVersion")
|
|
137
|
+
testImplementation("org.robolectric:robolectric:$robolectricVersion")
|
|
138
|
+
testImplementation("org.jetbrains.kotlin:kotlin-test:$kotlinVersion")
|
|
139
|
+
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion")
|
|
119
140
|
|
|
120
141
|
constraints {
|
|
121
|
-
api("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$
|
|
142
|
+
api("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
|
|
122
143
|
}
|
|
123
144
|
}
|