dependencies: cloudx_flutter: git: url: https://github.com/cloudx-io/cloudx-flutter.git ref: v0.2.0 # Use specific version tag path: cloudx_flutter_sdk
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:
Copy
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 neededend
Then run:
Copy
# 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.
CloudX requires ad network adapters. Add to android/app/build.gradle:
Copy
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):
Copy
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}
Create a test file to verify the SDK is accessible:
Copy
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:
Copy
flutter run
You should see the CloudX version printed in your console.