[eas-json] Allow a string of 1-50 characters as a track name #3031
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why
Previously, the Android submit track in eas.json only allowed a fixed set of values ("beta", "alpha", "internal", "production"). However, Google Play supports custom track names, and users may need to specify arbitrary track names for advanced workflows. This PR enables more flexible usage by allowing any string of 1 8000 -50 characters as a track name.
Track name follows the rule defined by Google textfield. See the image below.
How
packages/eas-json/src/submit/schema.ts
to allow any string of 1-50 characters for the Android submit track property.packages/eas-json/schema/eas.schema.json
to addminLength
andmaxLength
for the track property, ensuring IDE and documentation support matches runtime validation.packages/eas-json/src/__tests__/submitProfiles-test.ts
to cover:Test Plan
my-custom-track
) is accepted.internal
.If possible, please also provide terminal output and/or screenshots demonstrating your test/reproduction.
