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_flutter/nbt/Tag.dart';
import 'package:libac_flutter/nbt/impl/CompoundTag.dart';
import 'package:libac_flutter/packets/packets.dart';
import 'package:libac_dart/nbt/Stream.dart';
import 'package:libac_dart/nbt/Tag.dart';
import 'package:libac_dart/nbt/impl/CompoundTag.dart';
import 'package:libac_dart/packets/packets.dart';
void main() async {
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 {
await PacketServer.start();

View file

@ -1,9 +1,9 @@
import 'dart:typed_data';
import 'package:libac_flutter/nbt/Stream.dart';
import 'package:libac_flutter/nbt/Tag.dart';
import 'package:libac_flutter/nbt/impl/CompoundTag.dart';
import 'package:libac_flutter/utils/Converter.dart';
import '../utils/Converter.dart';
import 'Stream.dart';
import 'Tag.dart';
import 'impl/CompoundTag.dart';
class NbtIo {
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/Vector3.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 {
static void writeBoolean(CompoundTag tag, String name, bool b) {

View file

@ -1,8 +1,8 @@
import 'dart:io';
import 'package:libac_flutter/nbt/Stream.dart';
import 'package:libac_flutter/nbt/Tag.dart';
import 'package:libac_flutter/nbt/impl/CompoundTag.dart';
import 'Stream.dart';
import 'Tag.dart';
import 'impl/CompoundTag.dart';
class SnbtIo {
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 'impl/ByteArrayTag.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/LongArrayTag.dart';
import 'impl/LongTag.dart';
import 'impl/ShortTag.dart';
import 'impl/StringTag.dart';
enum TagType {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,28 +1,23 @@
name: libac_flutter
name: libac_dart
description: "Aria's Creations code library"
version: 1.0.20
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:
crypto: ^3.0.3
flutter:
sdk: flutter
# path: ^1.8.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^3.0.0
lints: ^3.0.0
test: ^1.24.0
# For information on the generic Dart part of this file, see the
# 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:
# assets:

View file

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

View file

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

View file

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

View file

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