appium-espresso-driver 10.2.1 → 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 (278) hide show
  1. package/CHANGELOG.md +16 -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/commands/server/builder.d.ts +9 -0
  7. package/build/lib/commands/server/builder.d.ts.map +1 -1
  8. package/build/lib/commands/server/builder.js +23 -0
  9. package/build/lib/commands/server/builder.js.map +1 -1
  10. package/build/lib/commands/server/hints.d.ts +28 -0
  11. package/build/lib/commands/server/hints.d.ts.map +1 -0
  12. package/build/lib/commands/server/hints.js +54 -0
  13. package/build/lib/commands/server/hints.js.map +1 -0
  14. package/build/lib/commands/server/runner.d.ts +7 -0
  15. package/build/lib/commands/server/runner.d.ts.map +1 -1
  16. package/build/lib/commands/server/runner.js +43 -4
  17. package/build/lib/commands/server/runner.js.map +1 -1
  18. package/build/lib/driver.d.ts.map +1 -1
  19. package/build/lib/driver.js +13 -0
  20. package/build/lib/driver.js.map +1 -1
  21. package/build/lib/execute-method-map.d.ts +4 -0
  22. package/build/lib/execute-method-map.d.ts.map +1 -1
  23. package/espresso-server/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk +0 -0
  24. package/espresso-server/app/build.gradle.kts +91 -1
  25. package/espresso-server/app/src/androidTestShaded/AndroidManifest.xml +16 -0
  26. package/espresso-server/buildSrc/.gradle/9.7.1/executionHistory/executionHistory.bin +0 -0
  27. package/espresso-server/buildSrc/.gradle/9.7.1/executionHistory/executionHistory.lock +0 -0
  28. package/espresso-server/buildSrc/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  29. package/espresso-server/buildSrc/.gradle/buildOutputCleanup/cache.properties +1 -1
  30. package/espresso-server/buildSrc/build/classes/kotlin/main/META-INF/buildSrc.kotlin_module +0 -0
  31. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/AnnotationSkipper$visitField$1$1.class +0 -0
  32. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/AnnotationSkipper$visitMethod$1$1.class +0 -0
  33. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/AnnotationSkipper.class +0 -0
  34. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/MemberRef.class +0 -0
  35. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/PrefixRemapper.class +0 -0
  36. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocateClassesTask$run$$inlined$groupingBy$1.class +0 -0
  37. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocateClassesTask$run$$inlined$sortedByDescending$1.class +0 -0
  38. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocateClassesTask$run$9$1.class +0 -0
  39. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocateClassesTask$run$remapper$1.class +0 -0
  40. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocateClassesTask.class +0 -0
  41. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocationKt$memberReferences$1$visitMethod$1.class +0 -0
  42. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocationKt$memberReferences$1.class +0 -0
  43. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocationKt$referencedClasses$collector$1.class +0 -0
  44. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocationKt$shareNonPublicDependents$Declared.class +0 -0
  45. package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocationKt.class +0 -0
  46. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  47. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  48. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  49. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  50. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  51. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  52. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  53. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  54. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  55. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  56. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  57. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  58. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  59. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  60. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  61. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  62. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  63. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  64. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
  65. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
  66. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
  67. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
  68. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
  69. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
  70. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
  71. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  72. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  73. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  74. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  75. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  76. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  77. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab +0 -0
  78. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream +0 -0
  79. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream.len +0 -0
  80. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.len +0 -0
  81. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.values.at +0 -0
  82. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i +0 -0
  83. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  84. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  85. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  86. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  87. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  88. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  89. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  90. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  91. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  92. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  93. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  94. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  95. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  96. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  97. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  98. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  99. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  100. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  101. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  102. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  103. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  104. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  105. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  106. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  107. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  108. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  109. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/counters.tab +1 -1
  110. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  111. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  112. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  113. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  114. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  115. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  116. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  117. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  118. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  119. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  120. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  121. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  122. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  123. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  124. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  125. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  126. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  127. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  128. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/last-build.bin +0 -0
  129. package/espresso-server/buildSrc/build/kotlin/compileKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  130. package/espresso-server/buildSrc/build/libs/buildSrc.jar +0 -0
  131. package/espresso-server/buildSrc/build.gradle.kts +6 -0
  132. package/espresso-server/buildSrc/src/main/kotlin/io/appium/espressoserver/gradle/RelocateClassesTask.kt +141 -0
  133. package/espresso-server/buildSrc/src/main/kotlin/io/appium/espressoserver/gradle/Relocation.kt +342 -0
  134. package/espresso-server/buildSrc/src/test/kotlin/io/appium/espressoserver/gradle/RelocationTest.kt +186 -0
  135. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/ListIdlingResources.kt +2 -1
  136. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/ShadingHelpers.kt +45 -0
  137. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/Version.kt +1 -1
  138. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/http/response/AppiumResponse.kt +3 -2
  139. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/model/HamcrestMatcher.kt +8 -5
  140. package/espresso-server/library/src/test/java/io/appium/espressoserver/test/helpers/ShadingHelpersTest.kt +37 -0
  141. package/lib/commands/orientation.ts +49 -0
  142. package/lib/commands/server/builder.ts +29 -0
  143. package/lib/commands/server/hints.ts +69 -0
  144. package/lib/commands/server/runner.ts +53 -5
  145. package/lib/driver.ts +14 -0
  146. package/node_modules/appium-adb/CHANGELOG.md +7 -0
  147. package/node_modules/appium-adb/package.json +3 -3
  148. package/node_modules/appium-android-driver/CHANGELOG.md +74 -0
  149. package/node_modules/appium-android-driver/build/lib/commands/bidi/helpers.d.ts +10 -0
  150. package/node_modules/appium-android-driver/build/lib/commands/bidi/helpers.d.ts.map +1 -0
  151. package/node_modules/appium-android-driver/build/lib/commands/bidi/helpers.js +15 -0
  152. package/node_modules/appium-android-driver/build/lib/commands/bidi/helpers.js.map +1 -0
  153. package/node_modules/appium-android-driver/build/lib/commands/bidi/logcat-level.d.ts +9 -0
  154. package/node_modules/appium-android-driver/build/lib/commands/bidi/logcat-level.d.ts.map +1 -0
  155. package/node_modules/appium-android-driver/build/lib/commands/bidi/logcat-level.js +37 -0
  156. package/node_modules/appium-android-driver/build/lib/commands/bidi/logcat-level.js.map +1 -0
  157. package/node_modules/appium-android-driver/build/lib/commands/device/common.d.ts.map +1 -1
  158. package/node_modules/appium-android-driver/build/lib/commands/device/common.js +2 -0
  159. package/node_modules/appium-android-driver/build/lib/commands/device/common.js.map +1 -1
  160. package/node_modules/appium-android-driver/build/lib/commands/find.js +2 -2
  161. package/node_modules/appium-android-driver/build/lib/commands/find.js.map +1 -1
  162. package/node_modules/appium-android-driver/build/lib/commands/log.d.ts +4 -0
  163. package/node_modules/appium-android-driver/build/lib/commands/log.d.ts.map +1 -1
  164. package/node_modules/appium-android-driver/build/lib/commands/log.js +7 -1
  165. package/node_modules/appium-android-driver/build/lib/commands/log.js.map +1 -1
  166. package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.d.ts +3 -0
  167. package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.d.ts.map +1 -1
  168. package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.js +4 -0
  169. package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.js.map +1 -1
  170. package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.d.ts +10 -4
  171. package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.d.ts.map +1 -1
  172. package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.js +38 -20
  173. package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.js.map +1 -1
  174. package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.d.ts +34 -2
  175. package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.d.ts.map +1 -1
  176. package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.js +89 -43
  177. package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.js.map +1 -1
  178. package/node_modules/appium-android-driver/build/lib/driver.d.ts +5 -0
  179. package/node_modules/appium-android-driver/build/lib/driver.d.ts.map +1 -1
  180. package/node_modules/appium-android-driver/build/lib/driver.js +1 -0
  181. package/node_modules/appium-android-driver/build/lib/driver.js.map +1 -1
  182. package/node_modules/appium-android-driver/build/lib/execute-method-map.d.ts +4 -0
  183. package/node_modules/appium-android-driver/build/lib/execute-method-map.d.ts.map +1 -1
  184. package/node_modules/appium-android-driver/build/lib/execute-method-map.js +5 -0
  185. package/node_modules/appium-android-driver/build/lib/execute-method-map.js.map +1 -1
  186. package/node_modules/appium-android-driver/lib/commands/bidi/helpers.ts +16 -0
  187. package/node_modules/appium-android-driver/lib/commands/bidi/logcat-level.ts +40 -0
  188. package/node_modules/appium-android-driver/lib/commands/device/common.ts +2 -0
  189. package/node_modules/appium-android-driver/lib/commands/find.ts +2 -2
  190. package/node_modules/appium-android-driver/lib/commands/log.ts +9 -1
  191. package/node_modules/appium-android-driver/lib/commands/media-stream/constants.ts +4 -0
  192. package/node_modules/appium-android-driver/lib/commands/media-stream/exports.ts +46 -21
  193. package/node_modules/appium-android-driver/lib/commands/media-stream/stream.ts +90 -43
  194. package/node_modules/appium-android-driver/lib/driver.ts +1 -0
  195. package/node_modules/appium-android-driver/lib/execute-method-map.ts +6 -0
  196. package/node_modules/appium-android-driver/package.json +6 -6
  197. package/node_modules/appium-chromedriver/CHANGELOG.md +7 -0
  198. package/node_modules/appium-chromedriver/config/mapping.json +1 -0
  199. package/node_modules/appium-chromedriver/package.json +2 -2
  200. package/node_modules/asyncbox/README.md +7 -3
  201. package/node_modules/asyncbox/build/lib/shared/errors.d.ts +18 -2
  202. package/node_modules/asyncbox/build/lib/shared/errors.d.ts.map +1 -1
  203. package/node_modules/asyncbox/build/lib/shared/errors.js +24 -8
  204. package/node_modules/asyncbox/build/lib/shared/errors.js.map +1 -1
  205. package/node_modules/asyncbox/lib/shared/errors.ts +34 -8
  206. package/node_modules/asyncbox/package.json +1 -1
  207. package/node_modules/bare-buffer/CMakeLists.txt +3 -3
  208. package/node_modules/bare-buffer/package.json +1 -1
  209. package/node_modules/bare-buffer/prebuilds/android-arm/bare-buffer.bare +0 -0
  210. package/node_modules/bare-buffer/prebuilds/android-arm64/bare-buffer.bare +0 -0
  211. package/node_modules/bare-buffer/prebuilds/android-ia32/bare-buffer.bare +0 -0
  212. package/node_modules/bare-buffer/prebuilds/android-x64/bare-buffer.bare +0 -0
  213. package/node_modules/bare-buffer/prebuilds/darwin-arm64/bare-buffer.bare +0 -0
  214. package/node_modules/bare-buffer/prebuilds/darwin-x64/bare-buffer.bare +0 -0
  215. package/node_modules/bare-buffer/prebuilds/ios-arm64/bare-buffer.bare +0 -0
  216. package/node_modules/bare-buffer/prebuilds/ios-arm64-simulator/bare-buffer.bare +0 -0
  217. package/node_modules/bare-buffer/prebuilds/ios-x64-simulator/bare-buffer.bare +0 -0
  218. package/node_modules/bare-buffer/prebuilds/linux-arm64/bare-buffer.bare +0 -0
  219. package/node_modules/bare-buffer/prebuilds/linux-x64/bare-buffer.bare +0 -0
  220. package/node_modules/bare-buffer/prebuilds/win32-arm64/bare-buffer.bare +0 -0
  221. package/node_modules/bare-buffer/prebuilds/win32-x64/bare-buffer.bare +0 -0
  222. package/node_modules/bare-fs/package.json +2 -2
  223. package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
  224. package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
  225. package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
  226. package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
  227. package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
  228. package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
  229. package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
  230. package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
  231. package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
  232. package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
  233. package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
  234. package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
  235. package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
  236. package/node_modules/bare-url/CMakeLists.txt +5 -5
  237. package/node_modules/bare-url/package.json +1 -1
  238. package/node_modules/bare-url/prebuilds/android-arm/bare-url.bare +0 -0
  239. package/node_modules/bare-url/prebuilds/android-arm64/bare-url.bare +0 -0
  240. package/node_modules/bare-url/prebuilds/android-ia32/bare-url.bare +0 -0
  241. package/node_modules/bare-url/prebuilds/android-x64/bare-url.bare +0 -0
  242. package/node_modules/bare-url/prebuilds/darwin-arm64/bare-url.bare +0 -0
  243. package/node_modules/bare-url/prebuilds/darwin-x64/bare-url.bare +0 -0
  244. package/node_modules/bare-url/prebuilds/ios-arm64/bare-url.bare +0 -0
  245. package/node_modules/bare-url/prebuilds/ios-arm64-simulator/bare-url.bare +0 -0
  246. package/node_modules/bare-url/prebuilds/ios-x64-simulator/bare-url.bare +0 -0
  247. package/node_modules/bare-url/prebuilds/linux-arm64/bare-url.bare +0 -0
  248. package/node_modules/bare-url/prebuilds/linux-x64/bare-url.bare +0 -0
  249. package/node_modules/bare-url/prebuilds/win32-arm64/bare-url.bare +0 -0
  250. package/node_modules/bare-url/prebuilds/win32-x64/bare-url.bare +0 -0
  251. package/node_modules/ini/package.json +5 -5
  252. package/node_modules/io.appium.settings/CHANGELOG.md +21 -0
  253. package/node_modules/io.appium.settings/apks/settings_apk-debug.apk +0 -0
  254. package/node_modules/io.appium.settings/package.json +3 -3
  255. package/node_modules/plist/dist/parse-binary.d.ts.map +1 -1
  256. package/node_modules/plist/dist/parse-binary.js +37 -9
  257. package/node_modules/plist/dist/parse-binary.js.map +1 -1
  258. package/node_modules/plist/package.json +1 -1
  259. package/package.json +5 -5
  260. package/scripts/check-shaded-packages.mjs +106 -0
  261. package/scripts/lib/dependency-versions/apk-meta-inf.mjs +0 -13
  262. package/scripts/lib/dependency-versions/comparison.mjs +17 -47
  263. package/scripts/lib/dependency-versions/gradle-scan.mjs +77 -87
  264. package/scripts/lib/dependency-versions/index.mjs +1 -1
  265. package/scripts/lib/dependency-versions/report.mjs +4 -4
  266. package/scripts/lib/dependency-versions/tracked-modules.mjs +2 -42
  267. package/scripts/lib/dependency-versions/types.mjs +2 -1
  268. package/scripts/lib/dependency-versions/version-utils.mjs +124 -2
  269. package/scripts/lib/diagnose/app-input.mjs +4 -1
  270. package/scripts/lib/diagnose/checks/compile-sdk.mjs +6 -2
  271. package/scripts/lib/diagnose/checks/dependency.mjs +1 -1
  272. package/scripts/lib/diagnose/checks/index.mjs +0 -3
  273. package/scripts/lib/diagnose/checks/obfuscation.mjs +1 -1
  274. package/scripts/lib/diagnose/diagnosis.mjs +2 -7
  275. package/scripts/lib/diagnose/report.mjs +2 -2
  276. package/scripts/lib/diagnose/checks/androidx.mjs +0 -40
  277. package/scripts/lib/diagnose/checks/lifecycle-extensions.mjs +0 -23
  278. package/scripts/lib/diagnose/checks/startup-provider.mjs +0 -41
