From f664a30f37098d71a40af9aceb30b9ad8c4468ac Mon Sep 17 00:00:00 2001 From: Hossein Yousefi Date: Mon, 30 Sep 2024 15:56:37 +0200 Subject: [PATCH] [jni] set max-page-size=16kb (#1615) --- pkgs/jni/src/CMakeLists.txt | 1 + pkgs/jnigen/example/in_app_java/lib/android_utils.dart | 1 + pkgs/jnigen/example/kotlin_plugin/lib/kotlin_bindings.dart | 1 + pkgs/jnigen/example/notification_plugin/lib/notifications.dart | 1 + .../src/third_party/org/apache/pdfbox/pdmodel/PDDocument.dart | 1 + .../org/apache/pdfbox/pdmodel/PDDocumentInformation.dart | 1 + .../src/third_party/org/apache/pdfbox/text/PDFTextStripper.dart | 1 + pkgs/jnigen/lib/src/bindings/dart_generator.dart | 1 + .../bindings/com/fasterxml/jackson/core/JsonFactory.dart | 1 + .../bindings/com/fasterxml/jackson/core/JsonParser.dart | 1 + .../bindings/com/fasterxml/jackson/core/JsonToken.dart | 1 + pkgs/jnigen/test/kotlin_test/bindings/kotlin.dart | 1 + .../jnigen/test/simple_package_test/bindings/simple_package.dart | 1 + 13 files changed, 13 insertions(+) diff --git a/pkgs/jni/src/CMakeLists.txt b/pkgs/jni/src/CMakeLists.txt index 2cdb3f724..54771bebc 100644 --- a/pkgs/jni/src/CMakeLists.txt +++ b/pkgs/jni/src/CMakeLists.txt @@ -27,6 +27,7 @@ endif() if (ANDROID) target_link_libraries(jni log) + target_link_options(jni PRIVATE "-Wl,-z,max-page-size=16384") else() find_package(Java REQUIRED) find_package(JNI REQUIRED) diff --git a/pkgs/jnigen/example/in_app_java/lib/android_utils.dart b/pkgs/jnigen/example/in_app_java/lib/android_utils.dart index ffe6d2aea..e249c9ef2 100644 --- a/pkgs/jnigen/example/in_app_java/lib/android_utils.dart +++ b/pkgs/jnigen/example/in_app_java/lib/android_utils.dart @@ -8,6 +8,7 @@ // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter +// ignore_for_file: invalid_internal_annotation // ignore_for_file: invalid_use_of_internal_member // ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars diff --git a/pkgs/jnigen/example/kotlin_plugin/lib/kotlin_bindings.dart b/pkgs/jnigen/example/kotlin_plugin/lib/kotlin_bindings.dart index 5c3c341ad..f5bfcb56e 100644 --- a/pkgs/jnigen/example/kotlin_plugin/lib/kotlin_bindings.dart +++ b/pkgs/jnigen/example/kotlin_plugin/lib/kotlin_bindings.dart @@ -8,6 +8,7 @@ // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter +// ignore_for_file: invalid_internal_annotation // ignore_for_file: invalid_use_of_internal_member // ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars diff --git a/pkgs/jnigen/example/notification_plugin/lib/notifications.dart b/pkgs/jnigen/example/notification_plugin/lib/notifications.dart index d0d788d94..2fa53747c 100644 --- a/pkgs/jnigen/example/notification_plugin/lib/notifications.dart +++ b/pkgs/jnigen/example/notification_plugin/lib/notifications.dart @@ -12,6 +12,7 @@ // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter +// ignore_for_file: invalid_internal_annotation // ignore_for_file: invalid_use_of_internal_member // ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars diff --git a/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocument.dart b/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocument.dart index 5570187f8..0943be9b2 100644 --- a/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocument.dart +++ b/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocument.dart @@ -26,6 +26,7 @@ // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter +// ignore_for_file: invalid_internal_annotation // ignore_for_file: invalid_use_of_internal_member // ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars diff --git a/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocumentInformation.dart b/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocumentInformation.dart index 8696ca3bc..ae30379a0 100644 --- a/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocumentInformation.dart +++ b/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocumentInformation.dart @@ -26,6 +26,7 @@ // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter +// ignore_for_file: invalid_internal_annotation // ignore_for_file: invalid_use_of_internal_member // ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars diff --git a/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/text/PDFTextStripper.dart b/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/text/PDFTextStripper.dart index b4354d1e5..134b0cc16 100644 --- a/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/text/PDFTextStripper.dart +++ b/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/text/PDFTextStripper.dart @@ -26,6 +26,7 @@ // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter +// ignore_for_file: invalid_internal_annotation // ignore_for_file: invalid_use_of_internal_member // ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars diff --git a/pkgs/jnigen/lib/src/bindings/dart_generator.dart b/pkgs/jnigen/lib/src/bindings/dart_generator.dart index 1fe8186d2..57af2deca 100644 --- a/pkgs/jnigen/lib/src/bindings/dart_generator.dart +++ b/pkgs/jnigen/lib/src/bindings/dart_generator.dart @@ -143,6 +143,7 @@ import 'package:jni/jni.dart' as $_jni; // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter +// ignore_for_file: invalid_internal_annotation // ignore_for_file: invalid_use_of_internal_member // ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars diff --git a/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonFactory.dart b/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonFactory.dart index 67b312dc2..560a32074 100644 --- a/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonFactory.dart +++ b/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonFactory.dart @@ -25,6 +25,7 @@ // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter +// ignore_for_file: invalid_internal_annotation // ignore_for_file: invalid_use_of_internal_member // ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars diff --git a/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonParser.dart b/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonParser.dart index c7b36643c..6062e6c3b 100644 --- a/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonParser.dart +++ b/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonParser.dart @@ -25,6 +25,7 @@ // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter +// ignore_for_file: invalid_internal_annotation // ignore_for_file: invalid_use_of_internal_member // ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars diff --git a/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonToken.dart b/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonToken.dart index 6e075ac07..9a62b8eb7 100644 --- a/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonToken.dart +++ b/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/JsonToken.dart @@ -25,6 +25,7 @@ // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter +// ignore_for_file: invalid_internal_annotation // ignore_for_file: invalid_use_of_internal_member // ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars diff --git a/pkgs/jnigen/test/kotlin_test/bindings/kotlin.dart b/pkgs/jnigen/test/kotlin_test/bindings/kotlin.dart index 7c9b4f5bc..92aae7dfe 100644 --- a/pkgs/jnigen/test/kotlin_test/bindings/kotlin.dart +++ b/pkgs/jnigen/test/kotlin_test/bindings/kotlin.dart @@ -12,6 +12,7 @@ // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter +// ignore_for_file: invalid_internal_annotation // ignore_for_file: invalid_use_of_internal_member // ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars diff --git a/pkgs/jnigen/test/simple_package_test/bindings/simple_package.dart b/pkgs/jnigen/test/simple_package_test/bindings/simple_package.dart index 0707eb370..6b4e97c81 100644 --- a/pkgs/jnigen/test/simple_package_test/bindings/simple_package.dart +++ b/pkgs/jnigen/test/simple_package_test/bindings/simple_package.dart @@ -12,6 +12,7 @@ // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter +// ignore_for_file: invalid_internal_annotation // ignore_for_file: invalid_use_of_internal_member // ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars