Skip to content

Fix Internal, Functions and FirebaseAI asmdefs to match supported platforms#1469

Open
EllieTellie wants to merge 1 commit into
firebase:mainfrom
EllieTellie:fix-asmdef-platforms
Open

Fix Internal, Functions and FirebaseAI asmdefs to match supported platforms#1469
EllieTellie wants to merge 1 commit into
firebase:mainfrom
EllieTellie:fix-asmdef-platforms

Conversation

@EllieTellie

Copy link
Copy Markdown

Description

Firebase won't build on unsupported platforms such as Windows Store or platforms that are not supported by Firebase.App.dll.
Recent asmdefs for Internal, Functions and FirebaseAI do not specify included platforms and compile on all platforms. They should include the same platforms that Firebase.App.dll supports because Firebase.App.dll/Firebase.Platform.dll is referenced as precompiledReferences inside the asmdef. This will trigger a compile error CS0246 as it cannot reference Firebase.App.


Testing

Reproduction Steps
Install Firebase 13.11.0 or newer. Prior versions not affected, introduced in #1439.

Build for Windows Store (UWP / WSAPlayer) and it will fail to compile when you make runtime builds. Note: it compiles in editor because Firebase.App.dll is included in Editor.

Once I made these changes to the package it compiled when building for Windows Store (UWP / WSAPlayer).


Type of Change

  • Bug fix. Add the issue # below if applicable.
  • New feature. A non-breaking change which adds functionality.
  • Other, such as a build process or documentation change.

…dll.meta platform settings

Firebase won't build on unsupported platforms otherwise.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the assembly definition files (.asmdef) for Firebase.App.Internal, Firebase.FirebaseAI, and Firebase.Functions to explicitly specify the supported target platforms in includePlatforms rather than leaving it empty. There are no review comments, and I have no feedback to provide.

@AustinBenoit AustinBenoit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you. LGTM.

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