From 771d0a6eac0d8cf727f6eb2f7edfda3f88dfd809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karlo=20=C4=8Ceh?= Date: Fri, 6 Sep 2024 10:13:48 +0200 Subject: [PATCH 1/2] Update Github templates --- .github/ISSUE_TEMPLATE/bug_report.md | 31 +++++++++----- .github/ISSUE_TEMPLATE/feature_request.md | 27 ++++++++---- .github/PULL_REQUEST_TEMPLATE | 50 ++++++++++++++++------- 3 files changed, 74 insertions(+), 34 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index c0252aea..c67bc218 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,29 +1,38 @@ --- name: Bug report about: Create a report to help us improve +title: 'Bug report: ' +labels: bug +assignees: '' --- -## :writing_hand: Describe the bug +--- +name: Bug report +about: Create a report to help us improve + +--- + +## 📖 Description -## :bomb: Steps to reproduce +## ℹī¸ Environment +- **Device**: +- **OS**: +- **Library version**: + +## đŸ’Ŗ Steps to reproduce 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error -## :wrench: Expected behavior +## 🔧 Expected behavior -## :camera: Screenshots +## 📷 Screenshots -## :iphone: Tech info - - Device: - - OS: - - Sentinel version: - -## :page_facing_up: Additional context - \ No newline at end of file +## 📄 Additional information + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 379b0434..60529539 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,20 +1,29 @@ --- name: Feature request -about: Suggest an idea for this project +about: Propose a new feature or an idea for this project +title: 'Feature request: ' +labels: enhancement +assignees: '' --- -## :warning: Is your feature request related to a problem? Please describe - -## :bulb: Describe the solution you'd like - +## 💡 Feature description + -## :bar_chart: Describe alternatives you've considered - +## ℹī¸ Additional information -## :page_facing_up: Additional context - + + +## 🤔 Describe alternatives you've considered + ## :raising_hand: Do you want to develop this feature yourself? diff --git a/.github/PULL_REQUEST_TEMPLATE b/.github/PULL_REQUEST_TEMPLATE index 611efc78..8e95ccbb 100644 --- a/.github/PULL_REQUEST_TEMPLATE +++ b/.github/PULL_REQUEST_TEMPLATE @@ -1,20 +1,42 @@ -## :camera: Screenshots - +## Summary -## :page_facing_up: Context - + + Link any relevant issues that this pull request addresses or resolves, using the format "Fixes #issue_number". +--> -## :paperclip: Related PR - +## Changes -## :no_entry_sign: Breaking - +### Type -## :hammer_and_wrench: How to test - +- [ ] **Feature**: This pull request introduces a new feature. +- [ ] **Bug fix**: This pull request fixes a bug. +- [ ] **Refactor**: This pull request refactors existing code. +- [ ] **Documentation**: This pull request updates documentation. +- [ ] **Other**: This pull request makes other changes. -## :stopwatch: Next steps - \ No newline at end of file +#### Additional information + +- [ ] This pull request introduces a **breaking change**. + +### Description + + + +## Checklist + +- [ ] I have performed a self-review of my own code. +- [ ] I have tested my changes, including edge cases. +- [ ] I have added necessary tests for the changes introduced (if applicable). +- [ ] I have updated the documentation to reflect my changes (if applicable). + +## Additional notes + + From 142d9517b8201fa64b20a701bb76a3e42de3c230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karlo=20=C4=8Ceh?= Date: Fri, 6 Sep 2024 10:52:56 +0200 Subject: [PATCH 2/2] Update readme and markdown files --- CODE_OF_CONDUCT.md | 74 ++++++++++++++++++++++++++++++++++++++++++++++ CONTRIBUTING.md | 42 ++++++++++++++++++++++++++ README.md | 41 +++++++++++++++++-------- SECURITY.md | 19 ++++++++++++ 4 files changed, 164 insertions(+), 12 deletions(-) create mode 100644 CODE_OF_CONDUCT.md create mode 100644 CONTRIBUTING.md create mode 100644 SECURITY.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 00000000..ea88b65c --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,74 @@ +# Code of conduct + +## Our pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, 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. + +## Our standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers 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, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the project team at opensource@infinum.com. All +complaints will be reviewed and investigated and will result in a response that +is deemed necessary and appropriate to the circumstances. The project team is +obligated to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 1.4, +available [here](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html). + +For answers to common questions about this code of conduct, visit +the [FAQ](https://www.contributor-covenant.org/faq) page. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..46395370 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,42 @@ +# Contributing guidelines + +Welcome to our project! We appreciate your interest in helping us improve it. + +## How can I contribute? + +There are multiple ways in which you can help us make this project even better. + +- Contributing code improvements or new features +- Writing, updating, or fixing tests +- Improving documentation, including inline comments, user manuals, and developer guides + +## Making changes + +To make changes to the project, please follow these steps: + +1. Fork the project repository. +2. Create a new branch for your changes, based on the project's main branch. +3. Make your changes. Ensure you've followed the coding style and standards. +4. Test your changes thoroughly, ensuring all existing tests pass and new tests cover your changes where appropriate. +5. Commit your changes with a clear and descriptive commit message. +6. Push your changes to your fork. +7. Create a pull request to the project's main branch. + +Once we check everything, we will merge the changes into the main branch and include it in the next release. + +## Guidelines for pull requests + +When submitting a pull request, please ensure that: + +- Your code is properly tested +- Your code adheres to the project's coding standards and style guidelines +- Your commit message is clear and descriptive +- Your pull request includes a description of the changes you have made and why you have made them + +## Code of conduct + +We want to ensure a welcoming environment for everyone. With that in mind, all contributors are expected to follow our [code of conduct](/CODE_OF_CONDUCT.md). + +## License + +By submitting a pull request you agree to release that code under the project's [license](/LICENSE). diff --git a/README.md b/README.md index f39b60b9..d9fd8007 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ ![UI](ui.png) +## Description + _Sentinel_ is a simple one screen UI that provides standardised entry point for tools used in development and QA alongside device, application and permissions data. It's designed to be easily configured and expanded depending on needs and requirements of developers @@ -27,6 +29,23 @@ The project is organized in the following modules: - `tool-timber` - contains a class wrapper for Timber - `sample` - a sample app for testing and developing + +## Table of contents + +* [Requirements](#requirements) +* [Usage](#usage) +* [Getting started](#getting-started) +* [Contributing](#contributing) +* [License](#license) +* [Credits](#credits) + +## Requirements + +This plugin has been written in Kotlin but works both inside Kotlin and Java projects. Minimum +required API level to use _Sentinel_ is *21* known +as [Android 5.0, Lollipop](https://www.android.com/versions/lollipop-5-0/). +_Sentinel_ is built with and for AndroidX projects. + ## Usage To include _Sentinel_ in your project, you have to add buildscript dependencies in your project @@ -101,7 +120,7 @@ debugImplementation("com.infinum.sentinel:tool-timber:$sentinelVersion") Now you can sync your project. -### Getting started +## Getting started Create or inject an instance of _Sentinel_ in your Application class and start watching for triggers: @@ -257,7 +276,7 @@ _Plain_ formatter is selected by default, but selecting any other is persisted b - `XML` - `HTML` -## Crash monitor +### Crash monitor _Sentinel_ has a built in default uncaught exception handler and ANR observer. If switched on in settings, it will notify both in a form of a notification. Note that from Android 13 you need to give permission @@ -278,7 +297,7 @@ Sentinel.setAnrListener { exception -> } ``` -## Bundle monitor +### Bundle monitor _Sentinel_ monitors Bundle objects passed around the application mostly for size limit of 500kB, thus avoiding _TransactionTooLarge_ exceptions. @@ -296,21 +315,19 @@ for a specific screen, you can do so in the _AndroidManifest.xml_ by adding a _m ``` -## Requirements +## Contributing -This plugin has been written in Kotlin but works both inside Kotlin and Java projects. Minimum -required API level to use _Sentinel_ is *21* known -as [Android 5.0, Lollipop](https://www.android.com/versions/lollipop-5-0/). -_Sentinel_ is built with and for AndroidX projects. +We believe that the community can help us improve and build better a product. +Please refer to our [contributing guide](CONTRIBUTING.md) to learn about the types of contributions we accept and the process for submitting them. -## Contributing +To ensure that our community remains respectful and professional, we defined a [code of conduct](CODE_OF_CONDUCT.md) that we expect all contributors to follow. -Feedback and code contributions are very much welcome. Just make a pull request with a short -description of your changes. By making contributions to this project you give permission for your -code to be used under the same [license](LICENSE). For easier developing a `sample` application with +For easier developing a `sample` application with proper implementations is provided. If you wish to add a new specific dependency wrapper tool, create a new module and set it up like the ones already provided. Then create a pull request. +We appreciate your interest and look forward to your contributions. + ## License ``` diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 00000000..b456b296 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,19 @@ +# Security + +## Reporting security issues + +At Infinum we are committed to ensuring the security of our software. If you have discovered a security vulnerability or have concerns regarding the security of our project, we encourage you to report it to us in a responsible manner. + +If you discover a security vulnerability, please report it to us by emailing us at opensource@infinum.com. We will review your report, and if the issue is confirmed, we will work to resolve the issue as soon as possible and coordinate the release of a security patch. + +## Responsible disclosure + +We request that you practice responsible disclosure by allowing us time to investigate and address any reported vulnerabilities before making them public. We believe this approach helps protect our users and provides a better outcome for everyone involved. + +## Preferred languages + +We prefer all communication to be in English. + +## Contributions + +We greatly appreciate your help in keeping Infinum projects secure. Your efforts contribute to the ongoing improvement of our project's security.