Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PhiFry committed Sep 2, 2024
1 parent 0f93c3f commit 69f1577
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 1.1.0

Separated StoryblokClient to its own client.dart export file and all the model
exports into models.dart to fix dart:ui being imported when using the code
generator.

# 1.0.4

Added remaining properties on Story.
Expand Down
4 changes: 2 additions & 2 deletions code_generator/lib/src/fields/option_field.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:code_builder/code_builder.dart';
import 'package:flutter_storyblok/flutter_storyblok.dart';
import 'package:flutter_storyblok/models.dart';

import 'base_field.dart';
import '../utils/code_builder_extensions.dart';
Expand Down Expand Up @@ -34,7 +34,7 @@ base class OptionField extends BaseField {
OptionSource.self => referType(enumName),
OptionSource.internal_stories => referType(
"$StoryIdentifierUUID",
importUrl: 'package:flutter_storyblok/flutter_storyblok.dart',
importUrl: 'package:flutter_storyblok/models.dart',
nullable: !isRequired,
),
OptionSource.internal_languages => referType("$String", nullable: !isRequired), // TODO Language enum
Expand Down
4 changes: 4 additions & 0 deletions code_generator/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ dependencies:
dev_dependencies:
lints: ^4.0.0
test: ^1.25.0

dependency_overrides:
flutter_storyblok:
path: ../
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_storyblok
description: Integrate Storyblok with your Flutter app using this SDK and code generator.
version: 1.0.4
version: 1.1.0
homepage: https://www.alster.se/
repository: https://github.com/alsterverse/flutter_storyblok
issue_tracker: https://github.com/alsterverse/flutter_storyblok/issues
Expand Down

0 comments on commit 69f1577

Please sign in to comment.