Skip to content

Commit

Permalink
add custom header for android mobile app
Browse files Browse the repository at this point in the history
  • Loading branch information
lamarios committed Sep 14, 2024
1 parent 7762975 commit ef350ee
Show file tree
Hide file tree
Showing 12 changed files with 712 additions and 382 deletions.
17 changes: 17 additions & 0 deletions lib/app/states/app.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ abstract class $AppStateCopyWith<$Res> {
Server? server,
HomeLayout homeLayout,
bool globalLoading});

$ServerCopyWith<$Res>? get server;
}

/// @nodoc
Expand Down Expand Up @@ -75,6 +77,18 @@ class _$AppStateCopyWithImpl<$Res, $Val extends AppState>
as bool,
) as $Val);
}

@override
@pragma('vm:prefer-inline')
$ServerCopyWith<$Res>? get server {
if (_value.server == null) {
return null;
}

return $ServerCopyWith<$Res>(_value.server!, (value) {
return _then(_value.copyWith(server: value) as $Val);
});
}
}

/// @nodoc
Expand All @@ -90,6 +104,9 @@ abstract class _$$AppStateImplCopyWith<$Res>
Server? server,
HomeLayout homeLayout,
bool globalLoading});

@override
$ServerCopyWith<$Res>? get server;
}

/// @nodoc
Expand Down
8 changes: 7 additions & 1 deletion lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -1358,5 +1358,11 @@
"description": "Text when the user chooses where to subscribe to a channel"
},
"both": "Both",
"refresh": "Refresh"
"refresh": "Refresh",
"addBasicAuth": "Add Basic Authentication",
"addHeader":"Add header",
"advanced":"Advanced",
"customHeaders":"Custom headers",
"customHeadersExplanation":"Set custom headers to be sent to the invidious server",
"value":"Value"
}
Loading

0 comments on commit ef350ee

Please sign in to comment.