Skip to content

Commit b8d889a

Browse files
committed
Fix
1 parent 6545f73 commit b8d889a

4 files changed

Lines changed: 57 additions & 37 deletions

File tree

Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2-
<uses-permission android:name="android.permission.INTERNET"/>
3-
<uses-permission android:name="android.permission.WAKE_LOCK"/>
4-
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
5-
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK"/>
6-
1+
<manifest
2+
xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
4+
>
5+
<uses-permission android:name="android.permission.INTERNET" />
6+
<uses-permission android:name="android.permission.WAKE_LOCK" />
7+
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
8+
<uses-permission
9+
android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK"
10+
/>
11+
712
<application
813
android:label="Bassdrive Radio"
914
android:name="${applicationName}"
10-
android:icon="@mipmap/ic_launcher">
15+
android:icon="@mipmap/ic_launcher"
16+
>
1117
<activity
1218
android:name=".MainActivity"
1319
android:exported="true"
@@ -16,33 +22,45 @@
1622
android:theme="@style/LaunchTheme"
1723
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
1824
android:hardwareAccelerated="true"
19-
android:windowSoftInputMode="adjustResize">
25+
android:windowSoftInputMode="adjustResize"
26+
>
2027
<!-- Specifies an Android theme to apply to this Activity as soon as
2128
the Android process has started. This theme is visible to the user
2229
while the Flutter UI initializes. After that, this theme continues
2330
to determine the Window background behind the Flutter UI. -->
2431
<meta-data
25-
android:name="io.flutter.embedding.android.NormalTheme"
26-
android:resource="@style/NormalTheme"
27-
/>
32+
android:name="io.flutter.embedding.android.NormalTheme"
33+
android:resource="@style/NormalTheme"
34+
/>
2835
<intent-filter>
29-
<action android:name="android.intent.action.MAIN"/>
30-
<category android:name="android.intent.category.LAUNCHER"/>
36+
<action android:name="android.intent.action.MAIN" />
37+
<category android:name="android.intent.category.LAUNCHER" />
3138
</intent-filter>
3239
</activity>
3340
<!-- Don't delete the meta-data below.
3441
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
35-
<meta-data
36-
android:name="flutterEmbedding"
37-
android:value="2" />
42+
<meta-data android:name="flutterEmbedding" android:value="2" />
3843
<service
3944
android:name="com.ryanheise.audioservice.AudioService"
4045
android:foregroundServiceType="mediaPlayback"
41-
android:exported="true">
46+
android:exported="true"
47+
tools:ignore="Instantiatable"
48+
>
4249
<intent-filter>
43-
<action android:name="android.media.browse.MediaBrowserService" />
50+
<action
51+
android:name="android.media.browse.MediaBrowserService"
52+
/>
4453
</intent-filter>
4554
</service>
55+
<receiver
56+
android:name="com.ryanheise.audioservice.MediaButtonReceiver"
57+
android:exported="true"
58+
tools:ignore="Instantiatable"
59+
>
60+
<intent-filter>
61+
<action android:name="android.intent.action.MEDIA_BUTTON" />
62+
</intent-filter>
63+
</receiver>
4664
</application>
4765
<!-- Required to query activities that can process text, see:
4866
https://developer.android.com/training/package-visibility and
@@ -51,8 +69,8 @@
5169
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
5270
<queries>
5371
<intent>
54-
<action android:name="android.intent.action.PROCESS_TEXT"/>
55-
<data android:mimeType="text/plain"/>
72+
<action android:name="android.intent.action.PROCESS_TEXT" />
73+
<data android:mimeType="text/plain" />
5674
</intent>
5775
</queries>
5876
</manifest>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package com.bassdrive.bassdrive_radio
22

3-
import io.flutter.embedding.android.FlutterFragmentActivity
3+
import com.ryanheise.audioservice.AudioServiceActivity
44

5-
class MainActivity : FlutterFragmentActivity()
5+
class MainActivity : AudioServiceActivity()

mise.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[tools]
2+
flutter = "3.38.0"

pubspec.lock

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ packages:
141141
dependency: transitive
142142
description:
143143
name: fake_async
144-
sha256: "6a95e56b2449df2273fd8c45a662d6947ce1ebb7aafe80e550a3f68297f3cacc"
144+
sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44"
145145
url: "https://pub.dev"
146146
source: hosted
147-
version: "1.3.2"
147+
version: "1.3.3"
148148
ffi:
149149
dependency: transitive
150150
description:
@@ -292,26 +292,26 @@ packages:
292292
dependency: transitive
293293
description:
294294
name: leak_tracker
295-
sha256: c35baad643ba394b40aac41080300150a4f08fd0fd6a10378f8f7c6bc161acec
295+
sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de"
296296
url: "https://pub.dev"
297297
source: hosted
298-
version: "10.0.8"
298+
version: "11.0.2"
299299
leak_tracker_flutter_testing:
300300
dependency: transitive
301301
description:
302302
name: leak_tracker_flutter_testing
303-
sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573
303+
sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1"
304304
url: "https://pub.dev"
305305
source: hosted
306-
version: "3.0.9"
306+
version: "3.0.10"
307307
leak_tracker_testing:
308308
dependency: transitive
309309
description:
310310
name: leak_tracker_testing
311-
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
311+
sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1"
312312
url: "https://pub.dev"
313313
source: hosted
314-
version: "3.0.1"
314+
version: "3.0.2"
315315
lints:
316316
dependency: transitive
317317
description:
@@ -340,10 +340,10 @@ packages:
340340
dependency: transitive
341341
description:
342342
name: meta
343-
sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c
343+
sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394"
344344
url: "https://pub.dev"
345345
source: hosted
346-
version: "1.16.0"
346+
version: "1.17.0"
347347
mime:
348348
dependency: transitive
349349
description:
@@ -601,10 +601,10 @@ packages:
601601
dependency: transitive
602602
description:
603603
name: test_api
604-
sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd
604+
sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55
605605
url: "https://pub.dev"
606606
source: hosted
607-
version: "0.7.4"
607+
version: "0.7.7"
608608
typed_data:
609609
dependency: transitive
610610
description:
@@ -625,10 +625,10 @@ packages:
625625
dependency: transitive
626626
description:
627627
name: vector_math
628-
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
628+
sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
629629
url: "https://pub.dev"
630630
source: hosted
631-
version: "2.1.4"
631+
version: "2.2.0"
632632
vm_service:
633633
dependency: transitive
634634
description:
@@ -670,5 +670,5 @@ packages:
670670
source: hosted
671671
version: "3.1.3"
672672
sdks:
673-
dart: ">=3.7.0 <4.0.0"
673+
dart: ">=3.8.0-0 <4.0.0"
674674
flutter: ">=3.29.0"

0 commit comments

Comments
 (0)