Skip to content

Commit 8b8c8ea

Browse files
committed
v1.0.0
0 parents  commit 8b8c8ea

21 files changed

+1369
-0
lines changed

.flutter-plugins

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This is a generated file; do not edit or check into version control.
2+
flutter_secure_storage=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.0.0/
3+
flutter_secure_storage_linux=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_linux-1.2.0/
4+
flutter_secure_storage_macos=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_macos-3.0.1/
5+
flutter_secure_storage_web=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_web-1.1.2/
6+
flutter_secure_storage_windows=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_windows-3.0.0/
7+
path_provider=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider-2.1.3/
8+
path_provider_android=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_android-2.2.4/
9+
path_provider_foundation=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_foundation-2.3.2/
10+
path_provider_linux=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/
11+
path_provider_windows=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/
12+
shared_preferences=/Users/anthony/.pub-cache/hosted/pub.dev/shared_preferences-2.2.3/
13+
shared_preferences_android=/Users/anthony/.pub-cache/hosted/pub.dev/shared_preferences_android-2.2.2/
14+
shared_preferences_foundation=/Users/anthony/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.3.5/
15+
shared_preferences_linux=/Users/anthony/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.3.2/
16+
shared_preferences_web=/Users/anthony/.pub-cache/hosted/pub.dev/shared_preferences_web-2.3.0/
17+
shared_preferences_windows=/Users/anthony/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.3.2/
18+
url_launcher=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher-6.2.6/
19+
url_launcher_android=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.1/
20+
url_launcher_ios=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.5/
21+
url_launcher_linux=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_linux-3.1.1/
22+
url_launcher_macos=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_macos-3.1.0/
23+
url_launcher_web=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_web-2.3.1/
24+
url_launcher_windows=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.1/

