Change package name, remove flutter as SDK

This commit is contained in:
zontreck 2024-05-24 14:36:51 -07:00
parent dd40eace38
commit 1133992078
28 changed files with 92 additions and 97 deletions

View file

@ -1,7 +1,7 @@
import 'package:libac_flutter/nbt/Stream.dart'; import 'package:libac_dart/nbt/Stream.dart';
import 'package:libac_flutter/nbt/Tag.dart'; import 'package:libac_dart/nbt/Tag.dart';
import 'package:libac_flutter/nbt/impl/CompoundTag.dart'; import 'package:libac_dart/nbt/impl/CompoundTag.dart';
import 'package:libac_flutter/packets/packets.dart'; import 'package:libac_dart/packets/packets.dart';
void main() async { void main() async {
PacketRegistry reg = PacketRegistry(); PacketRegistry reg = PacketRegistry();

View file

@ -1,4 +1,4 @@
import 'package:libac_flutter/packets/packets.dart'; import 'package:libac_dart/packets/packets.dart';
void main() async { void main() async {
await PacketServer.start(); await PacketServer.start();

View file

@ -1,9 +1,9 @@
import 'dart:typed_data'; import 'dart:typed_data';
import 'package:libac_flutter/nbt/Stream.dart'; import '../utils/Converter.dart';
import 'package:libac_flutter/nbt/Tag.dart'; import 'Stream.dart';
import 'package:libac_flutter/nbt/impl/CompoundTag.dart'; import 'Tag.dart';
import 'package:libac_flutter/utils/Converter.dart'; import 'impl/CompoundTag.dart';
class NbtIo { class NbtIo {
static ByteLayer _io = ByteLayer(); static ByteLayer _io = ByteLayer();

View file

@ -1,13 +1,12 @@
import 'package:libac_flutter/nbt/impl/ByteTag.dart';
import 'package:libac_flutter/nbt/impl/CompoundTag.dart';
import 'package:libac_flutter/nbt/impl/DoubleTag.dart';
import 'package:libac_flutter/nbt/impl/IntArrayTag.dart';
import 'package:libac_flutter/nbt/impl/IntTag.dart';
import 'package:libac_flutter/nbt/impl/ListTag.dart';
import 'package:libac_flutter/utils/Vector3.dart';
import '../utils/Vector2.dart'; import '../utils/Vector2.dart';
import '../utils/Vector3.dart';
import '../utils/uuid/NbtUUID.dart'; import '../utils/uuid/NbtUUID.dart';
import 'impl/ByteTag.dart';
import 'impl/CompoundTag.dart';
import 'impl/DoubleTag.dart';
import 'impl/IntArrayTag.dart';
import 'impl/IntTag.dart';
import 'impl/ListTag.dart';
class NbtUtils { class NbtUtils {
static void writeBoolean(CompoundTag tag, String name, bool b) { static void writeBoolean(CompoundTag tag, String name, bool b) {

View file

@ -1,8 +1,8 @@
import 'dart:io'; import 'dart:io';
import 'package:libac_flutter/nbt/Stream.dart'; import 'Stream.dart';
import 'package:libac_flutter/nbt/Tag.dart'; import 'Tag.dart';
import 'package:libac_flutter/nbt/impl/CompoundTag.dart'; import 'impl/CompoundTag.dart';
class SnbtIo { class SnbtIo {
static void write(String file, CompoundTag tag) { static void write(String file, CompoundTag tag) {

View file

@ -1,17 +1,16 @@
import 'package:libac_flutter/nbt/impl/ByteArrayTag.dart';
import 'package:libac_flutter/nbt/impl/CompoundTag.dart';
import 'package:libac_flutter/nbt/impl/DoubleTag.dart';
import 'package:libac_flutter/nbt/impl/EndTag.dart';
import 'package:libac_flutter/nbt/impl/FloatTag.dart';
import 'package:libac_flutter/nbt/impl/IntArrayTag.dart';
import 'package:libac_flutter/nbt/impl/IntTag.dart';
import 'package:libac_flutter/nbt/impl/LongTag.dart';
import 'package:libac_flutter/nbt/impl/ShortTag.dart';
import 'Stream.dart'; import 'Stream.dart';
import 'impl/ByteArrayTag.dart';
import 'impl/ByteTag.dart'; import 'impl/ByteTag.dart';
import 'impl/CompoundTag.dart';
import 'impl/DoubleTag.dart';
import 'impl/EndTag.dart';
import 'impl/FloatTag.dart';
import 'impl/IntArrayTag.dart';
import 'impl/IntTag.dart';
import 'impl/ListTag.dart'; import 'impl/ListTag.dart';
import 'impl/LongArrayTag.dart'; import 'impl/LongArrayTag.dart';
import 'impl/LongTag.dart';
import 'impl/ShortTag.dart';
import 'impl/StringTag.dart'; import 'impl/StringTag.dart';
enum TagType { enum TagType {

View file

@ -1,5 +1,5 @@
import 'package:libac_flutter/nbt/Stream.dart'; import '../Stream.dart';
import 'package:libac_flutter/nbt/Tag.dart'; import '../Tag.dart';
class ByteArrayTag extends Tag { class ByteArrayTag extends Tag {
final List<int> value = []; final List<int> value = [];

View file

@ -1,5 +1,5 @@
import 'package:libac_flutter/nbt/Stream.dart'; import '../Stream.dart';
import 'package:libac_flutter/nbt/Tag.dart'; import '../Tag.dart';
class ByteTag extends Tag { class ByteTag extends Tag {
int value = 0; int value = 0;

View file

@ -1,5 +1,5 @@
import 'package:libac_flutter/nbt/Stream.dart'; import '../Stream.dart';
import 'package:libac_flutter/nbt/Tag.dart'; import '../Tag.dart';
class CompoundTag extends Tag implements Map<String, Tag> { class CompoundTag extends Tag implements Map<String, Tag> {
late final Map<String, Tag> value = {}; late final Map<String, Tag> value = {};

View file

@ -1,5 +1,5 @@
import 'package:libac_flutter/nbt/Stream.dart'; import '../Stream.dart';
import 'package:libac_flutter/nbt/Tag.dart'; import '../Tag.dart';
class DoubleTag extends Tag { class DoubleTag extends Tag {
double value = 0.0; double value = 0.0;

View file

@ -1,5 +1,5 @@
import 'package:libac_flutter/nbt/Stream.dart'; import '../Stream.dart';
import 'package:libac_flutter/nbt/Tag.dart'; import '../Tag.dart';
class EndTag extends Tag { class EndTag extends Tag {
EndTag(); EndTag();

View file

@ -1,5 +1,5 @@
import 'package:libac_flutter/nbt/Stream.dart'; import '../Stream.dart';
import 'package:libac_flutter/nbt/Tag.dart'; import '../Tag.dart';
class FloatTag extends Tag { class FloatTag extends Tag {
double value = 0.0; double value = 0.0;

View file

@ -1,5 +1,5 @@
import 'package:libac_flutter/nbt/Stream.dart'; import '../Stream.dart';
import 'package:libac_flutter/nbt/Tag.dart'; import '../Tag.dart';
class IntArrayTag extends Tag { class IntArrayTag extends Tag {
final List<int> value = []; final List<int> value = [];

View file

@ -1,5 +1,5 @@
import 'package:libac_flutter/nbt/Stream.dart'; import '../Stream.dart';
import 'package:libac_flutter/nbt/Tag.dart'; import '../Tag.dart';
class IntTag extends Tag { class IntTag extends Tag {
int value = 0; int value = 0;

View file

@ -1,6 +1,5 @@
import 'package:libac_flutter/nbt/Stream.dart'; import '../Stream.dart';
import 'package:libac_flutter/nbt/Tag.dart'; import '../Tag.dart';
import 'EndTag.dart'; import 'EndTag.dart';
class ListTag extends Tag { class ListTag extends Tag {

View file

@ -1,5 +1,5 @@
import 'package:libac_flutter/nbt/Stream.dart'; import '../Stream.dart';
import 'package:libac_flutter/nbt/Tag.dart'; import '../Tag.dart';
class LongArrayTag extends Tag { class LongArrayTag extends Tag {
final List<int> value = []; final List<int> value = [];

View file

@ -1,5 +1,5 @@
import 'package:libac_flutter/nbt/Stream.dart'; import '../Stream.dart';
import 'package:libac_flutter/nbt/Tag.dart'; import '../Tag.dart';
class LongTag extends Tag { class LongTag extends Tag {
int value = 0; int value = 0;

View file

@ -1,5 +1,5 @@
import 'package:libac_flutter/nbt/Stream.dart'; import '../Stream.dart';
import 'package:libac_flutter/nbt/Tag.dart'; import '../Tag.dart';
class ShortTag extends Tag { class ShortTag extends Tag {
int value = 0; int value = 0;

View file

@ -1,5 +1,5 @@
import 'package:libac_flutter/nbt/Stream.dart'; import '../Stream.dart';
import 'package:libac_flutter/nbt/Tag.dart'; import '../Tag.dart';
class StringTag extends Tag { class StringTag extends Tag {
String value = ""; String value = "";

View file

@ -2,12 +2,11 @@ import 'dart:async';
import 'dart:convert'; import 'dart:convert';
import 'dart:io'; import 'dart:io';
import 'package:libac_flutter/nbt/NbtIo.dart'; import '../nbt/NbtIo.dart';
import 'package:libac_flutter/nbt/Tag.dart';
import 'package:libac_flutter/nbt/impl/CompoundTag.dart';
import 'package:libac_flutter/nbt/impl/StringTag.dart';
import '../nbt/Stream.dart'; import '../nbt/Stream.dart';
import '../nbt/Tag.dart';
import '../nbt/impl/CompoundTag.dart';
import '../nbt/impl/StringTag.dart';
class PacketServer { class PacketServer {
static ServerSocket? socket; static ServerSocket? socket;

View file

@ -1,4 +1,4 @@
import 'package:libac_flutter/nbt/Stream.dart'; import '../nbt/Stream.dart';
class Time { class Time {
int hours; int hours;

View file

@ -1,5 +1,4 @@
import 'package:libac_flutter/nbt/Stream.dart'; import '../../nbt/Stream.dart';
import 'UUID.dart'; import 'UUID.dart';
class NbtUUID { class NbtUUID {

View file

@ -2,7 +2,8 @@ import 'dart:convert';
import 'dart:math'; import 'dart:math';
import 'package:crypto/crypto.dart'; import 'package:crypto/crypto.dart';
import 'package:libac_flutter/nbt/Stream.dart';
import '../../nbt/Stream.dart';
class UUID { class UUID {
late final List<int> _bytes; late final List<int> _bytes;

View file

@ -1,28 +1,23 @@
name: libac_flutter name: libac_dart
description: "Aria's Creations code library" description: "Aria's Creations code library"
version: 1.0.20 version: 1.0.20
homepage: "https://zontreck.com" homepage: "https://zontreck.com"
environment:
sdk: '>=3.3.4 <4.0.0'
flutter: ">=1.17.0"
environment:
sdk: ^3.4.0
# Add regular dependencies here.
dependencies: dependencies:
crypto: ^3.0.3 # path: ^1.8.0
flutter:
sdk: flutter
dev_dependencies: dev_dependencies:
flutter_test: lints: ^3.0.0
sdk: flutter test: ^1.24.0
flutter_lints: ^3.0.0
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec # following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter packages.
flutter:
uses-material-design: true
# To add assets to your package, add an assets section, like this: # To add assets to your package, add an assets section, like this:
# assets: # assets:

View file

@ -1,5 +1,6 @@
import 'package:flutter_test/flutter_test.dart'; import 'package:libac_dart/utils/Hashing.dart';
import 'package:libac_flutter/utils/Hashing.dart'; import 'package:test/expect.dart';
import 'package:test/scaffolding.dart';
void main() { void main() {
test("Test md5", () { test("Test md5", () {

View file

@ -1,15 +1,16 @@
import 'dart:io'; import 'dart:io';
import 'package:flutter_test/flutter_test.dart'; import 'package:libac_dart/nbt/NbtIo.dart';
import 'package:libac_flutter/nbt/NbtIo.dart'; import 'package:libac_dart/nbt/NbtUtils.dart';
import 'package:libac_flutter/nbt/NbtUtils.dart'; import 'package:libac_dart/nbt/SnbtIo.dart';
import 'package:libac_flutter/nbt/SnbtIo.dart'; import 'package:libac_dart/nbt/Stream.dart';
import 'package:libac_flutter/nbt/Stream.dart'; import 'package:libac_dart/nbt/Tag.dart';
import 'package:libac_flutter/nbt/Tag.dart'; import 'package:libac_dart/nbt/impl/CompoundTag.dart';
import 'package:libac_flutter/nbt/impl/CompoundTag.dart'; import 'package:libac_dart/nbt/impl/StringTag.dart';
import 'package:libac_flutter/nbt/impl/StringTag.dart'; import 'package:libac_dart/utils/uuid/NbtUUID.dart';
import 'package:libac_flutter/utils/uuid/NbtUUID.dart'; import 'package:libac_dart/utils/uuid/UUID.dart';
import 'package:libac_flutter/utils/uuid/UUID.dart'; import 'package:test/expect.dart';
import 'package:test/scaffolding.dart';
void main() { void main() {
test('read non-compressed helloworld NBT', () async { test('read non-compressed helloworld NBT', () async {

View file

@ -1,5 +1,6 @@
import 'package:flutter_test/flutter_test.dart'; import 'package:libac_dart/utils/TimeUtils.dart';
import 'package:libac_flutter/utils/TimeUtils.dart'; import 'package:test/expect.dart';
import 'package:test/scaffolding.dart';
void main() { void main() {
test("Parse time notation", () { test("Parse time notation", () {

View file

@ -1,6 +1,7 @@
import 'package:flutter_test/flutter_test.dart'; import 'package:libac_dart/nbt/Stream.dart';
import 'package:libac_flutter/nbt/Stream.dart'; import 'package:libac_dart/utils/uuid/UUID.dart';
import 'package:libac_flutter/utils/uuid/UUID.dart'; import 'package:test/expect.dart';
import 'package:test/scaffolding.dart';
void main() { void main() {
test("Store a 64bit value in int", () { test("Store a 64bit value in int", () {