mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-02 00:58:19 +08:00
24 lines
644 B
Dart
24 lines
644 B
Dart
import 'dart:io' show Platform;
|
|
|
|
import 'package:jnigen/jnigen.dart';
|
|
|
|
void main(List<String> args) {
|
|
final packageRoot = Platform.script.resolve('../');
|
|
generateJniBindings(
|
|
Config(
|
|
outputConfig: OutputConfig(
|
|
dartConfig: DartCodeOutputConfig(
|
|
path: packageRoot.resolve('lib/utils/android/bindings.g.dart'),
|
|
structure: .singleFile,
|
|
),
|
|
),
|
|
androidSdkConfig: AndroidSdkConfig(addGradleDeps: true),
|
|
sourcePath: [packageRoot.resolve('android/app/src/main/java')],
|
|
classes: [
|
|
'com.example.piliplus.AndroidHelper',
|
|
'java.lang.Runnable',
|
|
],
|
|
),
|
|
);
|
|
}
|