21 lines
483 B
Dart
21 lines
483 B
Dart
|
|
import 'dart:io';
|
||
|
|
|
||
|
|
import 'package:flutter_test/flutter_test.dart';
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
test('AndroidManifest declares ActionBroadcastReceiver', () {
|
||
|
|
final manifestFile = File('android/app/src/main/AndroidManifest.xml');
|
||
|
|
|
||
|
|
expect(manifestFile.existsSync(), isTrue);
|
||
|
|
|
||
|
|
final manifestContent = manifestFile.readAsStringSync();
|
||
|
|
|
||
|
|
expect(
|
||
|
|
manifestContent,
|
||
|
|
contains(
|
||
|
|
'com.dexterous.flutterlocalnotifications.ActionBroadcastReceiver',
|
||
|
|
),
|
||
|
|
);
|
||
|
|
});
|
||
|
|
}
|