Skip to content

feat: add app info schema and rules - #65

Open
AdityaKhatri wants to merge 2 commits into
developfrom
feat/app-info
Open

AdityaKhatri wants to merge 2 commits into
developfrom
feat/app-info

Conversation

@AdityaKhatri

@AdityaKhatri AdityaKhatri commented Nov 13, 2026 •

Copy link
Copy Markdown

Changes

  • definition/appInfo.yaml: FbAppInfo / FbAppInfoRelease for v2/appInfo/{platform} (mobile app update prompt)
  • Regenerated pyfirebase models
  • Rules for v2/appInfo: public read (the prompt also shows on the login screen), no client writes (written by the backend), .indexOn: ["versionCode"] on releases for the app's range query

App features

  • requiredFeatures on projects (FbProjectUpdateInput) and tutorials (FbBaseTutorial): features a client must support to open them
  • supportedFeatures on FbAppInfoRelease: overrides the features bundled in that app version
  • Both are lists of strings (AppFeatureEnum values from the backend), so unknown values never fail validation

Related

After merge

Deploy the rules (pnpm deploy-rules) before running the backend import, see the backend PR for the full order.

Comment on lines +11 to +13
versionCode:
docs: Sortable number of the version used for range queries. Eg. 3.0.10 -> 3000010
type: int

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.

Why do we need versionCode? To order and identify which version comes before another without linking?

Comment on lines +22 to +27
supportedFeatures:
docs: Features (AppFeatureEnum values) supported by this version. When set, it overrides the list bundled in the app.
optional: true
type:
type: list
elementType: string

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.

Is this the app override or is this the features supported by the backend.
We need both but I don't see both of them being defined.

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