// app.config.ts — iOS certificate pinning
ios: {
  supportsTablet: false,
  bundleIdentifier: 'com.aipilotpress.pocketboard',
  infoPlist: {
    NSAppTransportSecurity: {
      NSPinnedDomains: {
        'pocketboard-api.onrender.com': {
          NSIncludesSubdomains: false,
          NSPinnedLeafIdentities: [
            // Do NOT use this in production — leaf expiry breaks the app
            // Shown here for illustration only; see NSPinnedCAIdentities below
          ],
          NSPinnedCAIdentities: [
            {
              // Intermediate CA SPKI hash (primary pin)
              'SPKI-SHA256-BASE64': 'jQJTbIh0grw0/1TkHSumWb+Fs0Ggogr621gT3PvPKG0=',
            },
            {
              // Root CA SPKI hash (backup pin — prevents complete lockout)
              'SPKI-SHA256-BASE64': 'C5+lpZ7tcVwmwQIMcRtPbsQtWLABXhQzejna0wHFr8M=',
            },
          ],
        },
      },
    },
  },
},
