Skip to content

Commit 8e28545

Browse files
authored
Merge pull request #382 from Countly/staging-lite
Staging lite 26.1.0
2 parents 94d1824 + f184b19 commit 8e28545

54 files changed

Lines changed: 3681 additions & 103 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Flutter Tests and Coverage
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- staging-lite
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
package-tests:
13+
name: Package tests (root)
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Flutter
21+
uses: subosito/flutter-action@v2
22+
with:
23+
channel: stable
24+
25+
- name: Get dependencies
26+
run: flutter pub get
27+
28+
- name: Run tests with coverage
29+
shell: bash
30+
run: |
31+
set -o pipefail
32+
flutter test --coverage -r expanded | tee package-test-output.txt
33+
34+
- name: Print coverage summary
35+
shell: bash
36+
run: |
37+
if [ ! -f coverage/lcov.info ]; then
38+
echo "No coverage/lcov.info found"
39+
exit 1
40+
fi
41+
42+
awk -F: '
43+
/^LF:/ { lf += $2 }
44+
/^LH:/ { lh += $2 }
45+
END {
46+
pct = (lf > 0) ? (lh / lf) * 100 : 0
47+
printf "Root package coverage: %.2f%% (%d/%d)\n", pct, lh, lf
48+
}
49+
' coverage/lcov.info | tee package-coverage-summary.txt
50+
51+
{
52+
echo "## Root package test coverage"
53+
echo
54+
cat package-coverage-summary.txt
55+
} >> "$GITHUB_STEP_SUMMARY"
56+
57+
- name: Upload root coverage artifact
58+
uses: actions/upload-artifact@v4
59+
with:
60+
name: root-lcov
61+
path: coverage/lcov.info
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release Notice
2+
on:
3+
release:
4+
types: [published]
5+
workflow_dispatch:
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
# To check the github context
11+
- name: Dump Github context
12+
env:
13+
GITHUB_CONTEXT: ${{ toJSON(github) }}
14+
run: echo "$GITHUB_CONTEXT"
15+
- name: Send custom JSON data to Slack workflow
16+
id: slack
17+
uses: slackapi/slack-github-action@v1.23.0
18+
with:
19+
# This data can be any valid JSON from a previous step in the GitHub Action
20+
payload: |
21+
{
22+
"repository": "${{ github.repository }}",
23+
"tag_name": "${{ github.event.release.tag_name }}",
24+
"actor": "${{ github.actor }}",
25+
"body": ${{ toJSON(github.event.release.body) }},
26+
"html_url": "${{ github.event.release.html_url }}"
27+
}
28+
env:
29+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_RELEASE }}
30+
- name: Send custom JSON data to Discord
31+
uses: sarisia/actions-status-discord@v1.13.0
32+
with:
33+
webhook: ${{ secrets.DISCORD_WEBHOOK_URL }}
34+
nodetail: true
35+
title: New ${{ github.repository }} version ${{ github.event.release.tag_name }} published by ${{ github.actor }}
36+
description: |
37+
Release URL: ${{ github.event.release.html_url }}
38+
Click [here](https://github.com/Countly/countly-server/blob/master/CHANGELOG.md) to view the change log.
39+
`${{ github.event.release.body }}`

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 26.1.0-rc.1
1+
## 26.1.0
22

33
* Initial SDK release with the following functionalities:
44

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2026 Countly
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ Track, measure, and take action - all without leaving Countly.
1313

1414
## Integrating Countly SDK in your projects
1515

16-
For a detailed description on how to use this SDK [check out our documentation](https://support.count.ly/hc/en-us/articles/).
16+
For a detailed description on how to use this SDK [check out our documentation](https://support.countly.com/hc/en-us/articles/360037944212-Flutter#h_01KV0E0M1GZPYV77YH6Z0M9QXH).
1717

18-
For an example integration of this SDK, see the [Flutter example app in this repository](https://github.com/Countly/countly-sdk-dart/tree/main/example/flutter_example).
18+
For an example integration of this SDK, see the [Flutter example app in this repository](https://github.com/Countly/countly-sdk-flutter-bridge/tree/master-lite/example/flutter_example).
1919

2020
This SDK supports the following features:
2121

@@ -39,7 +39,7 @@ dependencies:
3939
### Initialization
4040
4141
```dart
42-
import 'package:countly_flutter_lite/countly.dart';
42+
import 'package:countly_flutter_lite/countly_flutter_lite.dart';
4343
import 'package:flutter/widgets.dart';
4444

4545
void main() async {

analysis_options.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
include: package:flutter_lints/flutter.yaml
2+
3+
analyzer:
4+
exclude:
5+
- test/**
6+
- integration_test/**
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
include: package:flutter_lints/flutter.yaml
2+
3+
analyzer:
4+
exclude:
5+
- test/**
6+
- integration_test/**

0 commit comments

Comments
 (0)