スタートガイド
インストール手順と、このプラグインの完全なMarkdownガイドを含むセットアッププロンプトをコピーします。
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.
インストール
「インストール」セクションAIアシストによるセットアップでプラグインをインストールできます。以下のコマンドを使用して、お使いのAIツールに Capgo のスキルを追加してください:
bunx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins次に、以下のプロンプトを使用します:
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-ssl-pinning` plugin in my project.手動セットアップを希望する場合は、以下のコマンドを実行してプラグインをインストールし、下記のプラットフォーム別の手順に従ってください:
bun add @capgo/capacitor-ssl-pinningbunx cap syncインポート
「インポート」セクションimport { SSLPinning } from '@capgo/capacitor-ssl-pinning';クイックスタート
「クイックスタート」セクションimport { SSLPinning } from '@capgo/capacitor-ssl-pinning';
const result = await SSLPinning.getConfiguration();console.log(result);よくある落とし穴
「よくある落とし穴」セクション- ネイティブ同期: 実行
bunx cap syncプラグインのアップグレード後。 - 信頼できる情報源: 信頼
src/definitions.tsGitHub リポジトリ内。
API の概要
「API 概要」セクションgetConfiguration
「getConfiguration」セクションプラグインから参照可能な、現在有効なネイティブ設定を返します。
import { SSLPinning } from '@capgo/capacitor-ssl-pinning';
const result = await SSLPinning.getConfiguration();console.log(result);型リファレンス
「型リファレンス」セクションSSLPinningConfigurationState
「SSLPinningConfigurationState」セクション現在プラグインから参照可能な、静的なSSL pinning設定。
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
「PluginVersionResult」セクションプラグインのバージョン情報ペイロード。
export interface PluginVersionResult { /** * Version identifier returned by the platform implementation. */ version: string;}Source of Truth
「Source Of Truth」セクションこのページはプラグインの src/definitions.tsから生成されています。upstream で公開 API が変更されたら、再度 sync を実行してください。
Getting Startedの続きを進める
「Getting Started からの続き」セクション使用している場合 スタートガイド セキュリティとコンプライアンスを計画するには、これを以下と連携させてください @capgo/capacitor-ssl-pinning の使い方 @capgo/capacitor-ssl-pinning を使用した Native Build の機能について、 暗号化 暗号化の実装詳細について コンプライアンス コンプライアンスの実装詳細について Capgo セキュリティスキャナー Capgo Security Scanner の製品ワークフローについて、 Capgo のセキュリティ Capgo Security におけるプロダクトワークフロー向けに。