Skip to content

Commit 3c5b776

Browse files
feat:initiate commit
1 parent 6158eea commit 3c5b776

File tree

66 files changed

+18265
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+18265
-1
lines changed

.gitignore

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.sw*
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
native/
12+
test/.test_coverage.dart
13+
coverage/
14+
coverage_badge.svg
15+
16+
# codegen related
17+
*.bak
18+
*.bakmacoscompat
19+
20+
# IntelliJ related
21+
*.iml
22+
*.ipr
23+
*.iws
24+
.idea/
25+
26+
# Visual Studio Code related
27+
.vscode/
28+
29+
# Flutter/Dart/Pub related
30+
**/doc/api/
31+
32+
.dart_tool/
33+
build/
34+
pubspec.lock # Except for application packages
35+
36+
.dart_tool/package_config.json
37+
pubspec.lock
38+
.flutter-plugins
39+
.flutter-plugins-dependencies
40+
.packages
41+
.pub-cache/
42+
.pub/
43+
build/
44+
pubspec.lock
45+
46+
# Android related
47+
**/android/**/gradle-wrapper.jar
48+
**/android/.gradle
49+
**/android/captures/
50+
**/android/gradlew
51+
**/android/gradlew.bat
52+
**/android/local.properties
53+
**/android/**/GeneratedPluginRegistrant.java
54+
55+
# iOS/XCode related
56+
**/ios/**/*.mode1v3
57+
**/ios/**/*.mode2v3
58+
**/ios/**/*.moved-aside
59+
**/ios/**/*.pbxuser
60+
**/ios/**/*.perspectivev3
61+
**/ios/**/*sync/
62+
**/ios/**/.sconsign.dblite
63+
**/ios/**/.tags*
64+
**/ios/**/.vagrant/
65+
**/ios/**/DerivedData/
66+
**/ios/**/Icon?
67+
**/ios/**/Pods/
68+
**/ios/**/.symlinks/
69+
**/ios/**/profile
70+
**/ios/**/xcuserdata
71+
**/ios/.generated/
72+
**/ios/Flutter/App.framework
73+
**/ios/Flutter/Flutter.framework
74+
**/ios/Flutter/Generated.xcconfig
75+
**/ios/Flutter/app.flx
76+
**/ios/Flutter/app.zip
77+
**/ios/Flutter/flutter_assets/
78+
**/ios/ServiceDefinitions.json
79+
**/ios/Runner/GeneratedPluginRegistrant.*
80+
81+
# Exceptions to above rules.
82+
!**/ios/**/default.mode1v3
83+
!**/ios/**/default.mode2v3
84+
!**/ios/**/default.pbxuser
85+
!**/ios/**/default.perspectivev3
86+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
## 0.1.0
3+
Split into independent warehouse
4+
5+
## 0.0.9
6+
7+
- Initial version

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (C) 2021 Famedly GmbH
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
# sendingnetworkdart_api_lite
1+
# sendingnetworkdart_api_lite
2+
3+
This package serves as a simple client-server data request interface with general-purpose API functions for interacting with the server. It doesn't include any specific business logic and doesn't handle client creation; instead, it focuses on providing fundamental API methods for server requests.
4+
5+
For more complex logic, you'll find it within the "sendingnetwork_dart_sdk." In most cases, using "sendingnetwork_dart_sdk" should suffice, as it's built on top of "sendingnetworkdart_api_lite." If, however, there is a need to create a client at the business logic level, you can directly rely on "sendingnetwork_dart_sdk."

analysis_options.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
include: package:lints/recommended.yaml
2+
3+
linter:
4+
rules:
5+
camel_case_types: true
6+
avoid_print: true
7+
constant_identifier_names: false
8+
prefer_final_locals: true
9+
prefer_final_in_for_each: true
10+
avoid_dynamic_calls: true
11+
12+
analyzer:
13+
language:
14+
strict-casts: true
15+
strict-inference: true
16+
strict-raw-types: true
17+
errors:
18+
todo: ignore
19+
exclude:
20+
- example/sendingnetworkdart_api_lite_example.dart
21+
- lib/src/generated/**.dart

example/sdn_api_lite_example.dart

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// @dart=2.9
2+
import 'package:sendingnetworkdart_api_lite/src/sdn_api.dart';
3+
4+
void main() async {
5+
final api = SDNApi(node: Uri.parse('https://sdn.org'));
6+
final capabilities = await api.requestServerCapabilities();
7+
print(capabilities.toJson());
8+
}

0 commit comments

Comments
 (0)