Skip to content

Commit 306bc10

Browse files
authored
Merge pull request #2 from suganda8/dev-alpha
Version 1.0.3 ready to released
2 parents 7b48471 + 3796b0f commit 306bc10

File tree

14 files changed

+145
-120
lines changed

14 files changed

+145
-120
lines changed

.github/workflows/dart.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242

4343
# Uncomment this step to verify the use of 'dart format' on each commit.
4444
- name: Plugin - Verify formatting
45-
run: flutter format --set-exit-if-changed .
45+
run: dart format --set-exit-if-changed .
4646

4747
# Statically analyze the Dart code for any errors.
4848
- name: Plugin - Analizing errors
@@ -61,7 +61,7 @@ jobs:
6161
# Uncomment this step to verify the use of 'dart format' on each commit.
6262
- name: Example - Verify formatting
6363
working-directory: ./example
64-
run: flutter format --set-exit-if-changed .
64+
run: dart format --set-exit-if-changed .
6565

6666
# Statically analyze the Dart code for any errors.
6767
- name: Example - Analizing errors

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44

55
## 1.0.2 (2022-02-11)
66

7-
* Improving README.md and official icon, renaming volume controller method and add vibration method (one-time, pattern and repeat, cancel vibration).
7+
* Improving README.md and official icon, renaming volume controller method and add vibration method (one-time, pattern and repeat, cancel vibration).
8+
9+
## 1.0.3 (2023-04-16)
10+
11+
* Improving documentation readability

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ flutter test
2020
The main objective of our GitHub issue is to track bugs and and errors. If you have encounter an issue or bug and not able to fix it yourself, feel free to open an issue. We do not rule out that the issues could be a feature enhancement request.
2121
And please provide us spesific details of the issue, it will make a lot easier for us maintainers to elaborate and reproduce the issue. We will then take care of the issue as soon as possible.
2222

23-
> You must never report security related issues, vulnerabilities, or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead sensitive bugs must be sent by email to <[email protected]>.
23+
> You must never report security related issues, vulnerabilities, or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead sensitive bugs must be sent by email to <[email protected]>.
2424
2525
### Bug reports
2626
- Determine that the bug is a reproducible bug and not an error on your side e.g. using incompatible environment components/versions.

LICENSE

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
resonance
2+
13
MIT License
24

3-
Copyright (c) 2022 Tegar Bangun Suganda (ASTARIA)
5+
Copyright (c) 2022 Tegar Bangun Suganda (OVERMIND)
46

57
Permission is hereby granted, free of charge, to any person obtaining a copy
68
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Resonance ![Dart](https://github.com/suganda8/resonance/actions/workflows/dart.yml/badge.svg)
22

3-
Resonance is volume controller and vibration plugin
3+
Resonance is volume and vibration controller plugin. This plugin based on the Android volume and vibration controller. The plugin let you control volume without user interaction and allow customable vibration pattern.
44

55
![](static/resonance.png)
66

77
## Download
88

9-
Get the latest plugin directly from [Pub.dev][1].
9+
Get the latest plugin directly from [Pub][1].
1010

1111
## Features
1212

@@ -30,15 +30,13 @@ Get the latest plugin directly from [Pub.dev][1].
3030
- Get current volume level
3131

3232
```dart
33-
/// [streamType] by the default is set to [StreamType.music]
3433
var crntVol = await Resonance.volumeGetCurrentLevel(streamType: StreamType.alarm);
3534
print(crntVol);
3635
```
3736

3837
- Set volume level
3938

4039
```dart
41-
/// [showVolumeUI] by the default is set to false
4240
var crntVol = await Resonance.volumeSetLevel(0.5, showVolumeUI: true);
4341
print(crntVol);
4442
```
@@ -50,7 +48,7 @@ double _volumeLevel = 0;
5048
5149
@override
5250
void initState() {
53-
/// Add listener inside initState
51+
// Add listener
5452
Resonance().addVolumeListener((volume) {
5553
setState(() {
5654
_volumeLevel = volume;
@@ -61,7 +59,7 @@ void initState() {
6159
6260
@override
6361
void dispose() {
64-
/// Don't forget to use [removeVolumeListener] after
62+
// Remove listener
6563
Resonance().removeVolumeListener();
6664
super.dispose();
6765
}
@@ -91,7 +89,7 @@ await Resonance.vibrationCancel();
9189

9290
## Status
9391

94-
Version 1.0.3 is under development
92+
Version 1.0.3 is released
9593

9694
## Note
9795

@@ -124,9 +122,11 @@ Tegar Bangun Suganda
124122
## License
125123

126124
```
125+
resonance
126+
127127
MIT License
128128
129-
Copyright (c) 2022 Tegar Bangun Suganda (ASTARIA)
129+
Copyright (c) 2022 Tegar Bangun Suganda (OVERMIND)
130130
131131
Permission is hereby granted, free of charge, to any person obtaining a copy
132132
of this software and associated documentation files (the "Software"), to deal

android/build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ group 'com.astaria.resonance'
22
version '1.0-SNAPSHOT'
33

44
buildscript {
5-
// ext.kotlin_version = '1.3.50'
6-
// ext.kotlin_version = '1.4.32'
7-
// ext.kotlin_version = '1.5.30'
8-
ext.kotlin_version = '1.6.10'
5+
ext.kotlin_version = '1.8.20'
96
repositories {
107
google()
118
mavenCentral()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

example/README.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,5 @@
22

33
Demonstrates how to use the resonance plugin.
44

5-
## Getting Started
6-
7-
This project is a starting point for a Flutter application.
8-
9-
A few resources to get you started if this is your first Flutter project:
10-
11-
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12-
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
13-
14-
For help getting started with Flutter, view our
15-
[online documentation](https://flutter.dev/docs), which offers tutorials,
16-
samples, guidance on mobile development, and a full API reference.
5+
- [Pub](https://pub.dev/packages/resonance)
6+
- [Github](https://github.com/suganda8/resonance)

example/android/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
buildscript {
2-
// ext.kotlin_version = '1.3.50'
3-
ext.kotlin_version = '1.6.10'
2+
ext.kotlin_version = '1.8.20'
43
repositories {
54
google()
65
mavenCentral()
76
}
87

98
dependencies {
10-
classpath 'com.android.tools.build:gradle:4.1.0'
9+
classpath 'com.android.tools.build:gradle:7.2.1'
1110
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1211
}
1312
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri Jun 23 08:50:38 CEST 2017
1+
#Mon Apr 03 16:02:40 ICT 2023
22
distributionBase=GRADLE_USER_HOME
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
34
distributionPath=wrapper/dists
4-
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
6+
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)