Commit 1e67475
authored
feat!: 2.0.0-beta1 Modularization, Melos Support & Localization Refactor (#167)
* Refactor JSON serialization and deserialization across models
- Updated `TextAnswerFormat` to handle nullable `maxLines` and set default `answerType`.
- Enhanced `TextChoice` with equality operator and hash code implementation.
- Simplified JSON serialization for `TextChoice`, `AudioContent`, `ImageContent`, `LottieContent`, `MarkdownContent`, `SectionContent`, `TextContent`, `VideoContent`, and `TimeAnswerFormat`.
- Improved `StepResult` to include explicit JSON serialization and updated equality checks.
- Adjusted `SurveyResult` to include list equality checks.
- Updated `CustomDateTimeConverter` to preserve timezone during serialization.
- Changed `pubspec.yaml` to update Dart SDK and dependencies.
- Modified test cases to use UTC for `startTime` and `endTime` for consistency.
* feat: add monorepo
* refactor: modularize audio and video features into separate packages and update dependencies.
* feat: Introduce `survey_kit_lottie` package to add Lottie animation support and update content model.
* feat: Migrate to Flutter's `gen_l10n` for internationalization, replacing custom JSON-based localization.
* feat: Add CI workflow, localization generation updates, and video/audio plugin improvements
* feat: Add GitHub Actions workflow for publishing to pub.dev and extend CI triggers to include the develop branch.
* refactor: simplify Melos script definitions by replacing `run` and `exec.concurrency` with direct `exec` commands.
* chore: Resolve root dependencies in CI and remove explicit Melos SDK path configuration.
* ci: Add debug environment step to CI workflow and remove extraneous blank lines from melos.yaml.
* feat: Update CI analyze and test commands, ignore `invalid_dependency` linter rule, and specify `intl` dependency version.
* feat: Decouple answer formats and content models from their views by removing `createView`/`createWidget` methods and introducing a new registry pattern with `SurveyKitPlugin` for external integrations.
* docs: remove example code blocks from SurveyController documentation.
* feat: Refactor task and navigation logic with `SurveyFlow` and `SurveyDefinition`, deprecate `NavigableTask`, and introduce Lottie, video, and audio packages.
* refactor: Make `MultipleChoiceAnswerFormat` and `SingleChoiceAnswerFormat` generic with `TextChoice` and update their usage.
* feat: Introduce a `center` property for `ContentWidget` vertical alignment, update package dependencies, remove `path_provider_foundation` from the macOS example, and clarify `initalStep` migration notes.
* feat: introduce `NavigationTarget` for conditional navigation rules, remove `FlowTask`, and fix `QuestionAnswer` validation initialization.
* feat: Allow steps without answer formats to be valid by default and make the example's next button reactive.
* refactor!: Rename answer format properties, update SurveyController callbacks with a `proceed` parameter, and simplify `StepView` button logic.
* feat: update survey welcome and completion texts and apply extensive custom theming to the app and SurveyKit UI.
* feat: Update example app theme to a vibrant cyan color scheme, enhance `SelectionListTile` styling, and increase `SurveyAppBar` height.
* refactor: Add AnswerMixin import to MultipleChoiceAutoCompleteAnswerView.
* chore: Update package dependencies and apply consistent code formatting across various files.1 parent 6b1a807 commit 1e67475
303 files changed
Lines changed: 7985 additions & 4193 deletions
File tree
- .github/workflows
- android
- src/main
- kotlin/com/quickbirdstudios/survey_kit
- example
- android
- app
- src/main/kotlin/com/quickbirdstudios/surveykit_example
- gradle/wrapper
- assets
- ios
- Flutter
- ephemeral
- Runner.xcodeproj
- Runner
- lib
- linux
- flutter
- runner
- macos
- Flutter
- ephemeral
- Runner.xcodeproj
- Runner.xcworkspace
- RunnerTests
- Runner
- Assets.xcassets/AppIcon.appiconset
- Base.lproj
- Configs
- windows
- flutter
- runner
- resources
- i18n
- ios
- Assets
- Classes
- lib/src
- controller
- model
- answer
- content
- task
- util
- view/widget
- answer
- content
- widget
- packages
- survey_kit_audio
- lib
- src
- survey_kit_lottie
- lib
- src
- model/content
- view/widget/content
- survey_kit_video
- lib
- src
- survey_kit
- l10n
- lib
- gen
- src
- configuration
- controller
- model
- answer
- content
- predifined
- result
- presenter
- task
- util
- view
- widget
- answer
- content
- decoration
- widget
- platform_view_registry
- test
- src
- controller
- result/question
- survey
- task
- test/src/result/question
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
| 44 | + | |
37 | 45 | | |
38 | 46 | | |
39 | 47 | | |
| |||
45 | 53 | | |
46 | 54 | | |
47 | 55 | | |
48 | | - | |
| 56 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
1 | 80 | | |
2 | 81 | | |
3 | 82 | | |
| |||
0 commit comments