Skip to content

[FR]: Avoid if it's possible hardcoded strings to reduce framework size #13295

@jesus-mg-ios

Description

@jesus-mg-ios

Description

I'm wondering if is possible reduce the comments in asserts and string hardcoded that could have no impact in clients sdks, because they are for development purposes.
Doing this the binary size could be reduced.

As examples, of what a binary nowadays contains because it uses firebase.

"Initial delay can't be greater than max delay");

StringFormat("Could not delete directory %s", path.ToUtf8String()));

ThrowInvalidArgument("Nested arrays are not supported");

HARD_ASSERT(_databaseID == databaseId, "Database %s cannot encode reference from %s",

"The front element in the queue should not be marked as \"removed\"");

API Proposal

No response

Firebase Product(s)

AB Testing, Analytics, App Check, App Distribution, Authentication, Crashlytics, Database, DynamicLinks, Firestore, Functions, In-App Messaging, Installations, ML Model Downloader, Messaging, Performance, Remote Config, Storage, Vertex AI

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions