refactor: Move implies into moxlib

This commit is contained in:
PapaTutuWawa 2022-05-13 14:01:05 +02:00
parent 169457c9c9
commit fc69261029
5 changed files with 7 additions and 20 deletions

View File

@ -35,6 +35,7 @@ import "package:get_it/get_it.dart";
import "package:connectivity_plus/connectivity_plus.dart";
import "package:flutter_secure_storage/flutter_secure_storage.dart";
import "package:moxplatform/moxplatform.dart";
import "package:moxlib/moxlib.dart";
import "package:logging/logging.dart";
import "package:permission_handler/permission_handler.dart";

View File

@ -134,11 +134,6 @@ T? firstNotNull<T>(List<T?> items) {
return null;
}
/// The mathematical a -> b
bool implies(bool a, bool b) {
return !a || b;
}
/// Attempt to guess a mimetype from its file extension
String? guessMimeTypeFromExtension(String ext) {
switch (ext) {

View File

@ -668,28 +668,28 @@ packages:
name: moxlib
url: "https://pub.polynom.me"
source: hosted
version: "0.1.1"
version: "0.1.3"
moxplatform:
dependency: "direct main"
description:
name: moxplatform
url: "https://pub.polynom.me"
source: hosted
version: "0.1.4"
version: "0.1.6"
moxplatform_android:
dependency: transitive
description:
name: moxplatform_android
url: "https://pub.polynom.me"
source: hosted
version: "0.1.4"
version: "0.1.6"
moxplatform_platform_interface:
dependency: transitive
description:
name: moxplatform_platform_interface
url: "https://pub.polynom.me"
source: hosted
version: "0.1.4"
version: "0.1.6"
moxxyv2_builders:
dependency: "direct main"
description:

View File

@ -80,10 +80,10 @@ dependencies:
version: 0.1.0
moxlib:
hosted: https://pub.polynom.me
version: 0.1.1
version: 0.1.3
moxplatform:
hosted: https://pub.polynom.me
version: 0.1.4
version: 0.1.6
dev_dependencies:
#flutter_test:

View File

@ -211,13 +211,4 @@ void main() {
expect(firstNotNull([null, null, 2]), 2);
});
});
group("implies", () {
test("Truth table test", () {
expect(implies(true, true), true);
expect(implies(true, false), false);
expect(implies(false, true), true);
expect(implies(false, false), true);
});
});
}