iosSetupHintFor function

String iosSetupHintFor({
  1. required bool appleKeyProvided,
})

The post-install hint printed at the end of a RevenueCat run. Returns the empty string when no Apple key was provided (the user picked n), so the hint is silently omitted for Android-only setups. Pulled out of iap() so the conditional is testable.

Implementation

String iosSetupHintFor({required bool appleKeyProvided}) {
  if (!appleKeyProvided) return '';
  return 'IOS Setup'
      '\n- Open the `ios/Runner.xcworkspace` file in Xcode'
      '\n- Navigate to the `Runner` target'
      '\n- Under the `Signing & Capabilities` tab, add the `In-App Purchase` capability'
      '\n- Run "cd ios && pod repo update"'
      '\n\n';
}