Skip to content

Commit bfa87bf

Browse files
[jnigen] Exclude methods and fields of excluded classes (#164)
1 parent cb5b9d7 commit bfa87bf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkgs/jnigen/lib/src/bindings/preprocessor.dart

+7
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ abstract class ApiPreprocessor {
3838
decl.isIncluded = false;
3939
log.fine('exclude class ${decl.binaryName}');
4040
decl.isPreprocessed = true;
41+
// Excluding all the class's methods and fields
42+
for (final method in decl.methods) {
43+
method.isIncluded = false;
44+
}
45+
for (final field in decl.fields) {
46+
field.isIncluded = false;
47+
}
4148
return;
4249
}
4350
if (decl.parentName != null && classes.containsKey(decl.parentName!)) {

0 commit comments

Comments
 (0)