Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
Release of 1.1.0
Browse files Browse the repository at this point in the history
Add `flutter_lint`. (✔️)
Remove `IOS` from plugin. (✔️)
Update dependences. (✔️)
Update example. (✔️)
Test if plugin still working.  (✔️)
Rename `AudiosTagModel` to `AudioModel`. (✔️)
Add `getMap` to `AudioModel`. (✔️)
Add `dart_analyzer`. (✔️)
Add `DEPRECATED`. (✔️)
  • Loading branch information
LucJosin authored Oct 20, 2021
2 parents ca775c4 + 26865c4 commit e6176d8
Show file tree
Hide file tree
Showing 19 changed files with 414 additions and 88 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/dart-analyzer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Dart Analyzer
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
package-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: axel-op/dart-package-analyzer@v3
id: dart_analysis
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Check Scores
env:
TOTAL: ${{ steps.dart_analysis.outputs.total }}
TOTAL_MAX: ${{ steps.dart_analysis.outputs.total_max }}
run: |
SCORES=$(( $TOTAL + 10 / $TOTAL_MAX + 10 ))
if (( $SCORES < 0.8 ))
then
echo Score too low!
exit 1
fi
33 changes: 31 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
## [1.1.0] - [10.20.2021]
### Features
#### Dart
- **[Added]** `getMap` to `AudioModel`.
- **[Added]** a [`DART ANALYZER`](https://github.com/axel-op/dart-package-analyzer/) to `PULL_REQUEST` and `PUSH`.

### Documentation
- Updated `README` documentation.
- Updated dependences.
- Updated `OnAudioEdit` and `OnAudioEditExample` documentation to support new `[Flutter 2.5]`.
- Created `DEPRECATED` file/history.

### Changes
#### Dart
- Changed from `[AudiosTagModel]` to `[AudioModel]`.
- Removed `[IOS]` from `[pubspec]`.

### ⚠ Important Changes
#### Dart
- Deprecated `[AudiosTagModel]` from `[AudioModel]`.

## [1.0.2] - [04.20.2021]
### Features
#### Dart/Kotlin
Expand Down Expand Up @@ -72,6 +93,14 @@
### Changes
- TODO
### Important Changes
### ⚠ Important Changes
#### @**Deprecated**
- TODO
-->
-->

<!--
https://github.com/LucasPJS/on_audio_query/issues/
- **[Added]** (Text)- [#Issue](Link)
- **[Fixed]** (Text)- [#Issue](Link)
- **[Changed]** (Text)- [#Issue](Link)
-->
4 changes: 4 additions & 0 deletions DEPRECATED.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## [1.1.0] - [10.20.2021] -> [X.X.X] - [XX.XX.XXXX]
### Deprecated
- `[AudiosTagModel]`.
- Use `[AudioModel]` instead.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ NOTE: Feel free to help with readme translations
Add the following code to your `pubspec.yaml`:
```yaml
dependencies:
on_audio_edit: ^1.0.2
on_audio_edit: ^1.1.0
```
#### Request Permission:
Expand Down
2 changes: 1 addition & 1 deletion README.pt-BR.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ NOTE: Fique à vontade para ajudar nas traduções
Adicione o seguinte codigo para seu `pubspec.yaml`:
```yaml
dependencies:
on_audio_edit: ^1.0.2
on_audio_edit: ^1.1.0
```
#### Solicitar Permissões:
Expand Down
29 changes: 29 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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.
include: package:flutter_lints/flutter.yaml

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-lang.github.io/linter/lints/index.html.
#
# 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:
# 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
8 changes: 4 additions & 4 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
ext.kotlin_version = '1.4.32'
repositories {
google()
jcenter()
mavenCentral()
}

dependencies {
Expand All @@ -17,7 +17,7 @@ buildscript {
rootProject.allprojects {
repositories {
google()
jcenter()
mavenCentral()
//
maven { url "https://jitpack.io" }
}
Expand Down Expand Up @@ -48,7 +48,7 @@ dependencies {
implementation "androidx.documentfile:documentfile:1.0.1"
implementation 'com.github.AdrienPoupa:jaudiotagger:2.2.3'
//
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2-native-mt'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2-native-mt'
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
}
29 changes: 29 additions & 0 deletions example/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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.
include: package:flutter_lints/flutter.yaml

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-lang.github.io/linter/lints/index.html.
#
# 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:
# 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
6 changes: 3 additions & 3 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
buildscript {
ext.kotlin_version = '1.3.50'
ext.kotlin_version = '1.4.32'
repositories {
google()
jcenter()
mavenCentral()
}

dependencies {
Expand All @@ -14,7 +14,7 @@ buildscript {
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}

Expand Down
6 changes: 3 additions & 3 deletions example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Jun 23 08:50:38 CEST 2017
#Wed Oct 20 10:55:49 BRT 2021
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
zipStoreBase=GRADLE_USER_HOME
Loading

0 comments on commit e6176d8

Please sign in to comment.