Podcini-podcast/CONTRIBUTING.md

75 lines
5.1 KiB
Markdown
Raw Normal View History

2024-02-05 21:50:43 +01:00
How to report a bug
-------------------
2024-02-20 11:30:25 +01:00
2024-02-05 21:50:43 +01:00
- Before anything else, please make sure you are on the latest version, the bug you are experiencing may have been fixed already!
- Use the search function to see if someone else has already submitted the same bug report.
- Try to describe the problem with as much detail as possible.
2024-02-20 11:30:25 +01:00
- Some bugs may only occur on certain devices or versions of Android. Please add information about your device and the version of Android that is running on it (you can look these up under `Settings → About Phone`), as well as which version of Podcini you are using.
2024-02-05 21:50:43 +01:00
- If the bug only seems to occur with a certain podcast, please include the URL of that podcast.
- If possible, add instructions on how to reproduce the bug.
2024-02-20 11:30:25 +01:00
- If possible, add a logfile to your post. This is especially useful if the bug makes the application crash. Podcini has an `export logs` feature for this.
2024-02-05 21:50:43 +01:00
- Usually, you can take a screenshot of your smartphone by pressing *Power* + *Volume down* for a few seconds.
2024-02-20 11:30:25 +01:00
- Please use the following **[template](https://github.com/XilinJia/Podcini/issues/new?assignees=&labels=Type%3A+Possible+bug&template=bug_report.yml)**.
2024-02-05 21:50:43 +01:00
How to submit a feature request
-------------------------------
2024-02-20 11:30:25 +01:00
- Make sure you are using the latest version of Podcini. Perhaps the feature you are looking for has already been implemented.
2024-02-05 21:50:43 +01:00
- Use the search function to see if someone else has already submitted the same feature request. If there is another request already, please upvote the first post instead of commenting something like "I also want this".
- To make it easier for us to keep track of requests, please only make one feature request per issue.
- Give a brief explanation about the problem that may currently exist and how your requested feature solves this problem.
- Try to be as specific as possible. Please not only explain what the feature does, but also how. If your request is about (or includes) changing or extending the UI, describe what the UI would look like and how the user would interact with it.
2024-02-20 11:30:25 +01:00
- Please use the following **[template](https://github.com/XilinJia/Podcini/issues/new?assignees=&labels=&template=feature_request.yml)**.
2024-02-05 21:50:43 +01:00
2024-02-20 11:30:25 +01:00
Translating Podcini
2024-02-05 21:50:43 +01:00
----------------------
2024-06-29 00:08:14 +02:00
If you would like to translate the app into another language or improve an existing translation, you can visit the [Transifex project page](https://app.transifex.com/xilinjia/podcini/dashboard/). From there, you can either join a language team if it already exists or create a new language team.
2024-02-05 21:50:43 +01:00
Submit a pull request
---------------------
2024-02-20 11:30:25 +01:00
2024-02-05 21:50:43 +01:00
- If you want to work on a feature that has been requested or fix a bug that has been reported on the "issues" page, add a comment to it so that other people know that you are working on it.
- Fork the repository.
2024-02-20 11:30:25 +01:00
- Almost all changes of Podcini are done on the `develop` branch. If a new version of Podcini is released, the `develop` branch is merged into `master`. As a result, the `master` branch probably doesn't contain the latest changes when you are reading this. Please make sure that you are branching from `develop`! Otherwise, there might be a lot of merge-conflicts when merging your changes into `develop` and therefore it might take longer to review your pull-request. Exceptions are urgent issues that need to be fixed in the production version.
2024-02-05 21:50:43 +01:00
- If your pull request fixes a bug that has been reported or implements a feature that has been requested in another issue, try to mention it in the message, so that it can be closed once your pull request has been merged. If you use special keywords in the [commit comment](https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue) or [pull request text](https://github.blog/2013-05-14-closing-issues-via-pull-requests/), GitHub will close the issue(s) automatically.
- If possible, add unit tests for your pull request and make sure that they pass.
- Please do not upgrade dependencies or build tools unless you have a good reason for it. Doing so can easily introduce bugs that are hard to track down.
- If you plan to do a change that touches many files (10+), please ask beforehand. This usually causes merge conflicts for other developers.
2024-06-23 19:58:04 +02:00
- Please follow our code style.
2024-02-05 21:50:43 +01:00
Building From Source
--------------------------
2024-02-20 11:30:25 +01:00
2024-02-05 21:50:43 +01:00
1. Fork this repository
1. Download Android Studio
1. In Android Studio
1. File » New » Project from version control
2. Enter the remote url of the forked repo
2. Wait for a long time until all progress bars go away
3. Press the Play button
Testing and Verifying
--------------------------
2024-02-20 11:30:25 +01:00
As a developer contributing to Podcini, we ask that you test the feature yourself manually and better yet, add unit and functional tests to any feature of bug you fix.
2024-02-05 21:50:43 +01:00
### Running Unit Tests
2024-02-20 11:30:25 +01:00
- `./gradlew :core:testPlayDebugUnitTest`
2024-02-05 21:50:43 +01:00
### Running Integration Tests
#### Using Android Studio
2024-02-20 11:30:25 +01:00
- Create a configuration via 'Run->Edit Configurations...'
<img width="768" alt="podcini-run-tests"
2024-02-05 21:50:43 +01:00
src="https://user-images.githubusercontent.com/149837/105122859-e1317180-5a8b-11eb-8d45-d54a3b051a9b.png">
#### Using the command line
2024-02-20 11:30:25 +01:00
- Start an AVD or plug in your phone
- `sh .github/workflows/runTests.sh`