Skip to content

Commit

Permalink
Merge pull request #434 from anstadnik/update_deps
Browse files Browse the repository at this point in the history
feat(workspace): add workspace dependencies
  • Loading branch information
anstadnik authored Oct 8, 2023
2 parents 72e745c + dbed771 commit cdb23cd
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
release: ${{ github.base_ref == 'main' }}
upload-artifact: true
secrets:
SHEET_ID: ${{ secrets.SHEET_ID }}
SHEET_ID: ${{ vars.SHEET_ID }}

build_flutter_apk:
uses: ./.github/workflows/build_flutter_apk.yml
with:
upload-artifact: true
secrets:
SHEET_ID: ${{ secrets.SHEET_ID }}
SHEET_ID: ${{ vars.SHEET_ID }}

# It should wait untill all checks will pass
auto-merge:
Expand Down
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ members = [
"bot",
"app/native"
]

[workspace.dependencies]
log = "0.4"
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
anyhow = "1"
serde = "1"
4 changes: 2 additions & 2 deletions app/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ dependencies {
'-t', 'arm64-v8a',
// the below 2 ABIs are usually used for Android simulators,
// add or remove these ABIs as needed.
'-t', 'x86',
'-t', 'x86_64',
// '-t', 'x86',
// '-t', 'x86_64',
'-o', '../android/app/src/main/jniLibs', 'build'
if (profileMode != null) {
args profileMode
Expand Down
2 changes: 1 addition & 1 deletion app/lib/bridge_definitions.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// AUTO GENERATED FILE, DO NOT EDIT.
// Generated by `flutter_rust_bridge`@ 1.82.0.
// Generated by `flutter_rust_bridge`@ 1.82.1.
// ignore_for_file: non_constant_identifier_names, unused_element, duplicate_ignore, directives_ordering, curly_braces_in_flow_control_structures, unnecessary_lambdas, slash_for_doc_comments, prefer_const_literals_to_create_immutables, implicit_dynamic_list_literal, duplicate_import, unused_import, unnecessary_import, prefer_single_quotes, prefer_const_constructors, use_super_parameters, always_use_package_imports, annotate_overrides, invalid_use_of_protected_member, constant_identifier_names, invalid_use_of_internal_member, prefer_is_empty, unnecessary_const

import 'bridge_generated.io.dart'
Expand Down
2 changes: 1 addition & 1 deletion app/lib/bridge_generated.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// AUTO GENERATED FILE, DO NOT EDIT.
// Generated by `flutter_rust_bridge`@ 1.82.0.
// Generated by `flutter_rust_bridge`@ 1.82.1.
// ignore_for_file: non_constant_identifier_names, unused_element, duplicate_ignore, directives_ordering, curly_braces_in_flow_control_structures, unnecessary_lambdas, slash_for_doc_comments, prefer_const_literals_to_create_immutables, implicit_dynamic_list_literal, duplicate_import, unused_import, unnecessary_import, prefer_single_quotes, prefer_const_constructors, use_super_parameters, always_use_package_imports, annotate_overrides, invalid_use_of_protected_member, constant_identifier_names, invalid_use_of_internal_member, prefer_is_empty, unnecessary_const

import "bridge_definitions.dart";
Expand Down
2 changes: 1 addition & 1 deletion app/lib/bridge_generated.io.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// AUTO GENERATED FILE, DO NOT EDIT.
// Generated by `flutter_rust_bridge`@ 1.82.0.
// Generated by `flutter_rust_bridge`@ 1.82.1.
// ignore_for_file: non_constant_identifier_names, unused_element, duplicate_ignore, directives_ordering, curly_braces_in_flow_control_structures, unnecessary_lambdas, slash_for_doc_comments, prefer_const_literals_to_create_immutables, implicit_dynamic_list_literal, duplicate_import, unused_import, unnecessary_import, prefer_single_quotes, prefer_const_constructors, use_super_parameters, always_use_package_imports, annotate_overrides, invalid_use_of_protected_member, constant_identifier_names, invalid_use_of_internal_member, prefer_is_empty, unnecessary_const

import "bridge_definitions.dart";
Expand Down
2 changes: 1 addition & 1 deletion app/lib/bridge_generated.web.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// AUTO GENERATED FILE, DO NOT EDIT.
// Generated by `flutter_rust_bridge`@ 1.82.0.
// Generated by `flutter_rust_bridge`@ 1.82.1.
// ignore_for_file: non_constant_identifier_names, unused_element, duplicate_ignore, directives_ordering, curly_braces_in_flow_control_structures, unnecessary_lambdas, slash_for_doc_comments, prefer_const_literals_to_create_immutables, implicit_dynamic_list_literal, duplicate_import, unused_import, unnecessary_import, prefer_single_quotes, prefer_const_constructors, use_super_parameters, always_use_package_imports, annotate_overrides, invalid_use_of_protected_member, constant_identifier_names, invalid_use_of_internal_member, prefer_is_empty, unnecessary_const

import "bridge_definitions.dart";
Expand Down
3 changes: 1 addition & 2 deletions app/native/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ edition = "2021"
crate-type = ["cdylib", "staticlib"]

[dependencies]
tokio = "1"
first_aid_bot_core = { path = "../../core" }
anyhow = "1"
flutter_rust_bridge = "1"
openssl = { version = "0.10", features = ["vendored"] }
tokio = { workspace = true }
2 changes: 1 addition & 1 deletion app/native/src/bridge_generated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
clippy::too_many_arguments
)]
// AUTO GENERATED FILE, DO NOT EDIT.
// Generated by `flutter_rust_bridge`@ 1.82.0.
// Generated by `flutter_rust_bridge`@ 1.82.1.

use crate::api::*;
use core::panic::UnwindSafe;
Expand Down
11 changes: 6 additions & 5 deletions bot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ edition = "2021"

[dependencies]
first_aid_bot_core = { path = "../core" }
tokio = { version = "1.32", features = ["rt-multi-thread", "macros"] }
pretty_env_logger = "0.5"
log = "0.4"
serde = { version = "1.0" }
anyhow = "1.0"
teloxide = { version = "0.12", features = ["macros", "redis-storage",
"bincode-serializer", "throttle"] }
"bincode-serializer", "throttle"] }
redis = { version = "0.23", features = ["tokio-comp"] }
rand = "0.8"
itertools = "0.10"
futures = "0.3"

anyhow = { workspace = true }
tokio = { workspace = true }
log = { workspace = true }
serde = { workspace = true }
9 changes: 4 additions & 5 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ crate-type = ["staticlib", "cdylib", "rlib"]
# # Load the data
csv = "1.2"
bytes = "1.5"
serde = { version = "1.0", features = ["derive"] }
reqwest = { version = "0.11"}
indexmap = "1.9"
anyhow = { workspace = true }
tokio = { workspace = true }
log = { workspace = true }
serde = { workspace = true, features = ["derive"] }

# futures = "0.3"
log = "0.4"
anyhow = "1.0"
tokio = { version = "1.32" , features = ["macros", "rt-multi-thread" ] }
const_format = "0.2"
regex = "1.9.5"

Expand Down

0 comments on commit cdb23cd

Please sign in to comment.