.flutter-plugins-dependencies

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_secure_storage","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.0.0/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_foundation-2.3.2/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"shared_preferences_foundation","path":"/Users/anthony/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.3.5/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_ios","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.5/","native_build":true,"dependencies":[]}],"android":[{"name":"flutter_secure_storage","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.0.0/","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_android-2.2.4/","native_build":true,"dependencies":[]},{"name":"shared_preferences_android","path":"/Users/anthony/.pub-cache/hosted/pub.dev/shared_preferences_android-2.2.2/","native_build":true,"dependencies":[]},{"name":"url_launcher_android","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.1/","native_build":true,"dependencies":[]}],"macos":[{"name":"flutter_secure_storage_macos","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_macos-3.0.1/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_foundation-2.3.2/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"shared_preferences_foundation","path":"/Users/anthony/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.3.5/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_macos","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_macos-3.1.0/","native_build":true,"dependencies":[]}],"linux":[{"name":"flutter_secure_storage_linux","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_linux-1.2.0/","native_build":true,"dependencies":[]},{"name":"path_provider_linux","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]},{"name":"shared_preferences_linux","path":"/Users/anthony/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.3.2/","native_build":false,"dependencies":["path_provider_linux"]},{"name":"url_launcher_linux","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_linux-3.1.1/","native_build":true,"dependencies":[]}],"windows":[{"name":"flutter_secure_storage_windows","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_windows-3.0.0/","native_build":true,"dependencies":[]},{"name":"path_provider_windows","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/","native_build":false,"dependencies":[]},{"name":"shared_preferences_windows","path":"/Users/anthony/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.3.2/","native_build":false,"dependencies":["path_provider_windows"]},{"name":"url_launcher_windows","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.1/","native_build":true,"dependencies":[]}],"web":[{"name":"flutter_secure_storage_web","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_web-1.1.2/","dependencies":[]},{"name":"shared_preferences_web","path":"/Users/anthony/.pub-cache/hosted/pub.dev/shared_preferences_web-2.3.0/","dependencies":[]},{"name":"url_launcher_web","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_web-2.3.1/","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_secure_storage","dependencies":["flutter_secure_storage_linux","flutter_secure_storage_macos","flutter_secure_storage_web","flutter_secure_storage_windows"]},{"name":"flutter_secure_storage_linux","dependencies":[]},{"name":"flutter_secure_storage_macos","dependencies":[]},{"name":"flutter_secure_storage_web","dependencies":[]},{"name":"flutter_secure_storage_windows","dependencies":["path_provider"]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_android","shared_preferences_foundation","shared_preferences_linux","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_android","dependencies":[]},{"name":"shared_preferences_foundation","dependencies":[]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2024-04-30 13:55:27.952112","version":"3.19.5"}

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [agordn52]

.github/workflows/publish.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# .github/workflows/publish.yml
2+
name: Publish to pub.dev
3+
4+
on:
5+
push:
6+
tags:
7+
- 'v[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: 'v'
8+
9+
# Publish using the reusable workflow from dart-lang.
10+
jobs:
11+
publish-package:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
- name: Set up Flutter
19+
uses: subosito/flutter-action@v2
20+
21+
- name: Get dependencies
22+
run: flutter pub get
23+
24+
- name: Analyze code
25+
run: flutter analyze
26+
27+
- name: Format code
28+
run: dart format --fix .
29+
30+
- name: Check publish warnings
31+
run: dart pub publish --dry-run
32+
33+
- name: Publish package
34+
uses: k-paxian/[email protected]
35+
with:
36+
credentialJson: ${{ secrets.CREDENTIAL_SECRET }}
37+
flutter: true
38+
skipTests: true
39+
40+
- name: Update nylo.dev
41+
uses: fjogeleit/http-request-action@v1
42+
with:
43+
url: 'https://nylo.dev/api/github/actions/error-net/version'
44+
method: 'POST'
45+
customHeaders: '{"Content-Type": "application/json", "X-GH-API-KEY": "${{ secrets.NYLO_API_GH_SECRET }}"}'
46+
data: '{"version": "${{ github.ref_name }}"}'

.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
migrate_working_dir/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
19+
# The .vscode folder contains launch configuration and tasks you configure in
20+
# VS Code which you may wish to be included in version control, so this line
21+
# is commented out by default.
22+
#.vscode/
23+
24+
# Flutter/Dart/Pub related
25+
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
26+
/pubspec.lock
27+
**/doc/api/
28+
.dart_tool/
29+
build/

.metadata

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: "300451adae589accbece3490f4396f10bdf15e6e"
8+
channel: "stable"
9+
10+
project_type: package

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## [1.0.0] - 2024-04-30
2+
3+
* Initial release.

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TODO: Add your license here.

README.md

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
# Error Net for Flutter
2+
3+
[![pub package](https://img.shields.io/pub/v/permission_policy.svg)](https://pub.dartlang.org/packages/permission_policy)
4+
[![License: MIT](https://img.shields.io/badge/license-MIT-purple.svg)](https://opensource.org/licenses/MIT)
5+
6+
## Usage
7+
8+
### Simple to use
9+
10+
#### Nylo
11+
12+
``` dart
13+
// Add Error Net to your Nylo application
14+
...
15+
import 'package:error_net/error_net.dart';
16+
17+
class AppProvider {
18+
19+
@override
20+
boot(Nylo nylo) async {
21+
...
22+
nylo.useErrorNet(); // enables Error Net
23+
}
24+
}
25+
```
26+
27+
#### Flutter App
28+
29+
``` dart
30+
// Add Error Net to your main.dart file
31+
...
32+
import 'package:error_net/error_net.dart';
33+
34+
void main() {
35+
ErrorNet.init(); // Initialize Error Net
36+
runApp(MyApp());
37+
}
38+
```
39+
40+
Once you have added Error Net to your application, it will override the default error handling in your application.
41+
42+
## Features
43+
44+
- [x] Copy error message to clipboard
45+
- [x] Search fix for error via Google
46+
- [x] Modern UI
47+
- [x] Light and Dark mode support
48+
49+
## Getting started
50+
51+
### Installation
52+
53+
Add the following to your `pubspec.yaml` file:
54+
55+
``` yaml
56+
dependencies:
57+
error_net: ^1.0.0
58+
```
59+
60+
or with Dart:
61+
62+
``` bash
63+
dart pub add error_net
64+
```
65+
66+
## How to use
67+
68+
The package is very simple to use.
69+
70+
### Log Levels
71+
72+
- `ErrorNetLogLevel.minimal` (default)
73+
- `ErrorNetLogLevel.verbose` (shows more information)
74+
75+
You can set the log level when initializing Error Net.
76+
77+
### Initialize Error Net
78+
79+
80+
#### Nylo
81+
82+
``` dart
83+
import 'package:error_net/error_net.dart';
84+
85+
class AppProvider {
86+
87+
@override
88+
boot(Nylo nylo) async {
89+
...
90+
nylo.useErrorNet(logLevel: ErrorNetLogLevel.verbose);
91+
}
92+
}
93+
```
94+
95+
#### Flutter App
96+
``` dart
97+
import 'package:flutter/material.dart';
98+
import 'package:error_net/error_net.dart';
99+
100+
void main() {
101+
ErrorNet.init(logLevel: ErrorNetLogLevel.verbose); // Initialize Error Net
102+
runApp(MyApp());
103+
}
104+
```
105+
106+
Try the [example](/example) app to see how it works.
107+
108+
## Changelog
109+
Please see [CHANGELOG](https://github.com/nylo-core/permission-policy/blob/master/CHANGELOG.md) for more information what has changed recently.
110+
111+
## Social
112+
* [Twitter](https://twitter.com/nylo_dev)
113+
114+
## Licence
115+
116+
The MIT License (MIT). Please view the [License](https://github.com/nylo-core/permission-policy/blob/main/LICENSE) File for more information.

analysis_options.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include: package:flutter_lints/flutter.yaml
2+
3+
# Additional information about this file can be found at
4+
# https://dart.dev/guides/language/analysis-options

0 commit comments

Comments
 (0)