forked from icota/flutter_vlc_player
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'set_postion_update' into set-position
# Conflicts: # flutter_vlc_player/lib/src/vlc_player_controller.dart # flutter_vlc_player/pubspec.yaml # flutter_vlc_player_platform_interface/lib/src/messages/messages.dart
- Loading branch information
Showing
56 changed files
with
2,172 additions
and
1,380 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Library ON Push & PR DO Code check | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
code-check: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Setup flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
|
||
- name: Check flutter sdk version | ||
run: flutter --version | ||
|
||
- name: Get dependencies | ||
working-directory: ./flutter_vlc_player | ||
run: flutter pub get | ||
|
||
- name: Setup Dart Code Metrics | ||
working-directory: ./flutter_vlc_player | ||
run: dart pub get dart_code_metrics | ||
|
||
- name: Dart Code Metrics | ||
working-directory: ./flutter_vlc_player | ||
run: | | ||
dirs_to_analyze="" | ||
if [ -d lib ]; then dirs_to_analyze+=" lib"; fi | ||
if [ -d test ]; then dirs_to_analyze+=" test"; fi | ||
if [ -d example ]; then dirs_to_analyze+=" example"; fi | ||
if [ dirs_to_analyze != "" ] | ||
then | ||
dart run dart_code_metrics:metrics \ | ||
analyze \ | ||
$dirs_to_analyze \ | ||
--fatal-warnings \ | ||
--fatal-performance \ | ||
--fatal-style | ||
dart run dart_code_metrics:metrics \ | ||
check-unused-files \ | ||
$dirs_to_analyze \ | ||
--fatal-unused | ||
fi | ||
- name: Check formatting | ||
run: dart format . --set-exit-if-changed | ||
|
||
- name: Run tests | ||
run: | | ||
# run tests if `test` folder exists | ||
if [ -d test ] | ||
then | ||
flutter test -r expanded | ||
else | ||
echo "Tests not found." | ||
fi |
61 changes: 61 additions & 0 deletions
61
.github/workflows/code_check_for_flutter_vlc_player_platform_interface.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Interface ON Push & PR DO Code check | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
code-check: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Setup flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
|
||
- name: Check flutter sdk version | ||
working-directory: ./flutter_vlc_player_platform_interface | ||
run: flutter --version | ||
|
||
- name: Get dependencies | ||
working-directory: ./flutter_vlc_player_platform_interface | ||
run: flutter pub get | ||
|
||
- name: Setup Dart Code Metrics | ||
working-directory: ./flutter_vlc_player_platform_interface | ||
run: dart pub get dart_code_metrics | ||
|
||
- name: Dart Code Metrics | ||
working-directory: ./flutter_vlc_player_platform_interface | ||
run: | | ||
dirs_to_analyze="" | ||
if [ -d lib ]; then dirs_to_analyze+=" lib"; fi | ||
if [ -d test ]; then dirs_to_analyze+=" test"; fi | ||
if [ -d example ]; then dirs_to_analyze+=" example"; fi | ||
if [ dirs_to_analyze != "" ] | ||
then | ||
dart run dart_code_metrics:metrics \ | ||
analyze \ | ||
$dirs_to_analyze \ | ||
--fatal-warnings \ | ||
--fatal-performance \ | ||
--fatal-style | ||
dart run dart_code_metrics:metrics \ | ||
check-unused-files \ | ||
$dirs_to_analyze \ | ||
--fatal-unused | ||
fi | ||
- name: Check formatting | ||
working-directory: ./flutter_vlc_player_platform_interface | ||
run: dart format . --set-exit-if-changed | ||
|
||
- name: Run tests | ||
working-directory: ./flutter_vlc_player_platform_interface | ||
run: | | ||
# run tests if `test` folder exists | ||
if [ -d test ] | ||
then | ||
flutter test -r expanded | ||
else | ||
echo "Tests not found." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,12 @@ | ||
include: package:flutter_lints/flutter.yaml | ||
include: package:solid_lints/analysis_options.yaml | ||
|
||
dart_code_metrics: | ||
metrics: | ||
cyclomatic-complexity: 30 | ||
|
||
linter: | ||
rules: | ||
lines_longer_than_80_chars: false | ||
comment_references: false | ||
public_member_api_docs: false | ||
avoid_positional_boolean_parameters: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="software.solid.fluttervlcplayer"> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
</manifest> |
Oops, something went wrong.