Skip to content

Release v1.3.2

Latest

Choose a tag to compare

@bhojaniasgar bhojaniasgar released this 29 Nov 07:34
355cd3f

πŸŽ‰ Release v1.3.2

🎯 Changes

This PR makes SMS permissions opt-in by default, providing cleaner app permissions for users who don't need SMS auto-read functionality.

✨ What's New

  • SMS permissions are now opt-in - No SMS permissions added by default
  • Users must explicitly enable SMS features with: OtpVerify_enableSmsFeatures = true
  • Cleaner app permissions for users not using SMS auto-read
  • Added SMS_SETUP.md guide for enabling SMS features
  • Split Android manifests: main (no permissions) + sms (with permissions)

πŸ”§ Technical Implementation

  • Main manifest (android/src/main/AndroidManifest.xml) - No permissions
  • SMS manifest (android/src/sms/AndroidManifest.xml) - SMS-specific permissions
  • Gradle conditionally merges SMS manifest only when OtpVerify_enableSmsFeatures = true

πŸ“– Documentation

  • Updated README with opt-in instructions
  • Created SMS_SETUP.md with detailed setup guide
  • Clear examples of when to enable SMS features

πŸš€ For Users

Default Behavior (No Configuration)

Works perfectly with:

  • βœ… Manual OTP entry
  • βœ… Clipboard auto-fill
  • βœ… All styling options
  • ❌ SMS Retriever API (not included)

With SMS Features Enabled

Add to android/build.gradle:

buildscript {
    ext {
        OtpVerify_enableSmsFeatures = true
    }
}

πŸ”„ Migration for Existing Users

Users currently using SMS features need to add one line to their gradle config. See SMS_SETUP.md for details.

βœ… Testing

  • Build succeeds
  • Beta versions tested (1.4.0-beta.0, 1.4.0-beta.1, 1.4.0-beta.3)
  • SMS features work when enabled
  • Basic OTP input works without SMS permissions

πŸ“¦ Version

1.3.2

Summary by CodeRabbit

  • Version Update

    • Version 1.3.2 released.
  • New Features

    • SMS capabilities are now optional and configurable, allowing users to enable or disable SMS-related features based on their preferences.

✏️ Tip: You can customize this high-level summary in your review settings.


Installation

npm install @bhojaniasgar/react-native-otp-input@1.3.2