File tree Expand file tree Collapse file tree 13 files changed +55
-31
lines changed
src/main/kotlin/com/simform/audio_waveforms Expand file tree Collapse file tree 13 files changed +55
-31
lines changed Original file line number Diff line number Diff line change 1- ## 2.0.0 (Unreleased)
1+ ## 1.1.0
22
3- - ** Breaking ** Dropped support for Flutter < 3.0.0
3+ - Update flutter and dart version
44- Fixed [ #256 ] ( https://github.com/SimformSolutionsPvtLtd/audio_waveforms/issues/256 ) - Default audio session config causing expected behavior for IOS.
5+ - Fixed [ #303 ] ( https://github.com/SimformSolutionsPvtLtd/audio_waveforms/issues/303 ) - All player has same instances - thanks [ @AlexV525 ] ( https://github.com/AlexV525 )
6+ - Fixed incorrect import for shortHash - thanks [ @mattbajorek ] ( https://github.com/mattbajorek )
7+ - Fixed Auto start permission on iOS by waiting for response after user confirms or denies - thanks [ @mattbajorek ] ( https://github.com/mattbajorek )
8+ - Fixed Dispose of instance if all playerKeys are removed - thanks [ @mattbajorek ] ( https://github.com/mattbajorek )
59
610## 1.0.5
711
Original file line number Diff line number Diff line change 1- include : package:lints/core .yaml
1+ include : package:flutter_lints/flutter .yaml
22
3- # Additional information about this file can be found at
4- # https://dart.dev/guides/language/analysis-options
3+ analyzer :
4+ strong-mode :
5+ implicit-casts : false
6+ implicit-dynamic : false
7+ errors :
8+ argument_type_not_assignable : error
9+ invalid_assignment : error
10+ dead_code : warning
11+ overridden_fields : ignore
12+ use_key_in_widget_constructors : ignore
13+
14+ linter :
15+ rules :
16+ public_member_api_docs : false
17+ avoid_print : true
18+ avoid_empty_else : true
19+ annotate_overrides : true
20+ cancel_subscriptions : true
21+ close_sinks : true
22+ avoid_positional_boolean_parameters : false
23+ use_super_parameters : true
24+ prefer_relative_imports : true
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ android {
2929 namespace " com.simform.audio_waveforms"
3030 }
3131
32- compileSdk 33
32+ compileSdk 34
3333
3434 compileOptions {
3535 sourceCompatibility JavaVersion . VERSION_1_8
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import io.flutter.plugin.common.MethodCall
1515import io.flutter.plugin.common.MethodChannel
1616import io.flutter.plugin.common.MethodChannel.MethodCallHandler
1717import io.flutter.plugin.common.MethodChannel.Result
18- import io.flutter.plugin.common.PluginRegistry.Registrar
1918import java.io.File
2019import java.io.IOException
2120import java.text.SimpleDateFormat
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ android {
2929 if (project. android. hasProperty(" namespace" )) {
3030 namespace " com.simform.audio_waveforms_example"
3131 }
32- compileSdk 33
32+ compileSdk 34
3333
3434 compileOptions {
3535 sourceCompatibility JavaVersion . VERSION_1_8
@@ -48,7 +48,7 @@ android {
4848 // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4949 applicationId " com.simform.audio_waveforms_example"
5050 minSdkVersion 21
51- targetSdkVersion 33
51+ targetSdkVersion 34
5252 versionCode flutterVersionCode. toInteger()
5353 versionName flutterVersionName
5454 }
Original file line number Diff line number Diff line change 11import UIKit
22import Flutter
33
4- @UIApplicationMain
4+ @main
55@objc class AppDelegate : FlutterAppDelegate {
66 override func application(
77 _ application: UIApplication ,
Original file line number Diff line number Diff line change 1- library audio_waveforms ;
1+ library ;
22
3+ export 'src/audio_file_waveforms.dart' ;
34export 'src/audio_waveforms.dart' ;
4- export 'src/base/wave_style.dart' ;
5- export 'src/controllers/recorder_controller.dart' ;
5+ export 'src/base/player_wave_style.dart' ;
66export 'src/base/utils.dart' ;
7- export 'src/audio_file_waveforms .dart' ;
7+ export 'src/base/wave_style .dart' ;
88export 'src/controllers/player_controller.dart' ;
9- export 'src/base/player_wave_style .dart' ;
9+ export 'src/controllers/recorder_controller .dart' ;
Original file line number Diff line number Diff line change 11import 'dart:async' ;
22
3- import 'package:audio_waveforms/src/base/wave_clipper.dart' ;
4- import 'package:audio_waveforms/src/painters/player_wave_painter.dart' ;
53import 'package:flutter/material.dart' ;
64
75import '../audio_waveforms.dart' ;
6+ import 'base/wave_clipper.dart' ;
7+ import 'painters/player_wave_painter.dart' ;
88
99class AudioFileWaveforms extends StatefulWidget {
1010 /// A size to define height and width of waveform.
@@ -71,7 +71,7 @@ class AudioFileWaveforms extends StatefulWidget {
7171 /// With seeking gesture enabled, playing audio can be seeked to
7272 /// any position using gestures.
7373 const AudioFileWaveforms ({
74- Key ? key,
74+ super . key,
7575 required this .size,
7676 required this .playerController,
7777 this .waveformData = const [],
@@ -86,7 +86,7 @@ class AudioFileWaveforms extends StatefulWidget {
8686 this .clipBehavior = Clip .none,
8787 this .waveformType = WaveformType .long,
8888 this .enableSeekGesture = true ,
89- }) : super (key : key) ;
89+ });
9090
9191 @override
9292 State <AudioFileWaveforms > createState () => _AudioFileWaveformsState ();
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class AudioWaveforms extends StatefulWidget {
1818 final bool shouldCalculateScrolledPosition;
1919
2020 const AudioWaveforms ({
21- Key ? key,
21+ super . key,
2222 required this .size,
2323 required this .recorderController,
2424 this .waveStyle = const WaveStyle (),
@@ -28,7 +28,7 @@ class AudioWaveforms extends StatefulWidget {
2828 this .decoration,
2929 this .backgroundColor,
3030 this .shouldCalculateScrolledPosition = false ,
31- }) : super (key : key) ;
31+ });
3232
3333 @override
3434 State <AudioWaveforms > createState () => _AudioWaveformsState ();
Original file line number Diff line number Diff line change 11import 'dart:async' ;
22
3- import 'package:audio_waveforms/src/base/player_identifier.dart' ;
4-
53import '../../audio_waveforms.dart' ;
4+ import 'player_identifier.dart' ;
65
76///This class should be used for any type of native streams.
87class PlatformStreams {
You can’t perform that action at this time.
0 commit comments