Skip to content

Commit 70619a6

Browse files
committed
chore: align example runtime setup for rokt validation
Update the example app runtime configuration so placement and shoppable ads validation uses the current test identifiers and iOS payment extension dependency.
1 parent 64d0b08 commit 70619a6

7 files changed

Lines changed: 70 additions & 66 deletions

File tree

example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ android {
4949
defaultConfig {
5050
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
5151
applicationId "com.mparticle.mparticle_flutter_sdk_example"
52-
minSdkVersion 21
52+
minSdkVersion flutter.minSdkVersion
5353
targetSdkVersion 35
5454
versionCode flutterVersionCode.toInteger()
5555
versionName flutterVersionName

example/ios/Podfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ target 'Runner' do
3232
use_modular_headers!
3333

3434
pod 'mParticle-Rokt'
35+
pod 'RoktPaymentExtension'
3536

3637
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
3738
end

example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
2930
shouldUseLaunchSchemeArgsEnv = "YES">
3031
<MacroExpansion>
3132
<BuildableReference
@@ -43,11 +44,13 @@
4344
buildConfiguration = "Debug"
4445
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4546
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
47+
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
4648
launchStyle = "0"
4749
useCustomWorkingDirectory = "NO"
4850
ignoresPersistentStateOnLaunch = "NO"
4951
debugDocumentVersioning = "YES"
5052
debugServiceExtension = "internal"
53+
enableGPUValidationMode = "1"
5154
allowLocationSimulation = "YES">
5255
<BuildableProductRunnable
5356
runnableDebuggingMode = "0">

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class _MyAppState extends State<MyApp> {
6565
// Platform messages are asynchronous, so we initialize in an async method.
6666
Future<void> initMparticle() async {
6767
mpInstance = await MparticleFlutterSdk.getInstance();
68-
mpInstance?.rokt.events('MSDKEmbeddedLayout', (event) {
68+
mpInstance?.rokt.events('StgRoktShoppableAds', (event) {
6969
print("Rokt event: $event");
7070
});
7171
if (mpInstance != null) {

example/lib/rokt_layouts_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class _RoktLayoutsScreenState extends State<RoktLayoutsScreen> {
192192
.identify(identityRequest: identityRequest);
193193

194194
widget.mpInstance?.rokt.selectShoppableAds(
195-
identifier: 'MSDKShoppableAdsLayout',
195+
identifier: 'StgRoktShoppableAds',
196196
attributes: _getShoppableAdsAttributes());
197197
print('${_getPlatform()} Rokt selectShoppableAds called');
198198
} catch (e) {

example/pubspec.lock

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,26 @@ packages:
2121
dependency: transitive
2222
description:
2323
name: characters
24-
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
24+
sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803
2525
url: "https://pub.dev"
2626
source: hosted
27-
version: "1.3.0"
27+
version: "1.4.0"
2828
clock:
2929
dependency: transitive
3030
description:
3131
name: clock
32-
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
32+
sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b
3333
url: "https://pub.dev"
3434
source: hosted
35-
version: "1.1.1"
35+
version: "1.1.2"
3636
collection:
3737
dependency: transitive
3838
description:
3939
name: collection
40-
sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf
40+
sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
4141
url: "https://pub.dev"
4242
source: hosted
43-
version: "1.19.0"
43+
version: "1.19.1"
4444
cupertino_icons:
4545
dependency: "direct main"
4646
description:
@@ -53,10 +53,10 @@ packages:
5353
dependency: transitive
5454
description:
5555
name: fake_async
56-
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
56+
sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44"
5757
url: "https://pub.dev"
5858
source: hosted
59-
version: "1.3.1"
59+
version: "1.3.3"
6060
file:
6161
dependency: transitive
6262
description:
@@ -99,34 +99,34 @@ packages:
9999
dependency: transitive
100100
description:
101101
name: leak_tracker
102-
sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06"
102+
sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de"
103103
url: "https://pub.dev"
104104
source: hosted
105-
version: "10.0.7"
105+
version: "11.0.2"
106106
leak_tracker_flutter_testing:
107107
dependency: transitive
108108
description:
109109
name: leak_tracker_flutter_testing
110-
sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379"
110+
sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1"
111111
url: "https://pub.dev"
112112
source: hosted
113-
version: "3.0.8"
113+
version: "3.0.10"
114114
leak_tracker_testing:
115115
dependency: transitive
116116
description:
117117
name: leak_tracker_testing
118-
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
118+
sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1"
119119
url: "https://pub.dev"
120120
source: hosted
121-
version: "3.0.1"
121+
version: "3.0.2"
122122
matcher:
123123
dependency: transitive
124124
description:
125125
name: matcher
126-
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
126+
sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2
127127
url: "https://pub.dev"
128128
source: hosted
129-
version: "0.12.16+1"
129+
version: "0.12.17"
130130
material_color_utilities:
131131
dependency: transitive
132132
description:
@@ -139,25 +139,25 @@ packages:
139139
dependency: transitive
140140
description:
141141
name: meta
142-
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
142+
sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394"
143143
url: "https://pub.dev"
144144
source: hosted
145-
version: "1.15.0"
145+
version: "1.17.0"
146146
mparticle_flutter_sdk:
147147
dependency: "direct main"
148148
description:
149149
path: ".."
150150
relative: true
151151
source: path
152-
version: "1.1.1"
152+
version: "2.0.0"
153153
path:
154154
dependency: transitive
155155
description:
156156
name: path
157-
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
157+
sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"
158158
url: "https://pub.dev"
159159
source: hosted
160-
version: "1.9.0"
160+
version: "1.9.1"
161161
platform:
162162
dependency: transitive
163163
description:
@@ -191,18 +191,18 @@ packages:
191191
dependency: transitive
192192
description:
193193
name: stack_trace
194-
sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377"
194+
sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1"
195195
url: "https://pub.dev"
196196
source: hosted
197-
version: "1.12.0"
197+
version: "1.12.1"
198198
stream_channel:
199199
dependency: transitive
200200
description:
201201
name: stream_channel
202-
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
202+
sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d"
203203
url: "https://pub.dev"
204204
source: hosted
205-
version: "2.1.2"
205+
version: "2.1.4"
206206
string_scanner:
207207
dependency: transitive
208208
description:
@@ -231,18 +231,18 @@ packages:
231231
dependency: transitive
232232
description:
233233
name: test_api
234-
sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c"
234+
sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55
235235
url: "https://pub.dev"
236236
source: hosted
237-
version: "0.7.3"
237+
version: "0.7.7"
238238
vector_math:
239239
dependency: transitive
240240
description:
241241
name: vector_math
242-
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
242+
sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
243243
url: "https://pub.dev"
244244
source: hosted
245-
version: "2.1.4"
245+
version: "2.2.0"
246246
vm_service:
247247
dependency: transitive
248248
description:
@@ -260,5 +260,5 @@ packages:
260260
source: hosted
261261
version: "3.0.4"
262262
sdks:
263-
dart: ">=3.4.0 <4.0.0"
263+
dart: ">=3.8.0-0 <4.0.0"
264264
flutter: ">=3.18.0-18.0.pre.54"

0 commit comments

Comments
 (0)