Skip to content

Commit

Permalink
Updted libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
semack committed Jul 15, 2021
1 parent 6655bb6 commit 3307c6d
Show file tree
Hide file tree
Showing 7 changed files with 82 additions and 82 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if (keystorePropertiesFile.exists()) {

android {

compileSdkVersion 29
compileSdkVersion 30

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
Expand Down
2 changes: 1 addition & 1 deletion ios/fastlane/metadata/en-US/release_notes.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@

Updated libraries
7 changes: 1 addition & 6 deletions lib/services/zx_control/zx_volume_control_service.dart
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import 'dart:io';

import 'package:volume_controller/volume_controller.dart';
import 'package:zx_tape_player/services/volume_control_service.dart';
import 'package:zx_tape_player/utils/definitions.dart';

class ZxVolumeControlService extends VolumeControlService {
var _hasSet = true;

@override
Future setOptimalVolume() async {
if (_hasSet) return;
var value = Definitions.optimalVolumeAndroid;
if (Platform.isIOS) value = Definitions.optimalVolumeIOS;
VolumeController.setVolume(value);
VolumeController().maxVolume(showSystemUI: false);
_hasSet = true;
}
}
2 changes: 1 addition & 1 deletion lib/ui/widgets/tape_player/models/progress_model.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class LoadingProgressData {
final double percent;
final int percent;
final String filePath;

LoadingProgressData(this.filePath, this.percent);
Expand Down
2 changes: 0 additions & 2 deletions lib/utils/definitions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@ class Definitions {
static const wafFilePath = '%s/%s.wav';
static const wavFrequency = 44100;
static const wavCacheLimitMb = 100;
static const optimalVolumeIOS = 1.00;
static const optimalVolumeAndroid = 0.75;
}
Loading

0 comments on commit 3307c6d

Please sign in to comment.