From 82c6c9866e76ea110a7c9e30e906a3e95ef9b112 Mon Sep 17 00:00:00 2001 From: "thomashii@dukefirehawk.com" Date: Fri, 14 May 2021 15:23:53 +0800 Subject: [PATCH] Publish angel3_model --- packages/model/.gitignore | 59 +++++++++++++++++++ packages/model/AUTHORS.md | 14 ++++- packages/model/LICENSE | 2 +- packages/model/README.md | 9 ++- packages/model/example/main.dart | 2 +- .../{angel_model.dart => angel3_model.dart} | 4 ++ packages/model/pubspec.yaml | 4 +- 7 files changed, 86 insertions(+), 8 deletions(-) rename packages/model/lib/{angel_model.dart => angel3_model.dart} (91%) diff --git a/packages/model/.gitignore b/packages/model/.gitignore index 4d2a4d6d..24d68312 100644 --- a/packages/model/.gitignore +++ b/packages/model/.gitignore @@ -1,12 +1,71 @@ # See https://www.dartlang.org/tools/private-files.html # Files and directories created by pub +.dart_tool .packages .pub/ build/ + # If you're building an application, you may want to check-in your pubspec.lock pubspec.lock # Directory created by dartdoc # If you don't generate documentation locally you can remove this line. doc/api/ + +### Dart template +# See https://www.dartlang.org/tools/private-files.html + +# Files and directories created by pub + +# SDK 1.20 and later (no longer creates packages directories) + +# Older SDK versions +# (Include if the minimum SDK version specified in pubsepc.yaml is earlier than 1.20) +.project +.buildlog +**/packages/ + + +# Files created by dart2js +# (Most Dart developers will use pub build to compile Dart, use/modify these +# rules if you intend to use dart2js directly +# Convention is to use extension '.dart.js' for Dart compiled to Javascript to +# differentiate from explicit Javascript files) +*.dart.js +*.part.js +*.js.deps +*.js.map +*.info.json + +# Directory created by dartdoc + +# Don't commit pubspec lock file +# (Library packages only! Remove pattern if developing an application package) +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff: + +## VsCode +.vscode/ + +## File-based project format: +*.iws + +## Plugin-specific files: + +# IntelliJ +.idea/ +/out/ +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties diff --git a/packages/model/AUTHORS.md b/packages/model/AUTHORS.md index 2a973de6..ac95ab58 100644 --- a/packages/model/AUTHORS.md +++ b/packages/model/AUTHORS.md @@ -1,2 +1,12 @@ -Tobe O -Thomas Hii \ No newline at end of file +Primary Authors +=============== + +* __[Thomas Hii](dukefirehawk.apps@gmail.com)__ + + Thomas is the current maintainer of the code base. He has refactored and migrated the + code base to support NNBD. + +* __[Tobe O](thosakwe@gmail.com)__ + + Tobe has written much of the original code prior to NNBD migration. He has moved on and + is no longer involved with the project. diff --git a/packages/model/LICENSE b/packages/model/LICENSE index 3de28325..b593ac86 100644 --- a/packages/model/LICENSE +++ b/packages/model/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2017 Tobe O +Copyright (c) 2021 dukefirehawk.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/model/README.md b/packages/model/README.md index fdb704c9..44bde2e5 100644 --- a/packages/model/README.md +++ b/packages/model/README.md @@ -1,8 +1,13 @@ -# angel_model +# angel3_model +[![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_model) +[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) + +[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/model) + Angel's basic data model class, no longer with the added weight of the whole framework. ```dart -import 'package:angel_model/angel_model.dart'; +import 'package:angel3_model/angel3_model.dart'; ``` This package was created to prevent dependency collisions with third-party packages. \ No newline at end of file diff --git a/packages/model/example/main.dart b/packages/model/example/main.dart index 5da94558..af70671c 100644 --- a/packages/model/example/main.dart +++ b/packages/model/example/main.dart @@ -1,4 +1,4 @@ -import 'package:angel_model/angel_model.dart'; +import 'package:angel3_model/angel3_model.dart'; void main() { var todo = Todo(id: '34', isComplete: false); diff --git a/packages/model/lib/angel_model.dart b/packages/model/lib/angel3_model.dart similarity index 91% rename from packages/model/lib/angel_model.dart rename to packages/model/lib/angel3_model.dart index 3da6c1eb..16461ab6 100644 --- a/packages/model/lib/angel_model.dart +++ b/packages/model/lib/angel3_model.dart @@ -1,8 +1,12 @@ +//library angel3_model; + /// Represents arbitrary data, with an associated ID and timestamps. class Model { /// A unique identifier corresponding to this item. String? id; + String? error; + /// The time at which this item was created. DateTime? createdAt; diff --git a/packages/model/pubspec.yaml b/packages/model/pubspec.yaml index 1bb2f82e..095ffe2a 100644 --- a/packages/model/pubspec.yaml +++ b/packages/model/pubspec.yaml @@ -1,7 +1,7 @@ -name: angel_model +name: angel3_model version: 3.0.0 description: Angel's basic data model class, no longer with the added weight of the whole framework. -homepage: https://github.com/dukefirehawk/angel +homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/model environment: sdk: '>=2.12.0 <3.0.0' dev_dependencies: