Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,10 @@ target
js/stats.html
*.tgz
*.html

# Dart/Flutter
.dart_tool/
.packages
build/
*.lock
pubspec.lock
27 changes: 23 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ SNS SDK monorepo
<img src="https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54" />
<img src="https://img.shields.io/badge/java-%23ED8B00.svg?style=for-the-badge&logo=java&logoColor=white" />
<img src="https://img.shields.io/badge/swift-F54A2A?style=for-the-badge&logo=swift&logoColor=white" />
<img src="https://img.shields.io/badge/dart-%230175C2.svg?style=for-the-badge&logo=dart&logoColor=white" />
</div>

<br />
Expand All @@ -43,10 +44,11 @@ SNS SDK monorepo
5. [Python](#python)
6. [Java](#java)
7. [Swift](#swift)
8. [CLI](#cli)
9. [React](#react)
10. [Vue](#vue)
11. [Examples](#examples)
8. [Dart](#dart)
9. [CLI](#cli)
10. [React](#react)
11. [Vue](#vue)
12. [Examples](#examples)

- Resolving a domain

Expand Down Expand Up @@ -180,6 +182,23 @@ Work in progress
<br />
Work in progress

<br />
<a name="dart"></a>
<h2 align="center">Dart</h2>
<br />

The Dart SDK provides comprehensive SNS functionality for Flutter and Dart applications, with complete feature parity to the JavaScript SDK.

- Complete domain registration and management
- Full record operations (V1 and V2)
- NFT tokenization support
- Twitter integration and verification
- Favorite domain management
- Real-time subscription capabilities
- Mobile platform integration with secure storage

The Dart SDK is production-ready and offers efficient domain resolution, advanced RPC filtering, and comprehensive error handling for robust mobile and web applications.

<br />
<a name="examples"></a>
<h2 id="react" align="center">React</h2>
Expand Down
2 changes: 2 additions & 0 deletions dart/.dart_tool/build/entrypoint/.packageLocations
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
file:///Users/mac/.pub-cache/hosted/pub.dev/build_daemon-4.0.4/lib/fake.dart
file:///Users/mac/.pub-cache/hosted/pub.dev/build_runner-2.5.4/lib/fake.dart
62 changes: 62 additions & 0 deletions dart/.dart_tool/build/entrypoint/build.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
// @dart=3.6
// ignore_for_file: directives_ordering
// build_runner >=2.4.16
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:build_runner_core/build_runner_core.dart' as _i1;
import 'package:json_serializable/builder.dart' as _i2;
import 'package:borsh/src/builder.dart' as _i3;
import 'package:source_gen/builder.dart' as _i4;
import 'package:mockito/src/builder.dart' as _i5;
import 'package:build_config/build_config.dart' as _i6;
import 'dart:isolate' as _i7;
import 'package:build_runner/src/build_script_generate/build_process_state.dart'
as _i8;
import 'package:build_runner/build_runner.dart' as _i9;
import 'dart:io' as _i10;

final _builders = <_i1.BuilderApplication>[
_i1.apply(
r'json_serializable:json_serializable',
[_i2.jsonSerializable],
_i1.toDependentsOf(r'json_serializable'),
hideOutput: true,
appliesBuilders: const [r'source_gen:combining_builder'],
),
_i1.apply(
r'borsh:borsh',
[_i3.borsh],
_i1.toDependentsOf(r'borsh'),
hideOutput: true,
appliesBuilders: const [r'source_gen:combining_builder'],
),
_i1.apply(
r'source_gen:combining_builder',
[_i4.combiningBuilder],
_i1.toNoneByDefault(),
hideOutput: false,
appliesBuilders: const [r'source_gen:part_cleanup'],
),
_i1.apply(
r'mockito:mockBuilder',
[_i5.buildMocks],
_i1.toDependentsOf(r'mockito'),
hideOutput: false,
defaultGenerateFor: const _i6.InputSet(include: [r'test/**']),
),
_i1.applyPostProcess(
r'source_gen:part_cleanup',
_i4.partCleanup,
),
];
void main(
List<String> args, [
_i7.SendPort? sendPort,
]) async {
await _i8.buildProcessState.receive(sendPort);
_i8.buildProcessState.isolateExitCode = await _i9.run(
args,
_builders,
);
_i10.exitCode = _i8.buildProcessState.isolateExitCode!;
await _i8.buildProcessState.send(sendPort);
}
Binary file added dart/.dart_tool/build/entrypoint/build.dart.dill
Binary file not shown.

Large diffs are not rendered by default.

Binary file added dart/.dart_tool/build_resolvers/sdk.sum
Binary file not shown.
1 change: 1 addition & 0 deletions dart/.dart_tool/build_resolvers/sdk.sum.deps
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"sdk":"3.8.1 (stable) (Wed May 28 00:47:25 2025 -0700) on \"macos_arm64\"","analyzer":"/Users/mac/.pub-cache/hosted/pub.dev/analyzer-7.7.1","build_resolvers":"/Users/mac/.pub-cache/hosted/pub.dev/build_resolvers-2.5.4"}
31 changes: 31 additions & 0 deletions dart/.dart_tool/extension_discovery/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Extension Discovery Cache
=========================

This folder is used by `package:extension_discovery` to cache lists of
packages that contains extensions for other packages.

DO NOT USE THIS FOLDER
----------------------

* Do not read (or rely) the contents of this folder.
* Do write to this folder.

If you're interested in the lists of extensions stored in this folder use the
API offered by package `extension_discovery` to get this information.

If this package doesn't work for your use-case, then don't try to read the
contents of this folder. It may change, and will not remain stable.

Use package `extension_discovery`
---------------------------------

If you want to access information from this folder.

Feel free to delete this folder
-------------------------------

Files in this folder act as a cache, and the cache is discarded if the files
are older than the modification time of `.dart_tool/package_config.json`.

Hence, it should never be necessary to clear this cache manually, if you find a
need to do please file a bug.
1 change: 1 addition & 0 deletions dart/.dart_tool/extension_discovery/vs_code.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":2,"entries":[{"package":"sns_sdk","rootUri":"../","packageUri":"lib/"}]}
Loading