diff --git a/vrchat_dart/example/pubspec.yaml b/vrchat_dart/example/pubspec.yaml index 3f14f438..3098bd3f 100644 --- a/vrchat_dart/example/pubspec.yaml +++ b/vrchat_dart/example/pubspec.yaml @@ -11,7 +11,7 @@ dependencies: otp: ^3.1.3 dev_dependencies: - rexios_lints: ^17.0.0 + rexios_lints: ^19.0.0 dependency_overrides: vrchat_dart_generated: diff --git a/vrchat_dart/example_flutter/analysis_options.yaml b/vrchat_dart/example_flutter/analysis_options.yaml index 37089f53..809fe36b 100644 --- a/vrchat_dart/example_flutter/analysis_options.yaml +++ b/vrchat_dart/example_flutter/analysis_options.yaml @@ -1 +1,5 @@ include: package:rexios_lints/flutter/core_extra.yaml + +analyzer: + exclude: + - build/** diff --git a/vrchat_dart/example_flutter/pubspec.yaml b/vrchat_dart/example_flutter/pubspec.yaml index 5582c963..778996d4 100644 --- a/vrchat_dart/example_flutter/pubspec.yaml +++ b/vrchat_dart/example_flutter/pubspec.yaml @@ -12,10 +12,10 @@ dependencies: path: ../ path_provider: ^2.0.11 - package_info_plus: ^9.0.0 + package_info_plus: ^10.2.1 dev_dependencies: - rexios_lints: ^17.0.0 + rexios_lints: ^19.0.0 dependency_overrides: vrchat_dart_generated: diff --git a/vrchat_dart/lib/src/api/src/auth_api.dart b/vrchat_dart/lib/src/api/src/auth_api.dart index 2297a47c..100f7ec5 100644 --- a/vrchat_dart/lib/src/api/src/auth_api.dart +++ b/vrchat_dart/lib/src/api/src/auth_api.dart @@ -73,7 +73,7 @@ class AuthApi { if (failure != null) return (null, failure); // Call the login function to set the [currentUser] - return login(); + return await login(); } /// Logout diff --git a/vrchat_dart/pubspec.yaml b/vrchat_dart/pubspec.yaml index dd59c557..6fc8bee7 100644 --- a/vrchat_dart/pubspec.yaml +++ b/vrchat_dart/pubspec.yaml @@ -17,7 +17,7 @@ dependencies: meta: ^1.16.0 dev_dependencies: - rexios_lints: ^17.0.0 + rexios_lints: ^19.0.0 build_runner: ^2.0.6 json_serializable: ^6.0.1 yaml: ^3.1.1 diff --git a/vrchat_dart/tool/fix_raw_string_escapes.dart b/vrchat_dart/tool/fix_raw_string_escapes.dart index 8d8142f5..e41c5537 100644 --- a/vrchat_dart/tool/fix_raw_string_escapes.dart +++ b/vrchat_dart/tool/fix_raw_string_escapes.dart @@ -19,8 +19,12 @@ void main() { String fixRawStringEscapes(String source) { return source.replaceAllMapped(RegExp(r"r'((?:[^'\\]|\\.)*)'"), (match) { - final inner = match[1]!; - if (!inner.contains(r"\'")) return match[0]!; + final inner = match[1]; + final full = match[0]; + if (inner == null || full == null) { + throw StateError('This should never happen'); + } + if (!inner.contains(r"\'")) return full; final unescaped = inner.replaceAll(r"\'", "'"); if (!unescaped.contains('"')) {