Erste Schritte
Kopiere einen Setup-Prompt mit den Installationsschritten und dem vollständigen Markdown-Guide für dieses Plugin.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-ssl-pinning`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/ssl-pinning/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
Installieren
Abschnitt „Installation“Du kannst unser KI-gestütztes Setup nutzen, um das Plugin zu installieren. Füge die Capgo Skills mit dem folgenden Befehl deinem KI-Tool hinzu:
bunx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-pluginsNutze dann diesen Prompt:
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-ssl-pinning` plugin in my project.Wenn du ein manuelles Setup bevorzugst, installiere das Plugin mit den folgenden Befehlen und befolge die plattformspezifischen Anweisungen unten:
bun add @capgo/capacitor-ssl-pinningbunx cap syncImportieren
Abschnitt mit dem Titel „Import“import { SSLPinning } from '@capgo/capacitor-ssl-pinning';Quickstart
Abschnitt „Quick start“import { SSLPinning } from '@capgo/capacitor-ssl-pinning';
const result = await SSLPinning.getConfiguration();console.log(result);Häufige Stolperfallen
Abschnitt „Häufige Fallstricke“- Nativer Sync: ausführen
bunx cap syncnach Plugin-Upgrades. - Single Source of Truth: Vertrauen
src/definitions.tsim GitHub Repo.
API Übersicht
Abschnitt „API Übersicht“getConfiguration
Abschnitt mit dem Titel „getConfiguration“Gibt die aktive native Konfiguration zurück, die für das Plugin sichtbar ist.
import { SSLPinning } from '@capgo/capacitor-ssl-pinning';
const result = await SSLPinning.getConfiguration();console.log(result);Typreferenz
Abschnitt mit dem Titel „Typreferenz“SSLPinningConfigurationState
Abschnitt mit dem Titel „SSLPinningConfigurationState“Aktuell für das Plugin sichtbare, statische SSL-Pinning-Konfiguration.
export interface SSLPinningConfigurationState { /** * Whether at least one certificate is configured for native pinning. */ configured: boolean;
/** * Certificate paths from `capacitor.config.*` relative to the app root. */ certs: string[];
/** * Fully-qualified URLs that should bypass SSL pinning. */ excludedDomains: string[];}PluginVersionResult
Abschnitt mit dem Titel „PluginVersionResult“Payload der Plugin-Version.
export interface PluginVersionResult { /** * Version identifier returned by the platform implementation. */ version: string;}Source of Truth
Abschnitt mit dem Titel „Source of Truth“Diese Seite wird aus dem Plugin generiert src/definitions.ts. Führe den Sync erneut aus, wenn sich das öffentliche API upstream ändert.
Weiter geht's nach Getting Started
Abschnitt: „Weiter geht’s mit Getting Started“Wenn du es nutzt Erste Schritte um Sicherheit und Compliance zu planen, verbinden Sie es mit @capgo/capacitor-ssl-pinning verwenden für die native Funktion in „@capgo/capacitor-ssl-pinning verwenden“, Verschlüsselung für die Implementierungsdetails in Encryption, Compliance für das Implementierungsdetail in Compliance, Capgo Security-Scanner für den Produkt-Workflow im Capgo Security Scanner, und Capgo Sicherheit für den Produkt-Workflow in Capgo Security.