CocoaPods trunk is moving to be read-only. Read more on the blog, there are 7 months to go.

NiceOneConsentSDK 1.0.0

NiceOneConsentSDK 1.0.0

Maintained by Vishal Singh.



  • By
  • Vishal Singh

Consent SDK

A production-grade, cross-platform Consent Popup SDK for managing user consent in mobile applications. Provides a beautiful, customizable popup UI with purpose management, language switching, and comprehensive theming.

Platforms

Platform Technology Status
Core Kotlin Multiplatform
Android Jetpack Compose
iOS SwiftUI
React Native Native Modules
Flutter Platform Channels

Features

  • 🎨 Customizable UI — Full theme support with light/dark mode presets
  • 🌍 Multi-language — Dynamic language switching with auto-refetch
  • Validation — Age validation, mandatory purpose enforcement
  • 🔄 Retry Logic — Automatic retries with exponential backoff
  • 📊 Analytics Hooks — Event listeners for consent lifecycle tracking
  • 🔒 Security — HTTPS only, no API key logging, secure data handling
  • 🛡️ Edge Cases — Handles offline, empty responses, double submissions, duplicate popups

Quick Start

See platform-specific guides:

Project Structure

consent-sdk/
├── core/                       # Kotlin Multiplatform shared logic
├── android-sdk/                # Android library (Jetpack Compose)
├── ios-sdk/                    # iOS framework (SwiftUI)
├── react-native-wrapper/       # React Native native module
├── flutter-plugin/             # Flutter platform channel plugin
├── mock-server/                # Node.js mock API server
└── docs/                       # Documentation

Mock Server

For local development and testing:

cd mock-server
npm install
npm start
# Server runs at http://localhost:3000

License

MIT