appium-espresso-driver 8.1.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 +10 -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/outputs/apk/androidTest/debug/output-metadata.json +21 -0
- package/espresso-server/app/build.gradle.kts +11 -0
- 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 +2 -0
- package/espresso-server/buildSrc/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- 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/classes/kotlin/main/io/appium/espressoserver/jvmtarget/AppiumJvmTarget.class +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/compilerPluginFiles/outputs-generated-for-plugins.tab +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/compilerPluginFiles/outputs-generated-for-plugins.tab.keystream +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/compilerPluginFiles/outputs-generated-for-plugins.tab.keystream.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/compilerPluginFiles/outputs-generated-for-plugins.tab.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/compilerPluginFiles/outputs-generated-for-plugins.tab.values.at +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/compilerPluginFiles/outputs-generated-for-plugins.tab_i.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/compilerPluginFiles/sources-referenced-by-plugins.tab +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/compilerPluginFiles/sources-referenced-by-plugins.tab.keystream +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/compilerPluginFiles/sources-referenced-by-plugins.tab.keystream.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/compilerPluginFiles/sources-referenced-by-plugins.tab.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/compilerPluginFiles/sources-referenced-by-plugins.tab.values.at +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/compilerPluginFiles/sources-referenced-by-plugins.tab_i.len +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/inputs/source-to-output.tab_i.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +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/internal-name-to-source.tab_i.len +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/proto.tab_i.len +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/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
- 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/file-to-id.tab_i.len +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/caches-jvm/lookups/lookups.tab_i.len +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/tmp/jar/MANIFEST.MF +2 -0
- package/espresso-server/buildSrc/build.gradle.kts +2 -1
- package/espresso-server/library/build.gradle.kts +21 -4
- 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/lib/server-builder.ts +15 -2
- package/npm-shrinkwrap.json +27 -5
- 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,13 @@
|
|
|
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
|
+
|
|
1
11
|
## [8.1.0](https://github.com/appium/appium-espresso-driver/compare/v8.0.0...v8.1.0) (2026-04-18)
|
|
2
12
|
|
|
3
13
|
### Features
|
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,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;IACpC,OAAO,CAAC,QAAQ,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,Q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K,CAAC,GAAG,MAAM,0DAA0D,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
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"artifactType": {
|
|
4
|
+
"type": "APK",
|
|
5
|
+
"kind": "Directory"
|
|
6
|
+
},
|
|
7
|
+
"applicationId": "io.appium.espressoserver.test",
|
|
8
|
+
"variantName": "debugAndroidTest",
|
|
9
|
+
"elements": [
|
|
10
|
+
{
|
|
11
|
+
"type": "SINGLE",
|
|
12
|
+
"filters": [],
|
|
13
|
+
"attributes": [],
|
|
14
|
+
"versionCode": 0,
|
|
15
|
+
"versionName": "",
|
|
16
|
+
"outputFile": "app-debug-androidTest.apk"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"elementType": "File",
|
|
20
|
+
"minSdkVersionForDexing": 26
|
|
21
|
+
}
|
|
@@ -16,6 +16,9 @@ val appiumSourceCompatibility: String by project
|
|
|
16
16
|
val appiumTargetCompatibility: String by project
|
|
17
17
|
val appiumJvmTarget: String by project
|
|
18
18
|
|
|
19
|
+
val useComposeLibrary: Boolean =
|
|
20
|
+
(findProperty("appiumComposeSupport") as String?)?.equals("false", ignoreCase = true) != true
|
|
21
|
+
|
|
19
22
|
// Align androidTest dependency versions with :library when Espresso driver passes -PappiumJUnitVersion / -PappiumAndroidxTestVersion.
|
|
20
23
|
val junitVersion = resolveCapabilityVersion("appiumJUnitVersion", libs.versions.junit.get())
|
|
21
24
|
val androidxTestVersion = resolveCapabilityVersion("appiumAndroidxTestVersion", libs.versions.androidxTest.get())
|
|
@@ -26,6 +29,14 @@ android {
|
|
|
26
29
|
namespace = "io.appium.espressoserver"
|
|
27
30
|
|
|
28
31
|
defaultConfig {
|
|
32
|
+
missingDimensionStrategy(
|
|
33
|
+
"composeSupport",
|
|
34
|
+
if (useComposeLibrary) {
|
|
35
|
+
"composeOn"
|
|
36
|
+
} else {
|
|
37
|
+
"composeOff"
|
|
38
|
+
},
|
|
39
|
+
)
|
|
29
40
|
// <instrumentation android:targetPackage=""/>
|
|
30
41
|
applicationId = appiumTargetPackage
|
|
31
42
|
// <manifest package=""/>
|
|
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
|
|
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
|
|
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
|
package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -34,6 +34,23 @@ android {
|
|
|
34
34
|
buildToolsVersion = appiumBuildTools
|
|
35
35
|
namespace = "io.appium.espressoserver.lib"
|
|
36
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
|
+
|
|
37
54
|
defaultConfig {
|
|
38
55
|
minSdk = appiumMinSdk.toInt()
|
|
39
56
|
}
|
|
@@ -57,7 +74,7 @@ android {
|
|
|
57
74
|
}
|
|
58
75
|
|
|
59
76
|
publishing {
|
|
60
|
-
singleVariant("
|
|
77
|
+
singleVariant("composeOnRelease") {
|
|
61
78
|
withSourcesJar()
|
|
62
79
|
}
|
|
63
80
|
}
|
|
@@ -80,7 +97,7 @@ publishing {
|
|
|
80
97
|
publications {
|
|
81
98
|
register<MavenPublication>("release") {
|
|
82
99
|
afterEvaluate {
|
|
83
|
-
from(components["
|
|
100
|
+
from(components["composeOnRelease"])
|
|
84
101
|
}
|
|
85
102
|
}
|
|
86
103
|
}
|
|
@@ -108,10 +125,10 @@ dependencies {
|
|
|
108
125
|
api("org.nanohttpd:nanohttpd-webserver:$nanohttpdVersion")
|
|
109
126
|
api("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
|
|
110
127
|
api("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
|
|
111
|
-
|
|
128
|
+
add("composeOnApi", "androidx.compose.ui:ui-test:$composeUiTestVersion") {
|
|
112
129
|
because("Android Compose support")
|
|
113
130
|
}
|
|
114
|
-
|
|
131
|
+
add("composeOnApi", "androidx.compose.ui:ui-test-junit4:$composeUiTestVersion") {
|
|
115
132
|
because("Android Compose support")
|
|
116
133
|
}
|
|
117
134
|
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
* you may not use this file except in compliance with the License.
|
|
4
|
+
* See the NOTICE file distributed with this work for additional
|
|
5
|
+
* information regarding copyright ownership.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
package io.appium.espressoserver.lib.compose
|
|
18
|
+
|
|
19
|
+
import io.appium.espressoserver.lib.handlers.exceptions.ComposeNotSupportedException
|
|
20
|
+
import io.appium.espressoserver.lib.model.AppiumParams
|
|
21
|
+
import io.appium.espressoserver.lib.model.BaseElement
|
|
22
|
+
import io.appium.espressoserver.lib.model.Locator
|
|
23
|
+
import io.appium.espressoserver.lib.model.Location
|
|
24
|
+
import io.appium.espressoserver.lib.model.MobileSwipeParams
|
|
25
|
+
import io.appium.espressoserver.lib.model.Rect
|
|
26
|
+
import io.appium.espressoserver.lib.model.Size
|
|
27
|
+
import io.appium.espressoserver.lib.model.TextValueParams
|
|
28
|
+
|
|
29
|
+
internal object ComposeHandlerBridge {
|
|
30
|
+
private fun unsupported(): Nothing = throw ComposeNotSupportedException()
|
|
31
|
+
|
|
32
|
+
fun findElement(params: Locator): BaseElement = unsupported()
|
|
33
|
+
|
|
34
|
+
fun findElements(params: Locator): List<BaseElement> = unsupported()
|
|
35
|
+
|
|
36
|
+
fun click(params: AppiumParams) {
|
|
37
|
+
unsupported()
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
fun clear(params: AppiumParams) {
|
|
41
|
+
unsupported()
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
fun elementValue(params: TextValueParams, isReplacing: Boolean) {
|
|
45
|
+
unsupported()
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
fun keys(params: TextValueParams) {
|
|
49
|
+
unsupported()
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
fun mobileSwipe(params: MobileSwipeParams): Void? = unsupported()
|
|
53
|
+
|
|
54
|
+
fun getDisplayed(params: AppiumParams): Boolean = unsupported()
|
|
55
|
+
|
|
56
|
+
fun elementScreenshot(elementId: String): String = unsupported()
|
|
57
|
+
|
|
58
|
+
fun getAttribute(elementId: String, attributeName: String): String? = unsupported()
|
|
59
|
+
|
|
60
|
+
fun getEnabled(params: AppiumParams): Boolean = unsupported()
|
|
61
|
+
|
|
62
|
+
fun getLocation(params: AppiumParams): Location = unsupported()
|
|
63
|
+
|
|
64
|
+
fun getName(params: AppiumParams): String? = unsupported()
|
|
65
|
+
|
|
66
|
+
fun getRect(params: AppiumParams): Rect = unsupported()
|
|
67
|
+
|
|
68
|
+
fun getSelected(params: AppiumParams): Boolean = unsupported()
|
|
69
|
+
|
|
70
|
+
fun getSize(params: AppiumParams): Size = unsupported()
|
|
71
|
+
|
|
72
|
+
fun text(params: AppiumParams): String = unsupported()
|
|
73
|
+
}
|