iOS, Android, Flutter, React Native

Installation one package per platform

Jede Plattform hat ein Blipit-Paket, das den öffentlichen Schlüssel und die Projekt-ID entgegennimmt. Abstürze, ANRs und nicht abgefangene Exceptions werden von selbst gemeldet; behalten Sie Debug-Symbole für native Abstürze, da Symboldateien noch nicht gelesen werden.

1React Native

sh
npm install @blipit/react-native @sentry/react-native
npx pod-install
tsx
import * as Blipit from "@blipit/react-native";

Blipit.init({ key: "<public key>", project: <project id>, environment: "production", release: "myapp@1.4.2" });

export default Blipit.wrap(App);

2Flutter

sh
flutter pub add blipit_flutter
main.dart
import 'package:blipit_flutter/blipit_flutter.dart';

Future<void> main() async {
  await Blipit.init(
    key: '<public key>',
    project: <project id>,
    environment: 'production',
    release: 'myapp@1.4.2',
    appRunner: () => runApp(const MyApp()),
  );
}

3iOS und macOS (Swift Package)

In Xcode: File, Add Package Dependencies, und geben Sie die Repository-URL ein; oder fügen Sie es zu Package.swift hinzu. Rufen Sie dann start einmal beim Start auf.

Package.swift
.package(url: "https://github.com/blipit-io/blipit-swift", from: "0.1.0")
swift
import BlipitSwift

Blipit.start(key: "<public key>", project: "<project id>", environment: "production", release: "myapp@1.4.2")

4Android

Fügen Sie JitPack zu den Repositories in settings.gradle.kts hinzu, die Abhängigkeit zum App-Modul, und rufen Sie init in Application.onCreate auf.

settings.gradle.kts
dependencyResolutionManagement {
    repositories {
        google()
        mavenCentral()
        maven("https://jitpack.io")
    }
}
build.gradle.kts (app)
implementation("com.github.blipit-io:blipit-android:v0.1.2")
kotlin
import io.blipit.android.Blipit

class App : Application() {
    override fun onCreate() {
        super.onCreate()
        Blipit.init(this) {
            key = "<public key>"
            project = "<project id>"
            environment = "production"
            release = "myapp@1.4.2"
        }
    }
}

5Prüfen, ob es funktioniert

Öffnen Sie Issues in app.blipit.io. Das erste Event erscheint innerhalb weniger Sekunden, gruppiert zu einem Issue, und die verantwortlichen Personen erhalten eine E-Mail.

Gut zu wissen

  • Manuelles Erfassen auf jeder Plattform: captureException, captureMessage, setUser, setTag, addBreadcrumb und captureSecurity für Anmeldeversuche.
  • Expo-Projekte fügen wie üblich das Config-Plugin @sentry/react-native/expo hinzu; Blipit-Schlüssel und Projekt-ID kommen in den Code.

Kommen Sie nicht weiter? Schreiben Sie an support@blipit.io. Schlüssel und den genauen DSN jedes Projekts finden Sie unter API-Schlüssel in app.blipit.io.