Skip to content

About

Bottlenose is a free and open-source podcast player for Android and the web.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Bottlenose

A free and open-source podcast player for Android and the web.

Named for the bottlenose dolphin, which never goes anywhere without its pod.

A dolphin sipping a margarita

It is one web app, written in TypeScript with Preact and built with Deno. The same build runs in a browser as an installable, offline-capable web app, and as a native Android app wrapped with Capacitor.

A beta of the web version is available at https://johncsnyder.github.io/bottlenose/.

Setup

Tools are managed by mise. On a Mac, install it with Homebrew, then let it install the required tools:

brew install mise
mise install

That is everything needed for the web app. Dependencies are fetched by Deno the first time a task runs.

The Android app also needs Android Studio for the Android SDK and an emulator:

brew install --cask android-studio

Open Android Studio once to let it install the SDK, then create a virtual device in its Device Manager and start it with:

deno task android:emulator

The task starts a device by name, so either name yours to match the task in deno.json or edit the task. A real phone with USB debugging turned on works too.

Testing on a phone through a tunnel needs a free ngrok account and its auth token: ngrok config add-authtoken <token>.

Development

Everything runs through deno task:

deno task dev        # build, serve on localhost:8000, rebuild on change
deno task dev:mobile # same, plus an HTTPS tunnel and a QR code for a phone
deno task storybook  # localhost:6006
deno task check      # type-check, lint and format check
deno task test
deno task build      # production build into dist/
deno task bump       # raise the app's version

The app starts empty. To fill it with made-up shows and episodes while developing, set BOTTLENOSE_SAMPLES when starting the dev server:

BOTTLENOSE_SAMPLES=1 deno task dev

Installing to the home screen and offline support need HTTPS, which the dev:mobile tunnel provides.

For the Android app, start an emulator or plug in a phone, then build, install and launch it:

deno task android:emulator  # leave running
deno task android:run

Pushing to main publishes the web beta to GitHub Pages.

The app's version is in src/version.ts and is shown on the More screen. Raise it before publishing a new version:

deno task bump        # 0.1.0 -> 0.1.1; or: deno task bump minor, bump major

That also updates the Android project's version.

Pushing a new version to main also builds the Android app, signs it and publishes the APK as a GitHub release. The signing key is kept in the repository's secrets; see .github/workflows/android.yml.

Google Play takes an app bundle instead of an APK. Build one, signed with the same key, with:

deno task android:bundle

What goes in the Play Console beside it (the listing's text, graphics and screenshots) is in store/play/.

Android vs Web

The web version of the app has some limitations:

  • A browser only lets a page read from hosts that allow cross-origin requests, and many podcast hosts don't.
  • Some shows won't list their episodes.
  • Some episodes can be played but not downloaded.

The Android app makes its requests through native code, which has no such limit.

About

Bottlenose is a free and open-source podcast player for Android and the web.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages