Skip to content

Commit 8564162

Browse files
author
Mikael Wills
committed
Added github workflows
1 parent a1c3908 commit 8564162

File tree

14 files changed

+91
-4
lines changed

14 files changed

+91
-4
lines changed

.github/workflows/publish.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish plugin
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Install Flutter
13+
uses: subosito/flutter-action@v2
14+
with:
15+
channel: "stable"
16+
- name: Install project dependencies
17+
run: flutter pub get
18+
- name: Dart Format Check
19+
run: dart format lib/ test/ --set-exit-if-changed
20+
- name: Import Sorter Check
21+
run: flutter pub run import_sorter:main --no-comments --exit-if-changed
22+
- name: Dart Analyze Check
23+
run: flutter analyze
24+
#- name: Check Publish Warnings
25+
# run: dart pub publish --dry-run
26+
- name: Publish
27+
uses: k-paxian/[email protected]
28+
with:
29+
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
30+
flutter: true
31+
skipTests: true
32+
force: true

.github/workflows/pushMaster.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Push To Master
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
name: Build Checks
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Install Flutter
15+
uses: subosito/flutter-action@v2
16+
with:
17+
channel: "stable"
18+
- name: Install project dependencies
19+
run: flutter pub get
20+
- name: Dart Format Check
21+
run: dart format lib/ test/ --set-exit-if-changed
22+
- name: Import Sorter Check
23+
run: flutter pub run import_sorter:main --no-comments --exit-if-changed
24+
- name: Dart Analyze Check
25+
run: flutter analyze

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22

33
-----------------------------------------------
4+
5+
[0.4.1] - 2025.02.03
6+
7+
* [Fix] Updates firebase messaging and android gradle
8+
49
[0.4.0] - 2023.08.24
510

611
* [fix] Extracting UI responsibility, named parameters, android dismissal fix (#189).

analysis_options.yaml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
1-
include: package:pedantic/analysis_options.yaml
1+
2+
# This file configures the analyzer, which statically analyzes Dart code to
3+
# check for errors, warnings, and lints.
4+
#
5+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
6+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
7+
# invoked from the command line by running `flutter analyze`.
8+
9+
# The following line activates a set of recommended lints for Flutter apps,
10+
# packages, and plugins designed to encourage good coding practices.
211

312
linter:
13+
# The lint rules applied to this project can be customized in the
14+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15+
# included above or to enable additional rules. A list of all available lints
16+
# and their documentation is published at https://dart.dev/lints.
17+
#
18+
# Instead of disabling a lint rule for the entire project in the
19+
# section below, it can also be suppressed for a single line of code
20+
# or a specific dart file by using the `// ignore: name_of_lint` and
21+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
22+
# producing the lint.
423
rules:
524
- always_declare_return_types
625
- avoid_empty_else
@@ -30,7 +49,12 @@ linter:
3049
- use_rethrow_when_possible
3150
- valid_regexps
3251
- void_checks
33-
52+
53+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
54+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
55+
# Additional information about this file can be found at
56+
# https://dart.dev/guides/language/analysis-options
57+
3458
analyzer:
3559
errors:
3660
# treat missing required parameters as a warning (not a hint)
@@ -45,4 +69,3 @@ analyzer:
4569
# Ignore analyzer hints for updating pubspecs when using Future or
4670
# Stream and not importing dart:async
4771
# Please see https://github.com/flutter/flutter/pull/24528 for details.
48-
sdk_version_async_exported_from_core: ignore

lib/src/actions.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'package:callkeep/src/call.dart';
2-
32
import 'event.dart';
43

54
class CallKeepDidReceiveStartCallAction extends EventType {

lib/src/api.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import 'dart:async';
22
import 'dart:io';
33

44
import 'package:flutter/services.dart';
5+
56
import 'package:logger/logger.dart';
67

78
import 'actions.dart';

lib/src/event.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'package:flutter/cupertino.dart';
2+
23
import 'package:logger/web.dart';
34

45
abstract class EventType {

pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dependencies:
1717
dev_dependencies:
1818
flutter_test:
1919
sdk: flutter
20+
import_sorter: ^4.6.0
2021

2122
flutter:
2223
plugin:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)