Skip to content

Commit

Permalink
[jnigen] Exclude methods and fields of excluded classes (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
HosseinYousefi authored Dec 21, 2022
1 parent cb5b9d7 commit bfa87bf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/jnigen/lib/src/bindings/preprocessor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ abstract class ApiPreprocessor {
decl.isIncluded = false;
log.fine('exclude class ${decl.binaryName}');
decl.isPreprocessed = true;
// Excluding all the class's methods and fields
for (final method in decl.methods) {
method.isIncluded = false;
}
for (final field in decl.fields) {
field.isIncluded = false;
}
return;
}
if (decl.parentName != null && classes.containsKey(decl.parentName!)) {
Expand Down

0 comments on commit bfa87bf

Please sign in to comment.