├── pkgs
├── hooks
│ ├── .gitignore
│ ├── example
│ │ ├── build
│ │ │ ├── native_add_app
│ │ │ │ └── .gitignore
│ │ │ ├── local_asset
│ │ │ │ ├── assets
│ │ │ │ │ └── asset.txt
│ │ │ │ └── README.md
│ │ │ ├── native_dynamic_linking
│ │ │ │ ├── README.md
│ │ │ │ └── src
│ │ │ │ │ ├── math.c
│ │ │ │ │ └── debug.h
│ │ │ ├── use_dart_api
│ │ │ │ ├── manifest.yaml
│ │ │ │ └── lib
│ │ │ │ │ └── use_dart_api.dart
│ │ │ └── download_asset
│ │ │ │ └── src
│ │ │ │ └── native_add.c
│ │ ├── link
│ │ │ ├── package_with_assets
│ │ │ │ ├── CHANGELOG.md
│ │ │ │ └── assets
│ │ │ │ │ ├── used_asset.json
│ │ │ │ │ └── unused_asset.json
│ │ │ └── app_with_asset_treeshaking
│ │ │ │ ├── CHANGELOG.md
│ │ │ │ ├── analysis_options.yaml
│ │ │ │ ├── lib
│ │ │ │ └── app_with_asset_treeshaking.dart
│ │ │ │ └── pubspec.yaml
│ │ └── api
│ │ │ └── README.md
│ ├── lib
│ │ └── src
│ │ │ └── avoid_import_outside_src_rule_test.dart
│ ├── doc
│ │ ├── schema
│ │ │ ├── hook
│ │ │ │ ├── link_input.generated.schema.json
│ │ │ │ ├── build_input.generated.schema.json
│ │ │ │ ├── link_output.generated.schema.json
│ │ │ │ └── build_output.generated.schema.json
│ │ │ └── sdk
│ │ │ │ ├── link_input.generated.schema.json
│ │ │ │ ├── build_input.generated.schema.json
│ │ │ │ ├── build_output.generated.schema.json
│ │ │ │ └── link_output.generated.schema.json
│ │ └── README.md
│ └── .pubignore
├── code_assets
│ ├── .gitignore
│ ├── example
│ │ ├── mini_audio
│ │ │ ├── third_party
│ │ │ │ └── miniaudio.c
│ │ │ └── lib
│ │ │ │ └── mini_audio.dart
│ │ ├── stb_image
│ │ │ ├── third_party
│ │ │ │ └── stb_image.c
│ │ │ ├── data
│ │ │ │ └── icon_dart@2x.png
│ │ │ └── lib
│ │ │ │ └── stb_image.dart
│ │ ├── api
│ │ │ └── README.md
│ │ ├── host_name
│ │ │ ├── src
│ │ │ │ ├── unix.h
│ │ │ │ └── windows.h
│ │ │ └── lib
│ │ │ │ └── host_name.dart
│ │ ├── sqlite
│ │ │ └── lib
│ │ │ │ └── sqlite.dart
│ │ └── sqlite_prebuilt
│ │ │ └── lib
│ │ │ └── sqlite_prebuilt.dart
│ ├── test
│ │ └── json_schema
│ │ │ └── helpers.dart
│ ├── doc
│ │ └── schema
│ │ │ ├── hook
│ │ │ ├── shared_definitions.schema.json
│ │ │ ├── build_input.generated.schema.json
│ │ │ ├── link_input.generated.schema.json
│ │ │ ├── link_output.generated.schema.json
│ │ │ └── build_output.generated.schema.json
│ │ │ └── sdk
│ │ │ ├── shared_definitions.schema.json
│ │ │ ├── link_input.generated.schema.json
│ │ │ ├── build_input.generated.schema.json
│ │ │ ├── link_output.generated.schema.json
│ │ │ └── build_output.generated.schema.json
│ └── .pubignore
├── data_assets
│ ├── .gitignore
│ ├── example
│ │ ├── api
│ │ │ └── README.md
│ │ └── README.md
│ ├── test
│ │ └── json_schema
│ │ │ └── helpers.dart
│ ├── doc
│ │ └── schema
│ │ │ ├── sdk
│ │ │ ├── link_input.generated.schema.json
│ │ │ ├── build_input.generated.schema.json
│ │ │ ├── link_output.generated.schema.json
│ │ │ └── build_output.generated.schema.json
│ │ │ └── hook
│ │ │ ├── build_input.generated.schema.json
│ │ │ ├── link_input.generated.schema.json
│ │ │ ├── link_output.generated.schema.json
│ │ │ └── build_output.generated.schema.json
│ └── .pubignore
├── ffigen
│ ├── test
│ │ ├── .gitignore
│ │ ├── large_integration_tests
│ │ │ ├── .gitignore
│ │ │ └── large_objc_test.h
│ │ ├── native_objc_test
│ │ │ ├── .gitignore
│ │ │ ├── ns_range_test.m
│ │ │ ├── swift_class_test.swift
│ │ │ ├── cast_config.yaml
│ │ │ ├── isolate_test.m
│ │ │ ├── method_config.yaml
│ │ │ ├── log_config.yaml
│ │ │ ├── string_config.yaml
│ │ │ ├── nullable_config.yaml
│ │ │ ├── global_config.yaml
│ │ │ ├── property_config.yaml
│ │ │ ├── is_instance_config.yaml
│ │ │ ├── failed_to_load_config.yaml
│ │ │ ├── global_native_config.yaml
│ │ │ ├── typedef_config.yaml
│ │ │ ├── failed_to_load_test.m
│ │ │ ├── isolate_config.yaml
│ │ │ ├── forward_decl_config.yaml
│ │ │ ├── inherited_instancetype_config.yaml
│ │ │ ├── nullable_inheritance_config.yaml
│ │ │ └── forward_decl_test.h
│ │ ├── native_test
│ │ │ └── .gitignore
│ │ └── header_parser_tests
│ │ │ ├── macros_config.yaml
│ │ │ ├── unnamed_enums.h
│ │ │ ├── regress_384_header_1.h
│ │ │ ├── regress_384_header_2.h
│ │ │ ├── separate_definition_base.h
│ │ │ ├── regress_384_shared.h
│ │ │ └── sort.h
│ ├── dart_test.yaml
│ ├── example
│ │ ├── objective_c
│ │ │ └── test.mp3
│ │ ├── simple
│ │ │ ├── config.yaml
│ │ │ └── README.md
│ │ ├── add
│ │ │ ├── src
│ │ │ │ ├── add.h
│ │ │ │ └── add.c
│ │ │ ├── lib
│ │ │ │ ├── add.g.dart
│ │ │ │ └── add.dart
│ │ │ ├── bin
│ │ │ │ └── add.dart
│ │ │ ├── pubspec.yaml
│ │ │ ├── README.md
│ │ │ └── test
│ │ │ │ └── add_test.dart
│ │ ├── shared_bindings
│ │ │ └── README.md
│ │ ├── c_json
│ │ │ └── example.json
│ │ └── ffinative
│ │ │ └── README.md
│ ├── dartdoc_options.yaml
│ ├── third_party
│ │ ├── cjson_library
│ │ │ ├── .gitignore
│ │ │ └── CMakeLists.txt
│ │ └── sqlite
│ │ │ └── license.txt
│ ├── AUTHORS
│ ├── bin
│ │ └── ffigen.dart
│ └── lib
│ │ └── src
│ │ └── header_parser.dart
├── hooks_runner
│ ├── test_data
│ │ ├── simple_link
│ │ │ ├── assets
│ │ │ │ ├── data_0.json
│ │ │ │ ├── data_1.json
│ │ │ │ ├── data_2.json
│ │ │ │ └── data_3.json
│ │ │ └── bin
│ │ │ │ └── simple_link.dart
│ │ ├── complex_link
│ │ │ ├── assets
│ │ │ │ ├── data_0.json
│ │ │ │ └── data_1.json
│ │ │ ├── .gitignore
│ │ │ └── bin
│ │ │ │ └── complex_link.dart
│ │ ├── dart_app
│ │ │ ├── .gitignore
│ │ │ └── pubspec.yaml
│ │ ├── fun_with_flags
│ │ │ ├── assets
│ │ │ │ ├── ca.txt
│ │ │ │ ├── de.txt
│ │ │ │ └── fr.txt
│ │ │ ├── README.md
│ │ │ ├── .gitignore
│ │ │ ├── lib
│ │ │ │ ├── hook.dart
│ │ │ │ └── fun_with_flags.dart
│ │ │ └── pubspec.yaml
│ │ ├── complex_link_helper
│ │ │ ├── assets
│ │ │ │ ├── data_helper_0.json
│ │ │ │ ├── data_helper_1.json
│ │ │ │ ├── data_helper_2.json
│ │ │ │ └── data_helper_3.json
│ │ │ └── lib
│ │ │ │ └── complex_link_helper.dart
│ │ ├── relative_path
│ │ │ ├── assets
│ │ │ │ └── test_asset.txt
│ │ │ └── pubspec.yaml
│ │ ├── simple_data_asset
│ │ │ ├── assets
│ │ │ │ └── test_asset.txt
│ │ │ ├── .gitignore
│ │ │ ├── README.md
│ │ │ └── pubspec.yaml
│ │ ├── add_asset_link
│ │ │ ├── .gitignore
│ │ │ ├── README.md
│ │ │ ├── lib
│ │ │ │ ├── add_asset_link.dart
│ │ │ │ └── src
│ │ │ │ │ └── add_asset_link.dart
│ │ │ ├── src
│ │ │ │ └── native_add.c
│ │ │ ├── bin
│ │ │ │ └── add_asset_link.dart
│ │ │ └── pubspec.yaml
│ │ ├── drop_dylib_link
│ │ │ ├── .gitignore
│ │ │ ├── README.md
│ │ │ ├── lib
│ │ │ │ └── drop_dylib_link.dart
│ │ │ ├── src
│ │ │ │ ├── native_add.c
│ │ │ │ └── native_multiply.c
│ │ │ └── pubspec.yaml
│ │ ├── transformer
│ │ │ ├── data
│ │ │ │ ├── data0.json
│ │ │ │ ├── data1.json
│ │ │ │ ├── data2.json
│ │ │ │ ├── data3.json
│ │ │ │ ├── data4.json
│ │ │ │ ├── data5.json
│ │ │ │ ├── data6.json
│ │ │ │ ├── data7.json
│ │ │ │ ├── data8.json
│ │ │ │ └── data9.json
│ │ │ └── pubspec.yaml
│ │ ├── user_defines
│ │ │ ├── assets
│ │ │ │ └── data.json
│ │ │ ├── bin
│ │ │ │ └── user_defines.dart
│ │ │ └── test
│ │ │ │ └── user_defines_test.dart
│ │ ├── fail_on_os_sdk_version_link
│ │ │ └── assets
│ │ │ │ └── data.json
│ │ ├── simple_link_change_asset
│ │ │ ├── assets
│ │ │ │ ├── data_0.json
│ │ │ │ ├── data_1.json
│ │ │ │ ├── data_2.json
│ │ │ │ └── data_3.json
│ │ │ └── manifest.yaml
│ │ ├── flag_enthusiast_1
│ │ │ ├── README.md
│ │ │ ├── .gitignore
│ │ │ └── lib
│ │ │ │ └── flag_enthusiast_1.dart
│ │ ├── flag_enthusiast_2
│ │ │ ├── README.md
│ │ │ ├── .gitignore
│ │ │ └── lib
│ │ │ │ └── flag_enthusiast_2.dart
│ │ ├── native_add_add_source
│ │ │ ├── README.md
│ │ │ ├── manifest.yaml
│ │ │ └── src
│ │ │ │ └── native_multiply.c
│ │ ├── native_add_add_symbol
│ │ │ ├── README.md
│ │ │ └── manifest.yaml
│ │ ├── native_add_fix_build
│ │ │ ├── README.md
│ │ │ ├── manifest.yaml
│ │ │ └── src
│ │ │ │ └── native_add.c
│ │ ├── native_add_break_build
│ │ │ ├── README.md
│ │ │ ├── manifest.yaml
│ │ │ └── src
│ │ │ │ └── native_add.c
│ │ ├── use_all_api
│ │ │ └── README.md
│ │ ├── flag_app
│ │ │ ├── .gitignore
│ │ │ ├── README.md
│ │ │ ├── pubspec.yaml
│ │ │ └── bin
│ │ │ │ └── flag_app.dart
│ │ ├── native_dynamic_linking
│ │ │ ├── README.md
│ │ │ ├── bin
│ │ │ │ └── native_dynamic_linking.dart
│ │ │ └── src
│ │ │ │ └── math.c
│ │ ├── reusable_dynamic_library
│ │ │ ├── README.md
│ │ │ └── src
│ │ │ │ └── add.c
│ │ ├── no_hook
│ │ │ ├── manifest.yaml
│ │ │ └── lib
│ │ │ │ └── no_hook.dart
│ │ ├── reuse_dynamic_library
│ │ │ └── README.md
│ │ ├── some_dev_dep
│ │ │ ├── pubspec.yaml
│ │ │ └── bin
│ │ │ │ └── some_dev_dep.dart
│ │ ├── native_add_version_skew_2
│ │ │ ├── manifest.yaml
│ │ │ └── analysis_options.yaml
│ │ ├── infra_failure
│ │ │ ├── bin
│ │ │ │ └── infra_failure.dart
│ │ │ └── pubspec.yaml
│ │ ├── fail_build
│ │ │ ├── lib
│ │ │ │ └── fail_build.dart
│ │ │ ├── pubspec.yaml
│ │ │ └── hook
│ │ │ │ └── build.dart
│ │ ├── native_add
│ │ │ ├── lib
│ │ │ │ ├── native_add.dart
│ │ │ │ └── src
│ │ │ │ │ └── native_add.dart
│ │ │ └── src
│ │ │ │ └── native_add.c
│ │ ├── native_add_version_skew
│ │ │ ├── lib
│ │ │ │ ├── native_add.dart
│ │ │ │ └── src
│ │ │ │ │ └── native_add.dart
│ │ │ ├── src
│ │ │ │ └── native_add.c
│ │ │ └── analysis_options.yaml
│ │ ├── native_subtract
│ │ │ ├── lib
│ │ │ │ ├── native_subtract.dart
│ │ │ │ └── src
│ │ │ │ │ └── native_subtract.dart
│ │ │ └── src
│ │ │ │ └── native_subtract.c
│ │ ├── no_build_output
│ │ │ ├── pubspec.yaml
│ │ │ └── hook
│ │ │ │ └── build.dart
│ │ ├── depend_on_fail_build
│ │ │ ├── lib
│ │ │ │ └── depend_on_fail_build.dart
│ │ │ └── pubspec.yaml
│ │ ├── README.md
│ │ ├── download_assets
│ │ │ └── pubspec.yaml
│ │ ├── treeshaking_native_libs
│ │ │ ├── lib
│ │ │ │ └── treeshaking_native_libs.dart
│ │ │ ├── src
│ │ │ │ ├── native_add.c
│ │ │ │ └── native_multiply.c
│ │ │ └── bin
│ │ │ │ └── treeshaking_native_libs.dart
│ │ ├── native_add_duplicate
│ │ │ ├── src
│ │ │ │ └── native_add.c
│ │ │ └── bin
│ │ │ │ └── native_add_duplicate.dart
│ │ ├── package_with_metadata
│ │ │ └── pubspec.yaml
│ │ ├── link_inverse_package
│ │ │ └── pubspec.yaml
│ │ ├── wrong_linker
│ │ │ └── pubspec.yaml
│ │ ├── wrong_build_output_3
│ │ │ └── pubspec.yaml
│ │ ├── wrong_build_output
│ │ │ └── pubspec.yaml
│ │ ├── wrong_build_output_2
│ │ │ └── pubspec.yaml
│ │ ├── wrong_namespace_asset
│ │ │ └── pubspec.yaml
│ │ ├── cyclic_package_1
│ │ │ ├── pubspec.yaml
│ │ │ └── hook
│ │ │ │ └── build.dart
│ │ ├── cyclic_package_2
│ │ │ ├── pubspec.yaml
│ │ │ └── hook
│ │ │ │ └── build.dart
│ │ ├── cyclic_link_package_1
│ │ │ ├── hook
│ │ │ │ └── link.dart
│ │ │ └── pubspec.yaml
│ │ ├── cyclic_link_package_2
│ │ │ ├── hook
│ │ │ │ └── link.dart
│ │ │ └── pubspec.yaml
│ │ ├── fail_on_os_sdk_version
│ │ │ └── pubspec.yaml
│ │ ├── dev_dependency_with_hook
│ │ │ └── pubspec.yaml
│ │ ├── depend_on_fail_build_app
│ │ │ └── bin
│ │ │ │ └── depend_on_fail_build_app.dart
│ │ └── fail_on_os_sdk_version_linker
│ │ │ └── pubspec.yaml
│ ├── dart_test.yaml
│ └── .pubignore
├── jni
│ ├── android
│ │ ├── settings.gradle
│ │ ├── consumer-rules.pro
│ │ ├── src
│ │ │ └── main
│ │ │ │ └── AndroidManifest.xml
│ │ └── README.md
│ ├── java
│ │ ├── settings.gradle.kts
│ │ ├── .gitignore
│ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ ├── gradle-wrapper.jar
│ │ │ │ └── gradle-wrapper.properties
│ │ └── README.md
│ ├── example
│ │ ├── README.md
│ │ ├── android
│ │ │ ├── gradle.properties
│ │ │ ├── app
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ ├── res
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ └── mipmap-xxxhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ └── kotlin
│ │ │ │ │ └── dev
│ │ │ │ │ └── dart
│ │ │ │ │ └── jni_example
│ │ │ │ │ └── MainActivity.kt
│ │ │ ├── gradle
│ │ │ │ └── wrapper
│ │ │ │ │ └── gradle-wrapper.properties
│ │ │ └── build.gradle
│ │ ├── macos
│ │ │ ├── Runner
│ │ │ │ ├── Configs
│ │ │ │ │ ├── Debug.xcconfig
│ │ │ │ │ └── Release.xcconfig
│ │ │ │ ├── Assets.xcassets
│ │ │ │ │ └── AppIcon.appiconset
│ │ │ │ │ │ ├── app_icon_16.png
│ │ │ │ │ │ ├── app_icon_32.png
│ │ │ │ │ │ ├── app_icon_64.png
│ │ │ │ │ │ ├── app_icon_1024.png
│ │ │ │ │ │ ├── app_icon_128.png
│ │ │ │ │ │ ├── app_icon_256.png
│ │ │ │ │ │ └── app_icon_512.png
│ │ │ │ ├── AppDelegate.swift
│ │ │ │ ├── Release.entitlements
│ │ │ │ └── DebugProfile.entitlements
│ │ │ ├── Flutter
│ │ │ │ ├── Flutter-Debug.xcconfig
│ │ │ │ └── Flutter-Release.xcconfig
│ │ │ ├── Runner.xcworkspace
│ │ │ │ ├── contents.xcworkspacedata
│ │ │ │ └── xcshareddata
│ │ │ │ │ └── IDEWorkspaceChecks.plist
│ │ │ └── Runner.xcodeproj
│ │ │ │ └── project.xcworkspace
│ │ │ │ └── xcshareddata
│ │ │ │ └── IDEWorkspaceChecks.plist
│ │ ├── windows
│ │ │ └── runner
│ │ │ │ └── resources
│ │ │ │ └── app_icon.ico
│ │ ├── linux
│ │ │ └── main.cc
│ │ └── analysis_options.yaml
│ ├── src
│ │ └── README.md
│ ├── dart_test.yaml
│ ├── analysis_options.yaml
│ ├── lib
│ │ └── src
│ │ │ ├── third_party
│ │ │ └── generated_bindings.dart
│ │ │ └── nio
│ │ │ └── nio.dart
│ └── tool
│ │ └── wrapper_generators
│ │ └── logging.dart
├── jnigen
│ ├── example
│ │ ├── pdfbox_plugin
│ │ │ ├── dart_example
│ │ │ │ ├── .gitignore
│ │ │ │ ├── CHANGELOG.md
│ │ │ │ ├── analysis_options.yaml
│ │ │ │ └── pubspec.yaml
│ │ │ ├── android
│ │ │ │ ├── settings.gradle
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ └── AndroidManifest.xml
│ │ │ ├── example
│ │ │ │ ├── android
│ │ │ │ │ ├── gradle.properties
│ │ │ │ │ ├── app
│ │ │ │ │ │ └── src
│ │ │ │ │ │ │ └── main
│ │ │ │ │ │ │ ├── res
│ │ │ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ │ └── mipmap-xxxhdpi
│ │ │ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ │ └── kotlin
│ │ │ │ │ │ │ └── com
│ │ │ │ │ │ │ └── example
│ │ │ │ │ │ │ └── pdfbox_plugin_example
│ │ │ │ │ │ │ └── MainActivity.kt
│ │ │ │ │ └── gradle
│ │ │ │ │ │ └── wrapper
│ │ │ │ │ │ └── gradle-wrapper.properties
│ │ │ │ ├── windows
│ │ │ │ │ └── runner
│ │ │ │ │ │ └── resources
│ │ │ │ │ │ └── app_icon.ico
│ │ │ │ ├── analysis_options.yaml
│ │ │ │ └── linux
│ │ │ │ │ └── main.cc
│ │ │ ├── lib
│ │ │ │ ├── src
│ │ │ │ │ └── third_party
│ │ │ │ │ │ └── org
│ │ │ │ │ │ └── apache
│ │ │ │ │ │ └── pdfbox
│ │ │ │ │ │ ├── text
│ │ │ │ │ │ └── _package.dart
│ │ │ │ │ │ └── pdmodel
│ │ │ │ │ │ └── _package.dart
│ │ │ │ └── pdfbox_plugin.dart
│ │ │ ├── analysis_options.yaml
│ │ │ └── linux
│ │ │ │ └── CMakeLists.txt
│ │ ├── kotlin_plugin
│ │ │ ├── android
│ │ │ │ ├── settings.gradle
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ └── kotlin
│ │ │ │ │ └── Example.kt
│ │ │ ├── example
│ │ │ │ ├── android
│ │ │ │ │ ├── app
│ │ │ │ │ │ ├── proguard-rules.pro
│ │ │ │ │ │ └── src
│ │ │ │ │ │ │ └── main
│ │ │ │ │ │ │ ├── res
│ │ │ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ │ └── mipmap-xxxhdpi
│ │ │ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ │ └── kotlin
│ │ │ │ │ │ │ └── com
│ │ │ │ │ │ │ └── example
│ │ │ │ │ │ │ └── kotlin_plugin
│ │ │ │ │ │ │ └── example
│ │ │ │ │ │ │ └── MainActivity.kt
│ │ │ │ │ ├── gradle.properties
│ │ │ │ │ ├── gradle
│ │ │ │ │ │ └── wrapper
│ │ │ │ │ │ │ └── gradle-wrapper.properties
│ │ │ │ │ └── build.gradle
│ │ │ │ └── analysis_options.yaml
│ │ │ ├── lib
│ │ │ │ └── kotlin_plugin.dart
│ │ │ ├── analysis_options.yaml
│ │ │ ├── jnigen.yaml
│ │ │ └── .metadata
│ │ ├── notification_plugin
│ │ │ ├── android
│ │ │ │ ├── settings.gradle
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ └── AndroidManifest.xml
│ │ │ ├── example
│ │ │ │ ├── android
│ │ │ │ │ ├── gradle.properties
│ │ │ │ │ ├── app
│ │ │ │ │ │ └── src
│ │ │ │ │ │ │ └── main
│ │ │ │ │ │ │ ├── res
│ │ │ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ │ └── mipmap-xxxhdpi
│ │ │ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ │ └── kotlin
│ │ │ │ │ │ │ └── com
│ │ │ │ │ │ │ └── example
│ │ │ │ │ │ │ └── notification_plugin_example
│ │ │ │ │ │ │ └── MainActivity.kt
│ │ │ │ │ └── gradle
│ │ │ │ │ │ └── wrapper
│ │ │ │ │ │ └── gradle-wrapper.properties
│ │ │ │ ├── README.md
│ │ │ │ └── analysis_options.yaml
│ │ │ └── analysis_options.yaml
│ │ └── in_app_java
│ │ │ ├── android
│ │ │ ├── gradle.properties
│ │ │ ├── app
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ ├── res
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ └── mipmap-xxxhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ └── kotlin
│ │ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── in_app_java
│ │ │ │ │ └── MainActivity.kt
│ │ │ ├── gradle
│ │ │ │ └── wrapper
│ │ │ │ │ └── gradle-wrapper.properties
│ │ │ └── build.gradle
│ │ │ └── analysis_options.yaml
│ ├── java
│ │ ├── .gitignore
│ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ ├── gradle-wrapper.jar
│ │ │ │ └── gradle-wrapper.properties
│ │ └── src
│ │ │ └── main
│ │ │ └── java
│ │ │ └── com
│ │ │ └── github
│ │ │ └── dart_lang
│ │ │ └── jnigen
│ │ │ └── apisummarizer
│ │ │ └── elements
│ │ │ └── Package.java
│ ├── .gitignore
│ ├── test
│ │ ├── jackson_core_test
│ │ │ ├── .gitignore
│ │ │ └── third_party
│ │ │ │ └── bindings
│ │ │ │ └── com
│ │ │ │ └── fasterxml
│ │ │ │ └── jackson
│ │ │ │ └── core
│ │ │ │ └── _package.dart
│ │ └── simple_package_test
│ │ │ └── java
│ │ │ └── com
│ │ │ └── github
│ │ │ └── dart_lang
│ │ │ └── jnigen
│ │ │ ├── inheritance
│ │ │ ├── BaseInterface.java
│ │ │ ├── BaseGenericInterface.java
│ │ │ ├── DerivedInterface.java
│ │ │ ├── BaseClass.java
│ │ │ └── SpecificDerivedClass.java
│ │ │ ├── interfaces
│ │ │ ├── InheritedFromMyRunnable.java
│ │ │ ├── InheritedFromMyInterface.java
│ │ │ └── MyRunnable.java
│ │ │ ├── generics
│ │ │ ├── StringMap.java
│ │ │ ├── StringStack.java
│ │ │ ├── StringKeyedMap.java
│ │ │ └── StringValuedMap.java
│ │ │ └── pkg2
│ │ │ └── C2.java
│ ├── android_test_runner
│ │ ├── android
│ │ │ ├── gradle.properties
│ │ │ ├── app
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ ├── res
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ └── mipmap-xxxhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ └── kotlin
│ │ │ │ │ └── com
│ │ │ │ │ └── github
│ │ │ │ │ └── dart_lang
│ │ │ │ │ └── jnigen
│ │ │ │ │ └── android_integration_test
│ │ │ │ │ └── MainActivity.kt
│ │ │ ├── gradle
│ │ │ │ └── wrapper
│ │ │ │ │ └── gradle-wrapper.properties
│ │ │ └── build.gradle
│ │ └── analysis_options.yaml
│ └── lib
│ │ ├── tools.dart
│ │ └── src
│ │ ├── config
│ │ └── config.dart
│ │ └── tools
│ │ └── tools.dart
├── record_use
│ ├── test_data
│ │ ├── drop_data_asset
│ │ │ ├── assets
│ │ │ │ ├── add.txt
│ │ │ │ ├── double.txt
│ │ │ │ ├── multiply.txt
│ │ │ │ └── square.txt
│ │ │ ├── .gitignore
│ │ │ ├── lib
│ │ │ │ └── drop_data_asset.dart
│ │ │ └── pubspec.yaml
│ │ └── drop_dylib_recording
│ │ │ ├── .gitignore
│ │ │ ├── lib
│ │ │ └── drop_dylib_recording.dart
│ │ │ ├── src
│ │ │ ├── native_add.c
│ │ │ └── native_multiply.c
│ │ │ └── pubspec.yaml
│ └── lib
│ │ └── src
│ │ └── helper.dart
├── swift2objc
│ ├── CHANGELOG.md
│ ├── test
│ │ ├── unit
│ │ │ └── filter_test_output_c.swift
│ │ └── integration
│ │ │ ├── string_input.swift
│ │ │ ├── time_interval_input.swift
│ │ │ ├── string_output.swift
│ │ │ ├── async_init_input.swift
│ │ │ ├── time_interval_output.swift
│ │ │ ├── throws_input.swift
│ │ │ ├── async_input.swift
│ │ │ └── classes_and_methods_input.swift
│ ├── .gitignore
│ ├── README.md
│ ├── analysis_options.yaml
│ └── lib
│ │ └── src
│ │ ├── transformer
│ │ └── transformers
│ │ │ └── const.dart
│ │ ├── context.dart
│ │ └── ast
│ │ └── _core
│ │ └── interfaces
│ │ └── compound_memeber.dart
├── repo_lint_rules
│ ├── CHANGELOG.md
│ └── pubspec.yaml
├── native_doc_dartifier
│ ├── CHANGELOG.md
│ ├── test
│ │ └── dartify_simple_cases
│ │ │ ├── java
│ │ │ └── com
│ │ │ │ └── Runnable.java
│ │ │ ├── jnigen.yaml
│ │ │ └── dartified_snippets
│ │ │ ├── identifiers.dart
│ │ │ └── implement_inline_interface.dart
│ ├── .gitignore
│ ├── analysis_options.yaml
│ └── tool
│ │ └── compile_java.dart
├── native_toolchain_c
│ ├── test
│ │ ├── clinker
│ │ │ └── testfiles
│ │ │ │ └── linker
│ │ │ │ ├── symbols.txt
│ │ │ │ ├── symbols.def
│ │ │ │ ├── symbols.lds
│ │ │ │ ├── test3.c
│ │ │ │ ├── test.rs
│ │ │ │ └── test2.c
│ │ └── cbuilder
│ │ │ └── testfiles
│ │ │ ├── defines
│ │ │ └── src
│ │ │ │ └── forcedInclude.c
│ │ │ ├── build_failure
│ │ │ └── cl.c
│ │ │ ├── includes
│ │ │ ├── src
│ │ │ │ └── includes.c
│ │ │ └── include
│ │ │ │ └── includes.h
│ │ │ └── dynamically_linked
│ │ │ └── src
│ │ │ └── dynamically_linked.c
│ └── lib
│ │ └── src
│ │ └── cbuilder
│ │ └── output_type.dart
├── objective_c
│ ├── example
│ │ ├── flutter_app
│ │ │ ├── README.md
│ │ │ ├── ios
│ │ │ │ ├── Flutter
│ │ │ │ │ ├── Debug.xcconfig
│ │ │ │ │ └── Release.xcconfig
│ │ │ │ ├── Runner
│ │ │ │ │ ├── Runner-Bridging-Header.h
│ │ │ │ │ └── Assets.xcassets
│ │ │ │ │ │ ├── LaunchImage.imageset
│ │ │ │ │ │ ├── LaunchImage.png
│ │ │ │ │ │ ├── LaunchImage@2x.png
│ │ │ │ │ │ ├── LaunchImage@3x.png
│ │ │ │ │ │ └── README.md
│ │ │ │ │ │ └── AppIcon.appiconset
│ │ │ │ │ │ ├── Icon-App-20x20@1x.png
│ │ │ │ │ │ ├── Icon-App-20x20@2x.png
│ │ │ │ │ │ ├── Icon-App-20x20@3x.png
│ │ │ │ │ │ ├── Icon-App-29x29@1x.png
│ │ │ │ │ │ ├── Icon-App-29x29@2x.png
│ │ │ │ │ │ ├── Icon-App-29x29@3x.png
│ │ │ │ │ │ ├── Icon-App-40x40@1x.png
│ │ │ │ │ │ ├── Icon-App-40x40@2x.png
│ │ │ │ │ │ ├── Icon-App-40x40@3x.png
│ │ │ │ │ │ ├── Icon-App-60x60@2x.png
│ │ │ │ │ │ ├── Icon-App-60x60@3x.png
│ │ │ │ │ │ ├── Icon-App-76x76@1x.png
│ │ │ │ │ │ ├── Icon-App-76x76@2x.png
│ │ │ │ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ │ │ │ └── Icon-App-83.5x83.5@2x.png
│ │ │ │ ├── Runner.xcodeproj
│ │ │ │ │ └── project.xcworkspace
│ │ │ │ │ │ ├── contents.xcworkspacedata
│ │ │ │ │ │ └── xcshareddata
│ │ │ │ │ │ ├── WorkspaceSettings.xcsettings
│ │ │ │ │ │ └── IDEWorkspaceChecks.plist
│ │ │ │ ├── Runner.xcworkspace
│ │ │ │ │ ├── contents.xcworkspacedata
│ │ │ │ │ └── xcshareddata
│ │ │ │ │ │ ├── WorkspaceSettings.xcsettings
│ │ │ │ │ │ └── IDEWorkspaceChecks.plist
│ │ │ │ └── RunnerTests
│ │ │ │ │ └── RunnerTests.swift
│ │ │ ├── analysis_options.yaml
│ │ │ ├── macos
│ │ │ │ ├── Flutter
│ │ │ │ │ ├── Flutter-Debug.xcconfig
│ │ │ │ │ └── Flutter-Release.xcconfig
│ │ │ │ ├── Runner
│ │ │ │ │ ├── Configs
│ │ │ │ │ │ ├── Debug.xcconfig
│ │ │ │ │ │ └── Release.xcconfig
│ │ │ │ │ ├── Assets.xcassets
│ │ │ │ │ │ └── AppIcon.appiconset
│ │ │ │ │ │ │ ├── app_icon_16.png
│ │ │ │ │ │ │ ├── app_icon_32.png
│ │ │ │ │ │ │ ├── app_icon_64.png
│ │ │ │ │ │ │ ├── app_icon_1024.png
│ │ │ │ │ │ │ ├── app_icon_128.png
│ │ │ │ │ │ │ ├── app_icon_256.png
│ │ │ │ │ │ │ └── app_icon_512.png
│ │ │ │ │ ├── Release.entitlements
│ │ │ │ │ └── AppDelegate.swift
│ │ │ │ ├── .gitignore
│ │ │ │ ├── Runner.xcworkspace
│ │ │ │ │ ├── contents.xcworkspacedata
│ │ │ │ │ └── xcshareddata
│ │ │ │ │ │ └── IDEWorkspaceChecks.plist
│ │ │ │ ├── Runner.xcodeproj
│ │ │ │ │ └── project.xcworkspace
│ │ │ │ │ │ └── xcshareddata
│ │ │ │ │ │ └── IDEWorkspaceChecks.plist
│ │ │ │ └── RunnerTests
│ │ │ │ │ └── RunnerTests.swift
│ │ │ └── pubspec.yaml
│ │ └── command_line
│ │ │ ├── analysis_options.yaml
│ │ │ ├── README.md
│ │ │ ├── lib
│ │ │ └── main.dart
│ │ │ └── pubspec.yaml
│ └── analysis_options.yaml
├── json_syntax_generator
│ └── test
│ │ └── README.md
├── swiftgen
│ ├── README.md
│ ├── analysis_options.yaml
│ ├── CHANGELOG.md
│ ├── example
│ │ └── README.md
│ └── test
│ │ └── integration
│ │ └── classes.swift
├── ffi
│ ├── AUTHORS
│ ├── analysis_options.yaml
│ └── lib
│ │ └── ffi.dart
├── pub_formats
│ └── test_data
│ │ ├── pubspec_errors_executables_1.yaml
│ │ ├── pubspec_errors_executables_2.yaml
│ │ ├── pubspec_errors_executables_3.yaml
│ │ └── pubspec_lock_errors_1.yaml
└── native_test_helpers
│ ├── README.md
│ ├── lib
│ └── native_test_helpers.dart
│ └── pubspec.yaml
├── .github
├── ISSUE_TEMPLATE
│ ├── ffi.md
│ ├── hooks.md
│ ├── ffigen.md
│ ├── swiftgen.md
│ ├── record_use.md
│ ├── swift2objc.md
│ ├── code_assets.md
│ ├── data_assets.md
│ ├── objective_c.md
│ ├── hooks_runner.md
│ ├── native_toolchain_c.md
│ └── jnigen.md
└── dependabot.yaml
├── .gemini
└── settings.json
└── AUTHORS
/pkgs/hooks/.gitignore:
--------------------------------------------------------------------------------
1 | !build
2 |
--------------------------------------------------------------------------------
/pkgs/code_assets/.gitignore:
--------------------------------------------------------------------------------
1 | !build
2 |
--------------------------------------------------------------------------------
/pkgs/data_assets/.gitignore:
--------------------------------------------------------------------------------
1 | !build
2 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/.gitignore:
--------------------------------------------------------------------------------
1 | .temp
2 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/simple_link/assets/data_0.json:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/simple_link/assets/data_1.json:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/simple_link/assets/data_2.json:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/simple_link/assets/data_3.json:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/pkgs/hooks/example/build/native_add_app/.gitignore:
--------------------------------------------------------------------------------
1 | build/
2 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/complex_link/assets/data_0.json:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/complex_link/assets/data_1.json:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/pkgs/jni/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'jni'
2 |
--------------------------------------------------------------------------------
/pkgs/jni/java/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | rootProject.name = "jni"
2 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/dart_app/.gitignore:
--------------------------------------------------------------------------------
1 | bin/dart_app/
2 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/fun_with_flags/assets/ca.txt:
--------------------------------------------------------------------------------
1 | 🇨🇦
2 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/fun_with_flags/assets/de.txt:
--------------------------------------------------------------------------------
1 | 🇩🇪
2 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/fun_with_flags/assets/fr.txt:
--------------------------------------------------------------------------------
1 | 🇫🇷
2 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/dart_example/.gitignore:
--------------------------------------------------------------------------------
1 | *.pdf
2 |
--------------------------------------------------------------------------------
/pkgs/record_use/test_data/drop_data_asset/assets/add.txt:
--------------------------------------------------------------------------------
1 | leroy
2 |
--------------------------------------------------------------------------------
/pkgs/swift2objc/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## 0.1.0
2 |
3 | - MVP version.
4 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/complex_link/.gitignore:
--------------------------------------------------------------------------------
1 | bin/complex_link/
2 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/complex_link_helper/assets/data_helper_0.json:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/complex_link_helper/assets/data_helper_1.json:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/complex_link_helper/assets/data_helper_2.json:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/complex_link_helper/assets/data_helper_3.json:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/relative_path/assets/test_asset.txt:
--------------------------------------------------------------------------------
1 | World!
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/simple_data_asset/assets/test_asset.txt:
--------------------------------------------------------------------------------
1 | World!
--------------------------------------------------------------------------------
/pkgs/record_use/test_data/drop_data_asset/assets/double.txt:
--------------------------------------------------------------------------------
1 | freddy
2 |
--------------------------------------------------------------------------------
/pkgs/record_use/test_data/drop_data_asset/assets/multiply.txt:
--------------------------------------------------------------------------------
1 | jenkins
2 |
--------------------------------------------------------------------------------
/pkgs/record_use/test_data/drop_data_asset/assets/square.txt:
--------------------------------------------------------------------------------
1 | mercury
2 |
--------------------------------------------------------------------------------
/pkgs/ffigen/dart_test.yaml:
--------------------------------------------------------------------------------
1 | # This package uses dart:ffi.
2 | test_on: vm
3 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/large_integration_tests/.gitignore:
--------------------------------------------------------------------------------
1 | large_objc_bindings.*
2 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/add_asset_link/.gitignore:
--------------------------------------------------------------------------------
1 | bin/add_asset_link/
2 |
--------------------------------------------------------------------------------
/pkgs/jni/java/.gitignore:
--------------------------------------------------------------------------------
1 | !gradlew
2 | !gradlew.bat
3 | !gradle-wrapper.jar
4 |
--------------------------------------------------------------------------------
/pkgs/record_use/test_data/drop_data_asset/.gitignore:
--------------------------------------------------------------------------------
1 | bin/drop_data_asset*/
2 |
--------------------------------------------------------------------------------
/pkgs/repo_lint_rules/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## 0.1.0-wip
2 |
3 | - Initial version.
4 |
--------------------------------------------------------------------------------
/pkgs/hooks/example/build/local_asset/assets/asset.txt:
--------------------------------------------------------------------------------
1 | Some arbitrary contents
2 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/drop_dylib_link/.gitignore:
--------------------------------------------------------------------------------
1 | bin/drop_dylib_link/
2 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/simple_data_asset/.gitignore:
--------------------------------------------------------------------------------
1 | bin/simple_data_asset/
2 |
--------------------------------------------------------------------------------
/pkgs/jnigen/java/.gitignore:
--------------------------------------------------------------------------------
1 | !gradlew
2 | !gradlew.bat
3 | !gradle-wrapper.jar
4 |
--------------------------------------------------------------------------------
/pkgs/native_doc_dartifier/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## 0.0.1-pre
2 |
3 | - Initial version.
4 |
--------------------------------------------------------------------------------
/pkgs/jni/android/consumer-rules.pro:
--------------------------------------------------------------------------------
1 | -keep class com.github.dart_lang.jni.** { *; }
2 |
--------------------------------------------------------------------------------
/pkgs/native_toolchain_c/test/clinker/testfiles/linker/symbols.txt:
--------------------------------------------------------------------------------
1 | _my_other_func
2 |
--------------------------------------------------------------------------------
/pkgs/record_use/test_data/drop_dylib_recording/.gitignore:
--------------------------------------------------------------------------------
1 | bin/drop_dylib_recording*/
2 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/transformer/data/data0.json:
--------------------------------------------------------------------------------
1 | {
2 | "some_data": 0
3 | }
4 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/transformer/data/data1.json:
--------------------------------------------------------------------------------
1 | {
2 | "some_data": 1
3 | }
4 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/transformer/data/data2.json:
--------------------------------------------------------------------------------
1 | {
2 | "some_data": 2
3 | }
4 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/transformer/data/data3.json:
--------------------------------------------------------------------------------
1 | {
2 | "some_data": 3
3 | }
4 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/transformer/data/data4.json:
--------------------------------------------------------------------------------
1 | {
2 | "some_data": 4
3 | }
4 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/transformer/data/data5.json:
--------------------------------------------------------------------------------
1 | {
2 | "some_data": 5
3 | }
4 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/transformer/data/data6.json:
--------------------------------------------------------------------------------
1 | {
2 | "some_data": 6
3 | }
4 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/transformer/data/data7.json:
--------------------------------------------------------------------------------
1 | {
2 | "some_data": 7
3 | }
4 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/transformer/data/data8.json:
--------------------------------------------------------------------------------
1 | {
2 | "some_data": 8
3 | }
4 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/transformer/data/data9.json:
--------------------------------------------------------------------------------
1 | {
2 | "some_data": 9
3 | }
4 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/user_defines/assets/data.json:
--------------------------------------------------------------------------------
1 | {
2 | "foo": "bar"
3 | }
4 |
--------------------------------------------------------------------------------
/pkgs/jni/example/README.md:
--------------------------------------------------------------------------------
1 | # jni_example
2 | Demonstrates how to use the jni plugin.
3 |
4 |
--------------------------------------------------------------------------------
/pkgs/jnigen/.gitignore:
--------------------------------------------------------------------------------
1 | test_lib/
2 | test_src/
3 | mvn_java/
4 | mvn_jar/
5 | target/
6 |
--------------------------------------------------------------------------------
/pkgs/hooks/example/link/package_with_assets/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## 1.0.0
2 |
3 | - Initial version.
4 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'pdfbox_plugin'
2 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/README.md:
--------------------------------------------------------------------------------
1 | # flutter_app
2 |
3 | A new Flutter project.
4 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/pkgs/hooks/example/link/package_with_assets/assets/used_asset.json:
--------------------------------------------------------------------------------
1 | {
2 | "leroy": "jenkins"
3 | }
4 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/add_asset_link/README.md:
--------------------------------------------------------------------------------
1 | This sample adds a native library in the link step.
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/fail_on_os_sdk_version_link/assets/data.json:
--------------------------------------------------------------------------------
1 | {
2 | "foo": 42
3 | }
4 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/simple_data_asset/README.md:
--------------------------------------------------------------------------------
1 | This sample adds and retrieves a data asset.
--------------------------------------------------------------------------------
/pkgs/jnigen/example/kotlin_plugin/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'notification_plugin'
2 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/dart_example/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## 1.0.0
2 |
3 | - Initial version.
4 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/command_line/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:lints/recommended.yaml
2 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/pkgs/hooks/example/link/app_with_asset_treeshaking/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## 1.0.0
2 |
3 | - Initial version.
4 |
--------------------------------------------------------------------------------
/pkgs/hooks/example/link/package_with_assets/assets/unused_asset.json:
--------------------------------------------------------------------------------
1 | {
2 | "freddy": "mercury"
3 | }
4 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/simple_link_change_asset/assets/data_0.json:
--------------------------------------------------------------------------------
1 | {
2 | "foo": "bar"
3 | }
4 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/simple_link_change_asset/assets/data_1.json:
--------------------------------------------------------------------------------
1 | {
2 | "foo": "bar"
3 | }
4 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/simple_link_change_asset/assets/data_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "foo": "bar"
3 | }
4 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/simple_link_change_asset/assets/data_3.json:
--------------------------------------------------------------------------------
1 | {
2 | "foo": "bar"
3 | }
4 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/notification_plugin/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'notification_plugin'
2 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:flutter_lints/flutter.yaml
2 |
--------------------------------------------------------------------------------
/pkgs/swift2objc/test/unit/filter_test_output_c.swift:
--------------------------------------------------------------------------------
1 | // Test preamble text
2 |
3 | import Foundation
4 |
5 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/dart_test.yaml:
--------------------------------------------------------------------------------
1 | paths:
2 | - test/build_runner/
3 | - test/model/
4 | - test/test_data/
5 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/flag_enthusiast_1/README.md:
--------------------------------------------------------------------------------
1 | A package with a high-level API to load a single flag.
2 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/flag_enthusiast_2/README.md:
--------------------------------------------------------------------------------
1 | A package with a high-level API to load multiple flags.
2 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/kotlin_plugin/example/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | -keep class kotlin.coroutines.** { *; }
2 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/command_line/README.md:
--------------------------------------------------------------------------------
1 | Demonstrates using package:objective_c: `dart run lib/main.dart`
2 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/pkgs/swift2objc/.gitignore:
--------------------------------------------------------------------------------
1 | # temp directories used during developement to run & test implementation
2 | _temp/
3 |
--------------------------------------------------------------------------------
/pkgs/code_assets/example/mini_audio/third_party/miniaudio.c:
--------------------------------------------------------------------------------
1 | #define MINIAUDIO_IMPLEMENTATION
2 | #include "miniaudio.h"
3 |
--------------------------------------------------------------------------------
/pkgs/code_assets/example/stb_image/third_party/stb_image.c:
--------------------------------------------------------------------------------
1 | #define STB_IMAGE_IMPLEMENTATION
2 | #include "stb_image.h"
3 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add_add_source/README.md:
--------------------------------------------------------------------------------
1 | Used in automated testing to modify the native_add project.
2 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add_add_symbol/README.md:
--------------------------------------------------------------------------------
1 | Used in automated testing to modify the native_add project.
2 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add_fix_build/README.md:
--------------------------------------------------------------------------------
1 | Used in automated testing to modify the native_add project.
2 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/kotlin_plugin/lib/kotlin_plugin.dart:
--------------------------------------------------------------------------------
1 | library kotlin_plugin;
2 |
3 | export 'kotlin_bindings.dart';
4 |
--------------------------------------------------------------------------------
/pkgs/native_toolchain_c/test/clinker/testfiles/linker/symbols.def:
--------------------------------------------------------------------------------
1 | LIBRARY MyDLL
2 | EXPORTS
3 | my_other_func
4 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_objc_test/.gitignore:
--------------------------------------------------------------------------------
1 | *_bindings.dart
2 | *_bindings.m
3 | *_bindings.dart.m
4 | *-Swift.h
5 | *.o
6 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add_break_build/README.md:
--------------------------------------------------------------------------------
1 | Used in automated testing to modify the native_add project.
2 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/macos/Flutter/Flutter-Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "ephemeral/Flutter-Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/macos/Flutter/Flutter-Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "ephemeral/Flutter-Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/pkgs/ffigen/example/objective_c/test.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/ffigen/example/objective_c/test.mp3
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_test/.gitignore:
--------------------------------------------------------------------------------
1 | # Ignore files generated by clang on windows.
2 | native_test.exp
3 | native_test.lib
4 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/fun_with_flags/README.md:
--------------------------------------------------------------------------------
1 | A package bundling flag txt files, with a low-level API to load the flags.
2 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/use_all_api/README.md:
--------------------------------------------------------------------------------
1 | Not inteded to be executable, rather, intended to be used to see API changes.
2 |
--------------------------------------------------------------------------------
/pkgs/jni/example/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/pkgs/jni/example/macos/Runner/Configs/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Debug.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/pkgs/json_syntax_generator/test/README.md:
--------------------------------------------------------------------------------
1 | The syntax generator is tested by running the various generators on this
2 | repository.
3 |
--------------------------------------------------------------------------------
/pkgs/native_toolchain_c/test/cbuilder/testfiles/defines/src/forcedInclude.c:
--------------------------------------------------------------------------------
1 | #ifndef FIFOO
2 | #define FIFOO "QuotedFIFOO"
3 | #endif
4 |
--------------------------------------------------------------------------------
/pkgs/jni/example/macos/Runner/Configs/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Release.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/pkgs/jnigen/test/jackson_core_test/.gitignore:
--------------------------------------------------------------------------------
1 | third_party/jar/
2 | third_party/java/
3 | third_party/test_lib/
4 | third_party/test_src/
5 |
--------------------------------------------------------------------------------
/pkgs/native_toolchain_c/test/clinker/testfiles/linker/symbols.lds:
--------------------------------------------------------------------------------
1 | {
2 | global:
3 | my_other_func;
4 | local:
5 | *;
6 | };
7 |
--------------------------------------------------------------------------------
/pkgs/swift2objc/README.md:
--------------------------------------------------------------------------------
1 | # Swift2ObjC
2 |
3 | An experimental tool for generating bindings that allow interop between ObjC and
4 | Swift code.
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/flag_app/.gitignore:
--------------------------------------------------------------------------------
1 | # https://dart.dev/guides/libraries/private-files
2 | # Created by `dart pub`
3 | .dart_tool/
4 |
--------------------------------------------------------------------------------
/pkgs/jni/java/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jni/java/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/pkgs/native_doc_dartifier/test/dartify_simple_cases/java/com/Runnable.java:
--------------------------------------------------------------------------------
1 | package com;
2 |
3 | public interface Runnable {
4 | int run();
5 | }
--------------------------------------------------------------------------------
/pkgs/swiftgen/README.md:
--------------------------------------------------------------------------------
1 | # Swiftgen
2 |
3 | An experimental tool for generating bindings that allow interop between Dart and
4 | Swift code.
5 |
--------------------------------------------------------------------------------
/pkgs/ffigen/dartdoc_options.yaml:
--------------------------------------------------------------------------------
1 | dartdoc:
2 | categories:
3 | Errors:
4 | markdown: doc/errors.md
5 | name: Common errors in ffigen
6 |
--------------------------------------------------------------------------------
/pkgs/jnigen/android_test_runner/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/in_app_java/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/pkgs/jnigen/java/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/java/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/macos/Runner/Configs/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Debug.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/pkgs/jni/example/windows/runner/resources/app_icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jni/example/windows/runner/resources/app_icon.ico
--------------------------------------------------------------------------------
/pkgs/jnigen/example/kotlin_plugin/example/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/example/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/macos/Runner/Configs/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Release.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/pkgs/swift2objc/test/integration/string_input.swift:
--------------------------------------------------------------------------------
1 | import Foundation
2 |
3 | public func greet(name: String) -> String {
4 | return "Hello " + name;
5 | }
6 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/ffi.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: "package:ffi"
3 | about: "Create a bug or file a feature request against package:ffi."
4 | labels: "package:ffi"
5 | ---
6 |
--------------------------------------------------------------------------------
/pkgs/code_assets/example/stb_image/data/icon_dart@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/code_assets/example/stb_image/data/icon_dart@2x.png
--------------------------------------------------------------------------------
/pkgs/jnigen/example/notification_plugin/example/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/pkgs/swiftgen/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:dart_flutter_team_lints/analysis_options.yaml
2 |
3 | analyzer:
4 | language:
5 | strict-raw-types: true
6 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/notification_plugin/example/README.md:
--------------------------------------------------------------------------------
1 | # notification_plugin_example
2 |
3 | This app demonstrates how to use the notification_plugin plugin.
4 |
5 |
--------------------------------------------------------------------------------
/pkgs/objective_c/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:dart_flutter_team_lints/analysis_options.yaml
2 |
3 | analyzer:
4 | language:
5 | strict-raw-types: true
6 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/macos/.gitignore:
--------------------------------------------------------------------------------
1 | # Flutter-related
2 | **/Flutter/ephemeral/
3 | **/Pods/
4 |
5 | # Xcode-related
6 | **/dgph
7 | **/xcuserdata/
8 |
--------------------------------------------------------------------------------
/pkgs/swift2objc/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:dart_flutter_team_lints/analysis_options.yaml
2 |
3 | analyzer:
4 | language:
5 | strict-raw-types: true
6 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/hooks.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: "package:hooks"
3 | about: "Create a bug or file a feature request against package:hooks."
4 | labels: "package:hooks"
5 | ---
6 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/drop_dylib_link/README.md:
--------------------------------------------------------------------------------
1 | This sample builds a native library for adding and multiplying, but then only keeps the one for adding in the linking step.
--------------------------------------------------------------------------------
/pkgs/jni/android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/text/_package.dart:
--------------------------------------------------------------------------------
1 | // AUTO GENERATED BY JNIGEN 0.15.1. DO NOT EDIT!
2 | export 'PDFTextStripper.dart';
3 |
--------------------------------------------------------------------------------
/pkgs/swift2objc/test/integration/time_interval_input.swift:
--------------------------------------------------------------------------------
1 | import Foundation
2 |
3 | public func timeIntervalFunc(t: TimeInterval) -> TimeInterval {
4 | return t;
5 | }
6 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/ffigen.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: "package:ffigen"
3 | about: "Create a bug or file a feature request against package:ffigen."
4 | labels: "package:ffigen"
5 | ---
6 |
--------------------------------------------------------------------------------
/pkgs/jni/android/README.md:
--------------------------------------------------------------------------------
1 | This folder contains the [Android plugin class](src/main/java/com/github/dart_lang/jni/JniPlugin.java) which takes care of initializing JNI on Android.
2 |
--------------------------------------------------------------------------------
/.gemini/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "mcpServers": {
3 | "dart": {
4 | "command": "dart",
5 | "args": [
6 | "mcp-server"
7 | ]
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/swiftgen.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: "package:swiftgen"
3 | about: "Create a bug or file a feature request against package:swiftgen."
4 | labels: "package:swiftgen"
5 | ---
6 |
--------------------------------------------------------------------------------
/pkgs/jni/example/macos/Flutter/Flutter-Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "ephemeral/Flutter-Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/pkgs/jni/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jni/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jni/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jni/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jni/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jni/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jni/example/macos/Flutter/Flutter-Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "ephemeral/Flutter-Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/pkgs/swiftgen/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## 0.1.1
2 |
3 | - Fix bug where `SwiftGenerator.ffigen.objectiveC.(interfaces|protocols).module`
4 | is ignored.
5 |
6 | ## 0.1.0
7 |
8 | - MVP version.
9 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/record_use.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: "package:record_use"
3 | about: "Create a bug or file a feature request against package:record_use."
4 | labels: "package:record_use"
5 | ---
6 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/swift2objc.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: "package:swift2objc"
3 | about: "Create a bug or file a feature request against package:swift2objc."
4 | labels: "package:swift2objc"
5 | ---
6 |
--------------------------------------------------------------------------------
/pkgs/jni/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jni/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jni/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jni/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jni/java/README.md:
--------------------------------------------------------------------------------
1 | # Jni Java
2 |
3 | This is a standalone java support which includes `PortContinuation` to support
4 | converting from Kotlin's `suspend fun` to Dart's `async` functions.
5 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/code_assets.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: "package:code_assets"
3 | about: "Create a bug or file a feature request against package:code_assets."
4 | labels: "package:code_assets"
5 | ---
6 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/data_assets.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: "package:data_assets"
3 | about: "Create a bug or file a feature request against package:data_assets."
4 | labels: "package:data_assets"
5 | ---
6 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/objective_c.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: "package:objective_c"
3 | about: "Create a bug or file a feature request against package:objective_c."
4 | labels: "package:objective_c"
5 | ---
6 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/kotlin_plugin/android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/hooks_runner.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: "package:hooks_runner"
3 | about: "Create a bug or file a feature request against package:hooks_runner."
4 | labels: "package:hooks_runner"
5 | ---
6 |
--------------------------------------------------------------------------------
/pkgs/ffigen/third_party/cjson_library/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode tooling generated via `cmake -G Xcode .`.
2 | cjson_library.xcodeproj/
3 |
4 | # Xcode generated build and output directories.
5 | cjson_library.build/
6 |
--------------------------------------------------------------------------------
/pkgs/jni/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jni/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
--------------------------------------------------------------------------------
/pkgs/jni/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jni/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
--------------------------------------------------------------------------------
/pkgs/jni/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jni/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/example/windows/runner/resources/app_icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/example/pdfbox_plugin/example/windows/runner/resources/app_icon.ico
--------------------------------------------------------------------------------
/AUTHORS:
--------------------------------------------------------------------------------
1 | # Below is a list of people and organizations that have contributed
2 | # to the Dart project. Names should be added to the list like so:
3 | #
4 | # Name/Organization
5 |
6 | Google LLC
7 |
--------------------------------------------------------------------------------
/pkgs/jni/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jni/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
--------------------------------------------------------------------------------
/pkgs/jni/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jni/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
--------------------------------------------------------------------------------
/pkgs/jni/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jni/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
--------------------------------------------------------------------------------
/pkgs/jni/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jni/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
--------------------------------------------------------------------------------
/pkgs/jnigen/example/notification_plugin/android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/_package.dart:
--------------------------------------------------------------------------------
1 | // AUTO GENERATED BY JNIGEN 0.15.1. DO NOT EDIT!
2 | export 'PDDocument.dart';
3 | export 'PDDocumentInformation.dart';
4 |
--------------------------------------------------------------------------------
/pkgs/jnigen/android_test_runner/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:flutter_lints/flutter.yaml
2 |
3 | # Additional information about this file can be found at
4 | # https://dart.dev/guides/language/analysis-options
5 |
--------------------------------------------------------------------------------
/pkgs/jnigen/android_test_runner/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/android_test_runner/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/android_test_runner/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/android_test_runner/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/android_test_runner/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/android_test_runner/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/example/in_app_java/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:flutter_lints/flutter.yaml
2 |
3 | # Additional information about this file can be found at
4 | # https://dart.dev/guides/language/analysis-options
5 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/in_app_java/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/example/in_app_java/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/example/in_app_java/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/example/in_app_java/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/example/in_app_java/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/example/in_app_java/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:lints/recommended.yaml
2 |
3 | # Additional information about this file can be found at
4 | # https://dart.dev/guides/language/analysis-options
5 |
--------------------------------------------------------------------------------
/pkgs/jnigen/test/simple_package_test/java/com/github/dart_lang/jnigen/inheritance/BaseInterface.java:
--------------------------------------------------------------------------------
1 | package com.github.dart_lang.jnigen.inheritance;
2 |
3 | public interface BaseInterface {
4 | String foo();
5 | }
6 |
--------------------------------------------------------------------------------
/pkgs/native_toolchain_c/test/clinker/testfiles/linker/test3.c:
--------------------------------------------------------------------------------
1 | #include
2 |
3 | // Explicitly not marked for export.
4 | void my_unexported_func()
5 | {
6 | printf("Hello unexported World");
7 | }
8 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/native_toolchain_c.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: "package:native_toolchain_c"
3 | about: "Create a bug or file a feature request against package:native_toolchain_c."
4 | labels: "package:native_toolchain_c"
5 | ---
6 |
--------------------------------------------------------------------------------
/pkgs/ffi/AUTHORS:
--------------------------------------------------------------------------------
1 | # Below is a list of people and organizations that have contributed
2 | # to the Dart project. Names should be added to the list like so:
3 | #
4 | # Name/Organization
5 |
6 | Google LLC
7 |
--------------------------------------------------------------------------------
/pkgs/jnigen/android_test_runner/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/android_test_runner/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/android_test_runner/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/android_test_runner/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/example/in_app_java/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/example/in_app_java/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/example/in_app_java/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/example/in_app_java/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/native_doc_dartifier/test/dartify_simple_cases/jnigen.yaml:
--------------------------------------------------------------------------------
1 | output:
2 | dart:
3 | path: bindings.dart
4 | structure: single_file
5 |
6 | source_path:
7 | - "java"
8 |
9 | classes:
10 | - "com"
11 |
--------------------------------------------------------------------------------
/pkgs/ffi/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:dart_flutter_team_lints/analysis_options.yaml
2 |
3 | analyzer:
4 | language:
5 | strict-raw-types: true
6 |
7 | linter:
8 | rules:
9 | - prefer_final_locals
10 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/kotlin_plugin/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:flutter_lints/flutter.yaml
2 |
3 | # For additional information about configuring this file, see
4 | # https://dart.dev/guides/language/analysis-options
5 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/kotlin_plugin/example/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:flutter_lints/flutter.yaml
2 |
3 | # Additional information about this file can be found at
4 | # https://dart.dev/guides/language/analysis-options
5 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/notification_plugin/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:flutter_lints/flutter.yaml
2 |
3 | # Additional information about this file can be found at
4 | # https://dart.dev/guides/language/analysis-options
5 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/example/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:flutter_lints/flutter.yaml
2 |
3 | # Additional information about this file can be found at
4 | # https://dart.dev/guides/language/analysis-options
5 |
--------------------------------------------------------------------------------
/pkgs/jnigen/test/simple_package_test/java/com/github/dart_lang/jnigen/inheritance/BaseGenericInterface.java:
--------------------------------------------------------------------------------
1 | package com.github.dart_lang.jnigen.inheritance;
2 |
3 | public interface BaseGenericInterface {
4 | T foo();
5 | }
6 |
--------------------------------------------------------------------------------
/pkgs/jnigen/test/simple_package_test/java/com/github/dart_lang/jnigen/interfaces/InheritedFromMyRunnable.java:
--------------------------------------------------------------------------------
1 | package com.github.dart_lang.jnigen.interfaces;
2 |
3 | public interface InheritedFromMyRunnable extends MyRunnable {}
4 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/header_parser_tests/macros_config.yaml:
--------------------------------------------------------------------------------
1 | name: 'NativeLibrary'
2 | description: 'Macros Test'
3 | output: 'unused'
4 | headers:
5 | entry-points:
6 | - macros.h
7 | include-directives:
8 | - '**macros.h'
9 |
--------------------------------------------------------------------------------
/pkgs/jni/example/linux/main.cc:
--------------------------------------------------------------------------------
1 | #include "my_application.h"
2 |
3 | int main(int argc, char** argv) {
4 | g_autoptr(MyApplication) app = my_application_new();
5 | return g_application_run(G_APPLICATION(app), argc, argv);
6 | }
7 |
--------------------------------------------------------------------------------
/pkgs/hooks/example/link/app_with_asset_treeshaking/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:lints/recommended.yaml
2 |
3 | # For additional information about configuring this file, see
4 | # https://dart.dev/guides/language/analysis-options
5 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/flag_app/README.md:
--------------------------------------------------------------------------------
1 | A sample application using `flag_enthusiast_1` and `flag_enthusiast_2`.
2 |
3 | When compiling as a bundle, this leads to only two flags being bundled, as the
4 | `ca.txt` flag is not used.
5 |
--------------------------------------------------------------------------------
/pkgs/jni/example/android/app/src/main/kotlin/dev/dart/jni_example/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.github.dart_lang.jni_example
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/kotlin_plugin/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/example/kotlin_plugin/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/example/kotlin_plugin/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/example/kotlin_plugin/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/example/kotlin_plugin/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/example/kotlin_plugin/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/example/notification_plugin/example/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:flutter_lints/flutter.yaml
2 |
3 | # Additional information about this file can be found at
4 | # https://dart.dev/guides/language/analysis-options
5 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/dart_example/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:lints/recommended.yaml
2 |
3 | # For additional information about configuring this file, see
4 | # https://dart.dev/guides/language/analysis-options
5 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/example/pdfbox_plugin/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/example/pdfbox_plugin/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/example/pdfbox_plugin/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/test/jackson_core_test/third_party/bindings/com/fasterxml/jackson/core/_package.dart:
--------------------------------------------------------------------------------
1 | // AUTO GENERATED BY JNIGEN 0.15.1. DO NOT EDIT!
2 | export 'JsonFactory.dart';
3 | export 'JsonParser.dart';
4 | export 'JsonToken.dart';
5 |
--------------------------------------------------------------------------------
/pkgs/jni/example/macos/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/kotlin_plugin/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/example/kotlin_plugin/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/example/kotlin_plugin/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/example/kotlin_plugin/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/example/pdfbox_plugin/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/example/pdfbox_plugin/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/test/simple_package_test/java/com/github/dart_lang/jnigen/interfaces/InheritedFromMyInterface.java:
--------------------------------------------------------------------------------
1 | package com.github.dart_lang.jnigen.interfaces;
2 |
3 | public interface InheritedFromMyInterface extends MyInterface {}
4 |
--------------------------------------------------------------------------------
/pkgs/native_toolchain_c/test/clinker/testfiles/linker/test.rs:
--------------------------------------------------------------------------------
1 | #[no_mangle]
2 | pub extern "C" fn my_func() -> u64 {
3 | return 41;
4 | }
5 |
6 | #[no_mangle]
7 | pub extern "C" fn my_other_func() -> u64 {
8 | return 42;
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/in_app_java/android/app/src/main/kotlin/com/example/in_app_java/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.in_app_java
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/notification_plugin/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/example/notification_plugin/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/example/notification_plugin/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/example/notification_plugin/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
--------------------------------------------------------------------------------
/pkgs/hooks/example/api/README.md:
--------------------------------------------------------------------------------
1 | # API Examples
2 |
3 | The files in this directory are used as snippets in the Dartdoc documentation.
4 |
5 | They are updated by the script at
6 | [`hooks/tool/update_snippets.dart`](../../tool/update_snippets.dart).
7 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add_fix_build/manifest.yaml:
--------------------------------------------------------------------------------
1 | # The list of files to copy to a temporary folder to ensure running tests from
2 | # a completely clean setup.
3 | # Automatically generated by manifest_generator.dart.
4 | - src/native_add.c
5 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/notification_plugin/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/example/notification_plugin/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/example/notification_plugin/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/example/notification_plugin/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/jnigen/example/notification_plugin/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/jnigen/example/notification_plugin/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/jnigen.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: "package:jnigen"
3 | about: "Create a bug or file a feature request against package:jnigen or its support library package:jni."
4 | labels: ["package:jnigen", "package:jni"]
5 | projects: ["dart-lang/69"]
6 | ---
7 |
--------------------------------------------------------------------------------
/pkgs/hooks/example/build/native_dynamic_linking/README.md:
--------------------------------------------------------------------------------
1 | An example library that builds 3 native libraries, 2 of which are dynamically
2 | linked to each other.
3 |
4 | ## Usage
5 |
6 | Run tests with `dart --enable-experiment=native-assets test`.
7 |
8 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add_break_build/manifest.yaml:
--------------------------------------------------------------------------------
1 | # The list of files to copy to a temporary folder to ensure running tests from
2 | # a completely clean setup.
3 | # Automatically generated by manifest_generator.dart.
4 | - src/native_add.c
5 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_dynamic_linking/README.md:
--------------------------------------------------------------------------------
1 | An example library that builds 3 native libraries, 2 of which are dynamically
2 | linked to each other.
3 |
4 | ## Usage
5 |
6 | Run tests with `dart --enable-experiment=native-assets test`.
7 |
8 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/reusable_dynamic_library/README.md:
--------------------------------------------------------------------------------
1 | An example of a package with a dynamic library that can be linked against in
2 | a dependent package.
3 |
4 | ## Usage
5 |
6 | Run tests with `dart --enable-experiment=native-assets test`.
7 |
8 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/example/linux/main.cc:
--------------------------------------------------------------------------------
1 | #include "my_application.h"
2 |
3 | int main(int argc, char** argv) {
4 | g_autoptr(MyApplication) app = my_application_new();
5 | return g_application_run(G_APPLICATION(app), argc, argv);
6 | }
7 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/no_hook/manifest.yaml:
--------------------------------------------------------------------------------
1 | # The list of files to copy to a temporary folder to ensure running tests from
2 | # a completely clean setup.
3 | # Automatically generated by manifest_generator.dart.
4 | - lib/no_hook.dart
5 | - pubspec.yaml
6 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/reuse_dynamic_library/README.md:
--------------------------------------------------------------------------------
1 | An example of a native library which is dynamically linked against a dynamic
2 | library from another package.
3 |
4 | ## Usage
5 |
6 | Run tests with `dart --enable-experiment=native-assets test`.
7 |
8 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dart-lang/native/HEAD/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/macos/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/pkgs/code_assets/example/api/README.md:
--------------------------------------------------------------------------------
1 | # API Examples
2 |
3 | The files in this directory are used as snippets in the Dartdoc documentation.
4 |
5 | They are updated by the script at
6 | [`hooks/tool/update_snippets.dart`](../../../hooks/tool/update_snippets.dart).
7 |
--------------------------------------------------------------------------------
/pkgs/data_assets/example/api/README.md:
--------------------------------------------------------------------------------
1 | # API Examples
2 |
3 | The files in this directory are used as snippets in the Dartdoc documentation.
4 |
5 | They are updated by the script at
6 | [`hooks/tool/update_snippets.dart`](../../../hooks/tool/update_snippets.dart).
7 |
--------------------------------------------------------------------------------
/pkgs/ffigen/AUTHORS:
--------------------------------------------------------------------------------
1 | # Below is a list of people and organizations that have contributed
2 | # to the Dart project. Names should be added to the list like so:
3 | #
4 | # Name/Organization
5 |
6 | Google LLC
7 |
8 | Prerak Mann
9 |
--------------------------------------------------------------------------------
/pkgs/ffigen/example/simple/config.yaml:
--------------------------------------------------------------------------------
1 | # yaml-language-server: $schema=../../ffigen.schema.json
2 |
3 | name: NativeLibrary
4 | description: Bindings to `headers/example.h`.
5 | output: 'generated_bindings.dart'
6 | headers:
7 | entry-points:
8 | - 'headers/example.h'
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add_add_symbol/manifest.yaml:
--------------------------------------------------------------------------------
1 | # The list of files to copy to a temporary folder to ensure running tests from
2 | # a completely clean setup.
3 | # Automatically generated by manifest_generator.dart.
4 | - src/native_add.c
5 | - src/native_add.h
6 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/kotlin_plugin/example/android/app/src/main/kotlin/com/example/kotlin_plugin/example/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.kotlin_plugin.example
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/example/android/app/src/main/kotlin/com/example/pdfbox_plugin_example/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.pdfbox_plugin_example
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/pkgs/jnigen/test/simple_package_test/java/com/github/dart_lang/jnigen/inheritance/DerivedInterface.java:
--------------------------------------------------------------------------------
1 | package com.github.dart_lang.jnigen.inheritance;
2 |
3 | public interface DerivedInterface extends BaseGenericInterface, BaseInterface {
4 | String foo();
5 | }
6 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/header_parser_tests/unnamed_enums.h:
--------------------------------------------------------------------------------
1 | // Only this should be parsed.
2 | enum{
3 | A=1,
4 | B=2, // This will be excluded by config.
5 | C=3
6 | };
7 |
8 | // Shouldn't be parsed.
9 | typedef enum{
10 | E,
11 | F,
12 | G
13 | } Named;
14 |
--------------------------------------------------------------------------------
/pkgs/native_doc_dartifier/.gitignore:
--------------------------------------------------------------------------------
1 | # https://dart.dev/guides/libraries/private-files
2 | # Created by `dart pub`
3 | .dart_tool/
4 |
5 | # Avoid committing pubspec.lock for library packages; see
6 | # https://dart.dev/guides/libraries/private-files#pubspeclock.
7 | pubspec.lock
8 |
--------------------------------------------------------------------------------
/pkgs/native_toolchain_c/test/clinker/testfiles/linker/test2.c:
--------------------------------------------------------------------------------
1 | #include
2 |
3 | #if _WIN32
4 | #define FFI_EXPORT __declspec(dllexport)
5 | #else
6 | #define FFI_EXPORT
7 | #endif
8 |
9 | FFI_EXPORT void my_other_func()
10 | {
11 | printf("Hello World");
12 | }
13 |
--------------------------------------------------------------------------------
/pkgs/ffigen/example/add/src/add.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | int add(int a, int b);
6 |
--------------------------------------------------------------------------------
/pkgs/jni/src/README.md:
--------------------------------------------------------------------------------
1 | Native code for jni library.
2 |
3 | ## LSP instructions
4 |
5 | see https://releases.llvm.org/8.0.0/tools/clang/tools/extra/docs/clangd/Installation.html#project-setup for creating compile_commands.json for use with LSP based editor plugins (in VS Code, VIM etc..).
--------------------------------------------------------------------------------
/pkgs/jnigen/lib/tools.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'src/tools/tools.dart';
6 |
--------------------------------------------------------------------------------
/pkgs/pub_formats/test_data/pubspec_errors_executables_1.yaml:
--------------------------------------------------------------------------------
1 | name: some_test_pubspec_package_name
2 |
3 | description: >-
4 | Test
5 |
6 | publish_to: none
7 |
8 | version: 0.0.1-wip
9 |
10 | environment:
11 | sdk: '>=3.9.0 <4.0.0'
12 |
13 | executables: 'not a map'
14 |
--------------------------------------------------------------------------------
/pkgs/ffigen/example/add/lib/add.g.dart:
--------------------------------------------------------------------------------
1 | // AUTO GENERATED FILE, DO NOT EDIT.
2 | //
3 | // Generated by `package:ffigen`.
4 | // ignore_for_file: type=lint, unused_import
5 | import 'dart:ffi' as ffi;
6 |
7 | @ffi.Native()
8 | external int add(int a, int b);
9 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/kotlin_plugin/android/src/main/kotlin/Example.kt:
--------------------------------------------------------------------------------
1 | import androidx.annotation.Keep
2 | import kotlinx.coroutines.*
3 |
4 | @Keep
5 | class Example {
6 | public suspend fun thinkBeforeAnswering(): String {
7 | delay(1000L)
8 | return "42"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/code_assets/example/host_name/src/unix.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include
6 |
--------------------------------------------------------------------------------
/pkgs/hooks/example/build/use_dart_api/manifest.yaml:
--------------------------------------------------------------------------------
1 | - hook/build.dart
2 | - ffigen.yaml
3 | - lib/native_add.dart
4 | - lib/src/native_add_bindings_generated.dart
5 | - lib/src/native_add.dart
6 | - pubspec.yaml
7 | - src/native_add.c
8 | - src/native_add.h
9 | - test/native_add_test.dart
10 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/fun_with_flags/.gitignore:
--------------------------------------------------------------------------------
1 | # https://dart.dev/guides/libraries/private-files
2 | # Created by `dart pub`
3 | .dart_tool/
4 |
5 | # Avoid committing pubspec.lock for library packages; see
6 | # https://dart.dev/guides/libraries/private-files#pubspeclock.
7 | pubspec.lock
8 |
--------------------------------------------------------------------------------
/pkgs/jni/dart_test.yaml:
--------------------------------------------------------------------------------
1 | ## Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | ## for details. All rights reserved. Use of this source code is governed by a
3 | ## BSD-style license that can be found in the LICENSE file.
4 |
5 | tags:
6 | load_test:
7 | timeout: 10x
8 |
--------------------------------------------------------------------------------
/pkgs/jnigen/android_test_runner/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
6 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/notification_plugin/example/android/app/src/main/kotlin/com/example/notification_plugin_example/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.notification_plugin_example
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/pkgs/swift2objc/test/integration/string_output.swift:
--------------------------------------------------------------------------------
1 | // Test preamble text
2 |
3 | import Foundation
4 |
5 | @objc public class GlobalsWrapper: NSObject {
6 | @objc static public func greetWrapper(name: String) -> String {
7 | return greet(name: name)
8 | }
9 |
10 | }
11 |
12 |
--------------------------------------------------------------------------------
/pkgs/code_assets/example/host_name/src/windows.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include
6 |
--------------------------------------------------------------------------------
/pkgs/ffigen/example/shared_bindings/README.md:
--------------------------------------------------------------------------------
1 | # Shared bindings
2 |
3 | An example to showcase how bindings can share types
4 | with other bindings.
5 |
6 | ## Generating bindings
7 | At the root of this example (`example/shared_bindings`), run -
8 | ```
9 | dart run generate.dart
10 | ```
11 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/flag_enthusiast_1/.gitignore:
--------------------------------------------------------------------------------
1 | # https://dart.dev/guides/libraries/private-files
2 | # Created by `dart pub`
3 | .dart_tool/
4 |
5 | # Avoid committing pubspec.lock for library packages; see
6 | # https://dart.dev/guides/libraries/private-files#pubspeclock.
7 | pubspec.lock
8 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/flag_enthusiast_2/.gitignore:
--------------------------------------------------------------------------------
1 | # https://dart.dev/guides/libraries/private-files
2 | # Created by `dart pub`
3 | .dart_tool/
4 |
5 | # Avoid committing pubspec.lock for library packages; see
6 | # https://dart.dev/guides/libraries/private-files#pubspeclock.
7 | pubspec.lock
8 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/some_dev_dep/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: some_dev_dep
2 | description: Has a bin script that can be run from the context of other root packages.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
--------------------------------------------------------------------------------
/pkgs/jni/example/macos/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | @NSApplicationMain
5 | class AppDelegate: FlutterAppDelegate {
6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
7 | return true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/code_assets/example/sqlite/lib/sqlite.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'src/sqlite.dart';
6 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_objc_test/ns_range_test.m:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #import
6 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_objc_test/swift_class_test.swift:
--------------------------------------------------------------------------------
1 | import Foundation
2 |
3 | @objc public class MySwiftClass: NSObject {
4 | var val = 123;
5 | @objc public func getValue() -> Int {
6 | return val;
7 | }
8 | @objc public func setValue(x: Int) {
9 | val = x;
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add_version_skew_2/manifest.yaml:
--------------------------------------------------------------------------------
1 | # The list of files to copy to a temporary folder to ensure running tests from
2 | # a completely clean setup.
3 | # Automatically generated by manifest_generator.dart.
4 | - analysis_options.yaml
5 | - hook/build.dart
6 | - pubspec.yaml
7 |
--------------------------------------------------------------------------------
/pkgs/jnigen/android_test_runner/android/app/src/main/kotlin/com/github/dart_lang/jnigen/android_integration_test/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.github.dart_lang.jnigen.android_integration_test
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/kotlin_plugin/example/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
6 |
--------------------------------------------------------------------------------
/pkgs/pub_formats/test_data/pubspec_errors_executables_2.yaml:
--------------------------------------------------------------------------------
1 | name: some_test_pubspec_package_name
2 |
3 | description: >-
4 | Test
5 |
6 | publish_to: none
7 |
8 | version: 0.0.1-wip
9 |
10 | environment:
11 | sdk: '>=3.9.0 <4.0.0'
12 |
13 | executables:
14 | 'invalid executable name':
15 |
--------------------------------------------------------------------------------
/pkgs/ffigen/bin/ffigen.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'package:ffigen/src/executables/ffigen.dart';
6 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/infra_failure/bin/infra_failure.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | void main() {}
6 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add_add_source/manifest.yaml:
--------------------------------------------------------------------------------
1 | # The list of files to copy to a temporary folder to ensure running tests from
2 | # a completely clean setup.
3 | # Automatically generated by manifest_generator.dart.
4 | - hook/build.dart
5 | - src/native_multiply.c
6 | - src/native_multiply.h
7 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/notification_plugin/example/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
6 |
--------------------------------------------------------------------------------
/pkgs/swift2objc/test/integration/async_init_input.swift:
--------------------------------------------------------------------------------
1 | import Foundation
2 |
3 | public class MyClass {
4 | public init() {}
5 | public init?(label1 name1: Int, _ name2: Int) async {}
6 | public init(arg: Int) async {}
7 | public init(arg1: Int, arg2: Int) async throws {}
8 | }
9 |
10 |
--------------------------------------------------------------------------------
/pkgs/code_assets/example/host_name/lib/host_name.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'src/host_name.dart';
6 |
--------------------------------------------------------------------------------
/pkgs/code_assets/example/mini_audio/lib/mini_audio.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'src/mini_audio.dart';
6 |
--------------------------------------------------------------------------------
/pkgs/code_assets/example/stb_image/lib/stb_image.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'src/stb_image.dart';
6 |
--------------------------------------------------------------------------------
/pkgs/data_assets/example/README.md:
--------------------------------------------------------------------------------
1 | # Examples
2 |
3 | The `package:data_assets` cannot yet be used as an experiment in Flutter or
4 | Dart, so no examples are available.
5 |
6 | For samples on how it might be used in the future refer to test projects in
7 | [`hooks_runner/test_data/`](../../hooks_runner/test_data/).
8 |
--------------------------------------------------------------------------------
/pkgs/ffigen/example/add/src/add.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | int add(int a, int b) {
6 | return a + b;
7 | }
8 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/large_integration_tests/large_objc_test.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #import
6 |
--------------------------------------------------------------------------------
/pkgs/jni/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:dart_flutter_team_lints/analysis_options.yaml
2 |
3 | analyzer:
4 | exclude: [build/**, third_party/**]
5 | language:
6 | strict-raw-types: true
7 |
8 | linter:
9 | rules:
10 | prefer_final_locals: true
11 | prefer_const_declarations: true
12 |
--------------------------------------------------------------------------------
/pkgs/jni/example/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
7 |
--------------------------------------------------------------------------------
/pkgs/jni/example/macos/Runner/Release.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/pkgs/native_toolchain_c/test/cbuilder/testfiles/build_failure/cl.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "cl.h"
6 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/header_parser_tests/regress_384_header_1.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "regress_384_shared.h"
6 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/header_parser_tests/regress_384_header_2.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "regress_384_shared.h"
6 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/fail_build/lib/fail_build.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | void invokeFailBuildCode() {}
6 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add/lib/native_add.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'src/native_add.dart';
6 |
--------------------------------------------------------------------------------
/pkgs/native_test_helpers/README.md:
--------------------------------------------------------------------------------
1 | # Test helpers
2 |
3 | Utils for writing tests in this monorepo. This isn't published, and should only
4 | be used as a dev dependency for the other packages in this repo, via a path dep.
5 |
6 | ```shell
7 | dart pub add "dev:native_test_helpers:{path: ../native_test_helpers}"
8 | ```
9 |
--------------------------------------------------------------------------------
/pkgs/ffigen/example/c_json/example.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "CoolGuy",
3 | "age": 21,
4 | "nicknames": [
5 | {
6 | "name": "Mr. Cool",
7 | "length": 8
8 | },
9 | {
10 | "name": "Ice Cold",
11 | "length": 8
12 | }
13 | ]
14 | }
15 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_objc_test/cast_config.yaml:
--------------------------------------------------------------------------------
1 | name: CastTestObjCLibrary
2 | description: 'Tests casting objects'
3 | language: objc
4 | output: 'cast_bindings.dart'
5 | exclude-all-by-default: true
6 | objc-interfaces:
7 | include:
8 | - Castaway
9 | headers:
10 | entry-points:
11 | - 'cast_test.m'
12 |
--------------------------------------------------------------------------------
/pkgs/jni/java/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
4 | networkTimeout=10000
5 | validateDistributionUrl=true
6 | zipStoreBase=GRADLE_USER_HOME
7 | zipStorePath=wrapper/dists
8 |
--------------------------------------------------------------------------------
/pkgs/swift2objc/test/integration/time_interval_output.swift:
--------------------------------------------------------------------------------
1 | // Test preamble text
2 |
3 | import Foundation
4 |
5 | @objc public class GlobalsWrapper: NSObject {
6 | @objc static public func timeIntervalFuncWrapper(t: TimeInterval) -> TimeInterval {
7 | return timeIntervalFunc(t: t)
8 | }
9 |
10 | }
11 |
12 |
--------------------------------------------------------------------------------
/pkgs/code_assets/example/sqlite_prebuilt/lib/sqlite_prebuilt.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'src/sqlite_prebuilt.dart';
6 |
--------------------------------------------------------------------------------
/pkgs/code_assets/test/json_schema/helpers.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export '../../../hooks/test/json_schema/helpers.dart';
6 |
--------------------------------------------------------------------------------
/pkgs/data_assets/test/json_schema/helpers.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export '../../../hooks/test/json_schema/helpers.dart';
6 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/add_asset_link/lib/add_asset_link.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'src/add_asset_link.dart';
6 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/fun_with_flags/lib/hook.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'src/hook.dart' show FlagsUsedWrite;
6 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add_version_skew/lib/native_add.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'src/native_add.dart';
6 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/in_app_java/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
7 |
--------------------------------------------------------------------------------
/pkgs/jnigen/java/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
4 | networkTimeout=10000
5 | validateDistributionUrl=true
6 | zipStoreBase=GRADLE_USER_HOME
7 | zipStorePath=wrapper/dists
8 |
--------------------------------------------------------------------------------
/pkgs/jnigen/lib/src/config/config.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'config_exception.dart';
6 | export 'config_types.dart';
7 |
--------------------------------------------------------------------------------
/pkgs/native_toolchain_c/lib/src/cbuilder/output_type.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | enum OutputType { executable, library }
6 |
--------------------------------------------------------------------------------
/pkgs/native_toolchain_c/test/cbuilder/testfiles/includes/src/includes.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "includes.h"
6 |
7 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/command_line/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:objective_c/objective_c.dart';
4 |
5 | void main() {
6 | // Objective-C is only supported on macOS and iOS.
7 | assert(Platform.isMacOS || Platform.isIOS);
8 |
9 | print('Hello World'.toNSString().toDartString());
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/record_use/test_data/drop_data_asset/lib/drop_data_asset.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'src/drop_data_asset.dart';
6 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/drop_dylib_link/lib/drop_dylib_link.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'src/drop_dylib_link.dart';
6 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/fun_with_flags/lib/fun_with_flags.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'src/fun_with_flags_base.dart';
6 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_subtract/lib/native_subtract.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'src/native_subtract.dart';
6 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/no_build_output/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: no_build_output
2 | description: A package with a build hook that does not produce any output.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | hooks: any
14 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/simple_link/bin/simple_link.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | void main() {
6 | print('Tada!');
7 | }
8 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/simple_link_change_asset/manifest.yaml:
--------------------------------------------------------------------------------
1 | # The list of files to copy to a temporary folder to ensure running tests from
2 | # a completely clean setup.
3 | # Automatically generated by manifest_generator.dart.
4 | - assets/data_0.json
5 | - assets/data_1.json
6 | - assets/data_2.json
7 | - assets/data_3.json
8 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/macos/Runner/Release.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/pkgs/swiftgen/example/README.md:
--------------------------------------------------------------------------------
1 | # swiftgen example
2 |
3 | Demonstrates how to use swiftgen to generate Dart bindings for a Swift API.
4 |
5 | Regenerating the bindings:
6 |
7 | ```shell
8 | dart generate_code.dart
9 | ```
10 |
11 | Running the example:
12 |
13 | ```shell
14 | dart play_audio.dart
15 | ```
16 |
--------------------------------------------------------------------------------
/pkgs/hooks/example/build/use_dart_api/lib/use_dart_api.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'src/use_dart_api_bindings_generated.dart';
6 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/some_dev_dep/bin/some_dev_dep.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | void main() {
6 | print('Hello world!');
7 | }
8 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/user_defines/bin/user_defines.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | void main() {
6 | print('Hello world!');
7 | }
8 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/kotlin_plugin/jnigen.yaml:
--------------------------------------------------------------------------------
1 | android_sdk_config:
2 | add_gradle_deps: true
3 | android_example: 'example/'
4 |
5 | summarizer:
6 | backend: asm
7 |
8 | output:
9 | dart:
10 | path: lib/kotlin_bindings.dart
11 | structure: single_file
12 |
13 | log_level: all
14 |
15 | classes:
16 | - 'Example'
17 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/example/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
7 |
--------------------------------------------------------------------------------
/pkgs/pub_formats/test_data/pubspec_errors_executables_3.yaml:
--------------------------------------------------------------------------------
1 | name: some_test_pubspec_package_name
2 |
3 | description: >-
4 | Test
5 |
6 | publish_to: none
7 |
8 | version: 0.0.1-wip
9 |
10 | environment:
11 | sdk: '>=3.9.0 <4.0.0'
12 |
13 | executables:
14 | 'my_executable': 'path/containing/a/separator/to/script.dart'
15 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_objc_test/isolate_test.m:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "isolate_test.h"
6 |
7 | @implementation Sendable
8 | @end
9 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/depend_on_fail_build/lib/depend_on_fail_build.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | void invokeDependOnFailBuildCode() {}
6 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/flag_enthusiast_1/lib/flag_enthusiast_1.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'src/flag_enthusiast_1_base.dart';
6 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/flag_enthusiast_2/lib/flag_enthusiast_2.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'src/flag_enthusiast_2_base.dart';
6 |
--------------------------------------------------------------------------------
/pkgs/jni/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/pkgs/record_use/test_data/drop_dylib_recording/lib/drop_dylib_recording.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'src/drop_dylib_recording.dart';
6 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_objc_test/method_config.yaml:
--------------------------------------------------------------------------------
1 | name: MethodTestObjCLibrary
2 | description: 'Tests calling Objective-C methods'
3 | language: objc
4 | output: 'method_bindings.dart'
5 | exclude-all-by-default: true
6 | objc-interfaces:
7 | include:
8 | - MethodInterface
9 | headers:
10 | entry-points:
11 | - 'method_test.m'
12 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/dart_app/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: dart_app
2 |
3 | publish_to: none
4 |
5 | resolution: workspace
6 |
7 | environment:
8 | sdk: '>=3.9.0 <4.0.0'
9 |
10 | dependencies:
11 | native_add:
12 | path: ../native_add
13 | native_subtract:
14 | path: ../native_subtract
15 |
16 | executables:
17 | dart_app:
18 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_objc_test/log_config.yaml:
--------------------------------------------------------------------------------
1 | name: LogTestObjCLibrary
2 | description: 'Tests logged errors'
3 | language: objc
4 | output: 'log_bindings.dart'
5 | exclude-all-by-default: true
6 | objc-interfaces:
7 | include:
8 | - LogSpamBaseClass
9 | - LogSpamChildClass
10 | headers:
11 | entry-points:
12 | - 'log_test.m'
13 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_objc_test/string_config.yaml:
--------------------------------------------------------------------------------
1 | name: StringTestObjCLibrary
2 | description: 'Tests calling Objective-C string methods'
3 | language: objc
4 | output: 'string_bindings.dart'
5 | exclude-all-by-default: true
6 | objc-interfaces:
7 | include:
8 | - StringUtil
9 | headers:
10 | entry-points:
11 | - 'string_test.m'
12 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/README.md:
--------------------------------------------------------------------------------
1 | The `dart_app` depends on multiple packages with native assets.
2 |
3 | `manifest.yaml` contains a list of all the files of the test projects.
4 | This is used to copy the test projects to temporary folders when running tests,
5 | to prevent tests accidentally using temporary files or interfering with each
6 | other.
7 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/complex_link_helper/lib/complex_link_helper.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | void someMethod() {
6 | print('Tada!');
7 | }
8 |
--------------------------------------------------------------------------------
/pkgs/native_test_helpers/lib/native_test_helpers.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'src/find_package_root.dart';
6 | export 'src/yaml_to_json.dart';
7 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/header_parser_tests/separate_definition_base.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | struct SeparatelyDefinedStruct{
6 | int a;
7 | int b;
8 | };
9 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/download_assets/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: download_assets
2 | description: Has a build hook downloading a code asset, used to verify proxy env variables working.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | hooks: any
14 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/treeshaking_native_libs/lib/treeshaking_native_libs.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'src/treeshaking_native_libs.dart';
6 |
--------------------------------------------------------------------------------
/pkgs/jni/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/pkgs/jni/lib/src/third_party/generated_bindings.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'global_env_extensions.dart';
6 | export 'jni_bindings_generated.dart';
7 |
--------------------------------------------------------------------------------
/pkgs/native_doc_dartifier/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:dart_flutter_team_lints/analysis_options.yaml
2 |
3 | analyzer:
4 | language:
5 | strict-raw-types: true
6 |
7 | linter:
8 | rules:
9 | - prefer_const_declarations
10 | - prefer_expression_function_bodies
11 | - prefer_final_in_for_each
12 | - prefer_final_locals
13 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/pkgs/jnigen/lib/src/tools/tools.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'android_sdk_tools.dart';
6 | export 'build_summarizer.dart';
7 | export 'gradle_tools.dart';
8 |
--------------------------------------------------------------------------------
/pkgs/native_doc_dartifier/test/dartify_simple_cases/dartified_snippets/identifiers.dart:
--------------------------------------------------------------------------------
1 | // AUTO GENERATED BY NATIVE_DOC_DARTIFIER. DO NOT EDIT!
2 | // Regenerate this file by running tool/prepare_dartify_test.dart
3 |
4 | import '../bindings.dart';
5 |
6 | bool identifiersSpecialCases() =>
7 | Example.has$$dollar$$sign + Example.$_startsWithUnderscore == 3;
8 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/command_line/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: example
2 | description: "Demonstrates using package:objective_c"
3 | version: 1.0.0
4 | publish_to: none
5 |
6 | environment:
7 | sdk: '>=3.9.0-21.0.dev <4.0.0'
8 |
9 | dependencies:
10 | objective_c:
11 | path: ../..
12 |
13 | dev_dependencies:
14 | lints: ^5.0.0
15 | test: ^1.27.0
16 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_objc_test/nullable_config.yaml:
--------------------------------------------------------------------------------
1 | name: NullableTestObjCLibrary
2 | description: 'Tests nullability for Objective-C methods'
3 | language: objc
4 | output: 'nullable_bindings.dart'
5 | exclude-all-by-default: true
6 | objc-interfaces:
7 | include:
8 | - NullableInterface
9 | headers:
10 | entry-points:
11 | - 'nullable_test.m'
12 |
--------------------------------------------------------------------------------
/pkgs/hooks/example/build/download_asset/src/native_add.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "native_add.h"
6 |
7 | int32_t add(int32_t a, int32_t b) { return a + b; }
8 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/reusable_dynamic_library/src/add.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "add.h"
6 |
7 | int32_t add(int32_t a, int32_t b) { return a + b; }
8 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_objc_test/global_config.yaml:
--------------------------------------------------------------------------------
1 | name: GlobalTestObjCLibrary
2 | description: 'Tests global variables'
3 | language: objc
4 | output: 'global_bindings.dart'
5 | exclude-all-by-default: true
6 | globals:
7 | include:
8 | - globalString
9 | - globalObject
10 | - globalBlock
11 | headers:
12 | entry-points:
13 | - 'global_test.h'
14 |
--------------------------------------------------------------------------------
/pkgs/jni/tool/wrapper_generators/logging.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'package:logging/logging.dart';
6 |
7 | final logger = Logger('ffi_wrappers_generator');
8 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/lib/pdfbox_plugin.dart:
--------------------------------------------------------------------------------
1 | /// File merely exporting the generated bindings from lib/src/third_party
2 | library;
3 |
4 | export 'src/third_party/org/apache/pdfbox/pdmodel/PDDocument.dart';
5 | export 'src/third_party/org/apache/pdfbox/pdmodel/PDDocumentInformation.dart';
6 | export 'src/third_party/org/apache/pdfbox/text/PDFTextStripper.dart';
7 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/flag_app/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: flag_app
2 | description: A sample application using flags.
3 |
4 | publish_to: none
5 |
6 | resolution: workspace
7 |
8 | environment:
9 | sdk: '>=3.9.0 <4.0.0'
10 |
11 | dependencies:
12 | flag_enthusiast_1:
13 | path: ../flag_enthusiast_1
14 | flag_enthusiast_2:
15 | path: ../flag_enthusiast_2
16 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add_version_skew/src/native_add.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "native_add.h"
6 |
7 | int32_t add(int32_t a, int32_t b) { return a + b; }
8 |
--------------------------------------------------------------------------------
/.github/dependabot.yaml:
--------------------------------------------------------------------------------
1 | # Dependabot configuration file.
2 | version: 2
3 |
4 | updates:
5 | - package-ecosystem: github-actions
6 | directory: /
7 | schedule:
8 | interval: monthly
9 | labels:
10 | - autosubmit
11 | groups:
12 | github-actions:
13 | patterns:
14 | - "*"
15 | commit-message:
16 | prefix: "[infra] "
17 |
--------------------------------------------------------------------------------
/pkgs/ffi/lib/ffi.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'src/allocation.dart' show calloc, malloc;
6 | export 'src/arena.dart';
7 | export 'src/utf16.dart';
8 | export 'src/utf8.dart';
9 |
--------------------------------------------------------------------------------
/pkgs/ffigen/example/add/bin/add.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'package:add/add.dart' as add;
6 |
7 | void main(List arguments) {
8 | add.answerToLife();
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_objc_test/property_config.yaml:
--------------------------------------------------------------------------------
1 | name: PropertyTestObjCLibrary
2 | description: 'Tests calling Objective-C properties i.e. getters and setters'
3 | language: objc
4 | output: 'property_bindings.dart'
5 | exclude-all-by-default: true
6 | objc-interfaces:
7 | include:
8 | - PropertyInterface
9 | headers:
10 | entry-points:
11 | - 'property_test.h'
12 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add/src/native_add.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "native_add.h"
6 |
7 | int32_t add(int32_t a, int32_t b) {
8 | return a + b;
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/code_assets/doc/schema/hook/shared_definitions.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "title": "package:code_assets party:hook shared definitions",
4 | "definitions": {
5 | "BuildInput": {},
6 | "BuildOutput": {},
7 | "HookInput": {},
8 | "HookOutput": {},
9 | "LinkInput": {},
10 | "LinkOutput": {}
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/pkgs/code_assets/doc/schema/sdk/shared_definitions.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "title": "package:code_assets party:sdk shared definitions",
4 | "definitions": {
5 | "BuildInput": {},
6 | "BuildOutput": {},
7 | "HookInput": {},
8 | "HookOutput": {},
9 | "LinkInput": {},
10 | "LinkOutput": {}
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/pkgs/ffigen/example/add/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: add
2 | description: A simple end-to-end example showcasing FFIgen.
3 | publish_to: none
4 |
5 | environment:
6 | sdk: '>=3.8.0 <4.0.0'
7 |
8 | dependencies:
9 | code_assets: any
10 | ffi: ^2.1.4
11 | hooks: any
12 | native_toolchain_c: any
13 |
14 | dev_dependencies:
15 | ffigen:
16 | path: '../../'
17 | test: ^1.25.15
18 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_objc_test/is_instance_config.yaml:
--------------------------------------------------------------------------------
1 | name: IsInstanceTestObjCLibrary
2 | description: 'Tests isInstance'
3 | language: objc
4 | output: 'is_instance_bindings.dart'
5 | exclude-all-by-default: true
6 | objc-interfaces:
7 | include:
8 | - IsInstanceChildClass
9 | - IsInstanceUnrelatedClass
10 | headers:
11 | entry-points:
12 | - 'is_instance_test.m'
13 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/no_hook/lib/no_hook.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'package:code_assets/code_assets.dart';
6 |
7 | String get useSomeNativeAssetsCli => OS.android.name;
8 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/kotlin_plugin/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: 9b4416aaa79bf984d06aa40ab515a274a50a75a7
8 | channel: beta
9 |
10 | project_type: package
11 |
--------------------------------------------------------------------------------
/pkgs/native_test_helpers/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: native_test_helpers
2 | version: 0.1.0-wip
3 | repository: https://github.com/dart-lang/native/tree/main/pkgs/native_test_helpers
4 | description: Helper functions for tests in this monorepo.
5 |
6 | publish_to: none
7 |
8 | resolution: workspace
9 |
10 | environment:
11 | sdk: '>=3.9.0 <4.0.0'
12 |
13 | dependencies:
14 | yaml: ^3.1.3
15 |
--------------------------------------------------------------------------------
/pkgs/swift2objc/lib/src/transformer/transformers/const.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | // Certain methods are not allowed to be overriden in swift.
6 | const disallowedMethods = {'hashValue'};
7 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/header_parser_tests/regress_384_shared.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #ifndef __REGRESS_384_SHARED__
6 | #define __REGRESS_384_SHARED__
7 |
8 | void foo();
9 |
10 | #endif
11 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/header_parser_tests/sort.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | union dddd {};
6 | typedef union ffff {} aaaa;
7 | struct cccc {};
8 | typedef struct cccc eeee;
9 | struct bbbb {};
10 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_objc_test/failed_to_load_config.yaml:
--------------------------------------------------------------------------------
1 | name: FailedToLoadTestObjCLibrary
2 | description: 'Tests failing to load an Objective-C library'
3 | language: objc
4 | output: 'failed_to_load_bindings.dart'
5 | exclude-all-by-default: true
6 | objc-interfaces:
7 | include:
8 | - ClassThatWillFailToLoad
9 | headers:
10 | entry-points:
11 | - 'failed_to_load_test.m'
12 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/fun_with_flags/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: fun_with_flags
2 | description: Add and retrieve a data asset.
3 |
4 | publish_to: none
5 |
6 | resolution: workspace
7 |
8 | environment:
9 | sdk: '>=3.9.0 <4.0.0'
10 |
11 | dependencies:
12 | data_assets: any
13 | hooks: any
14 | logging: ^1.3.0
15 |
16 | dev_dependencies:
17 | lints: ^6.0.0
18 | test: ^1.25.15
19 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add_duplicate/src/native_add.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "native_add.h"
6 |
7 | int32_t add(int32_t a, int32_t b) {
8 | return a + b;
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add_fix_build/src/native_add.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "native_add.h"
6 |
7 | int32_t add(int32_t a, int32_t b) {
8 | return a + b;
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/no_build_output/hook/build.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | void main(List arguments) {
6 | // This hook does nothing, and doesn't write an output file.
7 | }
8 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/package_with_metadata/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: package_with_metadata
2 | description: Sets some metadata in its hook/build.dart
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | code_assets: any
14 | hooks: any
15 |
16 | dev_dependencies:
17 | lints: ^6.0.0
18 |
--------------------------------------------------------------------------------
/pkgs/ffigen/example/add/lib/add.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'add.g.dart';
6 |
7 | void answerToLife() {
8 | print('The answer to the Ultimate Question is ${add(40, 2)}!');
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_objc_test/global_native_config.yaml:
--------------------------------------------------------------------------------
1 | name: GlobalTestObjCLibrary
2 | description: 'Tests global variables'
3 | language: objc
4 | output: 'global_native_bindings.dart'
5 | exclude-all-by-default: true
6 | ffi-native:
7 | globals:
8 | include:
9 | - globalString
10 | - globalObject
11 | - globalBlock
12 | headers:
13 | entry-points:
14 | - 'global_test.h'
15 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/link_inverse_package/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: link_inverse_package
2 | description: Part of two packages with native assets that try to pass assets upstream.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | hooks: any
14 |
15 | dev_dependencies:
16 | lints: ^6.0.0
17 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add/lib/src/native_add.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'native_add_bindings_generated.dart' as bindings;
6 |
7 | int add(int a, int b) => bindings.add(a, b);
8 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/treeshaking_native_libs/src/native_add.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "native_add.h"
6 |
7 | int32_t add(int32_t a, int32_t b) {
8 | return a + b;
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/jni/example/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:flutter_lints/flutter.yaml
2 |
3 | analyzer:
4 | exclude: [build/**]
5 | language:
6 | strict-raw-types: true
7 |
8 | linter:
9 | rules:
10 | - prefer_final_locals
11 | - prefer_const_declarations
12 |
13 | # Additional information about this file can be found at
14 | # https://dart.dev/guides/language/analysis-options
15 |
--------------------------------------------------------------------------------
/pkgs/record_use/test_data/drop_data_asset/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: drop_data_asset
2 | description: Add four data assets, remove three in linking based on recorded usage.
3 |
4 | publish_to: none
5 |
6 | environment:
7 | sdk: '>=3.9.0 <4.0.0'
8 |
9 | resolution: workspace
10 |
11 | dependencies:
12 | data_assets: any
13 | hooks: any
14 | logging: any
15 | meta: any
16 | record_use: any
17 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_objc_test/typedef_config.yaml:
--------------------------------------------------------------------------------
1 | name: TypedefTestObjCLibrary
2 | description: 'Tests typedef'
3 | language: objc
4 | output: 'typedef_bindings.dart'
5 | exclude-all-by-default: true
6 | objc-interfaces:
7 | include:
8 | - SomeClass
9 | - AnotherClass
10 | typedefs:
11 | include:
12 | - SomeClassPtr
13 | headers:
14 | entry-points:
15 | - 'typedef_test.m'
16 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/add_asset_link/src/native_add.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "native_add.h"
6 |
7 | MYLIB_EXPORT int32_t add(int32_t a, int32_t b) {
8 | return a + b;
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/drop_dylib_link/src/native_add.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "native_add.h"
6 |
7 | MYLIB_EXPORT int32_t add(int32_t a, int32_t b) {
8 | return a + b;
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/fail_build/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: fail_build
2 | description: Always fails to build
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | code_assets: any
14 | hooks: any
15 |
16 | dev_dependencies:
17 | ffigen: ^20.0.0-dev.1
18 | lints: ^6.0.0
19 | test: ^1.25.15
20 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add_break_build/src/native_add.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "native_add.h"
6 |
7 | MYLIB_EXPORT int32_t add(int32_t different_parameters) {
8 | return a + b;
9 | }
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_dynamic_linking/bin/native_dynamic_linking.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'package:native_dynamic_linking/add.dart';
6 |
7 | void main() => print('${add(24, 18)}');
8 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_subtract/src/native_subtract.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "native_subtract.h"
6 |
7 | int32_t subtract(int32_t a, int32_t b) {
8 | return a - b;
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/relative_path/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: relative_path
2 | description: Outputs a data asset with a relative path.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | data_assets: any
14 | hooks: any
15 | logging: ^1.3.0
16 |
17 | dev_dependencies:
18 | lints: ^6.0.0
19 |
--------------------------------------------------------------------------------
/pkgs/jni/lib/src/nio/nio.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | export 'jbuffer.dart' hide $JBuffer$NullableType$, $JBuffer$Type$;
6 | export 'jbyte_buffer.dart' hide $JByteBuffer$NullableType$, $JByteBuffer$Type$;
7 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/RunnerTests/RunnerTests.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import UIKit
3 | import XCTest
4 |
5 | class RunnerTests: XCTestCase {
6 |
7 | func testExample() {
8 | // If you add code to the Runner application, consider adding tests here.
9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/pkgs/swift2objc/lib/src/context.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'package:logging/logging.dart';
6 |
7 | class Context {
8 | final Logger logger;
9 |
10 | Context(this.logger);
11 | }
12 |
--------------------------------------------------------------------------------
/pkgs/ffigen/example/ffinative/README.md:
--------------------------------------------------------------------------------
1 | # Natives example
2 |
3 | A simple example generating `Native` bindings for a very small header file (`headers/example.h`).
4 |
5 | ## Generating bindings
6 | At the root of this example (`example/simple`), run -
7 | ```
8 | dart run ffigen --config config.yaml
9 | ```
10 | This will generate bindings in a file: [generated_bindings.dart](./generated_bindings.dart).
11 |
--------------------------------------------------------------------------------
/pkgs/ffigen/example/simple/README.md:
--------------------------------------------------------------------------------
1 | # Simple header example
2 |
3 | A very simple example, generates bindings for a very small header file (`headers/example.h`).
4 |
5 | ## Generating bindings
6 | At the root of this example (`example/simple`), run -
7 | ```
8 | dart run ffigen --config config.yaml
9 | ```
10 | This will generate bindings in a file: [generated_bindings.dart](./generated_bindings.dart).
11 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_objc_test/failed_to_load_test.m:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #import
6 |
7 | @interface ClassThatWillFailToLoad : NSObject {}
8 | -(int32_t)get123;
9 | @end
10 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_objc_test/isolate_config.yaml:
--------------------------------------------------------------------------------
1 | name: IsolateTestObjCLibrary
2 | description: 'Tests sending objects between isolates'
3 | language: objc
4 | output:
5 | bindings: 'isolate_bindings.dart'
6 | objc-bindings: 'isolate_bindings.m'
7 | exclude-all-by-default: true
8 | objc-interfaces:
9 | include:
10 | - Sendable
11 | headers:
12 | entry-points:
13 | - 'isolate_test.h'
14 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/complex_link/bin/complex_link.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'package:complex_link_helper/complex_link_helper.dart';
6 |
7 | void main() {
8 | someMethod();
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add_duplicate/bin/native_add_duplicate.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | void main() {
6 | print('Compiling this with `dart build` should fail due to dylib conflict.');
7 | }
8 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add_version_skew/lib/src/native_add.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'native_add_bindings_generated.dart' as bindings;
6 |
7 | int add(int a, int b) => bindings.add(a, b);
8 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/macos/RunnerTests/RunnerTests.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 | import XCTest
4 |
5 | class RunnerTests: XCTestCase {
6 |
7 | func testExample() {
8 | // If you add code to the Runner application, consider adding tests here.
9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/pkgs/record_use/test_data/drop_dylib_recording/src/native_add.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "native_add.h"
6 |
7 | MYLIB_EXPORT int32_t add(int32_t a, int32_t b) {
8 | return a + b;
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/swift2objc/test/integration/throws_input.swift:
--------------------------------------------------------------------------------
1 | import Foundation
2 |
3 | public class MyClass {
4 | public init(y: Int) throws {}
5 |
6 | public func voidMethod() throws {}
7 | public func intMethod(y: Int) throws -> MyClass { return try MyClass(y: 123) }
8 | }
9 |
10 | public func voidFunc(x: Int, y: Int) throws {}
11 | public func intFunc() throws -> MyClass { return try MyClass(y: 123) }
12 |
--------------------------------------------------------------------------------
/pkgs/swiftgen/test/integration/classes.swift:
--------------------------------------------------------------------------------
1 | import Foundation
2 |
3 | public class TestClass {
4 | public func myMethod() -> TestOtherClass {
5 | return TestOtherClass()
6 | }
7 |
8 | public static func create() -> TestClass {
9 | return TestClass()
10 | }
11 | }
12 |
13 | public class TestOtherClass {
14 | public func times10(x: Int) -> Int {
15 | return x * 10
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/wrong_linker/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: wrong_linker
2 | description: Package that tries to add an asset with an id not prefixed by its package name.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | code_assets: any
14 | hooks: any
15 |
16 | dev_dependencies:
17 | lints: ^6.0.0
18 |
--------------------------------------------------------------------------------
/pkgs/native_toolchain_c/test/cbuilder/testfiles/dynamically_linked/src/dynamically_linked.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "math.h"
6 |
7 | int main() {
8 | return math_add(1, 2) == 3 ? 0 : 1;
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/drop_dylib_link/src/native_multiply.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "native_multiply.h"
6 |
7 | MYLIB_EXPORT intptr_t multiply(intptr_t a, intptr_t b) {
8 | return a * b;
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/simple_data_asset/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: simple_data_asset
2 | description: Add and retrieve a data asset.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | data_assets: any
14 | hooks: any
15 | logging: ^1.3.0
16 |
17 | dev_dependencies:
18 | lints: ^6.0.0
19 | test: ^1.25.15
20 |
--------------------------------------------------------------------------------
/pkgs/native_doc_dartifier/test/dartify_simple_cases/dartified_snippets/implement_inline_interface.dart:
--------------------------------------------------------------------------------
1 | // AUTO GENERATED BY NATIVE_DOC_DARTIFIER. DO NOT EDIT!
2 | // Regenerate this file by running tool/prepare_dartify_test.dart
3 |
4 | import '../bindings.dart';
5 |
6 | bool implementInlineInterface() {
7 | final runnable = Runnable.implement($Runnable(run: () => 0));
8 | return runnable.run() == 0;
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/native_doc_dartifier/tool/compile_java.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'prepare_dartify_test.dart';
6 |
7 | void main() {
8 | print('Compiling Java package...');
9 | compileJavaPackage();
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/hooks/lib/src/avoid_import_outside_src_rule_test.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | // expect_lint: avoid_import_outside_src
6 | import '../hooks.dart';
7 |
8 | /// A random use of a type.
9 | const x = Builder;
10 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/fail_build/hook/build.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'dart:io';
6 |
7 | void main(List arguments) async {
8 | print('Just here to fail the build!');
9 | exit(1);
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/infra_failure/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: infra_failure
2 | description: Always fails with an infra failure
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | code_assets: any
14 | hooks: any
15 |
16 | dev_dependencies:
17 | ffigen: ^20.0.0-dev.1
18 | lints: ^6.0.0
19 | test: ^1.25.15
20 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_subtract/lib/src/native_subtract.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'native_subtract_bindings_generated.dart' as bindings;
6 |
7 | int subtract(int a, int b) => bindings.subtract(a, b);
8 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/wrong_build_output_3/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: wrong_build_output_3
2 | description: Package that outputs a valid build_output.yaml but a non-zero exit code.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | code_assets: any
14 | hooks: any
15 |
16 | dev_dependencies:
17 | lints: ^6.0.0
18 |
--------------------------------------------------------------------------------
/pkgs/pub_formats/test_data/pubspec_lock_errors_1.yaml:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | dart_apitool:
5 | dependency: 'direct main'
6 | description:
7 | name: 'not a valid name'
8 | sha256: 'not a valid sha'
9 | url: 'https://pub.dev'
10 | source: hosted
11 | version: '0.21.1'
12 | sdks:
13 | dart: '>=3.9.0-293.0.dev <4.0.0'
14 |
--------------------------------------------------------------------------------
/pkgs/record_use/test_data/drop_dylib_recording/src/native_multiply.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "native_multiply.h"
6 |
7 | MYLIB_EXPORT intptr_t multiply(intptr_t a, intptr_t b) {
8 | return a * b;
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add_add_source/src/native_multiply.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "native_multiply.h"
6 |
7 | MYLIB_EXPORT intptr_t multiply(intptr_t a, intptr_t b) {
8 | return a * b;
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add_version_skew/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:dart_flutter_team_lints/analysis_options.yaml
2 |
3 | analyzer:
4 | language:
5 | strict-raw-types: true
6 |
7 | linter:
8 | rules:
9 | - avoid_positional_boolean_parameters
10 | - prefer_const_declarations
11 | - prefer_expression_function_bodies
12 | - prefer_final_in_for_each
13 | - prefer_final_locals
14 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_add_version_skew_2/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:dart_flutter_team_lints/analysis_options.yaml
2 |
3 | analyzer:
4 | language:
5 | strict-raw-types: true
6 |
7 | linter:
8 | rules:
9 | - avoid_positional_boolean_parameters
10 | - prefer_const_declarations
11 | - prefer_expression_function_bodies
12 | - prefer_final_in_for_each
13 | - prefer_final_locals
14 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/treeshaking_native_libs/src/native_multiply.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "native_multiply.h"
6 |
7 | MYLIB_EXPORT intptr_t multiply(intptr_t a, intptr_t b) {
8 | return a * b;
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/wrong_build_output/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: wrong_build_output
2 | description: Package that tries to add an asset with an id not prefixed by its package name.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | code_assets: any
14 | hooks: any
15 |
16 | dev_dependencies:
17 | lints: ^6.0.0
18 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/wrong_build_output_2/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: wrong_build_output_2
2 | description: Package that tries to add an asset with an id not prefixed by its package name.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | code_assets: any
14 | hooks: any
15 |
16 | dev_dependencies:
17 | lints: ^6.0.0
18 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/linux/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # The Flutter tooling requires that developers have CMake 3.10 or later
2 | # installed. You should not increase this version, as doing so will cause
3 | # the plugin to fail to compile for some customers of the plugin.
4 | cmake_minimum_required(VERSION 3.10)
5 |
6 | # Project-level configuration.
7 | set(PROJECT_NAME "pdfbox_plugin")
8 | project(${PROJECT_NAME} LANGUAGES CXX)
9 |
--------------------------------------------------------------------------------
/pkgs/jnigen/test/simple_package_test/java/com/github/dart_lang/jnigen/generics/StringMap.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | package com.github.dart_lang.jnigen.generics;
6 |
7 | public class StringMap extends StringKeyedMap {}
8 |
--------------------------------------------------------------------------------
/pkgs/jnigen/test/simple_package_test/java/com/github/dart_lang/jnigen/generics/StringStack.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | package com.github.dart_lang.jnigen.generics;
6 |
7 | public class StringStack extends MyStack {}
8 |
--------------------------------------------------------------------------------
/pkgs/jnigen/test/simple_package_test/java/com/github/dart_lang/jnigen/inheritance/BaseClass.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | package com.github.dart_lang.jnigen.inheritance;
6 |
7 | public class BaseClass {}
8 |
--------------------------------------------------------------------------------
/pkgs/jnigen/test/simple_package_test/java/com/github/dart_lang/jnigen/pkg2/C2.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | package com.github.dart_lang.jnigen.pkg2;
6 |
7 | public class C2 {
8 | public static int CONSTANT = 12;
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/ffigen/example/add/README.md:
--------------------------------------------------------------------------------
1 | A simple end-to-end example using FFIgen.
2 |
3 | FFIgen bindings are generated by the script in `tool/ffigen.dart`. Execute
4 | `dart run tool/ffigen.dart` to regenerate the bindings.
5 |
6 | The C source files for which bindings are generated are located in `src/`.
7 |
8 | The bindings are imported and used by `lib/add.dart`.
9 |
10 | To run the app and see it in action execute `dart run`.
11 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_objc_test/forward_decl_config.yaml:
--------------------------------------------------------------------------------
1 | name: ForwardDeclTestObjCLibrary
2 | description: 'Test that forward declared ObjC classes are correctly filled'
3 | language: objc
4 | output: 'forward_decl_bindings.dart'
5 | exclude-all-by-default: true
6 | objc-interfaces:
7 | include:
8 | - ForwardDeclaredClass
9 | headers:
10 | entry-points:
11 | - 'forward_decl_test.h'
12 | - 'forward_decl_test.m'
13 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/user_defines/test/user_defines_test.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'package:test/test.dart';
6 |
7 | void main() {
8 | test('my test', () {
9 | expect(1, equals(1));
10 | });
11 | }
12 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/wrong_namespace_asset/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: wrong_namespace_asset
2 | description: Package that tries to add an asset with an id not prefixed by its package name.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | code_assets: any
14 | hooks: any
15 |
16 | dev_dependencies:
17 | lints: ^6.0.0
18 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/macos/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | @main
5 | class AppDelegate: FlutterAppDelegate {
6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
7 | return true
8 | }
9 |
10 | override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
11 | return true
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_objc_test/inherited_instancetype_config.yaml:
--------------------------------------------------------------------------------
1 | name: InheritedInstancetypeTestObjCLibrary
2 | description: 'Regression tests for https://github.com/dart-lang/ffigen/issues/486'
3 | language: objc
4 | output: 'inherited_instancetype_bindings.dart'
5 | exclude-all-by-default: true
6 | objc-interfaces:
7 | include:
8 | - ChildClass
9 | headers:
10 | entry-points:
11 | - 'inherited_instancetype_test.m'
12 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_objc_test/nullable_inheritance_config.yaml:
--------------------------------------------------------------------------------
1 | name: NullableInheritanceTestObjCLibrary
2 | description: 'Tests nullability of inherited Objective-C methods'
3 | language: objc
4 | output: 'nullable_inheritance_bindings.dart'
5 | exclude-all-by-default: true
6 | objc-interfaces:
7 | include:
8 | - NullableBase
9 | - NullableChild
10 | headers:
11 | entry-points:
12 | - 'nullable_inheritance_test.m'
13 |
--------------------------------------------------------------------------------
/pkgs/hooks/doc/schema/hook/link_input.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:hooks party:hook LinkInput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/LinkInput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/hooks/doc/schema/sdk/link_input.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:hooks party:sdk LinkInput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/LinkInput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/cyclic_package_1/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: cyclic_package_1
2 | description: Part of two packages with native assets that have a cycle.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | cyclic_package_2:
14 | path: ../cyclic_package_2
15 | hooks: any
16 |
17 | dev_dependencies:
18 | lints: ^6.0.0
19 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/cyclic_package_2/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: cyclic_package_2
2 | description: Part of two packages with native assets that have a cycle.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | cyclic_package_1:
14 | path: ../cyclic_package_1
15 | hooks: any
16 |
17 | dev_dependencies:
18 | lints: ^6.0.0
19 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/transformer/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: transformer
2 | description: Transforms assets, caches the transformation, and caches across build invocations.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | crypto: ^3.0.6
14 | data_assets: any
15 | hooks: any
16 |
17 | dev_dependencies:
18 | lints: ^6.0.0
19 |
--------------------------------------------------------------------------------
/pkgs/jni/example/android/build.gradle:
--------------------------------------------------------------------------------
1 | allprojects {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | }
6 | }
7 |
8 | rootProject.buildDir = '../build'
9 | subprojects {
10 | project.buildDir = "${rootProject.buildDir}/${project.name}"
11 | }
12 | subprojects {
13 | project.evaluationDependsOn(':app')
14 | }
15 |
16 | tasks.register("clean", Delete) {
17 | delete rootProject.buildDir
18 | }
19 |
--------------------------------------------------------------------------------
/pkgs/jnigen/test/simple_package_test/java/com/github/dart_lang/jnigen/generics/StringKeyedMap.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | package com.github.dart_lang.jnigen.generics;
6 |
7 | public class StringKeyedMap extends MyMap {}
8 |
--------------------------------------------------------------------------------
/pkgs/jnigen/test/simple_package_test/java/com/github/dart_lang/jnigen/generics/StringValuedMap.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | package com.github.dart_lang.jnigen.generics;
6 |
7 | public class StringValuedMap extends MyMap {}
8 |
--------------------------------------------------------------------------------
/pkgs/jnigen/test/simple_package_test/java/com/github/dart_lang/jnigen/interfaces/MyRunnable.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | package com.github.dart_lang.jnigen.interfaces;
6 |
7 | public interface MyRunnable {
8 | void run();
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/repo_lint_rules/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: repo_lint_rules
2 | description: Custom lints for this repository
3 | version: 0.1.0-wip
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | analyzer: ^7.3.0
14 | custom_lint_builder: ^0.7.5
15 | dart_flutter_team_lints: ^3.5.2
16 | path: ^1.9.1
17 |
18 | dev_dependencies:
19 | custom_lint: ^0.7.5
20 |
--------------------------------------------------------------------------------
/pkgs/ffigen/example/add/test/add_test.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'package:add/add.g.dart';
6 | import 'package:test/test.dart';
7 |
8 | void main() {
9 | test('add', () {
10 | expect(add(40, 2), 42);
11 | });
12 | }
13 |
--------------------------------------------------------------------------------
/pkgs/hooks/doc/schema/hook/build_input.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:hooks party:hook BuildInput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/BuildInput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/hooks/doc/schema/hook/link_output.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:hooks party:hook LinkOutput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/LinkOutput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/hooks/doc/schema/sdk/build_input.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:hooks party:sdk BuildInput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/BuildInput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/hooks/doc/schema/sdk/build_output.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:hooks party:sdk BuildOutput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/BuildOutput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/hooks/doc/schema/sdk/link_output.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:hooks party:sdk LinkOutput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/LinkOutput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/add_asset_link/lib/src/add_asset_link.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'add_asset_link_bindings.dart' as bindings;
6 |
7 | class MyMath {
8 | static int add(int a, int b) => bindings.add(a, b);
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/cyclic_link_package_1/hook/link.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'package:hooks/hooks.dart';
6 |
7 | void main(List arguments) async {
8 | await link(arguments, (input, output) async {});
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/cyclic_link_package_2/hook/link.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'package:hooks/hooks.dart';
6 |
7 | void main(List arguments) async {
8 | await link(arguments, (input, output) async {});
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/cyclic_package_1/hook/build.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'package:hooks/hooks.dart';
6 |
7 | void main(List arguments) async {
8 | await build(arguments, (input, output) async {});
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/cyclic_package_2/hook/build.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'package:hooks/hooks.dart';
6 |
7 | void main(List arguments) async {
8 | await build(arguments, (input, output) async {});
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/fail_on_os_sdk_version/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: fail_on_os_sdk_version
2 | description: Fails the build due to OS API levels.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | code_assets: any
14 | hooks: any
15 |
16 | dev_dependencies:
17 | ffigen: ^20.0.0-dev.1
18 | lints: ^6.0.0
19 | test: ^1.25.15
20 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/flag_app/bin/flag_app.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'package:flag_app/flag_app.dart' as flag_app;
6 |
7 | void main(List arguments) {
8 | print('Hello world: ${flag_app.flagList()}!');
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/record_use/lib/src/helper.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'package:collection/collection.dart';
6 |
7 | final deepEquals = const DeepCollectionEquality().equals;
8 |
9 | final deepHash = const DeepCollectionEquality().hash;
10 |
--------------------------------------------------------------------------------
/pkgs/swift2objc/lib/src/ast/_core/interfaces/compound_memeber.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | /// An interface to describe a Swift entity's compound membership
6 | abstract interface class CompoundMemeber {
7 | abstract final bool isStatic;
8 | }
9 |
--------------------------------------------------------------------------------
/pkgs/code_assets/doc/schema/sdk/link_input.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:code_assets party:sdk LinkInput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/LinkInput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/data_assets/doc/schema/sdk/link_input.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:data_assets party:sdk LinkInput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/LinkInput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/ffigen/lib/src/header_parser.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | /// Generates a Library (code_generator)
6 | ///
7 | /// Parses the header files AST using clang_bindings.
8 | library;
9 |
10 | export 'header_parser/parser.dart' show parse;
11 |
--------------------------------------------------------------------------------
/pkgs/ffigen/third_party/cjson_library/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required(VERSION 3.7 FATAL_ERROR)
2 | project(cjson_library VERSION 1.0.0 LANGUAGES C)
3 | add_library(cjson_library SHARED cJSON.c)
4 |
5 | set_target_properties(cjson_library PROPERTIES
6 | PUBLIC_HEADER cJSON.h
7 | VERSION ${PROJECT_VERSION}
8 | SOVERSION 1
9 | OUTPUT_NAME "cjson"
10 | XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "Hex_Identity_ID_Goes_Here"
11 | )
12 |
--------------------------------------------------------------------------------
/pkgs/hooks/.pubignore:
--------------------------------------------------------------------------------
1 | # Please keep consistent with .gitignore.
2 |
3 | # https://dart.dev/guides/libraries/private-files
4 | # Created by `dart pub`
5 | .dart_tool/
6 |
7 | # Avoid committing pubspec.lock for library packages; see
8 | # https://dart.dev/guides/libraries/private-files#pubspeclock.
9 | pubspec.lock
10 |
11 | coverage/
12 |
13 | # Additional pub ignores
14 | doc/
15 | example/*/*
16 | test_data/
17 | test/
18 | tool/
19 |
20 |
--------------------------------------------------------------------------------
/pkgs/hooks/doc/README.md:
--------------------------------------------------------------------------------
1 | # `package:hooks` Documentation
2 |
3 | This directory contains detailed documentation for the `package:hooks` API.
4 |
5 | ## Available Documentation
6 |
7 | * **[Debugging](./debugging.md)**: Learn how to debug your build hooks by inspecting intermediate files and running hooks with a debugger.
8 |
9 | * **[Schema](./schema/README.md)**: Explore the JSON schema for the configuration files used by build hooks.
10 |
--------------------------------------------------------------------------------
/pkgs/hooks/doc/schema/hook/build_output.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:hooks party:hook BuildOutput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/BuildOutput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/hooks/example/link/app_with_asset_treeshaking/lib/app_with_asset_treeshaking.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'package:package_with_assets/package_with_assets.dart';
6 |
7 | String callOther() {
8 | return someMethod();
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/dev_dependency_with_hook/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: dev_dependency_with_hook
2 | description: Has a dev dependency with hook
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies: {}
13 |
14 | dev_dependencies:
15 | ffigen: ^20.0.0-dev.1
16 | lints: ^6.0.0
17 | native_add:
18 | path: ../native_add/
19 | test: ^1.25.15
20 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/pdfbox_plugin/dart_example/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: pdf_info
2 | description: Dart standalone example using PDFBox bindings generated by JNIgen.
3 | version: 1.0.0
4 | publish_to: none
5 |
6 | environment:
7 | sdk: '>=3.3.0 <4.0.0'
8 |
9 | dependencies:
10 | path: ^1.8.0
11 | jni:
12 | path: ../../../../jni/
13 | pdfbox_plugin:
14 | path: ../
15 |
16 | dev_dependencies:
17 | lints: ^6.0.0
18 | test: ^1.16.0
19 |
--------------------------------------------------------------------------------
/pkgs/native_toolchain_c/test/cbuilder/testfiles/includes/include/includes.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #if _WIN32
6 | #define FFI_EXPORT __declspec(dllexport)
7 | #else
8 | #define FFI_EXPORT
9 | #endif
10 |
11 | FFI_EXPORT int x = 42;
12 |
13 |
--------------------------------------------------------------------------------
/pkgs/objective_c/example/flutter_app/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: flutter_app
2 | description: "A new Flutter project."
3 | publish_to: 'none'
4 | version: 0.1.0
5 |
6 | environment:
7 | sdk: ^3.10.0
8 |
9 | dependencies:
10 | flutter:
11 | sdk: flutter
12 | objective_c:
13 | path: ../..
14 |
15 | dev_dependencies:
16 | flutter_test:
17 | sdk: flutter
18 | flutter_lints: ^6.0.0
19 |
20 | flutter:
21 | uses-material-design: true
22 |
--------------------------------------------------------------------------------
/pkgs/swift2objc/test/integration/async_input.swift:
--------------------------------------------------------------------------------
1 | import Foundation
2 |
3 | public class MyClass {
4 | public func voidMethod() async {}
5 | public func intMethod(y: Int) async -> MyClass { return MyClass() }
6 | public func asyncThrowsMethod(y: Int) async throws -> MyClass {
7 | return MyClass()
8 | }
9 | }
10 |
11 | public func voidFunc(x: Int, y: Int) async {}
12 | public func intFunc() async -> MyClass { return MyClass() }
13 |
--------------------------------------------------------------------------------
/pkgs/code_assets/.pubignore:
--------------------------------------------------------------------------------
1 | # Please keep consistent with .gitignore.
2 |
3 | # https://dart.dev/guides/libraries/private-files
4 | # Created by `dart pub`
5 | .dart_tool/
6 |
7 | # Avoid committing pubspec.lock for library packages; see
8 | # https://dart.dev/guides/libraries/private-files#pubspeclock.
9 | pubspec.lock
10 |
11 | coverage/
12 |
13 | # Additional pub ignores
14 | doc/
15 | example/*/*
16 | test_data/
17 | test/
18 | tool/
19 |
20 |
--------------------------------------------------------------------------------
/pkgs/code_assets/doc/schema/hook/build_input.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:code_assets party:hook BuildInput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/BuildInput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/code_assets/doc/schema/hook/link_input.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:code_assets party:hook LinkInput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/LinkInput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/code_assets/doc/schema/hook/link_output.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:code_assets party:hook LinkOutput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/LinkOutput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/code_assets/doc/schema/sdk/build_input.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:code_assets party:sdk BuildInput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/BuildInput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/code_assets/doc/schema/sdk/link_output.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:code_assets party:sdk LinkOutput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/LinkOutput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/data_assets/.pubignore:
--------------------------------------------------------------------------------
1 | # Please keep consistent with .gitignore.
2 |
3 | # https://dart.dev/guides/libraries/private-files
4 | # Created by `dart pub`
5 | .dart_tool/
6 |
7 | # Avoid committing pubspec.lock for library packages; see
8 | # https://dart.dev/guides/libraries/private-files#pubspeclock.
9 | pubspec.lock
10 |
11 | coverage/
12 |
13 | # Additional pub ignores
14 | doc/
15 | example/*/*
16 | test_data/
17 | test/
18 | tool/
19 |
20 |
--------------------------------------------------------------------------------
/pkgs/data_assets/doc/schema/hook/build_input.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:data_assets party:hook BuildInput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/BuildInput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/data_assets/doc/schema/hook/link_input.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:data_assets party:hook LinkInput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/LinkInput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/data_assets/doc/schema/hook/link_output.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:data_assets party:hook LinkOutput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/LinkOutput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/data_assets/doc/schema/sdk/build_input.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:data_assets party:sdk BuildInput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/BuildInput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/data_assets/doc/schema/sdk/link_output.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:data_assets party:sdk LinkOutput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/LinkOutput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/ffigen/test/native_objc_test/forward_decl_test.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #import
6 |
7 | @class ForwardDeclaredClass;
8 |
9 | @interface OtherClass : NSObject
10 | + (ForwardDeclaredClass*) getTheThing;
11 | @end
12 |
--------------------------------------------------------------------------------
/pkgs/hooks/example/build/local_asset/README.md:
--------------------------------------------------------------------------------
1 | An example of a library bundling all files in a directory as data assets.
2 |
3 | ## Usage
4 |
5 | Data assets are not yet consumable in Dart and Flutter.
6 | This package is for illustration purposes only.
7 |
8 | ## Code organization
9 |
10 | A typical layout of a package with data assets:
11 |
12 | * `assets/` contains data assets.
13 | * `hook/build.dart` reports all these files as data assets.
14 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/.pubignore:
--------------------------------------------------------------------------------
1 | # Please keep consistent with .gitignore.
2 |
3 | # https://dart.dev/guides/libraries/private-files
4 | # Created by `dart pub`
5 | .dart_tool/
6 |
7 | # Avoid committing pubspec.lock for library packages; see
8 | # https://dart.dev/guides/libraries/private-files#pubspeclock.
9 | pubspec.lock
10 |
11 | coverage/
12 |
13 | # Additional pub ignores
14 | doc/
15 | example/*/*
16 | test_data/
17 | test/
18 | tool/
19 |
20 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/add_asset_link/bin/add_asset_link.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'package:add_asset_link/add_asset_link.dart';
6 |
7 | void main(List arguments) {
8 | print('Hello world: ${MyMath.add(3, 4)}!');
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/depend_on_fail_build_app/bin/depend_on_fail_build_app.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'package:depend_on_fail_build/depend_on_fail_build.dart';
6 |
7 | void main() {
8 | invokeDependOnFailBuildCode();
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/jni/example/macos/Runner/DebugProfile.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 | com.apple.security.cs.allow-jit
8 |
9 | com.apple.security.network.server
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/pkgs/jnigen/android_test_runner/android/build.gradle:
--------------------------------------------------------------------------------
1 | allprojects {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | }
6 | }
7 |
8 | rootProject.buildDir = '../build'
9 | subprojects {
10 | project.buildDir = "${rootProject.buildDir}/${project.name}"
11 | }
12 | subprojects {
13 | project.evaluationDependsOn(':app')
14 | }
15 |
16 | tasks.register("clean", Delete) {
17 | delete rootProject.buildDir
18 | }
19 |
--------------------------------------------------------------------------------
/pkgs/jnigen/java/src/main/java/com/github/dart_lang/jnigen/apisummarizer/elements/Package.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | package com.github.dart_lang.jnigen.apisummarizer.elements;
6 |
7 | public class Package {
8 | public String name;
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/jnigen/test/simple_package_test/java/com/github/dart_lang/jnigen/inheritance/SpecificDerivedClass.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | package com.github.dart_lang.jnigen.inheritance;
6 |
7 | public class SpecificDerivedClass extends BaseClass {}
8 |
--------------------------------------------------------------------------------
/pkgs/code_assets/doc/schema/hook/build_output.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:code_assets party:hook BuildOutput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/BuildOutput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/code_assets/doc/schema/sdk/build_output.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:code_assets party:sdk BuildOutput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/BuildOutput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/data_assets/doc/schema/hook/build_output.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:data_assets party:hook BuildOutput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/BuildOutput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/data_assets/doc/schema/sdk/build_output.generated.schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json-schema.org/draft-07/schema#",
3 | "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.",
4 | "title": "package:data_assets party:sdk BuildOutput",
5 | "allOf": [
6 | {
7 | "$ref": "shared_definitions.generated.schema.json#/definitions/BuildOutput"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/pkgs/hooks/example/build/native_dynamic_linking/src/math.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "debug.h"
6 | #include "math.h"
7 |
8 | int32_t math_add(int32_t a, int32_t b) {
9 | debug_printf("Adding %i and %i.\n", a, b);
10 | return a + b;
11 | }
12 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/cyclic_link_package_1/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: cyclic_link_package_1
2 | description: Part of two packages with native assets that have a cycle.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | cyclic_link_package_2:
14 | path: ../cyclic_link_package_2
15 | hooks: any
16 |
17 | dev_dependencies:
18 | lints: ^6.0.0
19 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/cyclic_link_package_2/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: cyclic_link_package_2
2 | description: Part of two packages with native assets that have a cycle.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | cyclic_link_package_1:
14 | path: ../cyclic_link_package_1
15 | hooks: any
16 |
17 | dev_dependencies:
18 | lints: ^6.0.0
19 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/drop_dylib_link/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: drop_dylib_link
2 | description: Generate two dylibs, remove one in linking.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | code_assets: any
14 | hooks: any
15 | logging: ^1.3.0
16 | native_toolchain_c: any
17 |
18 | dev_dependencies:
19 | lints: ^6.0.0
20 | test: ^1.25.15
21 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/fail_on_os_sdk_version_linker/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: fail_on_os_sdk_version_linker
2 | description: Fails the link due to OS API levels.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | code_assets: any
14 | hooks: any
15 |
16 | dev_dependencies:
17 | ffigen: ^20.0.0-dev.1
18 | lints: ^6.0.0
19 | test: ^1.25.15
20 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/treeshaking_native_libs/bin/treeshaking_native_libs.dart:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | import 'package:treeshaking_native_libs/treeshaking_native_libs.dart';
6 |
7 | void main(List args) {
8 | print(add(5, 3));
9 | }
10 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/in_app_java/android/build.gradle:
--------------------------------------------------------------------------------
1 | allprojects {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | }
6 | }
7 |
8 | rootProject.buildDir = '../build'
9 | subprojects {
10 | project.buildDir = "${rootProject.buildDir}/${project.name}"
11 | }
12 |
13 | subprojects {
14 | project.evaluationDependsOn(':app')
15 | }
16 |
17 | tasks.register("clean", Delete) {
18 | delete rootProject.buildDir
19 | }
20 |
--------------------------------------------------------------------------------
/pkgs/record_use/test_data/drop_dylib_recording/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: drop_dylib_recording
2 | description: Generate two dylibs, remove one in linking based on recorded usage.
3 | version: 1.0.0
4 |
5 | publish_to: none
6 |
7 | environment:
8 | sdk: '>=3.9.0 <4.0.0'
9 |
10 | resolution: workspace
11 |
12 | dependencies:
13 | code_assets: any
14 | hooks: any
15 | logging: ^1.1.1
16 | meta: any
17 | native_toolchain_c: any
18 | record_use: any
19 |
--------------------------------------------------------------------------------
/pkgs/swift2objc/test/integration/classes_and_methods_input.swift:
--------------------------------------------------------------------------------
1 | import Foundation
2 |
3 | public class MyClass {
4 | public func myMethod(label1 param1: Int, param2: MyOtherClass, _ param3: Int) -> MyOtherClass {
5 | return MyOtherClass()
6 | }
7 |
8 | public func myMethod2() -> Void {
9 | 1 + 1
10 | }
11 |
12 | public func myMethod3() {
13 | 1 + 1
14 | }
15 | }
16 |
17 | public class MyOtherClass {}
18 |
--------------------------------------------------------------------------------
/pkgs/ffigen/third_party/sqlite/license.txt:
--------------------------------------------------------------------------------
1 | 2001-09-15
2 |
3 | The author disclaims copyright to this source code. In place of
4 | a legal notice, here is a blessing:
5 |
6 | May you do good and not evil.
7 | May you find forgiveness for yourself and forgive others.
8 | May you share freely, never taking more than you give.
9 |
10 | Files generated from sqlite source code are
11 | - test/large_integration_tests/_expected_sqlite_bindings.dart
12 |
--------------------------------------------------------------------------------
/pkgs/hooks/example/build/native_dynamic_linking/src/debug.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #if _WIN32
6 | #define MYLIB_EXPORT __declspec(dllexport)
7 | #else
8 | #define MYLIB_EXPORT
9 | #endif
10 |
11 | MYLIB_EXPORT int debug_printf(const char * format, ...);
12 |
--------------------------------------------------------------------------------
/pkgs/hooks/example/link/app_with_asset_treeshaking/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: app_with_asset_treeshaking
2 | description: A sample command-line application.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | logging: ^1.3.0
14 | package_with_assets:
15 | path: ../package_with_assets/
16 |
17 | dev_dependencies:
18 | lints: ^6.0.0
19 | test: ^1.25.15
20 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/add_asset_link/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: add_asset_link
2 | description: Add a dylib in the link step.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | code_assets: any
14 | hooks: any
15 | logging: ^1.3.0
16 | meta: ^1.16.0
17 | native_toolchain_c: any
18 |
19 | dev_dependencies:
20 | lints: ^6.0.0
21 | test: ^1.25.15
22 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/depend_on_fail_build/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: depend_on_fail_build
2 | description: Has a dependency that fails to build.
3 | version: 0.1.0
4 |
5 | publish_to: none
6 |
7 | resolution: workspace
8 |
9 | environment:
10 | sdk: '>=3.9.0 <4.0.0'
11 |
12 | dependencies:
13 | fail_build:
14 | path: ../fail_build/
15 | hooks: any
16 |
17 | dev_dependencies:
18 | ffigen: ^20.0.0-dev.1
19 | lints: ^6.0.0
20 | test: ^1.25.15
21 |
--------------------------------------------------------------------------------
/pkgs/hooks_runner/test_data/native_dynamic_linking/src/math.c:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2 | // for details. All rights reserved. Use of this source code is governed by a
3 | // BSD-style license that can be found in the LICENSE file.
4 |
5 | #include "debug.h"
6 | #include "math.h"
7 |
8 | int32_t math_add(int32_t a, int32_t b) {
9 | debug_printf("Adding %i and %i.\n", a, b);
10 | return a + b;
11 | }
12 |
--------------------------------------------------------------------------------
/pkgs/jnigen/example/kotlin_plugin/example/android/build.gradle:
--------------------------------------------------------------------------------
1 | allprojects {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | }
6 | }
7 |
8 | rootProject.buildDir = '../build'
9 | subprojects {
10 | project.buildDir = "${rootProject.buildDir}/${project.name}"
11 | }
12 | subprojects {
13 | project.evaluationDependsOn(':app')
14 | }
15 |
16 | tasks.register("clean", Delete) {
17 | delete rootProject.buildDir
18 | }
19 |
--------------------------------------------------------------------------------