Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Add support for Apple SDK `MPNetworkOptions.customBaseURL` configuration in iOS initialization examples for CNAME routing.
- Add Android initialization examples for CNAME routing via `NetworkOptions.withNetworkOptions(...)`.

### Changed

- Bump iOS CocoaPods dependency from `mParticle-Apple-SDK ~> 9.1` to `~> 9.2`.
- Pin Android Gradle dependencies in plugin/example docs to `android-core:5.79.0` and `android-rokt-kit:5.79.0`.

## [2.0.0] - 2026-04-17

### Added
Expand Down
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ To install mParticle on an Android platform:

```groovy
dependencies {
implementation 'com.mparticle:android-core:5+'
implementation 'com.mparticle:android-core:5.79.0'
// Required only if you use Rokt APIs from Flutter
implementation 'com.mparticle:android-rokt-kit:5.79.0'

// Required for gathering Android Advertising ID (see below)
implementation 'com.google.android.gms:play-services-ads-identifier:16.0.0'
Expand All @@ -63,13 +65,16 @@ package com.example.myapp;

import android.app.Application;
import com.mparticle.MParticle;
import com.mparticle.MParticleOptions;
import com.mparticle.networking.NetworkOptions;

public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
MParticleOptions options = MParticleOptions.builder(this)
.credentials("REPLACE ME WITH KEY","REPLACE ME WITH SECRET")
.networkOptions(NetworkOptions.withNetworkOptions("https://rkt.example.com"))
.setLogLevel(MParticle.LogLevel.VERBOSE)
.identify(identifyRequest)
.identifyTask(
Expand All @@ -88,12 +93,14 @@ public class MyApplication extends Application {
```kotlin
import com.mparticle.MParticle
import com.mparticle.MParticleOptions
import com.mparticle.networking.NetworkOptions

class ExampleApplication : Application() {
override fun onCreate() {
super.onCreate()
val options = MParticleOptions.builder(this)
.credentials("REPLACE ME WITH KEY", "REPLACE ME WITH SECRET")
.networkOptions(NetworkOptions.withNetworkOptions("https://rkt.example.com"))
.build()
MParticle.start(options)
}
Expand All @@ -117,7 +124,7 @@ To install mParticle on an iOS platform:
2. Install the SDK using CocoaPods:

```bash
$ # Update your Podfile to depend on 'mParticle-Apple-SDK' version 9.1.0 or later
$ # Update your Podfile to depend on 'mParticle-Apple-SDK' version 9.2.0 or later
$ pod install
```

Expand All @@ -136,6 +143,9 @@ func application(_ application: UIApplication, didFinishLaunchingWithOptions lau

// Override point for customization after application launch.
let mParticleOptions = MParticleOptions(key: "<<<App Key Here>>>", secret: "<<<App Secret Here>>>")
let networkOptions = MPNetworkOptions()
networkOptions.customBaseURL = URL(string: "https://rkt.example.com")
mParticleOptions.networkOptions = networkOptions

//Please see the Identity page for more information on building this object
let request = MPIdentityApiRequest()
Expand Down Expand Up @@ -182,6 +192,9 @@ Next, you'll need to start the SDK:

MParticleOptions *mParticleOptions = [MParticleOptions optionsWithKey:@"REPLACE ME"
secret:@"REPLACE ME"];
MPNetworkOptions *networkOptions = [MPNetworkOptions new];
networkOptions.customBaseURL = [NSURL URLWithString:@"https://rkt.example.com"];
mParticleOptions.networkOptions = networkOptions;

//Please see the Identity page for more information on building this object
MPIdentityApiRequest *request = [MPIdentityApiRequest requestWithEmptyUser];
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ android {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'com.mparticle:android-core:5+'
implementation 'com.mparticle:android-core:5.79.0'

// Required for Rokt event subscription
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.6.1"
Expand Down
4 changes: 2 additions & 2 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ flutter {

dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'
implementation 'com.mparticle:android-core:5+'
implementation 'com.mparticle:android-core:5.79.0'

implementation 'com.mparticle:android-rokt-kit:5+'
implementation 'com.mparticle:android-rokt-kit:5.79.0'

// Required for gathering Android Advertising ID (see below)
implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1'
Expand Down
4 changes: 2 additions & 2 deletions ios/mparticle_flutter_sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ mParticle Flutter Wrapper
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
# SDK 9.1 umbrella pod pulls required transitive dependencies.
s.dependency 'mParticle-Apple-SDK', '~> 9.1'
# SDK 9.2 umbrella pod pulls required transitive dependencies.
s.dependency 'mParticle-Apple-SDK', '~> 9.2'
s.platform = :ios, '15.6'

# Flutter.framework does not contain a i386 slice.
Expand Down
Loading