Skip to content

Commit a5a2c29

Browse files
committed
chore(hydrated_bloc): v9.1.1 (#3842)
1 parent 9816c66 commit a5a2c29

File tree

6 files changed

+114
-8
lines changed

6 files changed

+114
-8
lines changed

packages/hydrated_bloc/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# 9.1.1
2+
3+
- docs: upgrade to Dart 3 ([#3809](https://github.com/felangel/bloc/pull/3809))
4+
- refactor: standardize analysis_options ([#3809](https://github.com/felangel/bloc/pull/3809))
5+
- refactor: fix `unawaited` sdk constraint ([#3809](https://github.com/felangel/bloc/pull/3809))
6+
- refactor: update sdk constraints and fix analysis warnings ([#3809](https://github.com/felangel/bloc/pull/3809))
7+
18
# 9.1.0
29

310
- chore: add screenshots to `pubspec.yaml` ([#3721](https://github.com/felangel/bloc/pull/3721))

packages/hydrated_bloc/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ class CounterCubit extends HydratedCubit<int> {
8787
### Create a HydratedBloc
8888

8989
```dart
90-
abstract class CounterEvent {}
91-
class CounterIncrementPressed extends CounterEvent {}
90+
sealed class CounterEvent {}
91+
final class CounterIncrementPressed extends CounterEvent {}
9292
9393
class CounterBloc extends HydratedBloc<CounterEvent, int> {
9494
CounterBloc() : super(0) {

packages/hydrated_bloc/example/lib/main.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ class CounterView extends StatelessWidget {
103103
}
104104
}
105105

106-
abstract class CounterEvent {}
106+
sealed class CounterEvent {}
107107

108-
class CounterIncrementPressed extends CounterEvent {}
108+
final class CounterIncrementPressed extends CounterEvent {}
109109

110-
class CounterDecrementPressed extends CounterEvent {}
110+
final class CounterDecrementPressed extends CounterEvent {}
111111

112112
class CounterBloc extends HydratedBloc<CounterEvent, int> {
113113
CounterBloc() : super(0) {

packages/hydrated_bloc/example/macos/Runner.xcodeproj/project.pbxproj

Lines changed: 97 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
2828
33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
2929
33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
30+
B9FE119706D53B35CABEE95C /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 630F19E8B3A338F2A3A93164 /* Pods_RunnerTests.framework */; };
31+
D8DA491A0D31691D7D7C54A5 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 109301B43A19DAC7CE9782DB /* Pods_Runner.framework */; };
3032
/* End PBXBuildFile section */
3133

3234
/* Begin PBXContainerItemProxy section */
@@ -60,11 +62,14 @@
6062
/* End PBXCopyFilesBuildPhase section */
6163

6264
/* Begin PBXFileReference section */
65+
0357A588007B31E791CDB653 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
66+
109301B43A19DAC7CE9782DB /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
67+
2299E286C60820DF5B376CAD /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
6368
331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
6469
331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
6570
333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = "<group>"; };
6671
335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = "<group>"; };
67-
33CC10ED2044A3C60003C045 /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "example.app"; sourceTree = BUILT_PRODUCTS_DIR; };
72+
33CC10ED2044A3C60003C045 /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example.app; sourceTree = BUILT_PRODUCTS_DIR; };
6873
33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
6974
33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = "<group>"; };
7075
33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
@@ -76,28 +81,49 @@
7681
33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = "<group>"; };
7782
33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = "<group>"; };
7883
33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = "<group>"; };
84+
56AA0C2B1C4D69A8F9FEB4E0 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
85+
630F19E8B3A338F2A3A93164 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
7986
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = "<group>"; };
87+
7F83A24386D102642F8C3058 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
8088
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = "<group>"; };
89+
D0C2BF4FAD98AEECF6E76122 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
90+
DB93802790D36A215FA63972 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
8191
/* End PBXFileReference section */
8292

8393
/* Begin PBXFrameworksBuildPhase section */
8494
331C80D2294CF70F00263BE5 /* Frameworks */ = {
8595
isa = PBXFrameworksBuildPhase;
8696
buildActionMask = 2147483647;
8797
files = (
98+
B9FE119706D53B35CABEE95C /* Pods_RunnerTests.framework in Frameworks */,
8899
);
89100
runOnlyForDeploymentPostprocessing = 0;
90101
};
91102
33CC10EA2044A3C60003C045 /* Frameworks */ = {
92103
isa = PBXFrameworksBuildPhase;
93104
buildActionMask = 2147483647;
94105
files = (
106+
D8DA491A0D31691D7D7C54A5 /* Pods_Runner.framework in Frameworks */,
95107
);
96108
runOnlyForDeploymentPostprocessing = 0;
97109
};
98110
/* End PBXFrameworksBuildPhase section */
99111

100112
/* Begin PBXGroup section */
113+
0AE1E64224DA5C552914727B /* Pods */ = {
114+
isa = PBXGroup;
115+
children = (
116+
56AA0C2B1C4D69A8F9FEB4E0 /* Pods-Runner.debug.xcconfig */,
117+
2299E286C60820DF5B376CAD /* Pods-Runner.release.xcconfig */,
118+
7F83A24386D102642F8C3058 /* Pods-Runner.profile.xcconfig */,
119+
0357A588007B31E791CDB653 /* Pods-RunnerTests.debug.xcconfig */,
120+
DB93802790D36A215FA63972 /* Pods-RunnerTests.release.xcconfig */,
121+
D0C2BF4FAD98AEECF6E76122 /* Pods-RunnerTests.profile.xcconfig */,
122+
);
123+
name = Pods;
124+
path = Pods;
125+
sourceTree = "<group>";
126+
};
101127
331C80D6294CF71000263BE5 /* RunnerTests */ = {
102128
isa = PBXGroup;
103129
children = (
@@ -125,6 +151,7 @@
125151
331C80D6294CF71000263BE5 /* RunnerTests */,
126152
33CC10EE2044A3C60003C045 /* Products */,
127153
D73912EC22F37F3D000D13A0 /* Frameworks */,
154+
0AE1E64224DA5C552914727B /* Pods */,
128155
);
129156
sourceTree = "<group>";
130157
};
@@ -175,6 +202,8 @@
175202
D73912EC22F37F3D000D13A0 /* Frameworks */ = {
176203
isa = PBXGroup;
177204
children = (
205+
109301B43A19DAC7CE9782DB /* Pods_Runner.framework */,
206+
630F19E8B3A338F2A3A93164 /* Pods_RunnerTests.framework */,
178207
);
179208
name = Frameworks;
180209
sourceTree = "<group>";
@@ -186,6 +215,7 @@
186215
isa = PBXNativeTarget;
187216
buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
188217
buildPhases = (
218+
DDA8C0CB11D3E2AE90883A1D /* [CP] Check Pods Manifest.lock */,
189219
331C80D1294CF70F00263BE5 /* Sources */,
190220
331C80D2294CF70F00263BE5 /* Frameworks */,
191221
331C80D3294CF70F00263BE5 /* Resources */,
@@ -204,11 +234,13 @@
204234
isa = PBXNativeTarget;
205235
buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;
206236
buildPhases = (
237+
5705FEE5A123FF7599719E1C /* [CP] Check Pods Manifest.lock */,
207238
33CC10E92044A3C60003C045 /* Sources */,
208239
33CC10EA2044A3C60003C045 /* Frameworks */,
209240
33CC10EB2044A3C60003C045 /* Resources */,
210241
33CC110E2044A8840003C045 /* Bundle Framework */,
211242
3399D490228B24CF009A79C7 /* ShellScript */,
243+
45D8FD61FA88636AE8398C51 /* [CP] Embed Pods Frameworks */,
212244
);
213245
buildRules = (
214246
);
@@ -328,6 +360,67 @@
328360
shellPath = /bin/sh;
329361
shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire";
330362
};
363+
45D8FD61FA88636AE8398C51 /* [CP] Embed Pods Frameworks */ = {
364+
isa = PBXShellScriptBuildPhase;
365+
buildActionMask = 2147483647;
366+
files = (
367+
);
368+
inputFileListPaths = (
369+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
370+
);
371+
name = "[CP] Embed Pods Frameworks";
372+
outputFileListPaths = (
373+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
374+
);
375+
runOnlyForDeploymentPostprocessing = 0;
376+
shellPath = /bin/sh;
377+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
378+
showEnvVarsInLog = 0;
379+
};
380+
5705FEE5A123FF7599719E1C /* [CP] Check Pods Manifest.lock */ = {
381+
isa = PBXShellScriptBuildPhase;
382+
buildActionMask = 2147483647;
383+
files = (
384+
);
385+
inputFileListPaths = (
386+
);
387+
inputPaths = (
388+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
389+
"${PODS_ROOT}/Manifest.lock",
390+
);
391+
name = "[CP] Check Pods Manifest.lock";
392+
outputFileListPaths = (
393+
);
394+
outputPaths = (
395+
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
396+
);
397+
runOnlyForDeploymentPostprocessing = 0;
398+
shellPath = /bin/sh;
399+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
400+
showEnvVarsInLog = 0;
401+
};
402+
DDA8C0CB11D3E2AE90883A1D /* [CP] Check Pods Manifest.lock */ = {
403+
isa = PBXShellScriptBuildPhase;
404+
buildActionMask = 2147483647;
405+
files = (
406+
);
407+
inputFileListPaths = (
408+
);
409+
inputPaths = (
410+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
411+
"${PODS_ROOT}/Manifest.lock",
412+
);
413+
name = "[CP] Check Pods Manifest.lock";
414+
outputFileListPaths = (
415+
);
416+
outputPaths = (
417+
"$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",
418+
);
419+
runOnlyForDeploymentPostprocessing = 0;
420+
shellPath = /bin/sh;
421+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
422+
showEnvVarsInLog = 0;
423+
};
331424
/* End PBXShellScriptBuildPhase section */
332425

333426
/* Begin PBXSourcesBuildPhase section */
@@ -379,6 +472,7 @@
379472
/* Begin XCBuildConfiguration section */
380473
331C80DB294CF71000263BE5 /* Debug */ = {
381474
isa = XCBuildConfiguration;
475+
baseConfigurationReference = 0357A588007B31E791CDB653 /* Pods-RunnerTests.debug.xcconfig */;
382476
buildSettings = {
383477
BUNDLE_LOADER = "$(TEST_HOST)";
384478
CURRENT_PROJECT_VERSION = 1;
@@ -393,6 +487,7 @@
393487
};
394488
331C80DC294CF71000263BE5 /* Release */ = {
395489
isa = XCBuildConfiguration;
490+
baseConfigurationReference = DB93802790D36A215FA63972 /* Pods-RunnerTests.release.xcconfig */;
396491
buildSettings = {
397492
BUNDLE_LOADER = "$(TEST_HOST)";
398493
CURRENT_PROJECT_VERSION = 1;
@@ -407,6 +502,7 @@
407502
};
408503
331C80DD294CF71000263BE5 /* Profile */ = {
409504
isa = XCBuildConfiguration;
505+
baseConfigurationReference = D0C2BF4FAD98AEECF6E76122 /* Pods-RunnerTests.profile.xcconfig */;
410506
buildSettings = {
411507
BUNDLE_LOADER = "$(TEST_HOST)";
412508
CURRENT_PROJECT_VERSION = 1;

packages/hydrated_bloc/example/macos/Runner.xcworkspace/contents.xcworkspacedata

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/hydrated_bloc/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: hydrated_bloc
22
description: An extension to the bloc state management library which automatically persists and restores bloc states.
3-
version: 9.1.0
3+
version: 9.1.1
44
repository: https://github.com/felangel/bloc/tree/master/packages/hydrated_bloc
55
issue_tracker: https://github.com/felangel/bloc/issues
66
homepage: https://bloclibrary.dev
77
documentation: https://bloclibrary.dev/#/gettingstarted
88

99
environment:
10-
sdk: ">=2.12.0 <3.0.0"
10+
sdk: ">=2.12.0 <4.0.0"
1111

1212
dependencies:
1313
bloc: ^8.1.1

0 commit comments

Comments
 (0)