Skip to content

Commit 0d7ef3a

Browse files
committed
docs: align Flutter native dependency versions for CNAME updates
Pin Android mParticle/Rokt dependencies to 5.79.0 and update iOS pod guidance to 9.2 while documenting native CNAME configuration examples for both platforms.
1 parent fe8c1ab commit 0d7ef3a

5 files changed

Lines changed: 30 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Add support for Apple SDK `MPNetworkOptions.customBaseURL` configuration in iOS initialization examples for CNAME routing.
13+
- Add Android initialization examples for CNAME routing via `NetworkOptions.withNetworkOptions(...)`.
14+
15+
### Changed
16+
17+
- Bump iOS CocoaPods dependency from `mParticle-Apple-SDK ~> 9.1` to `~> 9.2`.
18+
- Pin Android Gradle dependencies in plugin/example docs to `android-core:5.79.0` and `android-rokt-kit:5.79.0`.
19+
1020
## [2.0.0] - 2026-04-17
1121

1222
### Added

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ To install mParticle on an Android platform:
4444

4545
```groovy
4646
dependencies {
47-
implementation 'com.mparticle:android-core:5+'
47+
implementation 'com.mparticle:android-core:5.79.0'
48+
// Required only if you use Rokt APIs from Flutter
49+
implementation 'com.mparticle:android-rokt-kit:5.79.0'
4850
4951
// Required for gathering Android Advertising ID (see below)
5052
implementation 'com.google.android.gms:play-services-ads-identifier:16.0.0'
@@ -63,13 +65,16 @@ package com.example.myapp;
6365

6466
import android.app.Application;
6567
import com.mparticle.MParticle;
68+
import com.mparticle.MParticleOptions;
69+
import com.mparticle.networking.NetworkOptions;
6670

6771
public class MyApplication extends Application {
6872
@Override
6973
public void onCreate() {
7074
super.onCreate();
7175
MParticleOptions options = MParticleOptions.builder(this)
7276
.credentials("REPLACE ME WITH KEY","REPLACE ME WITH SECRET")
77+
.networkOptions(NetworkOptions.withNetworkOptions("https://rkt.example.com"))
7378
.setLogLevel(MParticle.LogLevel.VERBOSE)
7479
.identify(identifyRequest)
7580
.identifyTask(
@@ -88,12 +93,14 @@ public class MyApplication extends Application {
8893
```kotlin
8994
import com.mparticle.MParticle
9095
import com.mparticle.MParticleOptions
96+
import com.mparticle.networking.NetworkOptions
9197

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

119126
```bash
120-
$ # Update your Podfile to depend on 'mParticle-Apple-SDK' version 9.1.0 or later
127+
$ # Update your Podfile to depend on 'mParticle-Apple-SDK' version 9.2.0 or later
121128
$ pod install
122129
```
123130

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

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

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

183193
MParticleOptions *mParticleOptions = [MParticleOptions optionsWithKey:@"REPLACE ME"
184194
secret:@"REPLACE ME"];
195+
MPNetworkOptions *networkOptions = [MPNetworkOptions new];
196+
networkOptions.customBaseURL = [NSURL URLWithString:@"https://rkt.example.com"];
197+
mParticleOptions.networkOptions = networkOptions;
185198

186199
//Please see the Identity page for more information on building this object
187200
MPIdentityApiRequest *request = [MPIdentityApiRequest requestWithEmptyUser];

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ android {
4848

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

5353
// Required for Rokt event subscription
5454
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.6.1"

example/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ flutter {
7070

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

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

7777
// Required for gathering Android Advertising ID (see below)
7878
implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1'

ios/mparticle_flutter_sdk.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ mParticle Flutter Wrapper
1515
s.source = { :path => '.' }
1616
s.source_files = 'Classes/**/*'
1717
s.dependency 'Flutter'
18-
# SDK 9.1 umbrella pod pulls required transitive dependencies.
19-
s.dependency 'mParticle-Apple-SDK', '~> 9.1'
18+
# SDK 9.2 umbrella pod pulls required transitive dependencies.
19+
s.dependency 'mParticle-Apple-SDK', '~> 9.2'
2020
s.platform = :ios, '15.6'
2121

2222
# Flutter.framework does not contain a i386 slice.

0 commit comments

Comments
 (0)