Skip to content

fix(hive_generator): Apply analyzer 5.0.0 or higher#1085

Merged
themisir merged 4 commits into
isar:masterfrom
jukqaz:master
Oct 13, 2022
Merged

fix(hive_generator): Apply analyzer 5.0.0 or higher#1085
themisir merged 4 commits into
isar:masterfrom
jukqaz:master

Conversation

@jukqaz

@jukqaz jukqaz commented Oct 4, 2022

Copy link
Copy Markdown
Contributor

Update analyzer 5.0.0 or higher

@jukqaz jukqaz changed the title fix: Apply analyzer 5.0.0 or higher fix(hive_generator): Apply analyzer 5.0.0 or higher Oct 4, 2022
@aykuttasil

Copy link
Copy Markdown

Please merge the PR!

@pro100andrey

Copy link
Copy Markdown

Hi @jukaz, I have issue with enum generation,

type 'EnumElementImpl' is not a subtype of type 'ClassElement' in type cast

code example:

import 'package:hive/hive.dart';

import 'hive_object_types.dart';

part 'project_icon.g.dart';

@HiveType(typeId: HiveObjectTypes.icon)
enum ProjectIcon {
  @HiveField(0)
  heard,

  @HiveField(1)
  mask,
}

thanks

@pro100andrey

Copy link
Copy Markdown

@jukqaz Sorry, until I was writing you have updated it )

@chuiizeet

Copy link
Copy Markdown

Currently i use this PR, please merge!

@themisir themisir left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread .github/workflows/test.yml Outdated
Comment thread hive_generator/pubspec.yaml
jukqaz and others added 2 commits October 13, 2022 16:56
@themisir themisir merged commit c594fd3 into isar:master Oct 13, 2022
@themisir

Copy link
Copy Markdown
Contributor

Thank you for your contribution, @jukqaz 😊 I'll do a few more checks and publish a new version to pub.dev within 24 hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants