From 18a8da11e57b99a88ba92f4b2b2fa20238ad7c81 Mon Sep 17 00:00:00 2001
From: Tricked <72335827+SkyBlockDev@users.noreply.github.com>
Date: Thu, 24 Feb 2022 20:09:44 +0100
Subject: [PATCH] fix: not staring with repo changes
---
lib/main.dart | 5 ++---
lib/src/models/models.dart | 19 +++++++++----------
lib/src/models/models.g.dart | 10 ----------
3 files changed, 11 insertions(+), 23 deletions(-)
diff --git a/lib/main.dart b/lib/main.dart
index ac3742e..d44ee5b 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -1,8 +1,8 @@
// TMOD Installer (c) by tricked
-//
+//
// TMOD Installer is licensed under a
// Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
-//
+//
// You should have received a copy of the license along with this
// work. If not, see .
@@ -165,7 +165,6 @@ class _TModInstallerPageState extends State {
downloads: [
DownloadMod(
filename: "INVALID",
- id: "INVALID",
mcversion: "0.0.0",
version: "0.0.0",
hash: "sha1;null",
diff --git a/lib/src/models/models.dart b/lib/src/models/models.dart
index c7eb057..632069d 100644
--- a/lib/src/models/models.dart
+++ b/lib/src/models/models.dart
@@ -1,8 +1,8 @@
// TMOD Installer (c) by tricked
-//
+//
// TMOD Installer is licensed under a
// Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
-//
+//
// You should have received a copy of the license along with this
// work. If not, see .
@@ -19,14 +19,13 @@ class DownloadMod {
final String hash;
final String url;
final String filename;
- final String id;
- DownloadMod(
- {required this.mcversion,
- required this.version,
- required this.hash,
- required this.url,
- required this.filename,
- required this.id});
+ DownloadMod({
+ required this.mcversion,
+ required this.version,
+ required this.hash,
+ required this.url,
+ required this.filename,
+ });
factory DownloadMod.fromJson(Map json) =>
_$DownloadModFromJson(json);
Map toJson() => _$DownloadModToJson(this);
diff --git a/lib/src/models/models.g.dart b/lib/src/models/models.g.dart
index 07e089a..11fdfa3 100644
--- a/lib/src/models/models.g.dart
+++ b/lib/src/models/models.g.dart
@@ -1,11 +1,3 @@
-// TMOD Installer (c) by tricked
-//
-// TMOD Installer is licensed under a
-// Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
-//
-// You should have received a copy of the license along with this
-// work. If not, see .
-
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'models.dart';
@@ -20,7 +12,6 @@ DownloadMod _$DownloadModFromJson(Map json) => DownloadMod(
hash: json['hash'] as String,
url: json['url'] as String,
filename: json['filename'] as String,
- id: json['id'] as String,
);
Map _$DownloadModToJson(DownloadMod instance) =>
@@ -30,7 +21,6 @@ Map _$DownloadModToJson(DownloadMod instance) =>
'hash': instance.hash,
'url': instance.url,
'filename': instance.filename,
- 'id': instance.id,
};
Mod _$ModFromJson(Map json) => Mod(