Skip to content

Commit

Permalink
fix: update codegen build, fix incorrect logging output
Browse files Browse the repository at this point in the history
  • Loading branch information
astubenbord committed Oct 24, 2023
1 parent c35fc7c commit 03d8cb5
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 99 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if (localPropertiesFile.exists()) {

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
throw new FileNotFoundException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class _SavedViewChipState extends State<SavedViewChip>
color: effectiveForegroundColor,
),
onPressed: () {
EditSavedViewRoute(widget.view).push(context);
EditSavedViewRoute($extra: widget.view).push(context);
},
),
IconButton(
Expand Down
7 changes: 2 additions & 5 deletions lib/features/logging/utils/redaction_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@
final username = parts.first;
final serverUrl = parts.last;
final uri = Uri.parse(serverUrl);
final hostLen = uri.host.length;
final obscuredUrl = uri.scheme +
"://" +
uri.host.substring(0, 2) +
List.filled(hostLen - 4, '*').join() +
final obscuredUrl = uri.host.substring(0, 2) +
'***' +
uri.host.substring(uri.host.length - 2, uri.host.length);
return (username, obscuredUrl);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/typed/branches/saved_views_route.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class CreateSavedViewRoute extends GoRouteData {

class EditSavedViewRoute extends GoRouteData {
final SavedView $extra;
const EditSavedViewRoute(this.$extra);
const EditSavedViewRoute({required this.$extra});

@override
Widget build(BuildContext context, GoRouterState state) {
Expand Down
2 changes: 1 addition & 1 deletion packages/paperless_api/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies:
equatable: ^2.0.5
http: ^1.0.0
json_annotation: ^4.8.1
intl: any #^0.18.0
intl: ^0.18.1
dio: ^5.0.0
collection: ^1.17.0
jiffy: ^5.0.0
Expand Down
Loading

0 comments on commit 03d8cb5

Please sign in to comment.