-
-
Notifications
You must be signed in to change notification settings - Fork 94
Version management, platform validation and fallback colors #447
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
Closed
Closed
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
7bd10f2
feat: Introduce custom color parsing functionality in StacRegistry
lstonussi 9161ed8
feat: Implement version management in Stac with StacVersion class and…
felipecastrosales 94de42f
auto
felipecastrosales fa82e68
refactor: Update StacVersion class to use versionCode and improve ver…
felipecastrosales 2840f5a
wip
felipecastrosales e260f19
test: Add comprehensive tests for StacVersion class and its conditions
felipecastrosales 9dcfc91
wip
felipecastrosales 68ac416
refactor: change to buildNumber and add support to platforms
felipecastrosales 8462d5c
refactor: change to buildNumber (and delete freezed specifics)
felipecastrosales abb666c
test: adjust test and behaviours
felipecastrosales 18e6993
test: Platform tests
felipecastrosales 6abc595
fix: add missing import
felipecastrosales 8e380ed
refactor: appBuildNumber as parameter
felipecastrosales ee098d6
docs: added documentation
felipecastrosales 32c39c3
Merge pull request #1 from SuaMusica/feature/version
felipecastrosales 1c27e76
Merge branch 'dev' into feature/flutter35
atrope dc8a2b9
chore: standardize quotes in pubspec.yaml files and remove unused imp…
atrope 638014b
Merge pull request #2 from SuaMusica/feature/flutter35
lstonussi 8f84f83
feat: add platform validation for widget support in Stac class
felipecastrosales dc9e16f
Merge pull request #3 from SuaMusica/platform
felipecastrosales 6082cc5
Merge remote-tracking branch 'upstream/dev' into dev
felipecastrosales 80dac42
refactor: removed unnecessary imports and add parser import
felipecastrosales 2e8c130
chore: update
felipecastrosales 5ce86bb
chore: update stac_core dependency to use local path and add new layo…
lstonussi 414ac47
Merge remote-tracking branch 'upstream/dev' into devall
felipecastrosales 9c25956
autoreview
felipecastrosales 228e9b7
autoreview w
felipecastrosales a68ee81
Merge remote-tracking branch 'upstream/dev' into devall
felipecastrosales 2d6b52e
feat: add copyWith generic
felipecastrosales 3ff750a
feat(stac_service): add platform validation and normalization
felipecastrosales 65fe2df
refactor(stac_service, stac_version): streamline platform handling an…
felipecastrosales 0b4038b
test: update version satisfaction logic for null build number
felipecastrosales 05bbf70
chore: import
felipecastrosales 10fff99
build: version
felipecastrosales bd752b6
test: fix default value
felipecastrosales b86190c
platform and ci run
felipecastrosales File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
packages/stac/lib/src/parsers/foundation/layout/parsers.dart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| export 'stac_axis_parser.dart'; | ||
| export 'stac_box_fit_parser.dart'; | ||
| export 'stac_box_shape_parser.dart'; | ||
| export 'stac_clip_parser.dart'; | ||
| export 'stac_flex_fit_parser.dart'; | ||
| export 'stac_material_tap_target_size_parser.dart'; | ||
| export 'stac_stack_fit_parser.dart'; | ||
| export 'stac_vertical_direction_parser.dart'; | ||
| export 'stac_wrap_alignment_parser.dart'; | ||
| export 'stac_wrap_cross_alignment_parser.dart'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| import 'package:flutter/foundation.dart'; | ||
|
|
||
| /// Canonical platform identifiers supported in JSON "platform" field. | ||
| /// Incoming values are normalized (e.g. lowercased) and validated against this list. | ||
| const List<String> supportedPlatformStrings = [ | ||
| 'android', | ||
| 'ios', | ||
| 'linux', | ||
| 'macos', | ||
| 'windows', | ||
| 'web', | ||
| ]; | ||
|
|
||
| /// Returns the current platform as a canonical string (one of [supportedPlatformStrings]). | ||
| String currentPlatformString() { | ||
| if (kIsWeb) { | ||
| return 'web'; | ||
| } | ||
|
|
||
| return switch (defaultTargetPlatform) { | ||
| TargetPlatform.android => 'android', | ||
| TargetPlatform.iOS => 'ios', | ||
| TargetPlatform.linux => 'linux', | ||
| TargetPlatform.macOS => 'macos', | ||
| TargetPlatform.windows => 'windows', | ||
| _ => 'unknown', | ||
| }; | ||
felipecastrosales marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| export 'package:stac/src/utils/color_utils.dart'; | ||
| export 'package:stac/src/utils/version/stac_version.dart'; | ||
| export 'package:stac/src/utils/stac_platforms.dart'; |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.