You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a shared Expo customBaseUrl option for CNAME setup so iOS and Android use the same configuration value during mParticle startup.
Update Android integration requirements to 5.79.0 and align the sample and documentation with the new shared setting.
#agentic
For global CNAME setup, add the optional shared `customBaseUrl` setting:
114
+
115
+
```json
116
+
{
117
+
"customBaseUrl": "https://cname.example.com"
118
+
}
119
+
```
120
+
114
121
### What the Plugin Does
115
122
116
123
**iOS:**
117
124
118
125
- Adds mParticle SDK initialization to `AppDelegate` (supports both Swift and Objective-C)
119
-
- Sets `MPNetworkOptions.customBaseURL` before startup when `iosCustomBaseURL` is configured
126
+
- Sets `MPNetworkOptions.customBaseURL` before startup when `customBaseUrl` is configured
120
127
- Configures `pre_install` hook in Podfile for dynamic framework linking
121
128
- Adds specified kit pod dependencies
122
129
123
130
**Android:**
124
131
125
132
- Adds mParticle SDK initialization to `MainApplication` (supports both Kotlin and Java)
133
+
- Sets `NetworkOptions.setCustomBaseURL` before startup when `customBaseUrl` is configured
126
134
- Adds specified kit Maven dependencies to `build.gradle`
127
135
128
136
### Version Support
@@ -294,7 +302,8 @@ See [MIGRATING.md](./MIGRATING.md) for release-specific migration guidance.
294
302
295
303
For Android integrations that use `MParticle.Rokt.setSessionId()` or
296
304
`MParticle.Rokt.getSessionId()`, `android-core` and `android-rokt-kit`
297
-
`5.77.0` or newer are required.
305
+
`5.79.0` or newer are required. Android CNAME setup through
306
+
`customBaseUrl` also requires `android-core` `5.79.0` or newer.
298
307
299
308
See [Identity](http://docs.mparticle.com/developers/sdk/ios/identity/) for more information on supplying an `MPIdentityApiRequest` object during SDK initialization.
300
309
@@ -315,20 +324,28 @@ and build your workspace from xCode.
315
324
For more help, see [the Android set up docs](https://docs.mparticle.com/developers/sdk/android/getting-started/#create-an-input).
316
325
317
326
```kotlin
318
-
package com.example.myapp;
327
+
package com.example.myapp
319
328
320
-
import android.app.Application;
321
-
import com.mparticle.MParticle;
329
+
import android.app.Application
330
+
import com.mparticle.MParticle
331
+
import com.mparticle.MParticleOptions
332
+
import com.mparticle.networking.NetworkOptions
322
333
323
334
class MyApplication : Application() {
324
-
fun onCreate() {
335
+
override fun onCreate() {
325
336
super.onCreate()
326
337
val options: MParticleOptions = MParticleOptions.builder(this)
327
338
.credentials("REPLACE ME WITH KEY", "REPLACE ME WITH SECRET")
0 commit comments