appium-espresso-driver 10.2.1 → 10.3.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 +6 -0
- package/build/lib/commands/server/builder.d.ts +9 -0
- package/build/lib/commands/server/builder.d.ts.map +1 -1
- package/build/lib/commands/server/builder.js +23 -0
- package/build/lib/commands/server/builder.js.map +1 -1
- package/build/lib/commands/server/hints.d.ts +28 -0
- package/build/lib/commands/server/hints.d.ts.map +1 -0
- package/build/lib/commands/server/hints.js +54 -0
- package/build/lib/commands/server/hints.js.map +1 -0
- package/build/lib/commands/server/runner.d.ts +7 -0
- package/build/lib/commands/server/runner.d.ts.map +1 -1
- package/build/lib/commands/server/runner.js +43 -4
- package/build/lib/commands/server/runner.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 +91 -1
- package/espresso-server/app/src/androidTestShaded/AndroidManifest.xml +16 -0
- package/espresso-server/buildSrc/.gradle/9.7.1/executionHistory/executionHistory.bin +0 -0
- package/espresso-server/buildSrc/.gradle/9.7.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/build/classes/kotlin/main/META-INF/buildSrc.kotlin_module +0 -0
- package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/AnnotationSkipper$visitField$1$1.class +0 -0
- package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/AnnotationSkipper$visitMethod$1$1.class +0 -0
- package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/AnnotationSkipper.class +0 -0
- package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/MemberRef.class +0 -0
- package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/PrefixRemapper.class +0 -0
- package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocateClassesTask$run$$inlined$groupingBy$1.class +0 -0
- package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocateClassesTask$run$$inlined$sortedByDescending$1.class +0 -0
- package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocateClassesTask$run$9$1.class +0 -0
- package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocateClassesTask$run$remapper$1.class +0 -0
- package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocateClassesTask.class +0 -0
- package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocationKt$memberReferences$1$visitMethod$1.class +0 -0
- package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocationKt$memberReferences$1.class +0 -0
- package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocationKt$referencedClasses$collector$1.class +0 -0
- package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocationKt$shareNonPublicDependents$Declared.class +0 -0
- package/espresso-server/buildSrc/build/classes/kotlin/main/io/appium/espressoserver/gradle/RelocationKt.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/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-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/constants.tab +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/constants.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/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/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/jvm/kotlin/subtypes.tab +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +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/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 +6 -0
- package/espresso-server/buildSrc/src/main/kotlin/io/appium/espressoserver/gradle/RelocateClassesTask.kt +141 -0
- package/espresso-server/buildSrc/src/main/kotlin/io/appium/espressoserver/gradle/Relocation.kt +342 -0
- package/espresso-server/buildSrc/src/test/kotlin/io/appium/espressoserver/gradle/RelocationTest.kt +186 -0
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/ListIdlingResources.kt +2 -1
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/ShadingHelpers.kt +45 -0
- 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/response/AppiumResponse.kt +3 -2
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/model/HamcrestMatcher.kt +8 -5
- package/espresso-server/library/src/test/java/io/appium/espressoserver/test/helpers/ShadingHelpersTest.kt +37 -0
- package/lib/commands/server/builder.ts +29 -0
- package/lib/commands/server/hints.ts +69 -0
- package/lib/commands/server/runner.ts +53 -5
- package/node_modules/appium-adb/CHANGELOG.md +7 -0
- package/node_modules/appium-adb/package.json +3 -3
- package/node_modules/appium-android-driver/CHANGELOG.md +23 -0
- package/node_modules/appium-android-driver/build/lib/commands/bidi/helpers.d.ts +10 -0
- package/node_modules/appium-android-driver/build/lib/commands/bidi/helpers.d.ts.map +1 -0
- package/node_modules/appium-android-driver/build/lib/commands/bidi/helpers.js +15 -0
- package/node_modules/appium-android-driver/build/lib/commands/bidi/helpers.js.map +1 -0
- package/node_modules/appium-android-driver/build/lib/commands/bidi/logcat-level.d.ts +9 -0
- package/node_modules/appium-android-driver/build/lib/commands/bidi/logcat-level.d.ts.map +1 -0
- package/node_modules/appium-android-driver/build/lib/commands/bidi/logcat-level.js +37 -0
- package/node_modules/appium-android-driver/build/lib/commands/bidi/logcat-level.js.map +1 -0
- package/node_modules/appium-android-driver/build/lib/commands/device/common.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/device/common.js +2 -0
- package/node_modules/appium-android-driver/build/lib/commands/device/common.js.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/log.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/log.js +5 -1
- package/node_modules/appium-android-driver/build/lib/commands/log.js.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.js +2 -4
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.js.map +1 -1
- package/node_modules/appium-android-driver/lib/commands/bidi/helpers.ts +16 -0
- package/node_modules/appium-android-driver/lib/commands/bidi/logcat-level.ts +40 -0
- package/node_modules/appium-android-driver/lib/commands/device/common.ts +2 -0
- package/node_modules/appium-android-driver/lib/commands/log.ts +5 -1
- package/node_modules/appium-android-driver/lib/commands/media-stream/exports.ts +2 -11
- package/node_modules/appium-android-driver/package.json +5 -5
- package/node_modules/appium-chromedriver/CHANGELOG.md +7 -0
- package/node_modules/appium-chromedriver/config/mapping.json +1 -0
- package/node_modules/appium-chromedriver/package.json +2 -2
- package/node_modules/bare-buffer/CMakeLists.txt +3 -3
- package/node_modules/bare-buffer/package.json +1 -1
- package/node_modules/bare-buffer/prebuilds/android-arm/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/android-arm64/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/android-ia32/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/android-x64/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/darwin-arm64/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/darwin-x64/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/ios-arm64/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/ios-arm64-simulator/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/ios-x64-simulator/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/linux-arm64/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/linux-x64/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/win32-arm64/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/win32-x64/bare-buffer.bare +0 -0
- package/node_modules/bare-url/CMakeLists.txt +5 -5
- package/node_modules/bare-url/package.json +1 -1
- package/node_modules/bare-url/prebuilds/android-arm/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-ia32/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/darwin-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/darwin-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-arm64-simulator/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-x64-simulator/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/linux-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/linux-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/win32-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/win32-x64/bare-url.bare +0 -0
- package/node_modules/ini/package.json +5 -5
- package/node_modules/io.appium.settings/CHANGELOG.md +7 -0
- package/node_modules/io.appium.settings/apks/settings_apk-debug.apk +0 -0
- package/node_modules/io.appium.settings/package.json +3 -3
- package/package.json +4 -4
- package/scripts/check-shaded-packages.mjs +106 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type {LogEntry} from 'appium-adb';
|
|
2
|
+
|
|
3
|
+
import {toLogRecord} from '../../utils.js';
|
|
4
|
+
|
|
5
|
+
const DEFAULT_FORMAT = 'threadtime';
|
|
6
|
+
// Same list as in appium-adb; an unknown format falls back to the default there
|
|
7
|
+
const KNOWN_FORMATS = ['brief', 'process', 'tag', 'thread', 'raw', 'time', 'threadtime', 'long'];
|
|
8
|
+
const TIME = String.raw`\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3}`;
|
|
9
|
+
// Capture group 1 is the priority letter. `raw` and `long` carry no per-line priority.
|
|
10
|
+
// `brief` and `tag` match only the leading `X/`, as logcat truncates long tags and drops the suffix.
|
|
11
|
+
const PRIORITY_PATTERNS: Readonly<Record<string, RegExp>> = {
|
|
12
|
+
brief: /^([VDIWEF])\//,
|
|
13
|
+
process: /^([VDIWEF])\(\s*\d+\)/,
|
|
14
|
+
tag: /^([VDIWEF])\//,
|
|
15
|
+
thread: /^([VDIWEF])\(\s*\d+:\s*\d+\)/,
|
|
16
|
+
time: new RegExp(String.raw`^${TIME}\s+([VDIWEF])/`),
|
|
17
|
+
threadtime: new RegExp(String.raw`^${TIME}\s+\d+\s+\d+\s+([VDIWEF])\s`),
|
|
18
|
+
};
|
|
19
|
+
const LEVELS: Readonly<Record<string, string>> = {
|
|
20
|
+
V: 'DEBUG',
|
|
21
|
+
D: 'DEBUG',
|
|
22
|
+
I: 'INFO',
|
|
23
|
+
W: 'WARN',
|
|
24
|
+
E: 'ERROR',
|
|
25
|
+
F: 'ERROR',
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Builds a transformer that sets the entry level from the logcat priority of the line.
|
|
30
|
+
* Lines without a recognizable priority are returned unchanged.
|
|
31
|
+
*
|
|
32
|
+
* @param format - The `logcat -v` format the capture was started with
|
|
33
|
+
*/
|
|
34
|
+
export function makeLogcatLevelTransformer(format?: string): (entry: LogEntry) => LogEntry {
|
|
35
|
+
const pattern = PRIORITY_PATTERNS[format && KNOWN_FORMATS.includes(format) ? format : DEFAULT_FORMAT];
|
|
36
|
+
return (entry) => {
|
|
37
|
+
const priority = pattern?.exec(entry.message)?.[1];
|
|
38
|
+
return priority ? toLogRecord(entry.timestamp, entry.message, LEVELS[priority]) : entry;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -8,6 +8,7 @@ import * as semver from 'semver';
|
|
|
8
8
|
import type {AndroidDriverConstraints} from '../../constraints.js';
|
|
9
9
|
import type {AndroidDriver} from '../../driver.js';
|
|
10
10
|
import {GET_SERVER_LOGS_FEATURE, nativeLogEntryToSeleniumEntry} from '../../utils.js';
|
|
11
|
+
import {makeLogcatLevelTransformer} from '../bidi/logcat-level.js';
|
|
11
12
|
import {setMockLocationApp} from '../geolocation.js';
|
|
12
13
|
import {hideKeyboardCompletely, initUnicodeKeyboard} from '../keyboard.js';
|
|
13
14
|
import {adjustTimeZone} from '../time.js';
|
|
@@ -279,6 +280,7 @@ export async function initDevice(this: AndroidDriver): Promise<void> {
|
|
|
279
280
|
if (this.adb.logcat) {
|
|
280
281
|
this.assignBiDiLogListener(this.adb.logcat, {
|
|
281
282
|
type: 'syslog',
|
|
283
|
+
entryTransformer: makeLogcatLevelTransformer(logcatFormat),
|
|
282
284
|
});
|
|
283
285
|
}
|
|
284
286
|
};
|
|
@@ -10,7 +10,8 @@ import {WebSocket, WebSocketServer} from 'ws';
|
|
|
10
10
|
import type {AndroidDriverConstraints} from '../constraints.js';
|
|
11
11
|
import type {AndroidDriver} from '../driver.js';
|
|
12
12
|
import {GET_SERVER_LOGS_FEATURE, toLogRecord, nativeLogEntryToSeleniumEntry, type LogEntry} from '../utils.js';
|
|
13
|
-
import {BIDI_EVENT_NAME} from './bidi/constants.js';
|
|
13
|
+
import {BIDI_EVENT_NAME, LOG_ENTRY_ADDED_EVENT} from './bidi/constants.js';
|
|
14
|
+
import {hasSubscribers} from './bidi/helpers.js';
|
|
14
15
|
import {makeLogEntryAddedEvent} from './bidi/models.js';
|
|
15
16
|
import {NATIVE_WIN} from './context/helpers.js';
|
|
16
17
|
|
|
@@ -157,6 +158,9 @@ export function assignBiDiLogListener<EE extends EventEmitter>(
|
|
|
157
158
|
): [EE, LogListener] {
|
|
158
159
|
const {type, context = NATIVE_WIN, srcEventName = 'output', entryTransformer} = properties;
|
|
159
160
|
const listener: LogListener = (logEntry: LogEntry) => {
|
|
161
|
+
if (!hasSubscribers(this, LOG_ENTRY_ADDED_EVENT, context)) {
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
160
164
|
const finalEntry = entryTransformer ? entryTransformer(logEntry) : logEntry;
|
|
161
165
|
this.eventEmitter.emit(BIDI_EVENT_NAME, makeLogEntryAddedEvent(finalEntry, context, type));
|
|
162
166
|
};
|
|
@@ -3,14 +3,9 @@ import {errors} from 'appium/driver.js';
|
|
|
3
3
|
import type {AndroidDriverConstraints} from '../../constraints.js';
|
|
4
4
|
import type {AndroidDriver} from '../../driver.js';
|
|
5
5
|
import {BIDI_EVENT_NAME} from '../bidi/constants.js';
|
|
6
|
+
import {hasSubscribers} from '../bidi/helpers.js';
|
|
6
7
|
import {getCapabilities, queryVideoEncoders} from './capabilities.js';
|
|
7
|
-
import {
|
|
8
|
-
DEFAULT_BATCH_MS,
|
|
9
|
-
DEFAULT_IDLE_HEARTBEAT_MS,
|
|
10
|
-
MEDIA_STREAM_MODULE,
|
|
11
|
-
MEDIA_UNITS_EVENT,
|
|
12
|
-
MIN_API_LEVEL,
|
|
13
|
-
} from './constants.js';
|
|
8
|
+
import {DEFAULT_BATCH_MS, DEFAULT_IDLE_HEARTBEAT_MS, MEDIA_UNITS_EVENT, MIN_API_LEVEL} from './constants.js';
|
|
14
9
|
import {MediaStream} from './stream.js';
|
|
15
10
|
import type {MediaKind, MediaStreamCapabilities, MediaStreamInfo, StartMediaStreamOpts} from './types.js';
|
|
16
11
|
|
|
@@ -152,10 +147,6 @@ export async function stopAllMediaStreams(this: AndroidDriver): Promise<void> {
|
|
|
152
147
|
await Promise.all([...(this._mediaStreams?.values() ?? [])].map((s) => s.stop('session ended')));
|
|
153
148
|
}
|
|
154
149
|
|
|
155
|
-
function hasSubscribers(driver: AndroidDriver, method: string): boolean {
|
|
156
|
-
return [method, MEDIA_STREAM_MODULE].some((e) => (driver.bidiEventSubs[e]?.length ?? 0) > 0);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
150
|
function validateOpts({
|
|
160
151
|
kind,
|
|
161
152
|
codec,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-android-driver",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.3.0",
|
|
4
4
|
"description": "Android UiAutomator and Chrome support for Appium",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"android",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@appium/support": "^8.0.0-beta.7",
|
|
53
|
-
"appium-adb": "^17.0.
|
|
54
|
-
"appium-chromedriver": "^10.0.
|
|
53
|
+
"appium-adb": "^17.0.4",
|
|
54
|
+
"appium-chromedriver": "^10.0.6",
|
|
55
55
|
"asyncbox": "^7.0.0",
|
|
56
56
|
"axios": "^1.18.0",
|
|
57
57
|
"dayjs": "^1.11.21",
|
|
58
|
-
"io.appium.settings": "^9.2.
|
|
58
|
+
"io.appium.settings": "^9.2.1",
|
|
59
59
|
"lru-cache": "^11.1.0",
|
|
60
60
|
"semver": "^7.0.0",
|
|
61
61
|
"teen_process": "^5.0.0",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"node": "^22.22.2 || ^24.15.0 || >=26.0.0",
|
|
78
78
|
"npm": ">=10"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "ec845f1bed02fa571a15ce69abee6bb2770ff7cd"
|
|
81
81
|
}
|
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [10.0.6](https://github.com/appium/appium-android/compare/appium-chromedriver@10.0.5...appium-chromedriver@10.0.6) (2026-11-18)
|
|
7
|
+
|
|
8
|
+
### Miscellaneous Chores
|
|
9
|
+
|
|
10
|
+
* **chromedriver:** ChromeDriver Bump to v158.0.8127.36 ([#128](https://github.com/appium/appium-android/issues/128)) ([53ba1ca](https://github.com/appium/appium-android/commit/53ba1ca2583b6fd24b5fc06f50d4e8dda49fa418))
|
|
11
|
+
|
|
12
|
+
|
|
6
13
|
## [10.0.5](https://github.com/appium/appium-android/compare/appium-chromedriver@10.0.4...appium-chromedriver@10.0.5) (2026-11-14)
|
|
7
14
|
|
|
8
15
|
### Miscellaneous Chores
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-chromedriver",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.6",
|
|
4
4
|
"description": "Node.js wrapper around chromedriver.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"android",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"node": "^22.22.2 || ^24.15.0 || >=26.0.0",
|
|
68
68
|
"npm": ">=10"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "dfabcd3b22333d97256953f4beb749911f891339"
|
|
71
71
|
}
|
|
@@ -5,9 +5,9 @@ find_package(cmake-fetch REQUIRED PATHS node_modules/cmake-fetch)
|
|
|
5
5
|
|
|
6
6
|
project(bare_buffer C)
|
|
7
7
|
|
|
8
|
-
fetch_package("github:holepunchto/libutf#
|
|
9
|
-
fetch_package("github:holepunchto/libbase64#
|
|
10
|
-
fetch_package("github:holepunchto/libhex#
|
|
8
|
+
fetch_package("github:holepunchto/libutf#b22ffb0")
|
|
9
|
+
fetch_package("github:holepunchto/libbase64#0941b4b")
|
|
10
|
+
fetch_package("github:holepunchto/libhex#7c3e8b1")
|
|
11
11
|
|
|
12
12
|
add_bare_module(bare_buffer)
|
|
13
13
|
|
|
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
|
|
@@ -5,11 +5,11 @@ find_package(cmake-fetch REQUIRED PATHS node_modules/cmake-fetch)
|
|
|
5
5
|
|
|
6
6
|
project(bare_url C)
|
|
7
7
|
|
|
8
|
-
fetch_package("github:holepunchto/libutf#
|
|
9
|
-
fetch_package("github:holepunchto/libpunycode#
|
|
10
|
-
fetch_package("github:holepunchto/libnormalize#
|
|
11
|
-
fetch_package("github:holepunchto/libidna#
|
|
12
|
-
fetch_package("github:holepunchto/liburl#
|
|
8
|
+
fetch_package("github:holepunchto/libutf#b22ffb0")
|
|
9
|
+
fetch_package("github:holepunchto/libpunycode#e39f155")
|
|
10
|
+
fetch_package("github:holepunchto/libnormalize#dce9fc1")
|
|
11
|
+
fetch_package("github:holepunchto/libidna#5d240eb")
|
|
12
|
+
fetch_package("github:holepunchto/liburl#0bfdd4c")
|
|
13
13
|
|
|
14
14
|
add_bare_module(bare_url)
|
|
15
15
|
|
|
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
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "GitHub Inc.",
|
|
3
3
|
"name": "ini",
|
|
4
4
|
"description": "An ini encoder/decoder for node",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "7.0.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/npm/ini.git"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"template-oss-apply": "template-oss-apply --force"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@npmcli/eslint-config": "^
|
|
23
|
-
"@npmcli/template-oss": "
|
|
22
|
+
"@npmcli/eslint-config": "^6.0.0",
|
|
23
|
+
"@npmcli/template-oss": "5.0.0",
|
|
24
24
|
"tap": "^16.0.1"
|
|
25
25
|
},
|
|
26
26
|
"license": "ISC",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"lib/"
|
|
30
30
|
],
|
|
31
31
|
"engines": {
|
|
32
|
-
"node": "^
|
|
32
|
+
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
|
|
33
33
|
},
|
|
34
34
|
"templateOSS": {
|
|
35
35
|
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
36
|
-
"version": "
|
|
36
|
+
"version": "5.0.0",
|
|
37
37
|
"publish": "true"
|
|
38
38
|
},
|
|
39
39
|
"tap": {
|
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [9.2.1](https://github.com/appium/appium-android/compare/io.appium.settings@9.2.0...io.appium.settings@9.2.1) (2026-11-17)
|
|
7
|
+
|
|
8
|
+
### Miscellaneous Chores
|
|
9
|
+
|
|
10
|
+
* **app:** update dependency org.apache.commons:commons-lang3 to v3.22.0 ([#126](https://github.com/appium/appium-android/issues/126)) ([6ecf82a](https://github.com/appium/appium-android/commit/6ecf82a58477a686b36ffafd9e657b61c8238662))
|
|
11
|
+
|
|
12
|
+
|
|
6
13
|
## [9.2.0](https://github.com/appium/appium-android/compare/io.appium.settings@9.1.4...io.appium.settings@9.2.0) (2026-11-14)
|
|
7
14
|
|
|
8
15
|
### Features
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "io.appium.settings",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.1",
|
|
4
4
|
"description": "App for dealing with Android settings",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"android",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@appium/types": "^2.0.0-beta.6",
|
|
61
61
|
"@types/node": "^26.6.5",
|
|
62
62
|
"@types/sinon": "^22.0.2",
|
|
63
|
-
"appium-adb": "^17.0.
|
|
63
|
+
"appium-adb": "^17.0.4",
|
|
64
64
|
"sinon": "^22.0.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"node": "^22.22.2 || ^24.15.0 || >=26.0.0",
|
|
71
71
|
"npm": ">=10"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "d3c3bdc927cdf82b47f8ae8ff2516ed525a74b73"
|
|
74
74
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-espresso-driver",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.3.0",
|
|
4
4
|
"description": "Espresso integration for Appium",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"android",
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"./package.json": "./package.json"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"appium-adb": "17.0.
|
|
58
|
-
"appium-android-driver": "15.
|
|
57
|
+
"appium-adb": "17.0.4",
|
|
58
|
+
"appium-android-driver": "15.3.0",
|
|
59
59
|
"asyncbox": "7.0.0",
|
|
60
60
|
"axios": "1.21.1",
|
|
61
61
|
"commander": "15.1.0",
|
|
62
|
-
"io.appium.settings": "9.2.
|
|
62
|
+
"io.appium.settings": "9.2.1",
|
|
63
63
|
"semver": "7.8.6",
|
|
64
64
|
"teen_process": "5.0.1"
|
|
65
65
|
},
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Fails if the Espresso server test APK defines classes outside of the packages that are allowed to
|
|
4
|
+
* keep their names (see `RelocateClassesTask` usage in espresso-server/app/build.gradle.kts).
|
|
5
|
+
*/
|
|
6
|
+
import path from 'node:path';
|
|
7
|
+
|
|
8
|
+
import {logger} from 'appium/support.js';
|
|
9
|
+
import {Command} from 'commander';
|
|
10
|
+
import {exec} from 'teen_process';
|
|
11
|
+
|
|
12
|
+
const LOG = logger.getLogger('CheckShadedPackages');
|
|
13
|
+
|
|
14
|
+
const ALWAYS_ALLOWED = [
|
|
15
|
+
'io.appium',
|
|
16
|
+
'androidx.test.runner',
|
|
17
|
+
'androidx.test.core.app',
|
|
18
|
+
'androidx.test.espresso.idling',
|
|
19
|
+
// D8 desugaring stubs and the platform
|
|
20
|
+
'android',
|
|
21
|
+
'dalvik',
|
|
22
|
+
'j$',
|
|
23
|
+
'com.android.tools.r8',
|
|
24
|
+
];
|
|
25
|
+
// Exactly these packages, without subpackages: D8 synthetic classes live in the first two,
|
|
26
|
+
// `IdlingResource` (implemented by the AUT) in the last one
|
|
27
|
+
const EXACT_PACKAGES = ['androidx', 'com', 'androidx.test.espresso'];
|
|
28
|
+
// Shared with the AUT together with their reference closure
|
|
29
|
+
const COMPOSE_ALLOWED = ['androidx', 'kotlin', 'kotlinx', '_COROUTINE', 'org.jetbrains', 'org.intellij'];
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @returns {string}
|
|
33
|
+
*/
|
|
34
|
+
function getApkAnalyzerPath() {
|
|
35
|
+
const sdkRoot = process.env.ANDROID_HOME || process.env.ANDROID_SDK_ROOT;
|
|
36
|
+
return process.env.APKANALYZER || path.join(sdkRoot ?? '', 'cmdline-tools', 'latest', 'bin', 'apkanalyzer');
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @param {string} apk
|
|
41
|
+
* @returns {Promise<Map<string, number>>} Package name to the number of classes in it and its subpackages
|
|
42
|
+
*/
|
|
43
|
+
async function listDefinedPackages(apk) {
|
|
44
|
+
const {stdout} = await exec(getApkAnalyzerPath(), ['dex', 'packages', '--defined-only', apk], {
|
|
45
|
+
maxStdoutBufferSize: 1 << 28,
|
|
46
|
+
});
|
|
47
|
+
return new Map(
|
|
48
|
+
stdout
|
|
49
|
+
.split('\n')
|
|
50
|
+
.map((line) => line.split('\t'))
|
|
51
|
+
.filter(([kind, , , name]) => kind?.startsWith('P') && name && name !== '<TOTAL>')
|
|
52
|
+
.map(([, count, , name]) => [name, Number(count)]),
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @param {Map<string, number>} packages
|
|
58
|
+
* @param {readonly string[]} allowed
|
|
59
|
+
* @returns {{name: string, own: number}[]} Packages with classes defined right in them that are not allowed
|
|
60
|
+
*/
|
|
61
|
+
function findViolations(packages, allowed) {
|
|
62
|
+
/** @param {string} pkg */
|
|
63
|
+
const isAllowed = (pkg) => EXACT_PACKAGES.includes(pkg) || allowed.some((a) => pkg === a || pkg.startsWith(`${a}.`));
|
|
64
|
+
// The listing is a tree where every package carries the counts of its subpackages too
|
|
65
|
+
return [...packages]
|
|
66
|
+
.map(([name, count]) => {
|
|
67
|
+
const children = [...packages].filter(
|
|
68
|
+
([n]) => n.startsWith(`${name}.`) && !n.slice(name.length + 1).includes('.'),
|
|
69
|
+
);
|
|
70
|
+
return {name, own: count - children.reduce((sum, [, c]) => sum + c, 0)};
|
|
71
|
+
})
|
|
72
|
+
.filter(({name, own}) => own > 0 && !isAllowed(name));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @param {string} apk
|
|
77
|
+
* @param {{compose?: boolean}} options
|
|
78
|
+
* @returns {Promise<void>}
|
|
79
|
+
*/
|
|
80
|
+
async function checkShadedPackages(apk, options) {
|
|
81
|
+
const allowed = [...ALWAYS_ALLOWED, ...(options.compose ? COMPOSE_ALLOWED : [])];
|
|
82
|
+
const violations = findViolations(await listDefinedPackages(apk), allowed);
|
|
83
|
+
if (violations.length > 0) {
|
|
84
|
+
LOG.error(
|
|
85
|
+
`The APK defines classes outside of the allowed packages (${allowed.join(', ')}):\n` +
|
|
86
|
+
violations.map(({name, own}) => ` ${name} (${own})`).join('\n'),
|
|
87
|
+
);
|
|
88
|
+
process.exitCode = 1;
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
LOG.info('OK: all the packages defined by the APK are allowed');
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
async function main() {
|
|
95
|
+
const program = new Command();
|
|
96
|
+
program
|
|
97
|
+
.name('check-shaded-packages')
|
|
98
|
+
.description('Check that the Espresso server APK defines only the packages that are allowed to keep their names')
|
|
99
|
+
.argument('<apk>', 'Path to the Espresso server test APK')
|
|
100
|
+
.option('--compose', 'The APK is built with Compose support, so Compose and its dependencies are shared')
|
|
101
|
+
.action(checkShadedPackages);
|
|
102
|
+
|
|
103
|
+
await program.parseAsync(process.argv);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
await main();
|