Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup mockk #13

Closed
wants to merge 1 commit into from
Closed

Setup mockk #13

wants to merge 1 commit into from

Conversation

marcantoinefortier
Copy link
Contributor

Fixes #1

@marcantoinefortier
Copy link
Contributor Author

mockk library still not supporting iOS targets :

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':shared:compileTestKotlinIosX64'.
> Could not resolve all files for configuration ':shared:iosX64TestCompileKlibraries'.
   > Could not resolve io.mockk:mockk:1.12.1.
     Required by:
         project :shared
      > No matching variant of io.mockk:mockk:1.12.1 was found. The consumer was configured to find a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native', attribute 'org.jetbrains.kotlin.native.target' with value 'ios_x64' but:
          - Variant '-api' capability io.mockk:mockk:1.12.1 declares an API of a library:
              - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
              - Other compatible attribute:
                  - Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_x64')
          - Variant '-runtime' capability io.mockk:mockk:1.12.1 declares a runtime of a library:
              - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
              - Other compatible attribute:
                  - Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_x64')
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 18s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setup mocking library for unit testing
1 participant