@@ -21,11 +21,11 @@ export function parseVersionsToml(text) {
21
21
  let inVersionsSection = false;
22
22
  for (const line of text.split(/\r?\n/)) {
23
23
  const trimmed = line.trim();
24
- if (trimmed === '[versions]') {
24
+ if (/^\[versions\]\s*(#.*)?$/.test(trimmed)) {
25
25
  inVersionsSection = true;
26
26
  continue;
27
27
  }
28
- if (trimmed.startsWith('[') && trimmed !== '[versions]') {
28
+ if (trimmed.startsWith('[')) {
29
29
  inVersionsSection = false;
30
30
  continue;
31
31
  }
@@ -40,6 +40,128 @@ export function parseVersionsToml(text) {
40
40
  return versions;
41
41
  }
42
42
 
43
+ /**
44
+ * Maps each `[versions]` key of a version catalog to the accessors (`libs.x.y`) through which
45
+ * the catalog exposes it: the version itself and the libraries/plugins that reference it.
46
+ * @param {string} text
47
+ * @returns {Record<string, string[]>}
48
+ */
49
+ export function parseCatalogAccessors(text) {
50
+ const prefixes = {versions: 'libs.versions', libraries: 'libs', plugins: 'libs.plugins', bundles: 'libs.bundles'};
51
+ const dotted = (/** @type {string} */ name) => name.replace(/[-_]/g, '.');
52
+ /** Drops the trailing comment and counts the open brackets, both outside of strings. */
53
+ const scanLine = (/** @type {string} */ line) => {
54
+ let quote = '';
55
+ let delta = 0;
56
+ for (let i = 0; i < line.length; i++) {
57
+ const ch = line[i];
58
+ if (quote) {
59
+ if (ch === '\\' && quote === '"') {
60
+ i++;
61
+ } else if (ch === quote) {
62
+ quote = '';
63
+ }
64
+ } else if (ch === '"' || ch === "'") {
65
+ quote = ch;
66
+ } else if (ch === '#') {
67
+ return {code: line.slice(0, i), delta};
68
+ } else if (ch === '{' || ch === '[') {
69
+ delta++;
70
+ } else if (ch === '}' || ch === ']') {
71
+ delta--;
72
+ }
73
+ }
74
+ return {code: line, delta};
75
+ };
76
+ /** @typedef {{section: string, alias: string, body: string}} CatalogEntry */
77
+ /** @type {CatalogEntry[]} */
78
+ const entries = [];
79
+ /** @type {CatalogEntry | null} */
80
+ let current = null;
81
+ let section = '';
82
+ let depth = 0;
83
+
84
+ const finish = () => {
85
+ if (current) {
86
+ entries.push(current);
87
+ current = null;
88
+ }
89
+ depth = 0;
90
+ };
91
+
92
+ for (const rawLine of text.split(/\r?\n/)) {
93
+ const {code, delta: lineDelta} = scanLine(rawLine);
94
+ const trimmed = code.trim();
95
+ if (!trimmed) {
96
+ continue;
97
+ }
98
+ if (depth > 0 && current) {
99
+ // continuation of a multiline inline table or array
100
+ current.body += ` ${trimmed}`;
101
+ depth += lineDelta;
102
+ if (depth <= 0) {
103
+ finish();
104
+ }
105
+ continue;
106
+ }
107
+ // `[libraries.alias]` tables carry the entry's keys on the following lines
108
+ const header = trimmed.match(/^\[(\w+)(?:\.([\w.-]+))?\]$/);
109
+ if (header) {
110
+ finish();
111
+ section = header[1];
112
+ current = header[2] ? {section, alias: header[2], body: ''} : null;
113
+ continue;
114
+ }
115
+ const kv = trimmed.match(/^([A-Za-z0-9_.-]+)\s*=\s*(.*)$/);
116
+ if (!kv) {
117
+ continue;
118
+ }
119
+ if (current) {
120
+ current.body += ` ${trimmed}`;
121
+ continue;
122
+ }
123
+ current = {section, alias: kv[1], body: kv[2]};
124
+ depth = scanLine(kv[2]).delta;
125
+ if (depth <= 0) {
126
+ finish();
127
+ }
128
+ }
129
+ finish();
130
+
131
+ const versionRef = (/** @type {CatalogEntry} */ entry) =>
132
+ entry.body.match(/version\.ref\s*=\s*["']([^"']+)["']/)?.[1];
133
+ /** @type {Record<string, string[]>} */
134
+ const accessors = {};
135
+ /** @type {Record<string, string>} */
136
+ const libraryRefs = {};
137
+ const add = (/** @type {string | undefined} */ key, /** @type {CatalogEntry} */ entry) => {
138
+ if (key) {
139
+ (accessors[key] ??= []).push(
140
+ `${prefixes[/** @type {keyof typeof prefixes} */ (entry.section)]}.${dotted(entry.alias)}`,
141
+ );
142
+ }
143
+ };
144
+ for (const entry of entries) {
145
+ if (entry.section === 'versions') {
146
+ add(entry.alias, entry);
147
+ } else if (entry.section === 'libraries' || entry.section === 'plugins') {
148
+ const ref = versionRef(entry);
149
+ add(ref, entry);
150
+ if (ref && entry.section === 'libraries') {
151
+ libraryRefs[entry.alias] = ref;
152
+ }
153
+ }
154
+ }
155
+ // a bundle exposes the versions of its member libraries
156
+ for (const entry of entries.filter((e) => e.section === 'bundles')) {
157
+ const members = [...entry.body.matchAll(/["']([^"']+)["']/g)].map((m) => m[1]);
158
+ for (const key of new Set(members.map((alias) => libraryRefs[alias]))) {
159
+ add(key, entry);
160
+ }
161
+ }
162
+ return accessors;
163
+ }
164
+
43
165
  /**
44
166
  * @param {string | undefined} raw
45
167
  * @returns {string | null}
@@ -38,7 +38,10 @@ export async function loadEspressoServerDefaults(espressoServerRoot, driverRoot)
38
38
  */
39
39
  export async function collectAppInputFromProject(projectRoot) {
40
40
  const {versions, minifyEnabled, sources} = await collectAppVersionsFromProject(projectRoot);
41
- const gradleFiles = sources.map((rel) => path.join(projectRoot, rel));
41
+ // Version catalogs only declare libraries; usage is judged from the build scripts
42
+ const gradleFiles = sources
43
+ .filter((rel) => !rel.endsWith('libs.versions.toml'))
44
+ .map((rel) => path.join(projectRoot, rel));
42
45
  const gradleCorpus = (await Promise.all(gradleFiles.map((f) => fs.readFile(f, 'utf8').catch(() => '')))).join('\n');
43
46
  const manifestTexts = await findManifestTexts(projectRoot);
44
47
 
@@ -14,7 +14,11 @@ export function checkCompileSdk(appInput, serverDefaults, dependencyReport) {
14
14
  }
15
15
  const appCompileSdk = parseCompileSdkFromCorpus(appInput.gradleCorpus ?? '');
16
16
  const serverCompileSdk = serverDefaults.compileSdk ? parseInt(serverDefaults.compileSdk, 10) : null;
17
- const composeVersion = dependencyReport.modules.find((m) => m.id === 'compose')?.appVersion;
17
+ const compose = dependencyReport.modules.find((m) => m.id === 'compose');
18
+ // An unresolved version (e.g. from a BOM) means the server's Compose, built with the server's compileSdk
19
+ const resolved = Boolean(compose?.appVersion);
20
+ const composeVersion = compose?.appVersion ?? (dependencyReport.composeDetected ? compose?.serverVersion : null);
21
+ const checkedCompileSdk = resolved ? appCompileSdk : serverCompileSdk;
18
22
  const composeMinor = composeVersion ? semver.coerce(composeVersion)?.minor : null;
19
23
  const minComposeCompileSdk = composeMinor != null && composeMinor >= 11 ? 35 : null;
20
24
 
@@ -38,7 +42,7 @@ export function checkCompileSdk(appInput, serverDefaults, dependencyReport) {
38
42
  });
39
43
  }
40
44
 
41
- if (minComposeCompileSdk && appCompileSdk && appCompileSdk < minComposeCompileSdk) {
45
+ if (minComposeCompileSdk && checkedCompileSdk && checkedCompileSdk < minComposeCompileSdk) {
42
46
  checks.push({
43
47
  id: 'compose-compile-sdk',
44
48
  title: 'Compose compileSdk requirement',
@@ -22,7 +22,7 @@ export function mapDependencyChecks(dependencyReport, appInput) {
22
22
 
23
23
  return /** @type {import('../types.mjs').DiagnosticCheck} */ ({
24
24
  id: `dependency-${mod.id}`,
25
- title: mod.testOnly ? `${mod.label} in app` : `${mod.label} version`,
25
+ title: `${mod.label} version`,
26
26
  status,
27
27
  message: mod.recommendation.message,
28
28
  espressoBuildConfig: mod.recommendation.espressoBuildConfig,
@@ -1,8 +1,5 @@
1
1
  export {checkPrecompileInputKind} from './input-kind.mjs';
2
2
  export {checkInternetPermission} from './internet-permission.mjs';
3
3
  export {checkObfuscation} from './obfuscation.mjs';
4
- export {checkAndroidX} from './androidx.mjs';
5
- export {checkInitializationProvider} from './startup-provider.mjs';
6
4
  export {checkCompileSdk} from './compile-sdk.mjs';
7
- export {checkLifecycleExtensionsPin} from './lifecycle-extensions.mjs';
8
5
  export {mapDependencyChecks} from './dependency.mjs';
@@ -26,7 +26,7 @@ export function checkObfuscation(appInput, serverDefaults) {
26
26
  title: 'Code shrinking (R8/ProGuard)',
27
27
  status: 'fail',
28
28
  message:
29
- 'APK appears obfuscated/minified. Dependency alignment cannot be verified from the APK; use an unobfuscated debug APK if possible. See slackhq/keeper for shrinker rules when testing against release builds.',
29
+ 'APK appears obfuscated/minified. The Compose version cannot be verified from the APK; use an unobfuscated debug APK if possible. See slackhq/keeper for shrinker rules when testing against release builds.',
30
30
  docRef: 'docs/as-library.md',
31
31
  });
32
32
  results.push({
@@ -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
- }