Pocket Casts Android π§
Pocket Casts is the world's most powerful podcast platform, an app by listeners, for listeners.
If you're just looking to install Pocket Casts Android, you can find it on Google Play. If you're a developer wanting to contribute, read on.
To build, install, and test the project from the command line:
$ ./gradlew :app:assembleDebugProd # assemble the debug .apk
$ ./gradlew :app:installDebugProd # install the debug .apk to a connected device
$ ./gradlew :app:testDebugUnitTest # assemble, install and run unit tests
$ ./gradlew :app:connectedDebugAndroidTest # assemble, install and run Android tests
.
βββ app # Mobile app
βββ automotive # Automotive app
βββ modules
β βββ features
β β βββ account # Create account and sign in pages.
β β βββ cartheme # Automotive resources needed for the account pages.
β β βββ discover # Discover section.
β β βββ endofyear # End of year stats.
β β βββ filters # Filters section.
β β βββ navigation # Navigation utilities.
β β βββ player # Full screen player
β β βββ podcasts # Podcasts section.
β β βββ profile # Profile section.
β β βββ search # Search pages.
β β βββ settings # Settings pages.
β β βββ taskerplugin # Plugin for integration with Tasker app.
β βββ services
β βββ analytics # Analytics code.
β βββ compose # Shared Compose code.
β βββ images # Image resources.
β βββ localization # Contains the strings in English and localized strings from GlotPress.
β βββ model # The database logic and entities. Also transfer objects required which aren't stored in the database.
β βββ preferences # Stores the user preferences and configuration settings.
β βββ repositories # Provides accessing to the data from the 'servers' and 'model' modules.
β βββ servers # Provides the network calls to the servers. The UI layer should access these through the 'repositories' module.
β βββ ui # Shared UI code for the 'compose' and 'views' modules. This includes the themes.
β βββ utils # Utility classes.
β βββ views # Shred Only the old views code.
The hierarchy of the modules in the project are reflected in this diagram.
Read our Contributing Guide to learn about reporting issues, contributing code, and more ways to contribute.
Release builds are signed with the upload key, which a8c-secrets decrypt decrypts to ~/.a8c-secrets/<repo-id>/upload.jks, where <repo-id> is the content of .a8c-secrets/repo-id.
Its credentials are read from secrets.properties, which a8c-secrets decrypt decrypts to the same directory, as signingKeyStorePassword, signingKeyAlias, and signingKeyPassword.
Without them, release packaging fails rather than producing an unsigned build.
No good first issue or help wanted issues are currently available.
First off, thank you for contributing! We're excited to collaborate with you! π
The following is a set of guidelines for the many ways you can join our collective effort.
Before anything else, please take a moment to read our Code of Conduct. We expect all participants, from full-timers to occasional tinkerers, to uphold it.
Have a suggestion or feedback? Please go to Issues and open a new issue. Prefix the title with a category like "Bug:", "Question:", or "Feature Request:". Screenshots help us resolve issues and answer questions faster, so thanks for including some if you can.
We use GlotPress to manage translations. Please go to the Pocket Casts Android GlotPress page for more information on how to add or edit translations.
Interested in using the upcoming versions of Pocket Casts? Do you love giving feedback on new features and don't mind reporting bugs that come up along the way? Join us in the beta-testing program by going to the Pocket Casts Android Testing program. Sign in with your Google account, and follow the instructions.
If you're just getting started and want to familiarize yourself with the appβs code, we suggest looking at these issues with the good first issue label. But if youβd like to tackle something different, you're more than welcome to visit the Issues page and pick an item that interests you.
We always try to avoid duplicating efforts, so if you decide to work on an issue, leave a comment to state your intent. If you choose to focus on a new feature or the change youβre proposing is significant, we recommend waiting for a response before proceeding. The issue may no longer align with project goals.
If the change is trivial, feel free to send a pull request without notifying us.
We use Spotless to maintain a consistent code style consistent. Please run the spotlessCheck gradle task to check for any issues with your code (which can be fixed with spotlessApply).
All new features should be written in Kotlin and any Java code should be converted to Kotlin at the first opportunity.
We love working with Jetpack Compose and we are slowly migrating the screens in the App to use compose. Any new screens/views should be written in Compose. If you would like to update a screen or view to use compose when you are updating it, that would be great!
We have quite a bit of RxJava in the app, and that's not changing anytime soon, but we prefer coroutines going forward. Therefore, when deciding between implementing something using RxJava and Coroutines, please prefer Coroutines. Likewise, if you see a good opportunity to convert something from RxJava to coroutines, feel free to make that change.
As discussed above, we use GlotPress for translations. This means that when adding string resources to the app you only need to add a resource for Englishβour release process will take care of getting it translated through GlotPress.
If you do add a string resource that should not be translated, just add the appropriate translatable flag to the string resource. For example,
<string name="app_name" translatable="false">Pocket Casts</string>
All code contributions pass through pull requests. If you haven't created a pull request before, we recommend this free video series, How to Contribute to an Open Source Project on GitHub.
The core team monitors and reviews all pull requests. Depending on the changes, we will either approve them or close them with an explanation. We might also work with you to improve a pull request before approval.
We do our best to respond quickly to all pull requests. If you don't get a response from us after a week, feel free to ping us on your PR.
Note: If you are part of the org and have the permissions on the repo, don't forget to assign yourself to the PR, and add the appropriate GitHub label and Milestone for the PR.
When opening a PR from a fork, some of the CI checks must be manually triggered by a member of the Pocket Casts team. That means you don't need to worry if some of the CI checks are not runningβwe'll take care of it when we review the PR and, if there are any issues, we'll let you know.