Skip to main content

Requirements

Flutter

Flutter SDK 3.0.0+
Dart SDK 3.0.0+

iOS

iOS 14.0+
CocoaPods

Android

API 21+ (Android 5.0)
Gradle 8.0+

Installation Methods

Platform Setup

iOS Configuration

1

Set Minimum iOS Version

Update ios/Podfile:
platform :ios, '14.0'
2

Install CocoaPods

# cd ios && pod install && cd ..
iOS SDK Coming Very Soon! The iOS SDK release is in final preparation. Pod installation is temporarily disabled until the release is complete.
3

Add Adapters

CloudX requires ad network adapters. Add to ios/Podfile:
target 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))

  # CloudX Ad Network Adapters
  pod 'CloudXMediationMetaAdapter', '~> 1.1.0'    # Meta Audience Network
  pod 'CloudXMediationPrebidAdapter', '~> 1.1.0'  # Prebid
  # Add other adapters as needed
end
Then run:
# cd ios && pod install && cd ..
iOS SDK Coming Very Soon! The iOS SDK release is in final preparation. Pod installation is temporarily disabled until the release is complete.
iOS is currently Alpha/Experimental. You must set allowIosExperimental: true during SDK initialization.

Android Configuration

1

Add Adapters

CloudX requires ad network adapters. Add to android/app/build.gradle:
dependencies {
    // CloudX Ad Network Adapters - add the networks you want
    implementation 'io.cloudx:adapter-meta:0.6.1'      // Meta Audience Network
    implementation 'io.cloudx:adapter-cloudx:0.6.1'    // CloudX Network
    // Add other adapters as needed
}
Or if using Kotlin DSL (build.gradle.kts):
dependencies {
    // CloudX Ad Network Adapters
    implementation("io.cloudx:adapter-meta:0.6.1")      // Meta Audience Network
    implementation("io.cloudx:adapter-cloudx:0.6.1")    // CloudX Network
}

Available Adapters

Android: io.cloudx:adapter-meta:0.6.1
iOS: pod 'CloudXMediationMetaAdapter', '~> 1.1.0'
High fill rates, competitive eCPMs
Android: io.cloudx:adapter-cloudx:0.6.1
iOS: pod 'CloudXMediationPrebidAdapter', '~> 1.1.0'
Premium demand with Prebid integration
More adapters coming soon. Contact CloudX for specific network integrations.

Verify Installation

Create a test file to verify the SDK is accessible:
import 'package:cloudx_flutter/cloudx.dart';

void main() async {
  // Check if platform is supported
  final supported = await CloudX.isPlatformSupported();
  print('CloudX supported: $supported');
  
  // Get SDK version
  final version = await CloudX.getVersion();
  print('CloudX version: $version');
}
Run your app:
flutter run
You should see the CloudX version printed in your console.

Next Steps