Skip to content

Commit

Permalink
Merge pull request #589 from lamarios/feature/add-server-custom-headers
Browse files Browse the repository at this point in the history
add custom header for mobile app
  • Loading branch information
lamarios authored Sep 15, 2024
2 parents 352f6ad + da12a68 commit d868d25
Show file tree
Hide file tree
Showing 38 changed files with 3,169 additions and 2,108 deletions.
83 changes: 0 additions & 83 deletions .drone.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- run: ./submodules/flutter/bin/flutter config --no-analytics
- run: ./submodules/flutter/bin/flutter pub get
- run: ./submodules/flutter/bin/dart format --output=none --set-exit-if-changed ./lib
- run: ./submodules/flutter/bin/dart analyze ./lib
- run: ./submodules/flutter/bin/dart analyze --no-fatal-warnings ./lib
# - name: Run tests with nix (starts postgres and invidious server)
# run: nix-shell --run './submodules/flutter/bin/flutter test'
- run: ./submodules/flutter/bin/flutter pub run flutter_native_splash:create
Expand Down
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
2 changes: 2 additions & 0 deletions lib/globals.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
library app.globals;

import 'package:flutter/animation.dart';
import 'package:invidious/service.dart';
import 'package:invidious/utils/file_db.dart';
import 'package:invidious/utils/interfaces/db.dart';
Expand All @@ -19,6 +20,7 @@ const youtubeHosts = [
];

const animationDuration = Duration(milliseconds: 250);
const animationCurve = Curves.easeInOutQuad;

Service service = Service();

Expand Down
Loading

0 comments on commit d868d25

Please sign in to comment.