Hello there! on this blog I will go trough the list of bugs that I have fixed from GitHub. I will share my experience and the process of fixing them.
Issue #1 - Firefox Focus for Android
For this bug that I have found from GitHub, my task is to make small modification to the SearchEngineManager Java class. I have used Android Studio IDE to test and edit this code. I am a big fan of Mozilla applications and I am currently using Firefox Focus as my default browser on my mobile. This app is great because, it has a nice UI and it provides security and privacy features. Which is why I want to contribute on fixing this issue and get involve with the community.
After cloning & importing the project into Android Studio with success, these are the steps to solve the issue:
1. The first step before contributing on any issue for Mozilla-mobile (Android-Focus) I had to change the build variant in android studio to “focusWebviewDebug“.
This information can be found from their documentation.
2. Secondly, I must navigate to the following path focus-android/…/SearchEngineManager.java and call the apply() method instead the commit(). The reason we are changing this is because, we want to avoid blocking the main thread. The change will make the app more responsive and efficient (performance wise).
3. For the final step, I had run unit tests locally (These tests are similar to Travis-CI). When the unit tests are completed without any major issue that correspond to the changes that I have made above, I am ready to commit the changes and push them to GitHub and create A PR.
Issue #3 - Project Rosie
This time I have searched for a different project on GitHub and saw an issue which required to create issue template. GitHub allows you to create issues and pull request templates that allows the contributors to use. In the following examples I will explain how to create a Issue template for your GitHub repository.
- Create a folder named .github to the root of your repository
- Create a .md file “issue_template.md”
Now you can edit the .md file and customize how the issue template will look like.
The way this works is that we are creating a hidden directory which GitHub will access to and will try to find the issue_template (you cannot change the name of this template, the name must stay as it is!).
Release 0.2 Wrap Up
This experience was fun, fixing these issues I have learned more about Android Studio, creating templates for repositories on GitHub, and expend my git commands skills. This release have taught me how to adapt to new things quickly compare to my first bug. I am looking forward to contribute to various types of open source projects on GitHub.
This is the end results when the user opens an issue on GitHub for this project. This is useful as we can customize the way we want our issue template to look like. The purpose of this, is to use the template as a guidance but some projects requires you to fill the template form as requirement.