# Use expectedBy in kotlin common platform module

**URL:** <https://discuss.kotlinlang.org/t/use-expectedby-in-kotlin-common-platform-module/14120>\
**Category:** Multiplatform\
**Created:** [September 2, 2019, 11:02am UTC](https://discuss.kotlinlang.org/t/use-expectedby-in-kotlin-common-platform-module/14120 "2019-09-02T11:02:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lhwdev](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/lhwdev/32/6273_2.png) [@lhwdev](https://discuss.kotlinlang.org/u/lhwdev)\
**Post date:** [September 2, 2019, 11:02am UTC](https://discuss.kotlinlang.org/t/use-expectedby-in-kotlin-common-platform-module/14120/1 "2019-09-02T11:02:08Z")

</div>

I used kotlin platform module, and expect/actual pattern to expose public APIs and not to reveal actual implementation codes. Also, there are some cases when I have to move some implementations(actual ~~) from a platform-specific module into a new common module, or in former cases, but the gradle sync refuses it: expectedBy(…) doesn’t exist.  
I want to use ‘expectedBy’ in a common platform module.

---

<div class="post-metadata">

**Author:** ![Alexey.Belkov](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/alexey.belkov/32/5215_2.png) [@Alexey.Belkov](https://discuss.kotlinlang.org/u/Alexey.Belkov)\
**Post date:** [November 7, 2019, 9:42am UTC](https://discuss.kotlinlang.org/t/use-expectedby-in-kotlin-common-platform-module/14120/2 "2019-11-07T09:42:26Z")

</div>

Hi. Looks like you’re describing a deprecated version of Kotlin MPP. In the new model `expectedBy` doesn’t exist. Please try the new model and let me know how it goes: [https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html](https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html)
