Skip to content

Commit b96ede0

Browse files
authored
Merge pull request #354 from Countly/web-update
Web update
2 parents b8e74f8 + 09eab42 commit b96ede0

File tree

10 files changed

+78
-1
lines changed

10 files changed

+78
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
* Added "disableBackoffMechanism()" init config method to disable backoff behavior.
66
* Added "attemptToSendStoredRequests()" method for events that needs quick sending.
77
* Added support for SDK health checks after initialization for iOS.
8+
* Added timezone support for Web.
89

910
* Mitigated an issue when an install referrer triggered.
1011

1112
* Updated underlying Android SDK version to 25.4.1
1213
* Updated underlying iOS SDK version to 25.4.2
14+
* Updated underlying Web SDK version to 25.4.1
1315

1416
## 25.4.0
1517
* ! Minor breaking change ! Removed Secure.ANDROID_ID on Android and UIDevice.currentDevice.identifierForVendor on iOS usages in device ID generation. The SDKs now exclusively uses random UUIDs for device ID generation.

example/web/favicon.png

4.64 KB
Loading

example/web/icons/Icon-192.png

9.64 KB
Loading

example/web/icons/Icon-512.png

13.6 KB
Loading
9.64 KB
Loading
13.6 KB
Loading

example/web/index.html

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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="countly_flutter_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>countly_flutter_example</title>
33+
<link rel="manifest" href="manifest.json">
34+
</head>
35+
<body>
36+
<script src="flutter_bootstrap.js" async></script>
37+
</body>
38+
</html>

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": "countly_flutter_example",
3+
"short_name": "countly_flutter_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+
}

lib/src/web/countly_flutter_plugin.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,8 @@ class CountlyFlutterPlugin {
580580
'force_post': config['httpPostForced'] ?? false,
581581
'require_consent': config['shouldRequireConsent'],
582582
'salt': config['tamperingProtectionSalt'],
583+
'disable_sdk_behavior_settings_updates': config['sdkBehaviorSettingsUpdatesDisabled'] ?? false,
584+
'disable_backoff_mechanism': config['backoffMechanismDisabled'] ?? false,
583585
};
584586

585587
var deviceID = config['deviceID'];

lib/src/web/plugin_config.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class CountlyFlutterPluginConfig {
22
static const String SDK_VERSION_STRING = '25.4.1';
33
static const String SDK_NAME = 'dart-flutterb-web';
4-
static const String WEB_SDK_URL = 'https://cdn.jsdelivr.net/npm/[email protected].0/lib/countly.min.js';
4+
static const String WEB_SDK_URL = 'https://cdn.jsdelivr.net/npm/[email protected].1/lib/countly.min.js';
55
}

0 commit comments

Comments
 (0)