Skip to content

Commit e4ab014

Browse files
Add web platform to example
1 parent 7a57c2a commit e4ab014

File tree

8 files changed

+121
-24
lines changed

8 files changed

+121
-24
lines changed

splitio/example/pubspec.lock

Lines changed: 47 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -75,30 +75,35 @@ packages:
7575
description: flutter
7676
source: sdk
7777
version: "0.0.0"
78+
flutter_web_plugins:
79+
dependency: transitive
80+
description: flutter
81+
source: sdk
82+
version: "0.0.0"
7883
leak_tracker:
7984
dependency: transitive
8085
description:
8186
name: leak_tracker
82-
sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0"
87+
sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de"
8388
url: "https://pub.dev"
8489
source: hosted
85-
version: "10.0.9"
90+
version: "11.0.2"
8691
leak_tracker_flutter_testing:
8792
dependency: transitive
8893
description:
8994
name: leak_tracker_flutter_testing
90-
sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573
95+
sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1"
9196
url: "https://pub.dev"
9297
source: hosted
93-
version: "3.0.9"
98+
version: "3.0.10"
9499
leak_tracker_testing:
95100
dependency: transitive
96101
description:
97102
name: leak_tracker_testing
98-
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
103+
sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1"
99104
url: "https://pub.dev"
100105
source: hosted
101-
version: "3.0.1"
106+
version: "3.0.2"
102107
lints:
103108
dependency: transitive
104109
description:
@@ -127,10 +132,10 @@ packages:
127132
dependency: transitive
128133
description:
129134
name: meta
130-
sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c
135+
sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394"
131136
url: "https://pub.dev"
132137
source: hosted
133-
version: "1.16.0"
138+
version: "1.17.0"
134139
path:
135140
dependency: transitive
136141
description:
@@ -166,28 +171,38 @@ packages:
166171
path: ".."
167172
relative: true
168173
source: path
169-
version: "1.0.0-rc.1"
174+
version: "1.0.0"
170175
splitio_android:
171176
dependency: transitive
172177
description:
173-
path: "../../splitio_android"
174-
relative: true
175-
source: path
176-
version: "1.0.0-rc.1"
178+
name: splitio_android
179+
sha256: "344bf82de6694cffb8dd80a96ee734e31bb838d2b4693fb046e0fc98e31512ca"
180+
url: "https://pub.dev"
181+
source: hosted
182+
version: "1.0.0"
177183
splitio_ios:
178184
dependency: transitive
179185
description:
180-
path: "../../splitio_ios"
181-
relative: true
182-
source: path
183-
version: "1.0.0-rc.1"
186+
name: splitio_ios
187+
sha256: "1c078bc49bf7b30df6ca50accb6a9eecf592ec607e20e77b1c6ecdabc7a44dc9"
188+
url: "https://pub.dev"
189+
source: hosted
190+
version: "1.0.0"
184191
splitio_platform_interface:
185192
dependency: transitive
186193
description:
187-
path: "../../splitio_platform_interface"
194+
name: splitio_platform_interface
195+
sha256: "8bcb1cab9f5fffb7b79cfeeaf6c80d82f8ede55c8d6ca7578ec78653f3f9e499"
196+
url: "https://pub.dev"
197+
source: hosted
198+
version: "2.0.0"
199+
splitio_web:
200+
dependency: transitive
201+
description:
202+
path: "../../splitio_web"
188203
relative: true
189204
source: path
190-
version: "2.0.0-rc.1"
205+
version: "1.0.0"
191206
stack_trace:
192207
dependency: transitive
193208
description:
@@ -224,18 +239,18 @@ packages:
224239
dependency: transitive
225240
description:
226241
name: test_api
227-
sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd
242+
sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55
228243
url: "https://pub.dev"
229244
source: hosted
230-
version: "0.7.4"
245+
version: "0.7.7"
231246
vector_math:
232247
dependency: transitive
233248
description:
234249
name: vector_math
235-
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
250+
sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
236251
url: "https://pub.dev"
237252
source: hosted
238-
version: "2.1.4"
253+
version: "2.2.0"
239254
vm_service:
240255
dependency: transitive
241256
description:
@@ -244,6 +259,14 @@ packages:
244259
url: "https://pub.dev"
245260
source: hosted
246261
version: "15.0.0"
262+
web:
263+
dependency: transitive
264+
description:
265+
name: web
266+
sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27"
267+
url: "https://pub.dev"
268+
source: hosted
269+
version: "0.5.1"
247270
sdks:
248-
dart: ">=3.7.0-0 <4.0.0"
271+
dart: ">=3.8.0-0 <4.0.0"
249272
flutter: ">=3.18.0-18.0.pre.54"

splitio/example/web/favicon.png

917 Bytes
Loading
5.17 KB
Loading
8.06 KB
Loading
5.46 KB
Loading
20.5 KB
Loading

splitio/example/web/index.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<!--
5+
If you are serving your web app in a path other than the root, change the
6+
href value below to reflect the base path you are serving from.
7+
8+
The path provided below has to start and end with a slash "/" in order for
9+
it to work correctly.
10+
11+
For more details:
12+
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
13+
14+
This is a placeholder for base href that will be replaced by the value of
15+
the `--base-href` argument provided to `flutter build`.
16+
-->
17+
<base href="$FLUTTER_BASE_HREF">
18+
19+
<meta charset="UTF-8">
20+
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
21+
<meta name="description" content="A new Flutter project.">
22+
23+
<!-- iOS meta tags & icons -->
24+
<meta name="mobile-web-app-capable" content="yes">
25+
<meta name="apple-mobile-web-app-status-bar-style" content="black">
26+
<meta name="apple-mobile-web-app-title" content="splitio_example">
27+
<link rel="apple-touch-icon" href="icons/Icon-192.png">
28+
29+
<!-- Favicon -->
30+
<link rel="icon" type="image/png" href="favicon.png"/>
31+
32+
<title>splitio_example</title>
33+
<link rel="manifest" href="manifest.json">
34+
<!-- <script type="text/javascript" src="//cdn.split.io/sdk/split-browser-1.6.0.full.min.js"></script> -->
35+
</head>
36+
<body>
37+
<script src="flutter_bootstrap.js" async></script>
38+
</body>
39+
</html>

splitio/example/web/manifest.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "splitio_example",
3+
"short_name": "splitio_example",
4+
"start_url": ".",
5+
"display": "standalone",
6+
"background_color": "#0175C2",
7+
"theme_color": "#0175C2",
8+
"description": "A new Flutter project.",
9+
"orientation": "portrait-primary",
10+
"prefer_related_applications": false,
11+
"icons": [
12+
{
13+
"src": "icons/Icon-192.png",
14+
"sizes": "192x192",
15+
"type": "image/png"
16+
},
17+
{
18+
"src": "icons/Icon-512.png",
19+
"sizes": "512x512",
20+
"type": "image/png"
21+
},
22+
{
23+
"src": "icons/Icon-maskable-192.png",
24+
"sizes": "192x192",
25+
"type": "image/png",
26+
"purpose": "maskable"
27+
},
28+
{
29+
"src": "icons/Icon-maskable-512.png",
30+
"sizes": "512x512",
31+
"type": "image/png",
32+
"purpose": "maskable"
33+
}
34+
]
35+
}

0 commit comments

Comments
 (0)