Skip to content

Commit

Permalink
Added github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikael Wills committed Feb 3, 2025
1 parent a1c3908 commit 8564162
Show file tree
Hide file tree
Showing 14 changed files with 91 additions and 4 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish plugin

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Install project dependencies
run: flutter pub get
- name: Dart Format Check
run: dart format lib/ test/ --set-exit-if-changed
- name: Import Sorter Check
run: flutter pub run import_sorter:main --no-comments --exit-if-changed
- name: Dart Analyze Check
run: flutter analyze
#- name: Check Publish Warnings
# run: dart pub publish --dry-run
- name: Publish
uses: k-paxian/[email protected]
with:
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
flutter: true
skipTests: true
force: true
25 changes: 25 additions & 0 deletions .github/workflows/pushMaster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Push To Master

on:
push:
branches:
- main

jobs:
build:
name: Build Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Install project dependencies
run: flutter pub get
- name: Dart Format Check
run: dart format lib/ test/ --set-exit-if-changed
- name: Import Sorter Check
run: flutter pub run import_sorter:main --no-comments --exit-if-changed
- name: Dart Analyze Check
run: flutter analyze
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog

-----------------------------------------------

[0.4.1] - 2025.02.03

* [Fix] Updates firebase messaging and android gradle

[0.4.0] - 2023.08.24

* [fix] Extracting UI responsibility, named parameters, android dismissal fix (#189).
Expand Down
29 changes: 26 additions & 3 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
include: package:pedantic/analysis_options.yaml

# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.

# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.

linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at https://dart.dev/lints.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
- always_declare_return_types
- avoid_empty_else
Expand Down Expand Up @@ -30,7 +49,12 @@ linter:
- use_rethrow_when_possible
- valid_regexps
- void_checks


# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options

analyzer:
errors:
# treat missing required parameters as a warning (not a hint)
Expand All @@ -45,4 +69,3 @@ analyzer:
# Ignore analyzer hints for updating pubspecs when using Future or
# Stream and not importing dart:async
# Please see https://github.com/flutter/flutter/pull/24528 for details.
sdk_version_async_exported_from_core: ignore
1 change: 0 additions & 1 deletion lib/src/actions.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:callkeep/src/call.dart';

import 'event.dart';

class CallKeepDidReceiveStartCallAction extends EventType {
Expand Down
1 change: 1 addition & 0 deletions lib/src/api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'dart:async';
import 'dart:io';

import 'package:flutter/services.dart';

import 'package:logger/logger.dart';

import 'actions.dart';
Expand Down
1 change: 1 addition & 0 deletions lib/src/event.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter/cupertino.dart';

import 'package:logger/web.dart';

abstract class EventType {
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
import_sorter: ^4.6.0

flutter:
plugin:
Expand Down
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 comments on commit 8564162

Please sign in to comment.