-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added null safety #65
Conversation
@shagun25 I have migrated the complete project, please review and merge this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, @Samdid thanks for submitting PR.
This PR needs a lot of changes.
- I can see a change on 2 files only, the rest files should adhere to null safety.
- can't see the pubspec.yaml changes for packages.
- unnecessary cli folder is added by mistake
Please resolve these changes, I am sure you will able to pull this off.
Let me know if you face any blocker.
@@ -0,0 +1,852 @@ | |||
# Generated by pub | |||
# See https://dart.dev/tools/pub/glossary#lockfile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this lock file from commit, but keep this in your local.
See Why: https://dart.dev/guides/libraries/private-files#pubspeclock
@@ -0,0 +1,9 @@ | |||
# Files and directories created by pub |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove cli folder, there is no need for this I guess.
@@ -0,0 +1,3 @@ | |||
## 1.0.0 | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove cli folder.
@@ -0,0 +1,5 @@ | |||
A sample command-line application with an entrypoint in `bin/`, library code | |||
in `lib/`, and example unit test in `test/`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove cli folder.
@@ -0,0 +1,14 @@ | |||
# Defines a default set of lint rules enforced for | |||
# projects at Google. For details and rationale, | |||
# see https://github.com/dart-lang/pedantic#enabled-lints. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove cli folder.
@@ -0,0 +1,3 @@ | |||
int calculate() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove cli folder.
@@ -0,0 +1,14 @@ | |||
name: my_cli | |||
description: A sample command-line application. | |||
# version: 1.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove cli folder.
@@ -0,0 +1,334 @@ | |||
# Generated by pub |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove cli folder.
@@ -0,0 +1,8 @@ | |||
import 'package:my_cli/my_cli.dart'; | |||
import 'package:test/test.dart'; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove cli folder.
@@ -0,0 +1,992 @@ | |||
# Generated by pub | |||
# See https://dart.dev/tools/pub/glossary#lockfile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this lock file from commit, but keep this in your local.
See Why: https://dart.dev/guides/libraries/private-files#pubspeclock
@hiashutoshsingh I will resolve all the changes asap |
Hey @Samdid what's the update on the above ones, this is pending for a long time. Let's try to resolve all commented issues in 2-3 days, I am sure you will be able to pull this off. |
Okay |
any updates on the above will be closing this PR, wanted to give chance to others. |
Related Issue
Closes: #37
Describe the changes you've made
I have migrated the non-nullable project to nullable project by upgrading the SDK version and some packages. Some packages were non-compatible to null safety, then I have upgraded them by downloading the latest version of that package which is compatible to null safety. Also, changed some code manually to make the project nullable.
Type of change
What sort of change have you made:
Mention any unusual behaviour of your code (Write NA if not)
NA
Checklist:
Additional Info (optional)
None