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.
- package/CHANGELOG.md +16 -0
- package/build/lib/commands/orientation.d.ts +33 -0
- package/build/lib/commands/orientation.d.ts.map +1 -0
- package/build/lib/commands/orientation.js +34 -0
- package/build/lib/commands/orientation.js.map +1 -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/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +13 -0
- package/build/lib/driver.js.map +1 -1
- package/build/lib/execute-method-map.d.ts +4 -0
- package/build/lib/execute-method-map.d.ts.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/orientation.ts +49 -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/lib/driver.ts +14 -0
- 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 +74 -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/find.js +2 -2
- package/node_modules/appium-android-driver/build/lib/commands/find.js.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/log.d.ts +4 -0
- 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 +7 -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/constants.d.ts +3 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.js +4 -0
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.js.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.d.ts +10 -4
- 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 +38 -20
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.js.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.d.ts +34 -2
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.js +89 -43
- package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.js.map +1 -1
- package/node_modules/appium-android-driver/build/lib/driver.d.ts +5 -0
- package/node_modules/appium-android-driver/build/lib/driver.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/driver.js +1 -0
- package/node_modules/appium-android-driver/build/lib/driver.js.map +1 -1
- package/node_modules/appium-android-driver/build/lib/execute-method-map.d.ts +4 -0
- package/node_modules/appium-android-driver/build/lib/execute-method-map.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/execute-method-map.js +5 -0
- package/node_modules/appium-android-driver/build/lib/execute-method-map.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/find.ts +2 -2
- package/node_modules/appium-android-driver/lib/commands/log.ts +9 -1
- package/node_modules/appium-android-driver/lib/commands/media-stream/constants.ts +4 -0
- package/node_modules/appium-android-driver/lib/commands/media-stream/exports.ts +46 -21
- package/node_modules/appium-android-driver/lib/commands/media-stream/stream.ts +90 -43
- package/node_modules/appium-android-driver/lib/driver.ts +1 -0
- package/node_modules/appium-android-driver/lib/execute-method-map.ts +6 -0
- package/node_modules/appium-android-driver/package.json +6 -6
- 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/asyncbox/README.md +7 -3
- package/node_modules/asyncbox/build/lib/shared/errors.d.ts +18 -2
- package/node_modules/asyncbox/build/lib/shared/errors.d.ts.map +1 -1
- package/node_modules/asyncbox/build/lib/shared/errors.js +24 -8
- package/node_modules/asyncbox/build/lib/shared/errors.js.map +1 -1
- package/node_modules/asyncbox/lib/shared/errors.ts +34 -8
- package/node_modules/asyncbox/package.json +1 -1
- 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-fs/package.json +2 -2
- package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.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 +21 -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/node_modules/plist/dist/parse-binary.d.ts.map +1 -1
- package/node_modules/plist/dist/parse-binary.js +37 -9
- package/node_modules/plist/dist/parse-binary.js.map +1 -1
- package/node_modules/plist/package.json +1 -1
- package/package.json +5 -5
- package/scripts/check-shaded-packages.mjs +106 -0
- package/scripts/lib/dependency-versions/apk-meta-inf.mjs +0 -13
- package/scripts/lib/dependency-versions/comparison.mjs +17 -47
- package/scripts/lib/dependency-versions/gradle-scan.mjs +77 -87
- package/scripts/lib/dependency-versions/index.mjs +1 -1
- package/scripts/lib/dependency-versions/report.mjs +4 -4
- package/scripts/lib/dependency-versions/tracked-modules.mjs +2 -42
- package/scripts/lib/dependency-versions/types.mjs +2 -1
- package/scripts/lib/dependency-versions/version-utils.mjs +124 -2
- package/scripts/lib/diagnose/app-input.mjs +4 -1
- package/scripts/lib/diagnose/checks/compile-sdk.mjs +6 -2
- package/scripts/lib/diagnose/checks/dependency.mjs +1 -1
- package/scripts/lib/diagnose/checks/index.mjs +0 -3
- package/scripts/lib/diagnose/checks/obfuscation.mjs +1 -1
- package/scripts/lib/diagnose/diagnosis.mjs +2 -7
- package/scripts/lib/diagnose/report.mjs +2 -2
- package/scripts/lib/diagnose/checks/androidx.mjs +0 -40
- package/scripts/lib/diagnose/checks/lifecycle-extensions.mjs +0 -23
- 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 (
|
|
24
|
+
if (/^\[versions\]\s*(#.*)?$/.test(trimmed)) {
|
|
25
25
|
inVersionsSection = true;
|
|
26
26
|
continue;
|
|
27
27
|
}
|
|
28
|
-
if (trimmed.startsWith('[')
|
|
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
|
-
|
|
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
|
|
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 &&
|
|
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:
|
|
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.
|
|
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('
|
|
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
|
-
}
|