Documentation

Learn how to use Pontus, a private Dart package repository for your team

Getting Started with Pontus
Configure your Flutter project to use Pontus as a private package repository

Configuration

To use packages from Pontus, you need to configure your Flutter project to use our private repository. Add the following to your ~/.config/dart/pub-credentials.json file:

{
  "pontus.example.com": {
    "token": "YOUR_AUTH_TOKEN"
  }
}

Installing Packages

You can install packages from Pontus using the Flutter CLI:

flutter pub add package_name --hosted-url=https://pontus.example.com

Alternatively, you can manually add the dependency to your pubspec.yaml file:

dependencies:
  package_name: ^1.0.0

dependency_overrides:
  package_name:
    hosted:
      name: package_name
      url: https://pontus.example.com

Environment Setup

For team environments, you may want to set up environment variables for your CI/CD pipeline:

export PUB_HOSTED_URL=https://pontus.example.com
export FLUTTER_STORAGE_BASE_URL=https://pontus.example.com/storage