π 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.mdguide 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