binds method

  1. @override
void binds(
  1. Injector i
)
override

Implementation

@override
void binds(Injector i) {
  i
    ..add<PostHog>(PostHog.new)
    ..setupReleasesRepository(
      appInfoService: StdAppInfoService.new,
      releasesDatasource: StdReleasesDatasource.new,
      patchService: switch (kDistributionType) {
        DistributionType.aur => AurPatchService.new,
        DistributionType.msix => MsixPatchService.new,
        DistributionType.dmg => DmgPatchService.new,
        DistributionType.appImage => AppImagePatchService.new,
        DistributionType.web => WebPatchService.new,
      },
    );
}