appium-espresso-driver 10.3.0 → 10.4.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.
Files changed (101) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/build/lib/commands/orientation.d.ts +33 -0
  3. package/build/lib/commands/orientation.d.ts.map +1 -0
  4. package/build/lib/commands/orientation.js +34 -0
  5. package/build/lib/commands/orientation.js.map +1 -0
  6. package/build/lib/driver.d.ts.map +1 -1
  7. package/build/lib/driver.js +13 -0
  8. package/build/lib/driver.js.map +1 -1
  9. package/build/lib/execute-method-map.d.ts +4 -0
  10. package/build/lib/execute-method-map.d.ts.map +1 -1
  11. package/espresso-server/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk +0 -0
  12. package/espresso-server/buildSrc/.gradle/9.7.1/executionHistory/executionHistory.bin +0 -0
  13. package/espresso-server/buildSrc/.gradle/9.7.1/executionHistory/executionHistory.lock +0 -0
  14. package/espresso-server/buildSrc/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  15. package/espresso-server/buildSrc/.gradle/buildOutputCleanup/cache.properties +1 -1
  16. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/last-build.bin +0 -0
  17. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/Version.kt +1 -1
  18. package/lib/commands/orientation.ts +49 -0
  19. package/lib/driver.ts +14 -0
  20. package/node_modules/appium-android-driver/CHANGELOG.md +51 -0
  21. package/node_modules/appium-android-driver/build/lib/commands/find.js +2 -2
  22. package/node_modules/appium-android-driver/build/lib/commands/find.js.map +1 -1
  23. package/node_modules/appium-android-driver/build/lib/commands/log.d.ts +4 -0
  24. package/node_modules/appium-android-driver/build/lib/commands/log.d.ts.map +1 -1
  25. package/node_modules/appium-android-driver/build/lib/commands/log.js +2 -0
  26. package/node_modules/appium-android-driver/build/lib/commands/log.js.map +1 -1
  27. package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.d.ts +3 -0
  28. package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.d.ts.map +1 -1
  29. package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.js +4 -0
  30. package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.js.map +1 -1
  31. package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.d.ts +10 -4
  32. package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.d.ts.map +1 -1
  33. package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.js +37 -17
  34. package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.js.map +1 -1
  35. package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.d.ts +34 -2
  36. package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.d.ts.map +1 -1
  37. package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.js +89 -43
  38. package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.js.map +1 -1
  39. package/node_modules/appium-android-driver/build/lib/driver.d.ts +5 -0
  40. package/node_modules/appium-android-driver/build/lib/driver.d.ts.map +1 -1
  41. package/node_modules/appium-android-driver/build/lib/driver.js +1 -0
  42. package/node_modules/appium-android-driver/build/lib/driver.js.map +1 -1
  43. package/node_modules/appium-android-driver/build/lib/execute-method-map.d.ts +4 -0
  44. package/node_modules/appium-android-driver/build/lib/execute-method-map.d.ts.map +1 -1
  45. package/node_modules/appium-android-driver/build/lib/execute-method-map.js +5 -0
  46. package/node_modules/appium-android-driver/build/lib/execute-method-map.js.map +1 -1
  47. package/node_modules/appium-android-driver/lib/commands/find.ts +2 -2
  48. package/node_modules/appium-android-driver/lib/commands/log.ts +4 -0
  49. package/node_modules/appium-android-driver/lib/commands/media-stream/constants.ts +4 -0
  50. package/node_modules/appium-android-driver/lib/commands/media-stream/exports.ts +51 -17
  51. package/node_modules/appium-android-driver/lib/commands/media-stream/stream.ts +90 -43
  52. package/node_modules/appium-android-driver/lib/driver.ts +1 -0
  53. package/node_modules/appium-android-driver/lib/execute-method-map.ts +6 -0
  54. package/node_modules/appium-android-driver/package.json +4 -4
  55. package/node_modules/asyncbox/README.md +7 -3
  56. package/node_modules/asyncbox/build/lib/shared/errors.d.ts +18 -2
  57. package/node_modules/asyncbox/build/lib/shared/errors.d.ts.map +1 -1
  58. package/node_modules/asyncbox/build/lib/shared/errors.js +24 -8
  59. package/node_modules/asyncbox/build/lib/shared/errors.js.map +1 -1
  60. package/node_modules/asyncbox/lib/shared/errors.ts +34 -8
  61. package/node_modules/asyncbox/package.json +1 -1
  62. package/node_modules/bare-fs/package.json +2 -2
  63. package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
  64. package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
  65. package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
  66. package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
  67. package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
  68. package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
  69. package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
  70. package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
  71. package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
  72. package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
  73. package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
  74. package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
  75. package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
  76. package/node_modules/io.appium.settings/CHANGELOG.md +14 -0
  77. package/node_modules/io.appium.settings/apks/settings_apk-debug.apk +0 -0
  78. package/node_modules/io.appium.settings/package.json +2 -2
  79. package/node_modules/plist/dist/parse-binary.d.ts.map +1 -1
  80. package/node_modules/plist/dist/parse-binary.js +37 -9
  81. package/node_modules/plist/dist/parse-binary.js.map +1 -1
  82. package/node_modules/plist/package.json +1 -1
  83. package/package.json +4 -4
  84. package/scripts/lib/dependency-versions/apk-meta-inf.mjs +0 -13
  85. package/scripts/lib/dependency-versions/comparison.mjs +17 -47
  86. package/scripts/lib/dependency-versions/gradle-scan.mjs +77 -87
  87. package/scripts/lib/dependency-versions/index.mjs +1 -1
  88. package/scripts/lib/dependency-versions/report.mjs +4 -4
  89. package/scripts/lib/dependency-versions/tracked-modules.mjs +2 -42
  90. package/scripts/lib/dependency-versions/types.mjs +2 -1
  91. package/scripts/lib/dependency-versions/version-utils.mjs +124 -2
  92. package/scripts/lib/diagnose/app-input.mjs +4 -1
  93. package/scripts/lib/diagnose/checks/compile-sdk.mjs +6 -2
  94. package/scripts/lib/diagnose/checks/dependency.mjs +1 -1
  95. package/scripts/lib/diagnose/checks/index.mjs +0 -3
  96. package/scripts/lib/diagnose/checks/obfuscation.mjs +1 -1
  97. package/scripts/lib/diagnose/diagnosis.mjs +2 -7
  98. package/scripts/lib/diagnose/report.mjs +2 -2
  99. package/scripts/lib/diagnose/checks/androidx.mjs +0 -40
  100. package/scripts/lib/diagnose/checks/lifecycle-extensions.mjs +0 -23
  101. package/scripts/lib/diagnose/checks/startup-provider.mjs +0 -41
