Skip to content

Commit

Permalink
CodelesslySDK v3.0.3
Browse files Browse the repository at this point in the history
- Revert Hive CE dependency.
  • Loading branch information
rayliverified committed Aug 5, 2024
1 parent 9f9f931 commit 714571c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 3.0.3
- Revert Hive CE dependency.

## 3.0.2
- Remove direct `package:web` dependency.

Expand Down
2 changes: 1 addition & 1 deletion lib/src/cache/codelessly_cache_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'dart:async';
import 'dart:convert';

import 'package:flutter/foundation.dart';
import 'package:hive_ce_flutter/hive_flutter.dart';
import 'package:hive_flutter/hive_flutter.dart';

import '../../codelessly_sdk.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/src/data/data_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'dart:async';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:collection/collection.dart';
import 'package:flutter/services.dart';
import 'package:hive_ce_flutter/hive_flutter.dart';
import 'package:hive_flutter/hive_flutter.dart';

import '../../codelessly_sdk.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/src/data/local_database.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:async';

import 'package:flutter/cupertino.dart';
import 'package:hive_ce_flutter/hive_flutter.dart';
import 'package:hive_flutter/hive_flutter.dart';

import '../logging/codelessly_logger.dart';

Expand Down
5 changes: 3 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: codelessly_sdk
description: Codelessly CloudUIβ„’ - Server-driven UI for Flutter. Supercharge your Flutter apps with dynamic UI and real-time updates. Build and publish UI without code!
version: 3.0.2
version: 3.0.3
homepage: https://codelessly.com/
repository: https://github.com/Codelessly/CodelesslySDK

Expand Down Expand Up @@ -53,7 +53,8 @@ dependencies:
path_provider: ^2.1.4

# Storage and Caching
hive_ce_flutter: ^2.0.0

This comment has been minimized.

Copy link
@Rexios80

Rexios80 Aug 6, 2024

Hello! I'm the maintainer of hive_ce. May I ask why you reverted this change? Is there some issue with hive_ce I need to fix?

This comment has been minimized.

Copy link
@rayliverified

rayliverified Aug 6, 2024

Author Contributor

Oh wow, thanks for reaching out.

meta is currently pinned by Flutter to 1.12

The latest hive_ce version uses 1.14 and contains the fix for duplicate Type adapters.

This comment has been minimized.

Copy link
@rayliverified

rayliverified Aug 6, 2024

Author Contributor

This library needs to work as it's used in prod so it's been reverted for the time being.

I planned on taking a look tomorrow and seeing what can be done.

Can meta and cryptography be reverted to the versions used by the Flutter SDK?

This comment has been minimized.

Copy link
@Rexios80

Rexios80 Aug 6, 2024

Probably. I'm surprised my CI passed if meta doesn't resolve on Flutter stable.

This comment has been minimized.

Copy link
@Rexios80

Rexios80 Aug 6, 2024

Tracking here: IO-Design-Team/hive_ce#15

This comment has been minimized.

Copy link
@Rexios80

Rexios80 Aug 6, 2024

This should be fixed with hive_ce 2.4.3. Please let me know if you have any other issues!

This comment has been minimized.

Copy link
@rayliverified

rayliverified Aug 6, 2024

Author Contributor

Thank you!

Can you also set a range for web as Firebase is stuck on v0.5.1?

Because firebase_auth_web 5.12.5 depends on web ^0.5.1 and no versions of firebase_auth_web match >5.12.5 <6.0.0, firebase_auth_web ^5.12.5 requires web ^0.5.1.
And because hive_ce >=2.4.1 depends on web ^1.0.0, hive_ce >=2.4.1 is incompatible with firebase_auth_web ^5.12.5.

web: ">=0.5.1 <2.0.0"

This comment has been minimized.

Copy link
@rayliverified

rayliverified Aug 6, 2024

Author Contributor

I raised this as an issue to Kevin Moo, Flutter PM, and he mentioned that they are taking a look this week. However, it'll probably take some time to get it updated.

This comment has been minimized.

Copy link
@Rexios80

Rexios80 Aug 6, 2024

Can you also set a range for web as Firebase is stuck on v0.5.1?

Done in 2.4.4

This comment has been minimized.

Copy link
@rayliverified

rayliverified Sep 14, 2024

Author Contributor

Thank you for the great work @Rexios80, the latest hive_ce looks to be working perfectly in Web. No more duplicate type adapter issues or other type issues.

Your work will finally allow us to release Codelessly CloudUI for web WASM builds.

hive: ^2.2.3
hive_flutter: ^1.1.0

# JSON
json_path: ^0.7.4
Expand Down

0 comments on commit 714571c

Please sign in to comment.