Skip to content

Commit d658110

Browse files
authored
✨ Merge new structure and dependencies (#80)
2 parents 2bbd2c7 + 25db6e7 commit d658110

File tree

473 files changed

+13557
-16526
lines changed

Some content is hidden

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

473 files changed

+13557
-16526
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,32 @@ jobs:
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v3
14-
- name: Dart and Flutter Package Publisher
14+
- name: Replace symlinks before publish
15+
run: ./scripts/replace_symlinks_before_publish.sh
16+
17+
- name: Publish agent_dart
18+
uses: k-paxian/dart-package-publisher@master
19+
with:
20+
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
21+
force: true
22+
relativePath: packages/agent_dart
23+
skipTests: true
24+
suppressBuildRunner: true
25+
26+
- name: Publish agent_dart_base
27+
uses: k-paxian/dart-package-publisher@master
28+
with:
29+
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
30+
force: true
31+
relativePath: packages/agent_dart_base
32+
skipTests: true
33+
suppressBuildRunner: true
34+
35+
- name: Publish agent_dart_ffi
1536
uses: k-paxian/dart-package-publisher@master
1637
with:
1738
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
1839
force: true
40+
relativePath: packages/agent_dart_ffi
1941
skipTests: true
2042
suppressBuildRunner: true

.github/workflows/runnable.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,25 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
os: [ubuntu-latest, macos-latest, windows-latest]
17+
os: [macos-latest]
1818
steps:
1919
- uses: actions/checkout@v3
20+
- uses: dtolnay/rust-toolchain@stable
21+
with:
22+
toolchain: stable
23+
components: rustfmt, clippy
2024
- uses: actions/setup-java@v2
2125
with:
2226
distribution: 'adopt'
23-
java-version: '11'
27+
java-version: '17'
2428
- uses: subosito/flutter-action@v2
2529
with:
2630
channel: 'stable'
27-
- run: dart --version
28-
- run: flutter --version
29-
- run: flutter pub get
30-
- run: flutter test ./test/agent_dart_test.dart # This is the only test that's runnable on actions.
31-
- run: dart pub publish --dry-run
31+
- uses: bluefireteam/melos-action@v3
32+
- name: Replace symlinks
33+
run: ./scripts/replace_symlinks_before_publish.sh
34+
- run: cargo build --package=agent_dart
35+
- run: cd packages/agent_dart_base && dart test ./test/agent_dart_base_test.dart
36+
- name: Publish dry run
37+
run: melos run publish-dry-run
3238
if: github.repository == 'AstroxNetwork/agent_dart'

.gitignore

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,38 @@
22
.dart_tool/
33
.idea/
44
.vscode/
5-
.iml
65

76
.packages
87
.pub/
98

109
build/
1110

1211
.env
13-
pubspec.lock
1412

15-
rust/target
16-
rust/Cargo.lock
13+
# Miscellaneous
14+
*.class
15+
*.log
16+
*.pyc
17+
*.swp
18+
.atom/
19+
.buildlog/
20+
.history
21+
.svn/
1722

18-
_main.dart
23+
# IntelliJ related
24+
*.ipr
25+
*.iws
26+
27+
# Flutter/Dart/Pub related
28+
pubspec_overrides.yaml
29+
**/doc/api/
30+
.pub-cache/
31+
.flutter-plugins
32+
.flutter-plugins-dependencies
33+
**/pubspec.lock
1934

2035
# build files
2136
/platform-build/
2237
/target/
23-
# rust/headers/
24-
# rust/dylib/
25-
# macos/cli/
26-
# macos/libagent_dart.a
27-
# ios/libagent_dart.a
28-
# android/src/main/jniLibs/
29-
# linux/libagent_dart.so
30-
# windows/agent_dart.dll
38+
/Cargo.lock
39+
/platform-build

.pubignore

Lines changed: 0 additions & 31 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ that can be found in the LICENSE file. -->
44

55
# Changelog
66

7+
## 1.0.0-dev.25
8+
9+
- Prepare for monorepo.
10+
711
## 1.0.0-dev.24
812

913
- Implement subaccount as `Principal.subAccount`, which also removes the `subAccount` parameter

0 commit comments

Comments
 (0)