diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5057431c9..b60563577 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,7 +74,7 @@ jobs: instrumentation-tests: name: Instrumentation tests - runs-on: macOS-latest + runs-on: ubuntu-latest timeout-minutes: 30 steps: - uses: actions/checkout@v4 @@ -119,6 +119,7 @@ jobs: emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none disable-animations: true script: | + adb shell pm list packages -3 | cut -f 2 -d ":" | while read package; do if [ "$package" = "com.bumble.appyx.sample.navigation.compose.test" ] || [ "$package" = "com.bumble.appyx.core.test" ] || [ "$package" = "com.bumble.appyx.interop.ribs.test" ] || [ "$package" = "com.bumble.appyx.sample.navigtion.compose.test" ]; then adb uninstall $package; fi; done adb logcat > logcat.out & ./gradlew connectedCheck - name: Upload failed instrumentation artifacts @@ -139,4 +140,4 @@ jobs: with: python-version: '3.x' - run: pip install mkdocs-material - - run: mkdocs build --strict + - run: mkdocs build --strict \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 08d337d79..4d41e6480 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Pending changes +- [#705](https://github.com/bumble-tech/appyx/pull/705) – **Fixed**: ChildAware extension functions now allow Any type as a parameter + --- ## 1.5.0 diff --git a/libraries/core/src/main/kotlin/com/bumble/appyx/core/children/ChildAwareExt.kt b/libraries/core/src/main/kotlin/com/bumble/appyx/core/children/ChildAwareExt.kt index c2d6a6183..2213d8493 100644 --- a/libraries/core/src/main/kotlin/com/bumble/appyx/core/children/ChildAwareExt.kt +++ b/libraries/core/src/main/kotlin/com/bumble/appyx/core/children/ChildAwareExt.kt @@ -1,14 +1,12 @@ package com.bumble.appyx.core.children -import com.bumble.appyx.core.node.Node - -inline fun ChildAware<*>.whenChildAttached( +inline fun ChildAware<*>.whenChildAttached( noinline callback: ChildCallback, ) { whenChildAttached(T::class, callback) } -inline fun ChildAware<*>.whenChildrenAttached( +inline fun ChildAware<*>.whenChildrenAttached( noinline callback: ChildrenCallback, ) { whenChildrenAttached(T1::class, T2::class, callback)