Skip to content

refactor: remove native_assets_cli dependency and add hooks package#84

Open
M3BIONIX wants to merge 1 commit intobdero:masterfrom
M3BIONIX:@fix/depricated-native-cli
Open

refactor: remove native_assets_cli dependency and add hooks package#84
M3BIONIX wants to merge 1 commit intobdero:masterfrom
M3BIONIX:@fix/depricated-native-cli

Conversation

@M3BIONIX
Copy link

Updated the package to use hooks as it was depricated to use hooks which replaced native-assets

@M3BIONIX
Copy link
Author

@bdero Could you please review this ?

flutter_scene_importer:
path: ./importer
hooks: ^0.20.4
native_assets_cli: '>=0.13.0 <0.14.0'

Choose a reason for hiding this comment

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

probably remove this line


import 'package:logging/logging.dart';
import 'package:native_assets_cli/native_assets_cli.dart';
import 'package:hooks/hooks.dart';

Choose a reason for hiding this comment

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

similar change needed in flutter_app/hook/build.dart

Copy link
Author

Choose a reason for hiding this comment

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

Tried this, but as flutter_gpu_shaders still uses native assets inside the package, we get a type error for BuildInput and BuildOutput

Copy link
Author

Choose a reason for hiding this comment

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

Added a PR for the same bdero/flutter_gpu_shaders#11, once this gets merged will install the latest shaders and update it here

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.

2 participants

Comments