-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/dotintent/FlutterBleLib …
…into develop
- Loading branch information
Showing
76 changed files
with
3,292 additions
and
827 deletions.
There are no files selected for viewing
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,37 @@ | ||
name: Dart/Flutter Package Analyzer | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
package-analysis: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: axel-op/dart-package-analyzer@v3 | ||
# set an id for the current step | ||
id: analysis | ||
with: | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# You can then use this id to retrieve the outputs in the next steps. | ||
# The following step shows how to exit the workflow with an error if the total score in percentage is below 50: | ||
- name: Check scores | ||
env: | ||
# NB: "analysis" is the id set above. Replace it with the one you used if different. | ||
TOTAL: ${{ steps.analysis.outputs.total }} | ||
TOTAL_MAX: ${{ steps.analysis.outputs.total_max }} | ||
ANALYSIS: ${{ steps.analysis.outputs.analysis }} | ||
ANALYSIS_MAX: ${{ steps.analysis.outputs.analysis_max }} | ||
run: | | ||
if (( $ANALYSIS < $ANALYSIS_MAX )) | ||
then | ||
echo Unacceptable analysis score! Needs to be maxed out! | ||
exit 1 | ||
elif (( $TOTAL < ($TOTAL_MAX - 10) )) | ||
then | ||
echo Unacceptable total score! Check dependencies and other factors! | ||
exit 2 | ||
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
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,10 @@ | ||
include: package:pedantic/analysis_options.yaml | ||
|
||
analyzer: | ||
exclude: [test/**] | ||
|
||
linter: | ||
rules: | ||
prefer_single_quotes: false | ||
omit_local_variable_types: false | ||
unawaited_futures: 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
1 change: 1 addition & 0 deletions
1
android/src/main/java/com/polidea/flutter_ble_lib/constant/MethodName.java
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
Oops, something went wrong.