Skip to content
Merged
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
2 changes: 1 addition & 1 deletion vrchat_dart/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions vrchat_dart/example_flutter/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
include: package:rexios_lints/flutter/core_extra.yaml

analyzer:
exclude:
- build/**
4 changes: 2 additions & 2 deletions vrchat_dart/example_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion vrchat_dart/lib/src/api/src/auth_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion vrchat_dart/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions vrchat_dart/tool/fix_raw_string_escapes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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('"')) {
Expand Down