Skip to content

Commit cc0594d

Browse files
authored
Merge pull request #48 from anotherlab/docs-update
Updated documentation
2 parents 80e0b54 + d67916e commit cc0594d

3 files changed

Lines changed: 182 additions & 8 deletions

File tree

CODE_OF_CONDUCT.md

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
# Code of Conduct
2+
3+
We are using [Contributor Covenant v2.0](https://contributor-covenant.org/version/2/0/code_of_conduct) as the code of conduct for this library. The full text is included [below](#contributor-covenant-code-of-conduct) in English, and translations are available from the Contributor Covenant organisation:
4+
5+
* [contributor-covenant.org/translations](https://www.contributor-covenant.org/translations)
6+
* [github.com/ContributorCovenant](https://github.com/ContributorCovenant/contributor_covenant/tree/release/content/version/2/0)
7+
8+
## Contributor Covenant Code of Conduct
9+
10+
### Our Pledge
11+
12+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
13+
14+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
15+
16+
### Our Standards
17+
18+
Examples of behavior that contributes to a positive environment for our
19+
community include:
20+
21+
* Demonstrating empathy and kindness toward other people
22+
* Being respectful of differing opinions, viewpoints, and experiences
23+
* Giving and gracefully accepting constructive feedback
24+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the
26+
overall community
27+
28+
Examples of unacceptable behavior include:
29+
30+
* The use of sexualized language or imagery, and sexual attention or advances of any kind
31+
* Trolling, insulting or derogatory comments, and personal or political attacks
32+
* Public or private harassment
33+
* Publishing others' private information, such as a physical or email address, without their explicit permission
34+
* Other conduct which could reasonably be considered inappropriate in a
35+
professional setting
36+
37+
### Enforcement Responsibilities
38+
39+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
40+
41+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
42+
43+
### Scope
44+
45+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
46+
47+
### Enforcement
48+
49+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
50+
reported to the community leaders responsible for enforcement at
51+
[coc@electronjs.org](mailto:coc@electronjs.org).
52+
All complaints will be reviewed and investigated promptly and fairly.
53+
54+
All community leaders are obligated to respect the privacy and security of the
55+
reporter of any incident.
56+
57+
### Enforcement Guidelines
58+
59+
Community leaders will follow these Community Impact Guidelines in determining
60+
the consequences for any action they deem in violation of this Code of Conduct:
61+
62+
#### 1. Correction
63+
64+
**Community Impact**: Use of inappropriate language or other behavior deemed
65+
unprofessional or unwelcome in the community.
66+
67+
**Consequence**: A private, written warning from community leaders, providing
68+
clarity around the nature of the violation and an explanation of why the
69+
behavior was inappropriate. A public apology may be requested.
70+
71+
#### 2. Warning
72+
73+
**Community Impact**: A violation through a single incident or series
74+
of actions.
75+
76+
**Consequence**: A warning with consequences for continued behavior. No
77+
interaction with the people involved, including unsolicited interaction with
78+
those enforcing the Code of Conduct, for a specified period of time. This
79+
includes avoiding interactions in community spaces as well as external channels
80+
like social media. Violating these terms may lead to a temporary or
81+
permanent ban.
82+
83+
#### 3. Temporary Ban
84+
85+
**Community Impact**: A serious violation of community standards, including
86+
sustained inappropriate behavior.
87+
88+
**Consequence**: A temporary ban from any sort of interaction or public
89+
communication with the community for a specified period of time. No public or
90+
private interaction with the people involved, including unsolicited interaction
91+
with those enforcing the Code of Conduct, is allowed during this period.
92+
Violating these terms may lead to a permanent ban.
93+
94+
#### 4. Permanent Ban
95+
96+
**Community Impact**: Demonstrating a pattern of violation of community
97+
standards, including sustained inappropriate behavior, harassment of an
98+
individual, or aggression toward or disparagement of classes of individuals.
99+
100+
**Consequence**: A permanent ban from any sort of public interaction within
101+
the community.
102+
103+
### Attribution
104+
105+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
106+
version 2.0, available at
107+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
108+
109+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
110+
enforcement ladder](https://github.com/mozilla/diversity).
111+
112+
[homepage]: https://www.contributor-covenant.org
113+
114+
For answers to common questions about this code of conduct, see the FAQ at
115+
https://www.contributor-covenant.org/faq. Translations are available at
116+
https://www.contributor-covenant.org/translations.

CONTRIBUTING.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Contributing to UsbSerialForAndroid
2+
3+
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
4+
5+
This library adheres to the Contributor Covenant [code of conduct](CODE_OF_CONDUCT.md).
6+
By participating, you are expected to uphold this code.
7+
8+
The following is a set of guidelines for contributing to UsbSerialForAndroid.
9+
10+
These are just guidelines, not rules, use your best judgment and feel free to propose changes to this document in a pull request.
11+
12+
This contribution guide was based on one used by the [Electron](https://github.com/electron/electron) project.
13+
14+
## [Issues](https://github.com/anotherlab/UsbSerialForAndroid/issues)
15+
16+
Issues are created [here](https://github.com/anotherlab/UsbSerialForAndroid/issues/new).
17+
18+
The three most important pieces of information needed to evaluate the report are a description of the bug, the hardware used, and a simple test case to recreate it. It is easier to fix a bug if it can be reproduced. See [How to create a Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/minimal-reproducible-example).
19+
20+
We will do our best to repond to reported issues that provide information that we can help with. This is not a commercial product and we make no claims or offers to provide any support whatsoever.
21+
22+
If you have a code fix or suggestion, we are only looking at changes submitted as pull requests.
23+
24+
25+
### Issue Closure
26+
27+
Bug reports will be closed if no details are included. If you create an issue for an error and only provide a stack trace, it will be closed.
28+
29+
_If an issue has been closed and you still feel it's relevant, feel free to add a comment!_
30+
31+
### Languages
32+
33+
We accept issues in _any_ language. But the maintainers only read English.
34+
When an issue is posted in a language besides English, it is acceptable and encouraged to post an English-translated copy as a reply.
35+
Anyone may post the translated reply.
36+
In most cases, a quick pass through translation software is sufficient.
37+
Having the original text _as well as_ the translation can help mitigate translation errors.
38+
39+
Responses to posted issues may or may not be in the original language.
40+
41+
**Please note** that using non-English as an attempt to circumvent our [Code of Conduct](https://github.com/anotherlab/UsbSerialForAndroid/blob/main/CODE_OF_CONDUCT.md) will be an immediate, and possibly indefinite, ban from the project.
42+
43+
## [Pull Requests](https://github.com/anotherlab/UsbSerialForAndroid/pulls)
44+
45+
We welcome Pull Requests to fix or add features. This is a community project and we do not have access to every USB to Serial adapter or every serial device.
46+
47+
* Step 1: Fork this repository
48+
* Step 2: Build it
49+
* Step 3: Make a branch
50+
* Step 4: Make changes and test the changes on actual hardware
51+
* Step 5: Commit the changes to your forked copy of the repository
52+
* Step 6: Rebase to stay in synch
53+
* Step 7: Push your commits to your forked branch
54+
* Step 8: Open the Pull Request
55+
56+
Your Pull Request will need to document the changes and the hardware that it was tested on.
57+
58+
## Style Guides
59+
60+
See the DotNet Runtime [Coding Style](https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/coding-style.md) for information about which standards we try to adhere to.

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# UsbSerialForAndroid
22

3-
[![Build Status](https://chrismillercode.visualstudio.com/UsbSerialForAndroid/_apis/build/status/anotherlab.UsbSerialForAndroid?branchName=master)](https://chrismillercode.visualstudio.com/UsbSerialForAndroid/_build/latest?definitionId=1&branchName=master)
4-
53
This is a driver library to allow your Xamarin Android app to communicate with many common USB serial hardware. It uses the [Android USB Host API](http://developer.android.com/guide/topics/connectivity/usb/host.html)
64
available on Android 3.1+.
75

@@ -93,17 +91,17 @@ This is a port of the usb-serial-for-android library and code examples written f
9391

9492
For common problems, see the
9593
[Troubleshooting](https://github.com/mik3y/usb-serial-for-android/wiki/Troubleshooting)
96-
wiki page for usb-serial-for-android library.
97-
98-
For other help and discussion, please join the usb-serial-for-android Google Group,
99-
[usb-serial-for-android](https://groups.google.com/forum/?fromgroups#!forum/usb-serial-for-android).
94+
wiki page for usb-serial-for-android library. For other help and discussion, please join the usb-serial-for-android Google Group,
95+
[usb-serial-for-android](https://groups.google.com/forum/?fromgroups#!forum/usb-serial-for-android). These two resources are for the Android Java version, but this library is port of that code base.
10096

101-
Pull Requests are welcome, but please include what hardware was used for testing. I do not have the hardware or the bandwidth to test the various chipsets supported by the library.
97+
Pull Requests are welcome, but please include what hardware was used for testing. We do not have the hardware or the bandwidth to test the various chipsets supported by the library.
10298

10399
We will do our best to repond to reported issues. If you have a code fix or suggestion, we are only looking at changes submitted as pull requests.
104100

101+
For more information about contributing or reporting an issue, please see [](https://github.com/anotherlab/UsbSerialForAndroid/blob/main/CONTRIBUTING.md) for more information for what we are looking for and how to get started.
102+
105103
## Author, License, and Copyright
106104

107-
This library is licensed under LGPL Version 2.1. Please see LICENSE.txt for the complete license.
105+
This library is licensed under the MIT License. Please see [LICENSE.txt](https://github.com/anotherlab/UsbSerialForAndroid/blob/main/LICENSE.txt) for the complete license.
108106

109107
Copyright 2017, Tyler Technologies. All Rights Reserved. Portions of this library are based on the [usb-serial-for-android](https://github.com/mik3y/usb-serial-for-android) and [XamarinUsbSerial](https://bitbucket.org/lusovu/xamarinusbserial) libraries. Their rights remain intact.

0 commit comments

Comments
 (0)