Skip to content

refactor: remove animation, physics and physics2d dependencies #1812

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

Merged
merged 2 commits into from
Mar 18, 2022

Conversation

0xFA11
Copy link
Contributor

@0xFA11 0xFA11 commented Mar 17, 2022

  • removing com.unity.modules.animation, com.unity.modules.physics and com.unity.modules.physics2d hard dependencies from the SDK
  • defining macros based on package presence and #if <macro> guarding NetworkAnimator, NetworkRigidbody, NetworkRigidbody2D and related tests and editor code
  • testproject has all these 3 packages in its manifest.json file and is running NetworkAnimatorTests, NetworkRigidbodyTests and NetworkRigidbody2DTests
  • minimalproject doesn't have any of these 3 packages and validating the absence of these packages not causing any dependency issues
  • note: we're thinking of modifying some yamato jobs with unity-config CLI to progressively add/remove packages during testproject tests (run testproject & sdk tests with and without these packages) — but that'll be addressed later

FYI @JesseOlmer @lpmaurice @mattwalsh-unity

MTT-2702

@0xFA11 0xFA11 requested a review from ashwinimurt March 17, 2022 23:50
Comment on lines -8 to -10
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.physics": "1.0.0",
"com.unity.modules.physics2d": "1.0.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this feels so good, isn't it? :)

@0xFA11 0xFA11 enabled auto-merge (squash) March 18, 2022 00:04
@0xFA11 0xFA11 merged commit 6e69c6e into develop Mar 18, 2022
@0xFA11 0xFA11 deleted the refactor/pkg-dep-defs branch March 18, 2022 09:49
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.

2 participants