Add no-op support for JVM / JS targets #101
wellingtoncosta
started this conversation in
Feature request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
CrashKiOS was built to provide symbolicated crash reports for Kotlin code on iOS, focused on mobile only projects. A couple of years from now, the community have asked support for JVM / JS support, but Crashlytics does support Android and iOS projects only, altho Bugsnag does have support for JVM and JS projects.
KMP projects that targets either JVM and/or JS will fail to compile when adding CrashKiOS dependency under
commonMain. A workaround for it is creating amobileMainusingapplyHierarchyTemplatethat groups both Android and iOS targets so you can add CrashKiOS dependency under it:That works, but that's not too practical, especially for people who have complex projects where CrashKiOS is used across different modules, or for those that want to keep the dependency declarations clean and consistent, working for all targets out of the box.
For this reason, we're going to add no-op support for JVM and JS. This means CrashKiOS can be declared directly under
commonMainwithout requiring a separate source set or hierarchy configuration. This should make it possible to have a single CrashKiOS dependency declaration incommonMainwithout affecting projects that don't target iOS / Android.All reactions