Skip to content

Commit

Permalink
Small changes for new version
Browse files Browse the repository at this point in the history
  • Loading branch information
guyluz11 committed May 28, 2024
1 parent 3e26579 commit 77ef222
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 78 deletions.
7 changes: 0 additions & 7 deletions codemagic.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
workflows:
android-workflow:
instance_type: linux
triggering:
events:
- push
Expand Down Expand Up @@ -77,13 +76,7 @@ workflows:

publishing:
app_store_connect:
# Use referenced App Store Connect API key to authenticate binary upload
auth: integration

# Whether or not to submit the uploaded
# build to App Store review.
submit_to_app_store: true

cancel_previous_submissions: true

release_type: AFTER_APPROVAL
62 changes: 0 additions & 62 deletions lib/domain/preferences_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,65 +16,3 @@ abstract class PreferencesController {

void setString(String key, String value);
}

// class PreferencesController extends PreferencesController {
// late SharedPreferences preferences;
//
// init() async {
// preferences = await SharedPreferences.getInstance();
// PreferencesController.instance = this;
// }
//
// @override
// String? getString(String key) {
// return preferences.getString(key);
// }
//
// @override
// bool? getBool(String key) {
// return preferences.getBool(key);
// }
//
// @override
// int? getInt(String key) {
// try {
// return preferences.getInt(key);
// } catch (e) {
// return null;
// }
// }
//
// @override
// Iterable<int>? getIntIterator(String key) {
// try {
// return preferences.getStringList(key)?.map((e) => int.parse(e));
// } catch (e) {
// return null;
// }
// }
//
// @override
// void remove(String key) {
// preferences.remove(key);
// }
//
// @override
// void setString(String key, String value) {
// preferences.setString(key, value);
// }
//
// @override
// void setBool(String key, bool value) {
// preferences.setBool(key, value);
// }
//
// @override
// void setInt(String key, int value) {
// preferences.setInt(key, value);
// }
//
// @override
// void setIntIterator(String key, Iterable<int> value) {
// preferences.setStringList(key, List.from(value.map((e) => e.toString())));
// }
// }
4 changes: 1 addition & 3 deletions lib/infrastructure/preferences_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ class _PreferencesRepository extends PreferencesController {
late SharedPreferences preferences;

@override
Future init() async {
preferences = await SharedPreferences.getInstance();
}
Future init() async => preferences = await SharedPreferences.getInstance();

@override
String? getString(String key) => preferences.getString(key);
Expand Down
4 changes: 1 addition & 3 deletions lib/infrastructure/vibration_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ part of 'package:infinite_horizons/domain/vibration_controller.dart';

class _VibrationRepository extends VibrationController {
@override
Future init() async {
canVibrate = Platform.isAndroid || Platform.isIOS;
}
Future init() async => canVibrate = Platform.isAndroid || Platform.isIOS;

late bool canVibrate;

Expand Down
3 changes: 0 additions & 3 deletions lib/presentation/atoms/button_atom.dart
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,4 @@ enum ButtonVariant {

/// No borders
iconButton,
// action,
// actionToggled,
// back,
}

0 comments on commit 77ef222

Please sign in to comment.