feat: Move over the platform API
This commit is contained in:
22
pigeon/platform.dart
Normal file
22
pigeon/platform.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
import 'package:pigeon/pigeon.dart';
|
||||
|
||||
@ConfigurePigeon(
|
||||
PigeonOptions(
|
||||
dartOut: 'lib/pigeon/platform.g.dart',
|
||||
kotlinOut: 'android/src/main/kotlin/org/moxxy/moxxy_native/platform/PlatformApi.kt',
|
||||
kotlinOptions: KotlinOptions(
|
||||
package: 'org.moxxy.moxxy_native.platform',
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
@HostApi()
|
||||
abstract class MoxxyPlatformApi {
|
||||
String getPersistentDataPath();
|
||||
|
||||
String getCacheDataPath();
|
||||
|
||||
void openBatteryOptimisationSettings();
|
||||
|
||||
bool isIgnoringBatteryOptimizations();
|
||||
}
|
||||
Reference in New Issue
Block a user