Skip to content
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

Android: Code cleanup #44

Closed
gujjwal00 opened this issue Feb 10, 2020 · 4 comments
Closed

Android: Code cleanup #44

gujjwal00 opened this issue Feb 10, 2020 · 4 comments

Comments

@gujjwal00
Copy link
Contributor

There are some issues (related to style & formatting) that I can fix. I would like your feedback/suggestions before I start.

Issues

  • Code formatting: Currently there are different styles of formatting (eg. tab vs space) used. We can follow a consistent style.
  • Missing license: Some files are missing license headers. We should fix it.

Why fix it

  • Increased readability
  • Reduced maintenance efforts
  • Easy on-boarding for new contributors
@bk138
Copy link
Owner

bk138 commented Feb 10, 2020

What changes do you propose?

@gujjwal00
Copy link
Contributor Author

Proposal:

Code style
We can use default style of Android Studio with following tweaks:

  • Maximum consecutive blank lines: 1
  • Blank lines before closing brace '}': 0

Note: Default Android Studio style uses spaces for indentation instead of tabs. Let me know if you prefer tabs.

License

  • For files which don't have any license/copyright header, add GPLv3 header with your name.
  • For files which only have your name, add GPLv3 header too.
  • We can also add GPLv3 header to XML files if thats okay with you.

Remaining files are attributed to Michael A. MacDonald. I believe these are under GPLv2 license but I could not find a definitive answer. If these files are licensed under GPLv2, we can add GPLv2 or GPLv3 (whichever you prefer) header.

Refactoring
I am refactoring VNCConn to remove dependency on VncCanvas. It will allow us to keep VNCConn alive across activity restarts so that we can enable rotation of VncCanvasActivity.

Thanks.

@bk138
Copy link
Owner

bk138 commented Feb 11, 2020

@bk138 bk138 self-assigned this Jul 4, 2020
@bk138
Copy link
Owner

bk138 commented Oct 7, 2020

Considering this closed by bffe1a8.

@bk138 bk138 closed this as completed Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants