mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
chore: fix android build not working
This commit is contained in:
parent
ee71dbf552
commit
cb97f4352c
4
android/app/proguard-rules.pro
vendored
4
android/app/proguard-rules.pro
vendored
@ -1,9 +1,9 @@
|
|||||||
#Flutter Wrapper
|
#Flutter Wrapper
|
||||||
-keep class io.flutter.app.** { *; }
|
# -keep class io.flutter.app.** { *; }
|
||||||
-keep class io.flutter.plugin.** { *; }
|
-keep class io.flutter.plugin.** { *; }
|
||||||
-keep class io.flutter.util.** { *; }
|
-keep class io.flutter.util.** { *; }
|
||||||
-keep class io.flutter.view.** { *; }
|
-keep class io.flutter.view.** { *; }
|
||||||
-keep class io.flutter.** { *; }
|
# -keep class io.flutter.** { *; }
|
||||||
-keep class io.flutter.plugins.** { *; }
|
-keep class io.flutter.plugins.** { *; }
|
||||||
-keep class de.prosiebensat1digital.** { *; }
|
-keep class de.prosiebensat1digital.** { *; }
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ import 'package:spotube/models/metadata/metadata.dart';
|
|||||||
import 'package:spotube/provider/metadata_plugin/auth.dart';
|
import 'package:spotube/provider/metadata_plugin/auth.dart';
|
||||||
import 'package:spotube/provider/metadata_plugin/metadata_plugin_provider.dart';
|
import 'package:spotube/provider/metadata_plugin/metadata_plugin_provider.dart';
|
||||||
import 'package:file_picker/file_picker.dart';
|
import 'package:file_picker/file_picker.dart';
|
||||||
import 'package:spotube/provider/metadata_plugin/user.dart';
|
import 'package:spotube/utils/platform.dart';
|
||||||
|
|
||||||
@RoutePage()
|
@RoutePage()
|
||||||
class SettingsMetadataProviderPage extends HookConsumerWidget {
|
class SettingsMetadataProviderPage extends HookConsumerWidget {
|
||||||
@ -26,8 +26,6 @@ class SettingsMetadataProviderPage extends HookConsumerWidget {
|
|||||||
final metadataPlugin = ref.watch(metadataPluginProvider);
|
final metadataPlugin = ref.watch(metadataPluginProvider);
|
||||||
final isAuthenticated = ref.watch(metadataPluginAuthenticatedProvider);
|
final isAuthenticated = ref.watch(metadataPluginAuthenticatedProvider);
|
||||||
|
|
||||||
final user = ref.watch(metadataPluginUserProvider);
|
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
headers: const [
|
headers: const [
|
||||||
TitleBar(
|
TitleBar(
|
||||||
@ -85,8 +83,8 @@ class SettingsMetadataProviderPage extends HookConsumerWidget {
|
|||||||
icon: const Icon(SpotubeIcons.upload),
|
icon: const Icon(SpotubeIcons.upload),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
final result = await FilePicker.platform.pickFiles(
|
final result = await FilePicker.platform.pickFiles(
|
||||||
type: FileType.custom,
|
type: kIsAndroid ? FileType.any : FileType.custom,
|
||||||
allowedExtensions: ["smplug"],
|
allowedExtensions: kIsAndroid ? [] : ["smplug"],
|
||||||
withData: true,
|
withData: true,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user