@@ -1,10 +1,7 @@
1
- import {buildComparisonReport} from '../dependency-versions/index.mjs';
1
+ import {buildComparisonReport, usesCompose} from '../dependency-versions/index.mjs';
2
2
  import {
3
- checkAndroidX,
4
3
  checkCompileSdk,
5
- checkInitializationProvider,
6
4
  checkInternetPermission,
7
- checkLifecycleExtensionsPin,
8
5
  checkObfuscation,
9
6
  checkPrecompileInputKind,
10
7
  mapDependencyChecks,
@@ -22,6 +19,7 @@ export async function runDiagnosis(appInput, serverDefaults) {
22
19
  proguardLikely: appInput.proguardLikely,
23
20
  minifyEnabled: appInput.minifyEnabled,
24
21
  detectionSource: appInput.kind === 'apk' ? 'apk' : 'project',
22
+ composeDetected: usesCompose(appInput.gradleCorpus ?? '') || (appInput.versions.compose ?? []).length > 0,
25
23
  });
26
24
 
27
25
  /** @type {import('./types.mjs').DiagnosticCheck[]} */
@@ -30,10 +28,7 @@ export async function runDiagnosis(appInput, serverDefaults) {
30
28
  checks.push(checkPrecompileInputKind(appInput));
31
29
  checks.push(...(await checkInternetPermission(appInput)));
32
30
  checks.push(...checkObfuscation(appInput, serverDefaults));
33
- checks.push(...checkAndroidX(appInput));
34
- checks.push(...checkInitializationProvider(appInput));
35
31
  checks.push(...checkCompileSdk(appInput, serverDefaults, dependencyReport));
36
- checks.push(...checkLifecycleExtensionsPin(appInput));
37
32
  checks.push(...mapDependencyChecks(dependencyReport, appInput));
38
33
 
39
34
  const failCount = checks.filter((c) => c.status === 'fail').length;
@@ -23,8 +23,8 @@ export function formatDiagnosisReport(report) {
23
23
  lines.push('');
24
24
  }
25
25
 
26
- lines.push('Dependency alignment (Espresso server vs AUT)');
27
- lines.push('---------------------------------------------');
26
+ lines.push('Compose/Kotlin alignment (Espresso server vs AUT)');
27
+ lines.push('-'.repeat(49));
28
28
  lines.push(formatDependencyReport(report.dependencyReport, {json: false, compact: true}));
29
29
  lines.push('');
30
30
 
@@ -1,40 +0,0 @@
1
- /**
2
- * @param {import('../types.mjs').AppInput} appInput
3
- * @returns {import('../types.mjs').DiagnosticCheck[]}
4
- */
5
- export function checkAndroidX(appInput) {
6
- if (appInput.kind === 'apk') {
7
- return [];
8
- }
9
- const usesAndroidX = /android\.useAndroidX\s*=\s*true/i.test(appInput.gradleCorpus ?? '');
10
- if (usesAndroidX) {
11
- return [
12
- {
13
- id: 'androidx-migration',
14
- title: 'AndroidX',
15
- status: 'pass',
16
- message: 'android.useAndroidX=true is set in gradle.properties.',
17
- },
18
- ];
19
- }
20
- if (/com\.android\.support\./.test(appInput.gradleCorpus ?? '')) {
21
- return [
22
- {
23
- id: 'androidx-migration',
24
- title: 'AndroidX',
25
- status: 'fail',
26
- message:
27
- 'Legacy Android Support Library references detected without android.useAndroidX=true. Migrate the AUT to AndroidX before embedding the Espresso server.',
28
- },
29
- ];
30
- }
31
- return [
32
- {
33
- id: 'androidx-migration',
34
- title: 'AndroidX',
35
- status: 'warn',
36
- message:
37
- 'android.useAndroidX=true not found in scanned gradle.properties files. Confirm the AUT uses AndroidX artifacts.',
38
- },
39
- ];
40
- }
@@ -1,23 +0,0 @@
1
- /**
2
- * @param {import('../types.mjs').AppInput} appInput
3
- * @returns {import('../types.mjs').DiagnosticCheck[]}
4
- */
5
- export function checkLifecycleExtensionsPin(appInput) {
6
- if (appInput.kind === 'apk') {
7
- return [];
8
- }
9
- const corpus = appInput.gradleCorpus ?? '';
10
- if (!/lifecycle-extensions/.test(corpus)) {
11
- return [];
12
- }
13
- return [
14
- {
15
- id: 'lifecycle-extensions',
16
- title: 'Legacy lifecycle-extensions',
17
- status: 'warn',
18
- message:
19
- 'lifecycle-extensions detected. Avoid pinning it in additionalAndroidTestDependencies — it often causes ProcessLifecycleOwner / lifecycle NoSuchMethodError with modern Compose.',
20
- docRef: 'docs/compose-troubleshooting.md',
21
- },
22
- ];
23
- }
@@ -1,41 +0,0 @@
1
- /**
2
- * @param {import('../types.mjs').AppInput} appInput
3
- * @returns {import('../types.mjs').DiagnosticCheck[]}
4
- */
5
- export function checkInitializationProvider(appInput) {
6
- if (appInput.kind === 'apk') {
7
- return [];
8
- }
9
- const corpus = `${appInput.gradleCorpus ?? ''}\n${(appInput.manifestPaths ?? []).join('\n')}`;
10
- if (!/InitializationProvider/.test(corpus)) {
11
- return [
12
- {
13
- id: 'startup-provider',
14
- title: 'App Startup provider',
15
- status: 'pass',
16
- message: 'androidx.startup.InitializationProvider not found in scanned manifests.',
17
- },
18
- ];
19
- }
20
- if (/tools:node\s*=\s*["']remove["']/.test(corpus) && /InitializationProvider/.test(corpus)) {
21
- return [
22
- {
23
- id: 'startup-provider',
24
- title: 'App Startup provider',
25
- status: 'pass',
26
- message:
27
- 'InitializationProvider is explicitly removed for instrumentation (recommended for Espresso fixtures).',
28
- },
29
- ];
30
- }
31
- return [
32
- {
33
- id: 'startup-provider',
34
- title: 'App Startup provider',
35
- status: 'warn',
36
- message:
37
- 'InitializationProvider is present without tools:node="remove". Under instrumentation this can cause Resources$NotFoundException for androidx_startup. Remove the provider or add startup-runtime to the AUT.',
38
- docRef: 'docs/compose-troubleshooting.md',
39
- },
40
- ];
41
- }