Added sad path test, implemented custom styling, added CVC error handling and Stripe request for card token retreival
This commit is contained in:
parent
f9fba42a79
commit
a356775a39
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -28,3 +28,6 @@ migrate_working_dir/
|
|||
.dart_tool/
|
||||
.packages
|
||||
build/
|
||||
|
||||
# Example flutter app
|
||||
example/
|
||||
|
|
8
example/.dart_tool/dartpad/web_plugin_registrant.dart
Normal file
8
example/.dart_tool/dartpad/web_plugin_registrant.dart
Normal file
|
@ -0,0 +1,8 @@
|
|||
// Flutter web plugin registrant file.
|
||||
//
|
||||
// Generated file. Do not edit.
|
||||
//
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
|
||||
void registerPlugins() {}
|
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
{"inputs":["/media/Source/flutter/stripe_native_card_field/example/.dart_tool/flutter_build/1613d261e1f8ce3a949e8657f08294f8/app.dill","/media/Source/flutter/stripe_native_card_field/example/pubspec.yaml","/home/nate/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.6/assets/CupertinoIcons.ttf","/home/nate/Tooling/flutter/bin/cache/artifacts/material_fonts/MaterialIcons-Regular.otf","/home/nate/Tooling/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag","/home/nate/.pub-cache/hosted/pub.dev/args-2.4.2/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/async-2.11.0/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/characters-1.3.0/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/clock-1.1.1/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/collection-1.17.2/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.6/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/fake_async-1.3.1/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/flutter_lints-2.0.3/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/flutter_svg-2.0.9/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/http-1.1.0/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/http_parser-4.0.2/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/lints-2.1.1/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/matcher-0.12.16/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/material_color_utilities-0.5.0/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/meta-1.9.1/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/path-1.8.3/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/path_parsing-1.0.1/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/petitparser-5.4.0/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/source_span-1.10.0/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/stack_trace-1.11.0/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/stream_channel-2.1.1/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/test_api-0.6.0/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/typed_data-1.3.2/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/vector_graphics-1.1.9+1/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/vector_graphics_codec-1.1.9+1/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.9+1/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/vector_math-2.1.4/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/web-0.1.4-beta/LICENSE","/home/nate/.pub-cache/hosted/pub.dev/xml-6.3.0/LICENSE","/home/nate/Tooling/flutter/bin/cache/pkg/sky_engine/LICENSE","/home/nate/Tooling/flutter/packages/flutter/LICENSE","/media/Source/flutter/stripe_native_card_field/LICENSE"],"outputs":["/media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/kernel_blob.bin","/media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf","/media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/fonts/MaterialIcons-Regular.otf","/media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/shaders/ink_sparkle.frag","/media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/AssetManifest.json","/media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/AssetManifest.bin","/media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/FontManifest.json","/media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/NOTICES.Z","/media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/version.json"]}
|
|
@ -0,0 +1 @@
|
|||
/media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf /media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/fonts/MaterialIcons-Regular.otf /media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/shaders/ink_sparkle.frag /media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/AssetManifest.json /media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/AssetManifest.bin /media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/FontManifest.json /media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/NOTICES.Z /media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/version.json: /media/Source/flutter/stripe_native_card_field/example/pubspec.yaml /home/nate/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.6/assets/CupertinoIcons.ttf /home/nate/Tooling/flutter/bin/cache/artifacts/material_fonts/MaterialIcons-Regular.otf /home/nate/Tooling/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag /home/nate/.pub-cache/hosted/pub.dev/args-2.4.2/LICENSE /home/nate/.pub-cache/hosted/pub.dev/async-2.11.0/LICENSE /home/nate/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/LICENSE /home/nate/.pub-cache/hosted/pub.dev/characters-1.3.0/LICENSE /home/nate/.pub-cache/hosted/pub.dev/clock-1.1.1/LICENSE /home/nate/.pub-cache/hosted/pub.dev/collection-1.17.2/LICENSE /home/nate/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.6/LICENSE /home/nate/.pub-cache/hosted/pub.dev/fake_async-1.3.1/LICENSE /home/nate/.pub-cache/hosted/pub.dev/flutter_lints-2.0.3/LICENSE /home/nate/.pub-cache/hosted/pub.dev/flutter_svg-2.0.9/LICENSE /home/nate/.pub-cache/hosted/pub.dev/http-1.1.0/LICENSE /home/nate/.pub-cache/hosted/pub.dev/http_parser-4.0.2/LICENSE /home/nate/.pub-cache/hosted/pub.dev/lints-2.1.1/LICENSE /home/nate/.pub-cache/hosted/pub.dev/matcher-0.12.16/LICENSE /home/nate/.pub-cache/hosted/pub.dev/material_color_utilities-0.5.0/LICENSE /home/nate/.pub-cache/hosted/pub.dev/meta-1.9.1/LICENSE /home/nate/.pub-cache/hosted/pub.dev/path-1.8.3/LICENSE /home/nate/.pub-cache/hosted/pub.dev/path_parsing-1.0.1/LICENSE /home/nate/.pub-cache/hosted/pub.dev/petitparser-5.4.0/LICENSE /home/nate/.pub-cache/hosted/pub.dev/source_span-1.10.0/LICENSE /home/nate/.pub-cache/hosted/pub.dev/stack_trace-1.11.0/LICENSE /home/nate/.pub-cache/hosted/pub.dev/stream_channel-2.1.1/LICENSE /home/nate/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/LICENSE /home/nate/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/LICENSE /home/nate/.pub-cache/hosted/pub.dev/test_api-0.6.0/LICENSE /home/nate/.pub-cache/hosted/pub.dev/typed_data-1.3.2/LICENSE /home/nate/.pub-cache/hosted/pub.dev/vector_graphics-1.1.9+1/LICENSE /home/nate/.pub-cache/hosted/pub.dev/vector_graphics_codec-1.1.9+1/LICENSE /home/nate/.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.9+1/LICENSE /home/nate/.pub-cache/hosted/pub.dev/vector_math-2.1.4/LICENSE /home/nate/.pub-cache/hosted/pub.dev/web-0.1.4-beta/LICENSE /home/nate/.pub-cache/hosted/pub.dev/xml-6.3.0/LICENSE /home/nate/Tooling/flutter/bin/cache/pkg/sky_engine/LICENSE /home/nate/Tooling/flutter/packages/flutter/LICENSE /media/Source/flutter/stripe_native_card_field/LICENSE
|
|
@ -0,0 +1 @@
|
|||
{"inputs":["/media/Source/flutter/stripe_native_card_field/example/.dart_tool/package_config_subset"],"outputs":[]}
|
|
@ -0,0 +1 @@
|
|||
{"inputs":[],"outputs":[]}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
["/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/libflutter_linux_gtk.so","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/icudtl.dat","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_event_channel.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_response.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_texture.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_texture_gl.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_engine.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_view.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_call.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_value.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/flutter_linux.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_pixel_buffer_texture.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h","/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_texture_registrar.h","/media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/kernel_blob.bin","/media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf","/media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/fonts/MaterialIcons-Regular.otf","/media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/shaders/ink_sparkle.frag","/media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/AssetManifest.json","/media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/AssetManifest.bin","/media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/FontManifest.json","/media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/NOTICES.Z","/media/Source/flutter/stripe_native_card_field/example/build/flutter_assets/version.json"]
|
File diff suppressed because one or more lines are too long
230
example/.dart_tool/package_config.json
Normal file
230
example/.dart_tool/package_config.json
Normal file
|
@ -0,0 +1,230 @@
|
|||
{
|
||||
"configVersion": 2,
|
||||
"packages": [
|
||||
{
|
||||
"name": "args",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/args-2.4.2",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.19"
|
||||
},
|
||||
{
|
||||
"name": "async",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/async-2.11.0",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.18"
|
||||
},
|
||||
{
|
||||
"name": "boolean_selector",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.17"
|
||||
},
|
||||
{
|
||||
"name": "characters",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/characters-1.3.0",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.12"
|
||||
},
|
||||
{
|
||||
"name": "clock",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/clock-1.1.1",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.12"
|
||||
},
|
||||
{
|
||||
"name": "collection",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/collection-1.17.2",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.18"
|
||||
},
|
||||
{
|
||||
"name": "cupertino_icons",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.6",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.19"
|
||||
},
|
||||
{
|
||||
"name": "fake_async",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/fake_async-1.3.1",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.12"
|
||||
},
|
||||
{
|
||||
"name": "flutter",
|
||||
"rootUri": "file:///home/nate/Tooling/flutter/packages/flutter",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "3.0"
|
||||
},
|
||||
{
|
||||
"name": "flutter_lints",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/flutter_lints-2.0.3",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.19"
|
||||
},
|
||||
{
|
||||
"name": "flutter_svg",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/flutter_svg-2.0.9",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.19"
|
||||
},
|
||||
{
|
||||
"name": "flutter_test",
|
||||
"rootUri": "file:///home/nate/Tooling/flutter/packages/flutter_test",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "3.0"
|
||||
},
|
||||
{
|
||||
"name": "http",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/http-1.1.0",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "3.0"
|
||||
},
|
||||
{
|
||||
"name": "http_parser",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/http_parser-4.0.2",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.12"
|
||||
},
|
||||
{
|
||||
"name": "lints",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/lints-2.1.1",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "3.0"
|
||||
},
|
||||
{
|
||||
"name": "matcher",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/matcher-0.12.16",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.18"
|
||||
},
|
||||
{
|
||||
"name": "material_color_utilities",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/material_color_utilities-0.5.0",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.17"
|
||||
},
|
||||
{
|
||||
"name": "meta",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/meta-1.9.1",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.12"
|
||||
},
|
||||
{
|
||||
"name": "path",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/path-1.8.3",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.12"
|
||||
},
|
||||
{
|
||||
"name": "path_parsing",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/path_parsing-1.0.1",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.12"
|
||||
},
|
||||
{
|
||||
"name": "petitparser",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/petitparser-5.4.0",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.19"
|
||||
},
|
||||
{
|
||||
"name": "sky_engine",
|
||||
"rootUri": "file:///home/nate/Tooling/flutter/bin/cache/pkg/sky_engine",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "3.0"
|
||||
},
|
||||
{
|
||||
"name": "source_span",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/source_span-1.10.0",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.18"
|
||||
},
|
||||
{
|
||||
"name": "stack_trace",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/stack_trace-1.11.0",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.18"
|
||||
},
|
||||
{
|
||||
"name": "stream_channel",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/stream_channel-2.1.1",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.14"
|
||||
},
|
||||
{
|
||||
"name": "string_scanner",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/string_scanner-1.2.0",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.18"
|
||||
},
|
||||
{
|
||||
"name": "stripe_native_card_field",
|
||||
"rootUri": "../../",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "3.1"
|
||||
},
|
||||
{
|
||||
"name": "term_glyph",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/term_glyph-1.2.1",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.12"
|
||||
},
|
||||
{
|
||||
"name": "test_api",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/test_api-0.6.0",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.18"
|
||||
},
|
||||
{
|
||||
"name": "typed_data",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/typed_data-1.3.2",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.17"
|
||||
},
|
||||
{
|
||||
"name": "vector_graphics",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/vector_graphics-1.1.9+1",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.17"
|
||||
},
|
||||
{
|
||||
"name": "vector_graphics_codec",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/vector_graphics_codec-1.1.9+1",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.17"
|
||||
},
|
||||
{
|
||||
"name": "vector_graphics_compiler",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.9+1",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.19"
|
||||
},
|
||||
{
|
||||
"name": "vector_math",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/vector_math-2.1.4",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.14"
|
||||
},
|
||||
{
|
||||
"name": "web",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/web-0.1.4-beta",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "3.1"
|
||||
},
|
||||
{
|
||||
"name": "xml",
|
||||
"rootUri": "file:///home/nate/.pub-cache/hosted/pub.dev/xml-6.3.0",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.19"
|
||||
},
|
||||
{
|
||||
"name": "example",
|
||||
"rootUri": "../",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "3.1"
|
||||
}
|
||||
],
|
||||
"generated": "2023-11-17T19:47:26.821525Z",
|
||||
"generator": "pub",
|
||||
"generatorVersion": "3.1.3"
|
||||
}
|
149
example/.dart_tool/package_config_subset
Normal file
149
example/.dart_tool/package_config_subset
Normal file
|
@ -0,0 +1,149 @@
|
|||
args
|
||||
2.19
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/args-2.4.2/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/args-2.4.2/lib/
|
||||
async
|
||||
2.18
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/async-2.11.0/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/async-2.11.0/lib/
|
||||
boolean_selector
|
||||
2.17
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/boolean_selector-2.1.1/lib/
|
||||
characters
|
||||
2.12
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/characters-1.3.0/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/characters-1.3.0/lib/
|
||||
clock
|
||||
2.12
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/clock-1.1.1/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/clock-1.1.1/lib/
|
||||
collection
|
||||
2.18
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/collection-1.17.2/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/collection-1.17.2/lib/
|
||||
cupertino_icons
|
||||
2.19
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.6/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.6/lib/
|
||||
fake_async
|
||||
2.12
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/fake_async-1.3.1/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/fake_async-1.3.1/lib/
|
||||
flutter_lints
|
||||
2.19
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/flutter_lints-2.0.3/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/flutter_lints-2.0.3/lib/
|
||||
flutter_svg
|
||||
2.19
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/flutter_svg-2.0.9/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/flutter_svg-2.0.9/lib/
|
||||
http
|
||||
3.0
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/http-1.1.0/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/http-1.1.0/lib/
|
||||
http_parser
|
||||
2.12
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/http_parser-4.0.2/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/http_parser-4.0.2/lib/
|
||||
lints
|
||||
3.0
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/lints-2.1.1/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/lints-2.1.1/lib/
|
||||
matcher
|
||||
2.18
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/matcher-0.12.16/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/matcher-0.12.16/lib/
|
||||
material_color_utilities
|
||||
2.17
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/material_color_utilities-0.5.0/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/material_color_utilities-0.5.0/lib/
|
||||
meta
|
||||
2.12
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/meta-1.9.1/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/meta-1.9.1/lib/
|
||||
path
|
||||
2.12
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/path-1.8.3/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/path-1.8.3/lib/
|
||||
path_parsing
|
||||
2.12
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/path_parsing-1.0.1/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/path_parsing-1.0.1/lib/
|
||||
petitparser
|
||||
2.19
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/petitparser-5.4.0/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/petitparser-5.4.0/lib/
|
||||
source_span
|
||||
2.18
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/source_span-1.10.0/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/source_span-1.10.0/lib/
|
||||
stack_trace
|
||||
2.18
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/stack_trace-1.11.0/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/stack_trace-1.11.0/lib/
|
||||
stream_channel
|
||||
2.14
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/stream_channel-2.1.1/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/stream_channel-2.1.1/lib/
|
||||
string_scanner
|
||||
2.18
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/string_scanner-1.2.0/lib/
|
||||
term_glyph
|
||||
2.12
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/term_glyph-1.2.1/lib/
|
||||
test_api
|
||||
2.18
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/test_api-0.6.0/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/test_api-0.6.0/lib/
|
||||
typed_data
|
||||
2.17
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/typed_data-1.3.2/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/typed_data-1.3.2/lib/
|
||||
vector_graphics
|
||||
2.17
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/vector_graphics-1.1.9+1/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/vector_graphics-1.1.9+1/lib/
|
||||
vector_graphics_codec
|
||||
2.17
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/vector_graphics_codec-1.1.9+1/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/vector_graphics_codec-1.1.9+1/lib/
|
||||
vector_graphics_compiler
|
||||
2.19
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.9+1/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.9+1/lib/
|
||||
vector_math
|
||||
2.14
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/vector_math-2.1.4/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/vector_math-2.1.4/lib/
|
||||
web
|
||||
3.1
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/web-0.1.4-beta/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/web-0.1.4-beta/lib/
|
||||
xml
|
||||
2.19
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/xml-6.3.0/
|
||||
file:///home/nate/.pub-cache/hosted/pub.dev/xml-6.3.0/lib/
|
||||
sky_engine
|
||||
3.0
|
||||
file:///home/nate/Tooling/flutter/bin/cache/pkg/sky_engine/
|
||||
file:///home/nate/Tooling/flutter/bin/cache/pkg/sky_engine/lib/
|
||||
flutter
|
||||
3.0
|
||||
file:///home/nate/Tooling/flutter/packages/flutter/
|
||||
file:///home/nate/Tooling/flutter/packages/flutter/lib/
|
||||
flutter_test
|
||||
3.0
|
||||
file:///home/nate/Tooling/flutter/packages/flutter_test/
|
||||
file:///home/nate/Tooling/flutter/packages/flutter_test/lib/
|
||||
stripe_native_card_field
|
||||
3.1
|
||||
file:///media/Source/flutter/stripe_native_card_field/
|
||||
file:///media/Source/flutter/stripe_native_card_field/lib/
|
||||
example
|
||||
3.1
|
||||
file:///media/Source/flutter/stripe_native_card_field/example/
|
||||
file:///media/Source/flutter/stripe_native_card_field/example/lib/
|
||||
2
|
1
example/.dart_tool/version
Normal file
1
example/.dart_tool/version
Normal file
|
@ -0,0 +1 @@
|
|||
3.13.7
|
19
example/.idea/libraries/Dart_SDK.xml
Normal file
19
example/.idea/libraries/Dart_SDK.xml
Normal file
|
@ -0,0 +1,19 @@
|
|||
<component name="libraryTable">
|
||||
<library name="Dart SDK">
|
||||
<CLASSES>
|
||||
<root url="file:///home/nate/Tooling/flutter/bin/cache/dart-sdk/lib/async" />
|
||||
<root url="file:///home/nate/Tooling/flutter/bin/cache/dart-sdk/lib/collection" />
|
||||
<root url="file:///home/nate/Tooling/flutter/bin/cache/dart-sdk/lib/convert" />
|
||||
<root url="file:///home/nate/Tooling/flutter/bin/cache/dart-sdk/lib/core" />
|
||||
<root url="file:///home/nate/Tooling/flutter/bin/cache/dart-sdk/lib/developer" />
|
||||
<root url="file:///home/nate/Tooling/flutter/bin/cache/dart-sdk/lib/html" />
|
||||
<root url="file:///home/nate/Tooling/flutter/bin/cache/dart-sdk/lib/io" />
|
||||
<root url="file:///home/nate/Tooling/flutter/bin/cache/dart-sdk/lib/isolate" />
|
||||
<root url="file:///home/nate/Tooling/flutter/bin/cache/dart-sdk/lib/math" />
|
||||
<root url="file:///home/nate/Tooling/flutter/bin/cache/dart-sdk/lib/mirrors" />
|
||||
<root url="file:///home/nate/Tooling/flutter/bin/cache/dart-sdk/lib/typed_data" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
15
example/.idea/libraries/KotlinJavaRuntime.xml
Normal file
15
example/.idea/libraries/KotlinJavaRuntime.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<component name="libraryTable">
|
||||
<library name="KotlinJavaRuntime">
|
||||
<CLASSES>
|
||||
<root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-stdlib.jar!/" />
|
||||
<root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-reflect.jar!/" />
|
||||
<root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-test.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES>
|
||||
<root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-stdlib-sources.jar!/" />
|
||||
<root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-reflect-sources.jar!/" />
|
||||
<root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-test-sources.jar!/" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</component>
|
9
example/.idea/modules.xml
Normal file
9
example/.idea/modules.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/example.iml" filepath="$PROJECT_DIR$/example.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/android/example_android.iml" filepath="$PROJECT_DIR$/android/example_android.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
6
example/.idea/runConfigurations/main_dart.xml
Normal file
6
example/.idea/runConfigurations/main_dart.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="main.dart" type="FlutterRunConfigurationType" factoryName="Flutter">
|
||||
<option name="filePath" value="$PROJECT_DIR$/lib/main.dart" />
|
||||
<method />
|
||||
</configuration>
|
||||
</component>
|
36
example/.idea/workspace.xml
Normal file
36
example/.idea/workspace.xml
Normal file
|
@ -0,0 +1,36 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="FileEditorManager">
|
||||
<leaf>
|
||||
<file leaf-file-name="main.dart" pinned="false" current-in-tab="true">
|
||||
<entry file="file://$PROJECT_DIR$/lib/main.dart">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="0">
|
||||
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
</leaf>
|
||||
</component>
|
||||
<component name="ToolWindowManager">
|
||||
<editor active="true" />
|
||||
<layout>
|
||||
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
||||
</layout>
|
||||
</component>
|
||||
<component name="ProjectView">
|
||||
<navigator currentView="ProjectPane" proportions="" version="1">
|
||||
</navigator>
|
||||
<panes>
|
||||
<pane id="ProjectPane">
|
||||
<option name="show-excluded-files" value="false" />
|
||||
</pane>
|
||||
</panes>
|
||||
</component>
|
||||
<component name="PropertiesComponent">
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
||||
<property name="dart.analysis.tool.window.force.activate" value="true" />
|
||||
<property name="show.migrate.to.gradle.popup" value="false" />
|
||||
</component>
|
||||
</project>
|
|
@ -0,0 +1,19 @@
|
|||
package io.flutter.plugins;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
import androidx.annotation.NonNull;
|
||||
import io.flutter.Log;
|
||||
|
||||
import io.flutter.embedding.engine.FlutterEngine;
|
||||
|
||||
/**
|
||||
* Generated file. Do not edit.
|
||||
* This file is generated by the Flutter tool based on the
|
||||
* plugins that support the Android platform.
|
||||
*/
|
||||
@Keep
|
||||
public final class GeneratedPluginRegistrant {
|
||||
private static final String TAG = "GeneratedPluginRegistrant";
|
||||
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
|
||||
}
|
||||
}
|
29
example/android/example_android.iml
Normal file
29
example/android/example_android.iml
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="FacetManager">
|
||||
<facet type="android" name="Android">
|
||||
<configuration>
|
||||
<option name="ALLOW_USER_CONFIGURATION" value="false" />
|
||||
<option name="GEN_FOLDER_RELATIVE_PATH_APT" value="/gen" />
|
||||
<option name="GEN_FOLDER_RELATIVE_PATH_AIDL" value="/gen" />
|
||||
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/app/src/main/AndroidManifest.xml" />
|
||||
<option name="RES_FOLDER_RELATIVE_PATH" value="/app/src/main/res" />
|
||||
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/app/src/main/assets" />
|
||||
<option name="LIBS_FOLDER_RELATIVE_PATH" value="/app/src/main/libs" />
|
||||
<option name="PROGUARD_LOGS_FOLDER_RELATIVE_PATH" value="/app/src/main/proguard_logs" />
|
||||
</configuration>
|
||||
</facet>
|
||||
</component>
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/app/src/main/java" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/app/src/main/kotlin" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" generated="true" />
|
||||
</content>
|
||||
<orderEntry type="jdk" jdkName="Android API 29 Platform" jdkType="Android SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="Flutter for Android" level="project" />
|
||||
<orderEntry type="library" name="KotlinJavaRuntime" level="project" />
|
||||
</component>
|
||||
</module>
|
BIN
example/android/gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
BIN
example/android/gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
Binary file not shown.
160
example/android/gradlew
vendored
Executable file
160
example/android/gradlew
vendored
Executable file
|
@ -0,0 +1,160 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
##############################################################################
|
||||
##
|
||||
## Gradle start up script for UN*X
|
||||
##
|
||||
##############################################################################
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS=""
|
||||
|
||||
APP_NAME="Gradle"
|
||||
APP_BASE_NAME=`basename "$0"`
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD="maximum"
|
||||
|
||||
warn ( ) {
|
||||
echo "$*"
|
||||
}
|
||||
|
||||
die ( ) {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
}
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
case "`uname`" in
|
||||
CYGWIN* )
|
||||
cygwin=true
|
||||
;;
|
||||
Darwin* )
|
||||
darwin=true
|
||||
;;
|
||||
MINGW* )
|
||||
msys=true
|
||||
;;
|
||||
esac
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
# Resolve links: $0 may be a link
|
||||
PRG="$0"
|
||||
# Need this for relative symlinks.
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`"/$link"
|
||||
fi
|
||||
done
|
||||
SAVED="`pwd`"
|
||||
cd "`dirname \"$PRG\"`/" >/dev/null
|
||||
APP_HOME="`pwd -P`"
|
||||
cd "$SAVED" >/dev/null
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||
else
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
fi
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD="java"
|
||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
|
||||
MAX_FD_LIMIT=`ulimit -H -n`
|
||||
if [ $? -eq 0 ] ; then
|
||||
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
||||
MAX_FD="$MAX_FD_LIMIT"
|
||||
fi
|
||||
ulimit -n $MAX_FD
|
||||
if [ $? -ne 0 ] ; then
|
||||
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
||||
fi
|
||||
else
|
||||
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
||||
fi
|
||||
fi
|
||||
|
||||
# For Darwin, add options to specify how the application appears in the dock
|
||||
if $darwin; then
|
||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
||||
fi
|
||||
|
||||
# For Cygwin, switch paths to Windows format before running java
|
||||
if $cygwin ; then
|
||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||
JAVACMD=`cygpath --unix "$JAVACMD"`
|
||||
|
||||
# We build the pattern for arguments to be converted via cygpath
|
||||
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
||||
SEP=""
|
||||
for dir in $ROOTDIRSRAW ; do
|
||||
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
||||
SEP="|"
|
||||
done
|
||||
OURCYGPATTERN="(^($ROOTDIRS))"
|
||||
# Add a user-defined pattern to the cygpath arguments
|
||||
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
||||
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
||||
fi
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
i=0
|
||||
for arg in "$@" ; do
|
||||
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
||||
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
||||
|
||||
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
||||
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
||||
else
|
||||
eval `echo args$i`="\"$arg\""
|
||||
fi
|
||||
i=$((i+1))
|
||||
done
|
||||
case $i in
|
||||
(0) set -- ;;
|
||||
(1) set -- "$args0" ;;
|
||||
(2) set -- "$args0" "$args1" ;;
|
||||
(3) set -- "$args0" "$args1" "$args2" ;;
|
||||
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
|
||||
function splitJvmOpts() {
|
||||
JVM_OPTS=("$@")
|
||||
}
|
||||
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
|
||||
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
|
||||
|
||||
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
|
90
example/android/gradlew.bat
vendored
Normal file
90
example/android/gradlew.bat
vendored
Normal file
|
@ -0,0 +1,90 @@
|
|||
@if "%DEBUG%" == "" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS=
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%" == "" set DIRNAME=.
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if "%ERRORLEVEL%" == "0" goto init
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto init
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:init
|
||||
@rem Get command-line arguments, handling Windowz variants
|
||||
|
||||
if not "%OS%" == "Windows_NT" goto win9xME_args
|
||||
if "%@eval[2+2]" == "4" goto 4NT_args
|
||||
|
||||
:win9xME_args
|
||||
@rem Slurp the command line arguments.
|
||||
set CMD_LINE_ARGS=
|
||||
set _SKIP=2
|
||||
|
||||
:win9xME_args_slurp
|
||||
if "x%~1" == "x" goto execute
|
||||
|
||||
set CMD_LINE_ARGS=%*
|
||||
goto execute
|
||||
|
||||
:4NT_args
|
||||
@rem Get arguments from the 4NT Shell from JP Software
|
||||
set CMD_LINE_ARGS=%$
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if "%ERRORLEVEL%"=="0" goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
||||
exit /b 1
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
2
example/android/local.properties
Normal file
2
example/android/local.properties
Normal file
|
@ -0,0 +1,2 @@
|
|||
sdk.dir=/home/nate/Android/Sdk
|
||||
flutter.sdk=/home/nate/Tooling/flutter
|
1
example/build/.last_build_id
Normal file
1
example/build/.last_build_id
Normal file
|
@ -0,0 +1 @@
|
|||
1613d261e1f8ce3a949e8657f08294f8
|
|
@ -0,0 +1 @@
|
|||
{"inputs":[],"outputs":[]}
|
|
@ -0,0 +1 @@
|
|||
{"inputs":["/media/Source/flutter/stripe_native_card_field/example/.dart_tool/package_config_subset"],"outputs":[]}
|
|
@ -0,0 +1 @@
|
|||
{"inputs":[],"outputs":[]}
|
Binary file not shown.
1
example/build/flutter_assets/AssetManifest.bin
Normal file
1
example/build/flutter_assets/AssetManifest.bin
Normal file
|
@ -0,0 +1 @@
|
|||
2packages/cupertino_icons/assets/CupertinoIcons.ttf
asset2packages/cupertino_icons/assets/CupertinoIcons.ttf
|
1
example/build/flutter_assets/AssetManifest.json
Normal file
1
example/build/flutter_assets/AssetManifest.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"packages/cupertino_icons/assets/CupertinoIcons.ttf":["packages/cupertino_icons/assets/CupertinoIcons.ttf"]}
|
1
example/build/flutter_assets/FontManifest.json
Normal file
1
example/build/flutter_assets/FontManifest.json
Normal file
|
@ -0,0 +1 @@
|
|||
[{"family":"MaterialIcons","fonts":[{"asset":"fonts/MaterialIcons-Regular.otf"}]},{"family":"packages/cupertino_icons/CupertinoIcons","fonts":[{"asset":"packages/cupertino_icons/assets/CupertinoIcons.ttf"}]}]
|
BIN
example/build/flutter_assets/NOTICES.Z
Normal file
BIN
example/build/flutter_assets/NOTICES.Z
Normal file
Binary file not shown.
BIN
example/build/flutter_assets/fonts/MaterialIcons-Regular.otf
Normal file
BIN
example/build/flutter_assets/fonts/MaterialIcons-Regular.otf
Normal file
Binary file not shown.
BIN
example/build/flutter_assets/kernel_blob.bin
Normal file
BIN
example/build/flutter_assets/kernel_blob.bin
Normal file
Binary file not shown.
Binary file not shown.
BIN
example/build/flutter_assets/shaders/ink_sparkle.frag
Normal file
BIN
example/build/flutter_assets/shaders/ink_sparkle.frag
Normal file
Binary file not shown.
1
example/build/flutter_assets/version.json
Normal file
1
example/build/flutter_assets/version.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"app_name":"example","version":"1.0.0","build_number":"1","package_name":"example"}
|
BIN
example/build/linux/x64/debug/.ninja_deps
Normal file
BIN
example/build/linux/x64/debug/.ninja_deps
Normal file
Binary file not shown.
56
example/build/linux/x64/debug/.ninja_log
Normal file
56
example/build/linux/x64/debug/.ninja_log
Normal file
|
@ -0,0 +1,56 @@
|
|||
# ninja log v5
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h 96b1c011f0e252c4
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h 96b1c011f0e252c4
|
||||
3241 3655 1700248616072426039 CMakeFiles/example.dir/flutter/generated_plugin_registrant.cc.o 3b316cde936f26f3
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h 96b1c011f0e252c4
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h 96b1c011f0e252c4
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h 96b1c011f0e252c4
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/libflutter_linux_gtk.so 96b1c011f0e252c4
|
||||
3683 3786 1700248616205759124 intermediates_do_not_run/example 2cdc5291b042f3e9
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_call.h 96b1c011f0e252c4
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h 96b1c011f0e252c4
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h 96b1c011f0e252c4
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h 96b1c011f0e252c4
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_response.h 96b1c011f0e252c4
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h 96b1c011f0e252c4
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/flutter_linux.h 96b1c011f0e252c4
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h 96b1c011f0e252c4
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_view.h 96b1c011f0e252c4
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h 96b1c011f0e252c4
|
||||
3 3240 0 flutter/_phony_ 96b1c011f0e252c4
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_value.h 96b1c011f0e252c4
|
||||
17735 18271 1699989536606736822 CMakeFiles/example.dir/main.cc.o 2fad8066ff004bf2
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h 96b1c011f0e252c4
|
||||
3786 3901 0 CMakeFiles/install.util b7fb4b9bce5f9970
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_engine.h 96b1c011f0e252c4
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h 96b1c011f0e252c4
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h 96b1c011f0e252c4
|
||||
3 3240 0 /media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/flutter/_phony_ 96b1c011f0e252c4
|
||||
3241 3683 1700248616099092656 CMakeFiles/example.dir/my_application.cc.o ce8fd988d2e01da8
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/libflutter_linux_gtk.so 96b1c011f0e252c4
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h 96b1c011f0e252c4
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h 96b1c011f0e252c4
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h 96b1c011f0e252c4
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h 96b1c011f0e252c4
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_engine.h 96b1c011f0e252c4
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h 96b1c011f0e252c4
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h 96b1c011f0e252c4
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h 96b1c011f0e252c4
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_call.h 96b1c011f0e252c4
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h 96b1c011f0e252c4
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h 96b1c011f0e252c4
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_response.h 96b1c011f0e252c4
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h 96b1c011f0e252c4
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h 96b1c011f0e252c4
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h 96b1c011f0e252c4
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h 96b1c011f0e252c4
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h 96b1c011f0e252c4
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_value.h 96b1c011f0e252c4
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_view.h 96b1c011f0e252c4
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/flutter_linux.h 96b1c011f0e252c4
|
||||
3 3122 0 flutter/_phony_ 96b1c011f0e252c4
|
||||
3 3122 0 /media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/flutter/_phony_ 96b1c011f0e252c4
|
||||
3123 3538 1700250478434577743 CMakeFiles/example.dir/flutter/generated_plugin_registrant.cc.o 3b316cde936f26f3
|
||||
3123 3561 1700250478457911054 CMakeFiles/example.dir/my_application.cc.o ce8fd988d2e01da8
|
||||
3561 3666 1700250478567910946 intermediates_do_not_run/example 2cdc5291b042f3e9
|
||||
3666 3777 0 CMakeFiles/install.util b7fb4b9bce5f9970
|
549
example/build/linux/x64/debug/CMakeCache.txt
Normal file
549
example/build/linux/x64/debug/CMakeCache.txt
Normal file
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,85 @@
|
|||
set(CMAKE_CXX_COMPILER "/usr/bin/clang++")
|
||||
set(CMAKE_CXX_COMPILER_ARG1 "")
|
||||
set(CMAKE_CXX_COMPILER_ID "Clang")
|
||||
set(CMAKE_CXX_COMPILER_VERSION "16.0.6")
|
||||
set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "")
|
||||
set(CMAKE_CXX_COMPILER_WRAPPER "")
|
||||
set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "17")
|
||||
set(CMAKE_CXX_EXTENSIONS_COMPUTED_DEFAULT "ON")
|
||||
set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17;cxx_std_20;cxx_std_23")
|
||||
set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters")
|
||||
set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates")
|
||||
set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates")
|
||||
set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17")
|
||||
set(CMAKE_CXX20_COMPILE_FEATURES "cxx_std_20")
|
||||
set(CMAKE_CXX23_COMPILE_FEATURES "cxx_std_23")
|
||||
|
||||
set(CMAKE_CXX_PLATFORM_ID "Linux")
|
||||
set(CMAKE_CXX_SIMULATE_ID "")
|
||||
set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "GNU")
|
||||
set(CMAKE_CXX_SIMULATE_VERSION "")
|
||||
|
||||
|
||||
|
||||
|
||||
set(CMAKE_AR "/usr/bin/ar")
|
||||
set(CMAKE_CXX_COMPILER_AR "CMAKE_CXX_COMPILER_AR-NOTFOUND")
|
||||
set(CMAKE_RANLIB "/usr/bin/ranlib")
|
||||
set(CMAKE_CXX_COMPILER_RANLIB "CMAKE_CXX_COMPILER_RANLIB-NOTFOUND")
|
||||
set(CMAKE_LINKER "/usr/bin/ld")
|
||||
set(CMAKE_MT "")
|
||||
set(CMAKE_TAPI "CMAKE_TAPI-NOTFOUND")
|
||||
set(CMAKE_COMPILER_IS_GNUCXX )
|
||||
set(CMAKE_CXX_COMPILER_LOADED 1)
|
||||
set(CMAKE_CXX_COMPILER_WORKS TRUE)
|
||||
set(CMAKE_CXX_ABI_COMPILED TRUE)
|
||||
|
||||
set(CMAKE_CXX_COMPILER_ENV_VAR "CXX")
|
||||
|
||||
set(CMAKE_CXX_COMPILER_ID_RUN 1)
|
||||
set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;mpp;CPP;ixx;cppm;ccm;cxxm;c++m)
|
||||
set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC)
|
||||
|
||||
foreach (lang C OBJC OBJCXX)
|
||||
if (CMAKE_${lang}_COMPILER_ID_RUN)
|
||||
foreach(extension IN LISTS CMAKE_${lang}_SOURCE_FILE_EXTENSIONS)
|
||||
list(REMOVE_ITEM CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${extension})
|
||||
endforeach()
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
set(CMAKE_CXX_LINKER_PREFERENCE 30)
|
||||
set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1)
|
||||
set(CMAKE_CXX_LINKER_DEPFILE_SUPPORTED TRUE)
|
||||
|
||||
# Save compiler ABI information.
|
||||
set(CMAKE_CXX_SIZEOF_DATA_PTR "8")
|
||||
set(CMAKE_CXX_COMPILER_ABI "ELF")
|
||||
set(CMAKE_CXX_BYTE_ORDER "LITTLE_ENDIAN")
|
||||
set(CMAKE_CXX_LIBRARY_ARCHITECTURE "")
|
||||
|
||||
if(CMAKE_CXX_SIZEOF_DATA_PTR)
|
||||
set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}")
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ABI)
|
||||
set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}")
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_LIBRARY_ARCHITECTURE)
|
||||
set(CMAKE_LIBRARY_ARCHITECTURE "")
|
||||
endif()
|
||||
|
||||
set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "")
|
||||
if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX)
|
||||
set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}")
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/usr/include/c++/13.2.1;/usr/include/c++/13.2.1/x86_64-pc-linux-gnu;/usr/include/c++/13.2.1/backward;/usr/lib/clang/16/include;/usr/local/include;/usr/include")
|
||||
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;gcc_s;gcc;c;gcc_s;gcc")
|
||||
set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib64/gcc/x86_64-pc-linux-gnu/13.2.1;/usr/lib64;/lib64;/lib;/usr/lib")
|
||||
set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
|
Binary file not shown.
|
@ -0,0 +1,15 @@
|
|||
set(CMAKE_HOST_SYSTEM "Linux-6.6.1-arch1-1")
|
||||
set(CMAKE_HOST_SYSTEM_NAME "Linux")
|
||||
set(CMAKE_HOST_SYSTEM_VERSION "6.6.1-arch1-1")
|
||||
set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64")
|
||||
|
||||
|
||||
|
||||
set(CMAKE_SYSTEM "Linux-6.6.1-arch1-1")
|
||||
set(CMAKE_SYSTEM_NAME "Linux")
|
||||
set(CMAKE_SYSTEM_VERSION "6.6.1-arch1-1")
|
||||
set(CMAKE_SYSTEM_PROCESSOR "x86_64")
|
||||
|
||||
set(CMAKE_CROSSCOMPILING "FALSE")
|
||||
|
||||
set(CMAKE_SYSTEM_LOADED 1)
|
|
@ -0,0 +1,855 @@
|
|||
/* This source file must have a .cpp extension so that all C++ compilers
|
||||
recognize the extension without flags. Borland does not know .cxx for
|
||||
example. */
|
||||
#ifndef __cplusplus
|
||||
# error "A C compiler has been selected for C++."
|
||||
#endif
|
||||
|
||||
#if !defined(__has_include)
|
||||
/* If the compiler does not have __has_include, pretend the answer is
|
||||
always no. */
|
||||
# define __has_include(x) 0
|
||||
#endif
|
||||
|
||||
|
||||
/* Version number components: V=Version, R=Revision, P=Patch
|
||||
Version date components: YYYY=Year, MM=Month, DD=Day */
|
||||
|
||||
#if defined(__COMO__)
|
||||
# define COMPILER_ID "Comeau"
|
||||
/* __COMO_VERSION__ = VRR */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
|
||||
|
||||
#elif defined(__INTEL_COMPILER) || defined(__ICC)
|
||||
# define COMPILER_ID "Intel"
|
||||
# if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
# endif
|
||||
# if defined(__GNUC__)
|
||||
# define SIMULATE_ID "GNU"
|
||||
# endif
|
||||
/* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
|
||||
except that a few beta releases use the old format with V=2021. */
|
||||
# if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
|
||||
# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
|
||||
# if defined(__INTEL_COMPILER_UPDATE)
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
|
||||
# else
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
|
||||
# endif
|
||||
# else
|
||||
# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
|
||||
# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
|
||||
/* The third version component from --version is an update index,
|
||||
but no macro is provided for it. */
|
||||
# define COMPILER_VERSION_PATCH DEC(0)
|
||||
# endif
|
||||
# if defined(__INTEL_COMPILER_BUILD_DATE)
|
||||
/* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
|
||||
# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
|
||||
# endif
|
||||
# if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# endif
|
||||
# if defined(__GNUC__)
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
|
||||
# elif defined(__GNUG__)
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
|
||||
# endif
|
||||
# if defined(__GNUC_MINOR__)
|
||||
# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
|
||||
# endif
|
||||
# if defined(__GNUC_PATCHLEVEL__)
|
||||
# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
|
||||
# define COMPILER_ID "IntelLLVM"
|
||||
#if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
#endif
|
||||
#if defined(__GNUC__)
|
||||
# define SIMULATE_ID "GNU"
|
||||
#endif
|
||||
/* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
|
||||
* later. Look for 6 digit vs. 8 digit version number to decide encoding.
|
||||
* VVVV is no smaller than the current year when a version is released.
|
||||
*/
|
||||
#if __INTEL_LLVM_COMPILER < 1000000L
|
||||
# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
|
||||
#else
|
||||
# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
|
||||
#endif
|
||||
#if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
#endif
|
||||
#if defined(__GNUC__)
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
|
||||
#elif defined(__GNUG__)
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
|
||||
#endif
|
||||
#if defined(__GNUC_MINOR__)
|
||||
# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
|
||||
#endif
|
||||
#if defined(__GNUC_PATCHLEVEL__)
|
||||
# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
|
||||
#endif
|
||||
|
||||
#elif defined(__PATHCC__)
|
||||
# define COMPILER_ID "PathScale"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
|
||||
# if defined(__PATHCC_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
|
||||
# define COMPILER_ID "Embarcadero"
|
||||
# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
|
||||
# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
|
||||
# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
|
||||
|
||||
#elif defined(__BORLANDC__)
|
||||
# define COMPILER_ID "Borland"
|
||||
/* __BORLANDC__ = 0xVRR */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
|
||||
# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
|
||||
|
||||
#elif defined(__WATCOMC__) && __WATCOMC__ < 1200
|
||||
# define COMPILER_ID "Watcom"
|
||||
/* __WATCOMC__ = VVRR */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
|
||||
# if (__WATCOMC__ % 10) > 0
|
||||
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
|
||||
# endif
|
||||
|
||||
#elif defined(__WATCOMC__)
|
||||
# define COMPILER_ID "OpenWatcom"
|
||||
/* __WATCOMC__ = VVRP + 1100 */
|
||||
# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
|
||||
# if (__WATCOMC__ % 10) > 0
|
||||
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
|
||||
# endif
|
||||
|
||||
#elif defined(__SUNPRO_CC)
|
||||
# define COMPILER_ID "SunPro"
|
||||
# if __SUNPRO_CC >= 0x5100
|
||||
/* __SUNPRO_CC = 0xVRRP */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
|
||||
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
|
||||
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
|
||||
# else
|
||||
/* __SUNPRO_CC = 0xVRP */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
|
||||
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
|
||||
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
|
||||
# endif
|
||||
|
||||
#elif defined(__HP_aCC)
|
||||
# define COMPILER_ID "HP"
|
||||
/* __HP_aCC = VVRRPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
|
||||
|
||||
#elif defined(__DECCXX)
|
||||
# define COMPILER_ID "Compaq"
|
||||
/* __DECCXX_VER = VVRRTPPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
|
||||
|
||||
#elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
|
||||
# define COMPILER_ID "zOS"
|
||||
/* __IBMCPP__ = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
|
||||
|
||||
#elif defined(__open_xl__) && defined(__clang__)
|
||||
# define COMPILER_ID "IBMClang"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
|
||||
# define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
|
||||
|
||||
|
||||
#elif defined(__ibmxl__) && defined(__clang__)
|
||||
# define COMPILER_ID "XLClang"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
|
||||
# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
|
||||
|
||||
|
||||
#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
|
||||
# define COMPILER_ID "XL"
|
||||
/* __IBMCPP__ = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
|
||||
|
||||
#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
|
||||
# define COMPILER_ID "VisualAge"
|
||||
/* __IBMCPP__ = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
|
||||
|
||||
#elif defined(__NVCOMPILER)
|
||||
# define COMPILER_ID "NVHPC"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
|
||||
# if defined(__NVCOMPILER_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(__PGI)
|
||||
# define COMPILER_ID "PGI"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__PGIC__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
|
||||
# if defined(__PGIC_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(_CRAYC)
|
||||
# define COMPILER_ID "Cray"
|
||||
# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
|
||||
# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
|
||||
|
||||
#elif defined(__TI_COMPILER_VERSION__)
|
||||
# define COMPILER_ID "TI"
|
||||
/* __TI_COMPILER_VERSION__ = VVVRRRPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
|
||||
# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
|
||||
|
||||
#elif defined(__CLANG_FUJITSU)
|
||||
# define COMPILER_ID "FujitsuClang"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
|
||||
# define COMPILER_VERSION_INTERNAL_STR __clang_version__
|
||||
|
||||
|
||||
#elif defined(__FUJITSU)
|
||||
# define COMPILER_ID "Fujitsu"
|
||||
# if defined(__FCC_version__)
|
||||
# define COMPILER_VERSION __FCC_version__
|
||||
# elif defined(__FCC_major__)
|
||||
# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
|
||||
# endif
|
||||
# if defined(__fcc_version)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
|
||||
# elif defined(__FCC_VERSION)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
|
||||
# endif
|
||||
|
||||
|
||||
#elif defined(__ghs__)
|
||||
# define COMPILER_ID "GHS"
|
||||
/* __GHS_VERSION_NUMBER = VVVVRP */
|
||||
# ifdef __GHS_VERSION_NUMBER
|
||||
# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
|
||||
# endif
|
||||
|
||||
#elif defined(__TASKING__)
|
||||
# define COMPILER_ID "Tasking"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__VERSION__/1000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__VERSION__ % 100)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__VERSION__)
|
||||
|
||||
#elif defined(__SCO_VERSION__)
|
||||
# define COMPILER_ID "SCO"
|
||||
|
||||
#elif defined(__ARMCC_VERSION) && !defined(__clang__)
|
||||
# define COMPILER_ID "ARMCC"
|
||||
#if __ARMCC_VERSION >= 1000000
|
||||
/* __ARMCC_VERSION = VRRPPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
|
||||
#else
|
||||
/* __ARMCC_VERSION = VRPPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
|
||||
#endif
|
||||
|
||||
|
||||
#elif defined(__clang__) && defined(__apple_build_version__)
|
||||
# define COMPILER_ID "AppleClang"
|
||||
# if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
# endif
|
||||
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
|
||||
# if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# endif
|
||||
# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
|
||||
|
||||
#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
|
||||
# define COMPILER_ID "ARMClang"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION/100 % 100)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
|
||||
|
||||
#elif defined(__clang__)
|
||||
# define COMPILER_ID "Clang"
|
||||
# if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
# endif
|
||||
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
|
||||
# if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# endif
|
||||
|
||||
#elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
|
||||
# define COMPILER_ID "LCC"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__LCC__ / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__LCC__ % 100)
|
||||
# if defined(__LCC_MINOR__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
|
||||
# endif
|
||||
# if defined(__GNUC__) && defined(__GNUC_MINOR__)
|
||||
# define SIMULATE_ID "GNU"
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
|
||||
# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
|
||||
# if defined(__GNUC_PATCHLEVEL__)
|
||||
# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
|
||||
# endif
|
||||
# endif
|
||||
|
||||
#elif defined(__GNUC__) || defined(__GNUG__)
|
||||
# define COMPILER_ID "GNU"
|
||||
# if defined(__GNUC__)
|
||||
# define COMPILER_VERSION_MAJOR DEC(__GNUC__)
|
||||
# else
|
||||
# define COMPILER_VERSION_MAJOR DEC(__GNUG__)
|
||||
# endif
|
||||
# if defined(__GNUC_MINOR__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
|
||||
# endif
|
||||
# if defined(__GNUC_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(_MSC_VER)
|
||||
# define COMPILER_ID "MSVC"
|
||||
/* _MSC_VER = VVRR */
|
||||
# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# if defined(_MSC_FULL_VER)
|
||||
# if _MSC_VER >= 1400
|
||||
/* _MSC_FULL_VER = VVRRPPPPP */
|
||||
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
|
||||
# else
|
||||
/* _MSC_FULL_VER = VVRRPPPP */
|
||||
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
|
||||
# endif
|
||||
# endif
|
||||
# if defined(_MSC_BUILD)
|
||||
# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
|
||||
# endif
|
||||
|
||||
#elif defined(_ADI_COMPILER)
|
||||
# define COMPILER_ID "ADSP"
|
||||
#if defined(__VERSIONNUM__)
|
||||
/* __VERSIONNUM__ = 0xVVRRPPTT */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__VERSIONNUM__ >> 24 & 0xFF)
|
||||
# define COMPILER_VERSION_MINOR DEC(__VERSIONNUM__ >> 16 & 0xFF)
|
||||
# define COMPILER_VERSION_PATCH DEC(__VERSIONNUM__ >> 8 & 0xFF)
|
||||
# define COMPILER_VERSION_TWEAK DEC(__VERSIONNUM__ & 0xFF)
|
||||
#endif
|
||||
|
||||
#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
|
||||
# define COMPILER_ID "IAR"
|
||||
# if defined(__VER__) && defined(__ICCARM__)
|
||||
# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
|
||||
# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
|
||||
# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
|
||||
# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
|
||||
# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
|
||||
# endif
|
||||
|
||||
|
||||
/* These compilers are either not known or too old to define an
|
||||
identification macro. Try to identify the platform and guess that
|
||||
it is the native compiler. */
|
||||
#elif defined(__hpux) || defined(__hpua)
|
||||
# define COMPILER_ID "HP"
|
||||
|
||||
#else /* unknown compiler */
|
||||
# define COMPILER_ID ""
|
||||
#endif
|
||||
|
||||
/* Construct the string literal in pieces to prevent the source from
|
||||
getting matched. Store it in a pointer rather than an array
|
||||
because some compilers will just produce instructions to fill the
|
||||
array rather than assigning a pointer to a static array. */
|
||||
char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
|
||||
#ifdef SIMULATE_ID
|
||||
char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
|
||||
#endif
|
||||
|
||||
#ifdef __QNXNTO__
|
||||
char const* qnxnto = "INFO" ":" "qnxnto[]";
|
||||
#endif
|
||||
|
||||
#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
|
||||
char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
|
||||
#endif
|
||||
|
||||
#define STRINGIFY_HELPER(X) #X
|
||||
#define STRINGIFY(X) STRINGIFY_HELPER(X)
|
||||
|
||||
/* Identify known platforms by name. */
|
||||
#if defined(__linux) || defined(__linux__) || defined(linux)
|
||||
# define PLATFORM_ID "Linux"
|
||||
|
||||
#elif defined(__MSYS__)
|
||||
# define PLATFORM_ID "MSYS"
|
||||
|
||||
#elif defined(__CYGWIN__)
|
||||
# define PLATFORM_ID "Cygwin"
|
||||
|
||||
#elif defined(__MINGW32__)
|
||||
# define PLATFORM_ID "MinGW"
|
||||
|
||||
#elif defined(__APPLE__)
|
||||
# define PLATFORM_ID "Darwin"
|
||||
|
||||
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
|
||||
# define PLATFORM_ID "Windows"
|
||||
|
||||
#elif defined(__FreeBSD__) || defined(__FreeBSD)
|
||||
# define PLATFORM_ID "FreeBSD"
|
||||
|
||||
#elif defined(__NetBSD__) || defined(__NetBSD)
|
||||
# define PLATFORM_ID "NetBSD"
|
||||
|
||||
#elif defined(__OpenBSD__) || defined(__OPENBSD)
|
||||
# define PLATFORM_ID "OpenBSD"
|
||||
|
||||
#elif defined(__sun) || defined(sun)
|
||||
# define PLATFORM_ID "SunOS"
|
||||
|
||||
#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
|
||||
# define PLATFORM_ID "AIX"
|
||||
|
||||
#elif defined(__hpux) || defined(__hpux__)
|
||||
# define PLATFORM_ID "HP-UX"
|
||||
|
||||
#elif defined(__HAIKU__)
|
||||
# define PLATFORM_ID "Haiku"
|
||||
|
||||
#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
|
||||
# define PLATFORM_ID "BeOS"
|
||||
|
||||
#elif defined(__QNX__) || defined(__QNXNTO__)
|
||||
# define PLATFORM_ID "QNX"
|
||||
|
||||
#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
|
||||
# define PLATFORM_ID "Tru64"
|
||||
|
||||
#elif defined(__riscos) || defined(__riscos__)
|
||||
# define PLATFORM_ID "RISCos"
|
||||
|
||||
#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
|
||||
# define PLATFORM_ID "SINIX"
|
||||
|
||||
#elif defined(__UNIX_SV__)
|
||||
# define PLATFORM_ID "UNIX_SV"
|
||||
|
||||
#elif defined(__bsdos__)
|
||||
# define PLATFORM_ID "BSDOS"
|
||||
|
||||
#elif defined(_MPRAS) || defined(MPRAS)
|
||||
# define PLATFORM_ID "MP-RAS"
|
||||
|
||||
#elif defined(__osf) || defined(__osf__)
|
||||
# define PLATFORM_ID "OSF1"
|
||||
|
||||
#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
|
||||
# define PLATFORM_ID "SCO_SV"
|
||||
|
||||
#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
|
||||
# define PLATFORM_ID "ULTRIX"
|
||||
|
||||
#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
|
||||
# define PLATFORM_ID "Xenix"
|
||||
|
||||
#elif defined(__WATCOMC__)
|
||||
# if defined(__LINUX__)
|
||||
# define PLATFORM_ID "Linux"
|
||||
|
||||
# elif defined(__DOS__)
|
||||
# define PLATFORM_ID "DOS"
|
||||
|
||||
# elif defined(__OS2__)
|
||||
# define PLATFORM_ID "OS2"
|
||||
|
||||
# elif defined(__WINDOWS__)
|
||||
# define PLATFORM_ID "Windows3x"
|
||||
|
||||
# elif defined(__VXWORKS__)
|
||||
# define PLATFORM_ID "VxWorks"
|
||||
|
||||
# else /* unknown platform */
|
||||
# define PLATFORM_ID
|
||||
# endif
|
||||
|
||||
#elif defined(__INTEGRITY)
|
||||
# if defined(INT_178B)
|
||||
# define PLATFORM_ID "Integrity178"
|
||||
|
||||
# else /* regular Integrity */
|
||||
# define PLATFORM_ID "Integrity"
|
||||
# endif
|
||||
|
||||
# elif defined(_ADI_COMPILER)
|
||||
# define PLATFORM_ID "ADSP"
|
||||
|
||||
#else /* unknown platform */
|
||||
# define PLATFORM_ID
|
||||
|
||||
#endif
|
||||
|
||||
/* For windows compilers MSVC and Intel we can determine
|
||||
the architecture of the compiler being used. This is because
|
||||
the compilers do not have flags that can change the architecture,
|
||||
but rather depend on which compiler is being used
|
||||
*/
|
||||
#if defined(_WIN32) && defined(_MSC_VER)
|
||||
# if defined(_M_IA64)
|
||||
# define ARCHITECTURE_ID "IA64"
|
||||
|
||||
# elif defined(_M_ARM64EC)
|
||||
# define ARCHITECTURE_ID "ARM64EC"
|
||||
|
||||
# elif defined(_M_X64) || defined(_M_AMD64)
|
||||
# define ARCHITECTURE_ID "x64"
|
||||
|
||||
# elif defined(_M_IX86)
|
||||
# define ARCHITECTURE_ID "X86"
|
||||
|
||||
# elif defined(_M_ARM64)
|
||||
# define ARCHITECTURE_ID "ARM64"
|
||||
|
||||
# elif defined(_M_ARM)
|
||||
# if _M_ARM == 4
|
||||
# define ARCHITECTURE_ID "ARMV4I"
|
||||
# elif _M_ARM == 5
|
||||
# define ARCHITECTURE_ID "ARMV5I"
|
||||
# else
|
||||
# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
|
||||
# endif
|
||||
|
||||
# elif defined(_M_MIPS)
|
||||
# define ARCHITECTURE_ID "MIPS"
|
||||
|
||||
# elif defined(_M_SH)
|
||||
# define ARCHITECTURE_ID "SHx"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#elif defined(__WATCOMC__)
|
||||
# if defined(_M_I86)
|
||||
# define ARCHITECTURE_ID "I86"
|
||||
|
||||
# elif defined(_M_IX86)
|
||||
# define ARCHITECTURE_ID "X86"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
|
||||
# if defined(__ICCARM__)
|
||||
# define ARCHITECTURE_ID "ARM"
|
||||
|
||||
# elif defined(__ICCRX__)
|
||||
# define ARCHITECTURE_ID "RX"
|
||||
|
||||
# elif defined(__ICCRH850__)
|
||||
# define ARCHITECTURE_ID "RH850"
|
||||
|
||||
# elif defined(__ICCRL78__)
|
||||
# define ARCHITECTURE_ID "RL78"
|
||||
|
||||
# elif defined(__ICCRISCV__)
|
||||
# define ARCHITECTURE_ID "RISCV"
|
||||
|
||||
# elif defined(__ICCAVR__)
|
||||
# define ARCHITECTURE_ID "AVR"
|
||||
|
||||
# elif defined(__ICC430__)
|
||||
# define ARCHITECTURE_ID "MSP430"
|
||||
|
||||
# elif defined(__ICCV850__)
|
||||
# define ARCHITECTURE_ID "V850"
|
||||
|
||||
# elif defined(__ICC8051__)
|
||||
# define ARCHITECTURE_ID "8051"
|
||||
|
||||
# elif defined(__ICCSTM8__)
|
||||
# define ARCHITECTURE_ID "STM8"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#elif defined(__ghs__)
|
||||
# if defined(__PPC64__)
|
||||
# define ARCHITECTURE_ID "PPC64"
|
||||
|
||||
# elif defined(__ppc__)
|
||||
# define ARCHITECTURE_ID "PPC"
|
||||
|
||||
# elif defined(__ARM__)
|
||||
# define ARCHITECTURE_ID "ARM"
|
||||
|
||||
# elif defined(__x86_64__)
|
||||
# define ARCHITECTURE_ID "x64"
|
||||
|
||||
# elif defined(__i386__)
|
||||
# define ARCHITECTURE_ID "X86"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#elif defined(__TI_COMPILER_VERSION__)
|
||||
# if defined(__TI_ARM__)
|
||||
# define ARCHITECTURE_ID "ARM"
|
||||
|
||||
# elif defined(__MSP430__)
|
||||
# define ARCHITECTURE_ID "MSP430"
|
||||
|
||||
# elif defined(__TMS320C28XX__)
|
||||
# define ARCHITECTURE_ID "TMS320C28x"
|
||||
|
||||
# elif defined(__TMS320C6X__) || defined(_TMS320C6X)
|
||||
# define ARCHITECTURE_ID "TMS320C6x"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
# elif defined(__ADSPSHARC__)
|
||||
# define ARCHITECTURE_ID "SHARC"
|
||||
|
||||
# elif defined(__ADSPBLACKFIN__)
|
||||
# define ARCHITECTURE_ID "Blackfin"
|
||||
|
||||
#elif defined(__TASKING__)
|
||||
|
||||
# if defined(__CTC__) || defined(__CPTC__)
|
||||
# define ARCHITECTURE_ID "TriCore"
|
||||
|
||||
# elif defined(__CMCS__)
|
||||
# define ARCHITECTURE_ID "MCS"
|
||||
|
||||
# elif defined(__CARM__)
|
||||
# define ARCHITECTURE_ID "ARM"
|
||||
|
||||
# elif defined(__CARC__)
|
||||
# define ARCHITECTURE_ID "ARC"
|
||||
|
||||
# elif defined(__C51__)
|
||||
# define ARCHITECTURE_ID "8051"
|
||||
|
||||
# elif defined(__CPCP__)
|
||||
# define ARCHITECTURE_ID "PCP"
|
||||
|
||||
# else
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#else
|
||||
# define ARCHITECTURE_ID
|
||||
#endif
|
||||
|
||||
/* Convert integer to decimal digit literals. */
|
||||
#define DEC(n) \
|
||||
('0' + (((n) / 10000000)%10)), \
|
||||
('0' + (((n) / 1000000)%10)), \
|
||||
('0' + (((n) / 100000)%10)), \
|
||||
('0' + (((n) / 10000)%10)), \
|
||||
('0' + (((n) / 1000)%10)), \
|
||||
('0' + (((n) / 100)%10)), \
|
||||
('0' + (((n) / 10)%10)), \
|
||||
('0' + ((n) % 10))
|
||||
|
||||
/* Convert integer to hex digit literals. */
|
||||
#define HEX(n) \
|
||||
('0' + ((n)>>28 & 0xF)), \
|
||||
('0' + ((n)>>24 & 0xF)), \
|
||||
('0' + ((n)>>20 & 0xF)), \
|
||||
('0' + ((n)>>16 & 0xF)), \
|
||||
('0' + ((n)>>12 & 0xF)), \
|
||||
('0' + ((n)>>8 & 0xF)), \
|
||||
('0' + ((n)>>4 & 0xF)), \
|
||||
('0' + ((n) & 0xF))
|
||||
|
||||
/* Construct a string literal encoding the version number. */
|
||||
#ifdef COMPILER_VERSION
|
||||
char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
|
||||
|
||||
/* Construct a string literal encoding the version number components. */
|
||||
#elif defined(COMPILER_VERSION_MAJOR)
|
||||
char const info_version[] = {
|
||||
'I', 'N', 'F', 'O', ':',
|
||||
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
|
||||
COMPILER_VERSION_MAJOR,
|
||||
# ifdef COMPILER_VERSION_MINOR
|
||||
'.', COMPILER_VERSION_MINOR,
|
||||
# ifdef COMPILER_VERSION_PATCH
|
||||
'.', COMPILER_VERSION_PATCH,
|
||||
# ifdef COMPILER_VERSION_TWEAK
|
||||
'.', COMPILER_VERSION_TWEAK,
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
']','\0'};
|
||||
#endif
|
||||
|
||||
/* Construct a string literal encoding the internal version number. */
|
||||
#ifdef COMPILER_VERSION_INTERNAL
|
||||
char const info_version_internal[] = {
|
||||
'I', 'N', 'F', 'O', ':',
|
||||
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
|
||||
'i','n','t','e','r','n','a','l','[',
|
||||
COMPILER_VERSION_INTERNAL,']','\0'};
|
||||
#elif defined(COMPILER_VERSION_INTERNAL_STR)
|
||||
char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
|
||||
#endif
|
||||
|
||||
/* Construct a string literal encoding the version number components. */
|
||||
#ifdef SIMULATE_VERSION_MAJOR
|
||||
char const info_simulate_version[] = {
|
||||
'I', 'N', 'F', 'O', ':',
|
||||
's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
|
||||
SIMULATE_VERSION_MAJOR,
|
||||
# ifdef SIMULATE_VERSION_MINOR
|
||||
'.', SIMULATE_VERSION_MINOR,
|
||||
# ifdef SIMULATE_VERSION_PATCH
|
||||
'.', SIMULATE_VERSION_PATCH,
|
||||
# ifdef SIMULATE_VERSION_TWEAK
|
||||
'.', SIMULATE_VERSION_TWEAK,
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
']','\0'};
|
||||
#endif
|
||||
|
||||
/* Construct the string literal in pieces to prevent the source from
|
||||
getting matched. Store it in a pointer rather than an array
|
||||
because some compilers will just produce instructions to fill the
|
||||
array rather than assigning a pointer to a static array. */
|
||||
char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
|
||||
char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
|
||||
|
||||
|
||||
|
||||
#if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
|
||||
# if defined(__INTEL_CXX11_MODE__)
|
||||
# if defined(__cpp_aggregate_nsdmi)
|
||||
# define CXX_STD 201402L
|
||||
# else
|
||||
# define CXX_STD 201103L
|
||||
# endif
|
||||
# else
|
||||
# define CXX_STD 199711L
|
||||
# endif
|
||||
#elif defined(_MSC_VER) && defined(_MSVC_LANG)
|
||||
# define CXX_STD _MSVC_LANG
|
||||
#else
|
||||
# define CXX_STD __cplusplus
|
||||
#endif
|
||||
|
||||
const char* info_language_standard_default = "INFO" ":" "standard_default["
|
||||
#if CXX_STD > 202002L
|
||||
"23"
|
||||
#elif CXX_STD > 201703L
|
||||
"20"
|
||||
#elif CXX_STD >= 201703L
|
||||
"17"
|
||||
#elif CXX_STD >= 201402L
|
||||
"14"
|
||||
#elif CXX_STD >= 201103L
|
||||
"11"
|
||||
#else
|
||||
"98"
|
||||
#endif
|
||||
"]";
|
||||
|
||||
const char* info_language_extensions_default = "INFO" ":" "extensions_default["
|
||||
#if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
|
||||
defined(__TI_COMPILER_VERSION__)) && \
|
||||
!defined(__STRICT_ANSI__)
|
||||
"ON"
|
||||
#else
|
||||
"OFF"
|
||||
#endif
|
||||
"]";
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
int require = 0;
|
||||
require += info_compiler[argc];
|
||||
require += info_platform[argc];
|
||||
require += info_arch[argc];
|
||||
#ifdef COMPILER_VERSION_MAJOR
|
||||
require += info_version[argc];
|
||||
#endif
|
||||
#ifdef COMPILER_VERSION_INTERNAL
|
||||
require += info_version_internal[argc];
|
||||
#endif
|
||||
#ifdef SIMULATE_ID
|
||||
require += info_simulate[argc];
|
||||
#endif
|
||||
#ifdef SIMULATE_VERSION_MAJOR
|
||||
require += info_simulate_version[argc];
|
||||
#endif
|
||||
#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
|
||||
require += info_cray[argc];
|
||||
#endif
|
||||
require += info_language_standard_default[argc];
|
||||
require += info_language_extensions_default[argc];
|
||||
(void)argv;
|
||||
return require;
|
||||
}
|
BIN
example/build/linux/x64/debug/CMakeFiles/3.27.7/CompilerIdCXX/a.out
Executable file
BIN
example/build/linux/x64/debug/CMakeFiles/3.27.7/CompilerIdCXX/a.out
Executable file
Binary file not shown.
222
example/build/linux/x64/debug/CMakeFiles/CMakeConfigureLog.yaml
Normal file
222
example/build/linux/x64/debug/CMakeFiles/CMakeConfigureLog.yaml
Normal file
|
@ -0,0 +1,222 @@
|
|||
|
||||
---
|
||||
events:
|
||||
-
|
||||
kind: "message-v1"
|
||||
backtrace:
|
||||
- "/usr/share/cmake/Modules/CMakeDetermineSystem.cmake:211 (message)"
|
||||
- "CMakeLists.txt:3 (project)"
|
||||
message: |
|
||||
The system is: Linux - 6.6.1-arch1-1 - x86_64
|
||||
-
|
||||
kind: "message-v1"
|
||||
backtrace:
|
||||
- "/usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:17 (message)"
|
||||
- "/usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:64 (__determine_compiler_id_test)"
|
||||
- "/usr/share/cmake/Modules/CMakeDetermineCXXCompiler.cmake:126 (CMAKE_DETERMINE_COMPILER_ID)"
|
||||
- "CMakeLists.txt:3 (project)"
|
||||
message: |
|
||||
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
|
||||
Compiler: /usr/bin/clang++
|
||||
Build flags:
|
||||
Id flags:
|
||||
|
||||
The output was:
|
||||
0
|
||||
|
||||
|
||||
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"
|
||||
|
||||
The CXX compiler identification is Clang, found in:
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/CMakeFiles/3.27.7/CompilerIdCXX/a.out
|
||||
|
||||
-
|
||||
kind: "try_compile-v1"
|
||||
backtrace:
|
||||
- "/usr/share/cmake/Modules/CMakeDetermineCompilerABI.cmake:57 (try_compile)"
|
||||
- "/usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)"
|
||||
- "CMakeLists.txt:3 (project)"
|
||||
checks:
|
||||
- "Detecting CXX compiler ABI info"
|
||||
directories:
|
||||
source: "/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/CMakeFiles/CMakeScratch/TryCompile-mctfB5"
|
||||
binary: "/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/CMakeFiles/CMakeScratch/TryCompile-mctfB5"
|
||||
cmakeVariables:
|
||||
CMAKE_CXX_FLAGS: ""
|
||||
CMAKE_CXX_FLAGS_DEBUG: "-g"
|
||||
CMAKE_EXE_LINKER_FLAGS: ""
|
||||
buildResult:
|
||||
variable: "CMAKE_CXX_ABI_COMPILED"
|
||||
cached: true
|
||||
stdout: |
|
||||
Change Dir: '/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/CMakeFiles/CMakeScratch/TryCompile-mctfB5'
|
||||
|
||||
Run Build Command(s): /usr/bin/ninja -v cmTC_1a463
|
||||
[1/2] /usr/bin/clang++ -v -MD -MT CMakeFiles/cmTC_1a463.dir/CMakeCXXCompilerABI.cpp.o -MF CMakeFiles/cmTC_1a463.dir/CMakeCXXCompilerABI.cpp.o.d -o CMakeFiles/cmTC_1a463.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake/Modules/CMakeCXXCompilerABI.cpp
|
||||
clang version 16.0.6
|
||||
Target: x86_64-pc-linux-gnu
|
||||
Thread model: posix
|
||||
InstalledDir: /usr/bin
|
||||
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/13.2.1
|
||||
Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1
|
||||
Selected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1
|
||||
Candidate multilib: .;@m64
|
||||
Candidate multilib: 32;@m32
|
||||
Selected multilib: .;@m64
|
||||
(in-process)
|
||||
"/usr/bin/clang-16" -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCXXCompilerABI.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -fcoverage-compilation-dir=/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/CMakeFiles/CMakeScratch/TryCompile-mctfB5 -resource-dir /usr/lib/clang/16 -dependency-file CMakeFiles/cmTC_1a463.dir/CMakeCXXCompilerABI.cpp.o.d -MT CMakeFiles/cmTC_1a463.dir/CMakeCXXCompilerABI.cpp.o -sys-header-deps -internal-isystem /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1 -internal-isystem /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/x86_64-pc-linux-gnu -internal-isystem /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/backward -internal-isystem /usr/lib/clang/16/include -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir=/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/CMakeFiles/CMakeScratch/TryCompile-mctfB5 -ferror-limit 19 -stack-protector 2 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_1a463.dir/CMakeCXXCompilerABI.cpp.o -x c++ /usr/share/cmake/Modules/CMakeCXXCompilerABI.cpp
|
||||
clang -cc1 version 16.0.6 based upon LLVM 16.0.6 default target x86_64-pc-linux-gnu
|
||||
ignoring nonexistent directory "/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../x86_64-pc-linux-gnu/include"
|
||||
ignoring nonexistent directory "/include"
|
||||
#include "..." search starts here:
|
||||
#include <...> search starts here:
|
||||
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1
|
||||
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/x86_64-pc-linux-gnu
|
||||
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/backward
|
||||
/usr/lib/clang/16/include
|
||||
/usr/local/include
|
||||
/usr/include
|
||||
End of search list.
|
||||
[2/2] : && /usr/bin/clang++ -v CMakeFiles/cmTC_1a463.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_1a463 && :
|
||||
clang version 16.0.6
|
||||
Target: x86_64-pc-linux-gnu
|
||||
Thread model: posix
|
||||
InstalledDir: /usr/bin
|
||||
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/13.2.1
|
||||
Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1
|
||||
Selected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1
|
||||
Candidate multilib: .;@m64
|
||||
Candidate multilib: 32;@m32
|
||||
Selected multilib: .;@m64
|
||||
"/usr/bin/ld" -pie --hash-style=gnu --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_1a463 /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib64/Scrt1.o /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib64/crti.o /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/crtbeginS.o -L/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1 -L/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/lib -L/usr/lib CMakeFiles/cmTC_1a463.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/crtendS.o /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib64/crtn.o
|
||||
|
||||
exitCode: 0
|
||||
-
|
||||
kind: "message-v1"
|
||||
backtrace:
|
||||
- "/usr/share/cmake/Modules/CMakeDetermineCompilerABI.cmake:127 (message)"
|
||||
- "/usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)"
|
||||
- "CMakeLists.txt:3 (project)"
|
||||
message: |
|
||||
Parsed CXX implicit include dir info: rv=done
|
||||
found start of include info
|
||||
found start of implicit include info
|
||||
add: [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1]
|
||||
add: [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/x86_64-pc-linux-gnu]
|
||||
add: [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/backward]
|
||||
add: [/usr/lib/clang/16/include]
|
||||
add: [/usr/local/include]
|
||||
add: [/usr/include]
|
||||
end of search list found
|
||||
collapse include dir [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1] ==> [/usr/include/c++/13.2.1]
|
||||
collapse include dir [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/x86_64-pc-linux-gnu] ==> [/usr/include/c++/13.2.1/x86_64-pc-linux-gnu]
|
||||
collapse include dir [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/backward] ==> [/usr/include/c++/13.2.1/backward]
|
||||
collapse include dir [/usr/lib/clang/16/include] ==> [/usr/lib/clang/16/include]
|
||||
collapse include dir [/usr/local/include] ==> [/usr/local/include]
|
||||
collapse include dir [/usr/include] ==> [/usr/include]
|
||||
implicit include dirs: [/usr/include/c++/13.2.1;/usr/include/c++/13.2.1/x86_64-pc-linux-gnu;/usr/include/c++/13.2.1/backward;/usr/lib/clang/16/include;/usr/local/include;/usr/include]
|
||||
|
||||
|
||||
-
|
||||
kind: "message-v1"
|
||||
backtrace:
|
||||
- "/usr/share/cmake/Modules/CMakeDetermineCompilerABI.cmake:152 (message)"
|
||||
- "/usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)"
|
||||
- "CMakeLists.txt:3 (project)"
|
||||
message: |
|
||||
Parsed CXX implicit link information:
|
||||
link line regex: [^( *|.*[/\\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\\]+-)?ld|collect2)[^/\\]*( |$)]
|
||||
ignore line: [Change Dir: '/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/CMakeFiles/CMakeScratch/TryCompile-mctfB5']
|
||||
ignore line: []
|
||||
ignore line: [Run Build Command(s): /usr/bin/ninja -v cmTC_1a463]
|
||||
ignore line: [[1/2] /usr/bin/clang++ -v -MD -MT CMakeFiles/cmTC_1a463.dir/CMakeCXXCompilerABI.cpp.o -MF CMakeFiles/cmTC_1a463.dir/CMakeCXXCompilerABI.cpp.o.d -o CMakeFiles/cmTC_1a463.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake/Modules/CMakeCXXCompilerABI.cpp]
|
||||
ignore line: [clang version 16.0.6]
|
||||
ignore line: [Target: x86_64-pc-linux-gnu]
|
||||
ignore line: [Thread model: posix]
|
||||
ignore line: [InstalledDir: /usr/bin]
|
||||
ignore line: [Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/13.2.1]
|
||||
ignore line: [Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1]
|
||||
ignore line: [Selected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1]
|
||||
ignore line: [Candidate multilib: .]
|
||||
ignore line: [@m64]
|
||||
ignore line: [Candidate multilib: 32]
|
||||
ignore line: [@m32]
|
||||
ignore line: [Selected multilib: .]
|
||||
ignore line: [@m64]
|
||||
ignore line: [ (in-process)]
|
||||
ignore line: [ "/usr/bin/clang-16" -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCXXCompilerABI.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -fcoverage-compilation-dir=/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/CMakeFiles/CMakeScratch/TryCompile-mctfB5 -resource-dir /usr/lib/clang/16 -dependency-file CMakeFiles/cmTC_1a463.dir/CMakeCXXCompilerABI.cpp.o.d -MT CMakeFiles/cmTC_1a463.dir/CMakeCXXCompilerABI.cpp.o -sys-header-deps -internal-isystem /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1 -internal-isystem /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/x86_64-pc-linux-gnu -internal-isystem /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/backward -internal-isystem /usr/lib/clang/16/include -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../x86_64-pc-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir=/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/CMakeFiles/CMakeScratch/TryCompile-mctfB5 -ferror-limit 19 -stack-protector 2 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_1a463.dir/CMakeCXXCompilerABI.cpp.o -x c++ /usr/share/cmake/Modules/CMakeCXXCompilerABI.cpp]
|
||||
ignore line: [clang -cc1 version 16.0.6 based upon LLVM 16.0.6 default target x86_64-pc-linux-gnu]
|
||||
ignore line: [ignoring nonexistent directory "/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../x86_64-pc-linux-gnu/include"]
|
||||
ignore line: [ignoring nonexistent directory "/include"]
|
||||
ignore line: [#include "..." search starts here:]
|
||||
ignore line: [#include <...> search starts here:]
|
||||
ignore line: [ /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1]
|
||||
ignore line: [ /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/x86_64-pc-linux-gnu]
|
||||
ignore line: [ /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../include/c++/13.2.1/backward]
|
||||
ignore line: [ /usr/lib/clang/16/include]
|
||||
ignore line: [ /usr/local/include]
|
||||
ignore line: [ /usr/include]
|
||||
ignore line: [End of search list.]
|
||||
ignore line: [[2/2] : && /usr/bin/clang++ -v CMakeFiles/cmTC_1a463.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_1a463 && :]
|
||||
ignore line: [clang version 16.0.6]
|
||||
ignore line: [Target: x86_64-pc-linux-gnu]
|
||||
ignore line: [Thread model: posix]
|
||||
ignore line: [InstalledDir: /usr/bin]
|
||||
ignore line: [Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/13.2.1]
|
||||
ignore line: [Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1]
|
||||
ignore line: [Selected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1]
|
||||
ignore line: [Candidate multilib: .]
|
||||
ignore line: [@m64]
|
||||
ignore line: [Candidate multilib: 32]
|
||||
ignore line: [@m32]
|
||||
ignore line: [Selected multilib: .]
|
||||
ignore line: [@m64]
|
||||
link line: [ "/usr/bin/ld" -pie --hash-style=gnu --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_1a463 /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib64/Scrt1.o /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib64/crti.o /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/crtbeginS.o -L/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1 -L/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/lib -L/usr/lib CMakeFiles/cmTC_1a463.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/crtendS.o /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib64/crtn.o]
|
||||
arg [/usr/bin/ld] ==> ignore
|
||||
arg [-pie] ==> ignore
|
||||
arg [--hash-style=gnu] ==> ignore
|
||||
arg [--build-id] ==> ignore
|
||||
arg [--eh-frame-hdr] ==> ignore
|
||||
arg [-m] ==> ignore
|
||||
arg [elf_x86_64] ==> ignore
|
||||
arg [-dynamic-linker] ==> ignore
|
||||
arg [/lib64/ld-linux-x86-64.so.2] ==> ignore
|
||||
arg [-o] ==> ignore
|
||||
arg [cmTC_1a463] ==> ignore
|
||||
arg [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib64/Scrt1.o] ==> obj [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib64/Scrt1.o]
|
||||
arg [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib64/crti.o] ==> obj [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib64/crti.o]
|
||||
arg [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/crtbeginS.o] ==> obj [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/crtbeginS.o]
|
||||
arg [-L/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1] ==> dir [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1]
|
||||
arg [-L/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib64] ==> dir [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib64]
|
||||
arg [-L/lib/../lib64] ==> dir [/lib/../lib64]
|
||||
arg [-L/usr/lib/../lib64] ==> dir [/usr/lib/../lib64]
|
||||
arg [-L/lib] ==> dir [/lib]
|
||||
arg [-L/usr/lib] ==> dir [/usr/lib]
|
||||
arg [CMakeFiles/cmTC_1a463.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore
|
||||
arg [-lstdc++] ==> lib [stdc++]
|
||||
arg [-lm] ==> lib [m]
|
||||
arg [-lgcc_s] ==> lib [gcc_s]
|
||||
arg [-lgcc] ==> lib [gcc]
|
||||
arg [-lc] ==> lib [c]
|
||||
arg [-lgcc_s] ==> lib [gcc_s]
|
||||
arg [-lgcc] ==> lib [gcc]
|
||||
arg [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/crtendS.o] ==> obj [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/crtendS.o]
|
||||
arg [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib64/crtn.o] ==> obj [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib64/crtn.o]
|
||||
collapse obj [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib64/Scrt1.o] ==> [/usr/lib64/Scrt1.o]
|
||||
collapse obj [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib64/crti.o] ==> [/usr/lib64/crti.o]
|
||||
collapse obj [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/crtbeginS.o] ==> [/usr/lib64/gcc/x86_64-pc-linux-gnu/13.2.1/crtbeginS.o]
|
||||
collapse obj [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/crtendS.o] ==> [/usr/lib64/gcc/x86_64-pc-linux-gnu/13.2.1/crtendS.o]
|
||||
collapse obj [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib64/crtn.o] ==> [/usr/lib64/crtn.o]
|
||||
collapse library dir [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1] ==> [/usr/lib64/gcc/x86_64-pc-linux-gnu/13.2.1]
|
||||
collapse library dir [/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib64] ==> [/usr/lib64]
|
||||
collapse library dir [/lib/../lib64] ==> [/lib64]
|
||||
collapse library dir [/usr/lib/../lib64] ==> [/usr/lib64]
|
||||
collapse library dir [/lib] ==> [/lib]
|
||||
collapse library dir [/usr/lib] ==> [/usr/lib]
|
||||
implicit libs: [stdc++;m;gcc_s;gcc;c;gcc_s;gcc]
|
||||
implicit objs: [/usr/lib64/Scrt1.o;/usr/lib64/crti.o;/usr/lib64/gcc/x86_64-pc-linux-gnu/13.2.1/crtbeginS.o;/usr/lib64/gcc/x86_64-pc-linux-gnu/13.2.1/crtendS.o;/usr/lib64/crtn.o]
|
||||
implicit dirs: [/usr/lib64/gcc/x86_64-pc-linux-gnu/13.2.1;/usr/lib64;/lib64;/lib;/usr/lib]
|
||||
implicit fwks: []
|
||||
|
||||
|
||||
...
|
|
@ -0,0 +1,14 @@
|
|||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/CMakeFiles/example.dir
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/CMakeFiles/edit_cache.dir
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/CMakeFiles/rebuild_cache.dir
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/CMakeFiles/list_install_components.dir
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/CMakeFiles/install.dir
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/CMakeFiles/install/local.dir
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/CMakeFiles/install/strip.dir
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/flutter/CMakeFiles/flutter_assemble.dir
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/flutter/CMakeFiles/edit_cache.dir
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/flutter/CMakeFiles/rebuild_cache.dir
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/flutter/CMakeFiles/list_install_components.dir
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/flutter/CMakeFiles/install.dir
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/flutter/CMakeFiles/install/local.dir
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/flutter/CMakeFiles/install/strip.dir
|
|
@ -0,0 +1 @@
|
|||
# This file is generated by cmake for dependency checking of the CMakeCache.txt file
|
Binary file not shown.
BIN
example/build/linux/x64/debug/CMakeFiles/example.dir/main.cc.o
Normal file
BIN
example/build/linux/x64/debug/CMakeFiles/example.dir/main.cc.o
Normal file
Binary file not shown.
Binary file not shown.
64
example/build/linux/x64/debug/CMakeFiles/rules.ninja
Normal file
64
example/build/linux/x64/debug/CMakeFiles/rules.ninja
Normal file
|
@ -0,0 +1,64 @@
|
|||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Ninja" Generator, CMake Version 3.27
|
||||
|
||||
# This file contains all the rules used to get the outputs files
|
||||
# built from the input files.
|
||||
# It is included in the main 'build.ninja'.
|
||||
|
||||
# =============================================================================
|
||||
# Project: runner
|
||||
# Configurations: Debug
|
||||
# =============================================================================
|
||||
# =============================================================================
|
||||
|
||||
#############################################
|
||||
# Rule for compiling CXX files.
|
||||
|
||||
rule CXX_COMPILER__example_unscanned_Debug
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = ${LAUNCHER}${CODE_CHECK}/usr/bin/clang++ $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building CXX object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for linking CXX executable.
|
||||
|
||||
rule CXX_EXECUTABLE_LINKER__example_Debug
|
||||
command = $PRE_LINK && /usr/bin/clang++ $FLAGS $LINK_FLAGS $in -o $TARGET_FILE $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking CXX executable $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for running custom commands.
|
||||
|
||||
rule CUSTOM_COMMAND
|
||||
command = $COMMAND
|
||||
description = $DESC
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for re-running cmake.
|
||||
|
||||
rule RERUN_CMAKE
|
||||
command = /usr/bin/cmake --regenerate-during-build -S/media/Source/flutter/stripe_native_card_field/example/linux -B/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug
|
||||
description = Re-running CMake...
|
||||
generator = 1
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for cleaning all built files.
|
||||
|
||||
rule CLEAN
|
||||
command = /usr/bin/ninja $FILE_ARG -t clean $TARGETS
|
||||
description = Cleaning all built files...
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for printing all primary targets available.
|
||||
|
||||
rule HELP
|
||||
command = /usr/bin/ninja -t targets
|
||||
description = All primary targets available:
|
||||
|
307
example/build/linux/x64/debug/build.ninja
Normal file
307
example/build/linux/x64/debug/build.ninja
Normal file
|
@ -0,0 +1,307 @@
|
|||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Ninja" Generator, CMake Version 3.27
|
||||
|
||||
# This file contains all the build statements describing the
|
||||
# compilation DAG.
|
||||
|
||||
# =============================================================================
|
||||
# Write statements declared in CMakeLists.txt:
|
||||
#
|
||||
# Which is the root file.
|
||||
# =============================================================================
|
||||
|
||||
# =============================================================================
|
||||
# Project: runner
|
||||
# Configurations: Debug
|
||||
# =============================================================================
|
||||
|
||||
#############################################
|
||||
# Minimal version of Ninja required by this file
|
||||
|
||||
ninja_required_version = 1.5
|
||||
|
||||
|
||||
#############################################
|
||||
# Set configuration variable for custom commands.
|
||||
|
||||
CONFIGURATION = Debug
|
||||
# =============================================================================
|
||||
# Include auxiliary files.
|
||||
|
||||
|
||||
#############################################
|
||||
# Include rules file.
|
||||
|
||||
include CMakeFiles/rules.ninja
|
||||
|
||||
# =============================================================================
|
||||
|
||||
#############################################
|
||||
# Logical path to working directory; prefix for absolute paths.
|
||||
|
||||
cmake_ninja_workdir = /media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/
|
||||
# =============================================================================
|
||||
# Object build statements for EXECUTABLE target example
|
||||
|
||||
|
||||
#############################################
|
||||
# Order-only phony target for example
|
||||
|
||||
build cmake_object_order_depends_target_example: phony || flutter/flutter_assemble
|
||||
|
||||
build CMakeFiles/example.dir/main.cc.o: CXX_COMPILER__example_unscanned_Debug /media/Source/flutter/stripe_native_card_field/example/linux/main.cc || cmake_object_order_depends_target_example
|
||||
DEFINES = -DAPPLICATION_ID=\"com.example.example\"
|
||||
DEP_FILE = CMakeFiles/example.dir/main.cc.o.d
|
||||
FLAGS = -g -Wall -Werror -pthread
|
||||
INCLUDES = -I/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral -isystem /usr/include/gtk-3.0 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/include/sysprof-6 -isystem /usr/include/harfbuzz -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/cloudproviders -isystem /usr/include/atk-1.0 -isystem /usr/include/at-spi2-atk/2.0 -isystem /usr/include/at-spi-2.0 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/dbus-1.0/include
|
||||
OBJECT_DIR = CMakeFiles/example.dir
|
||||
OBJECT_FILE_DIR = CMakeFiles/example.dir
|
||||
|
||||
build CMakeFiles/example.dir/my_application.cc.o: CXX_COMPILER__example_unscanned_Debug /media/Source/flutter/stripe_native_card_field/example/linux/my_application.cc || cmake_object_order_depends_target_example
|
||||
DEFINES = -DAPPLICATION_ID=\"com.example.example\"
|
||||
DEP_FILE = CMakeFiles/example.dir/my_application.cc.o.d
|
||||
FLAGS = -g -Wall -Werror -pthread
|
||||
INCLUDES = -I/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral -isystem /usr/include/gtk-3.0 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/include/sysprof-6 -isystem /usr/include/harfbuzz -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/cloudproviders -isystem /usr/include/atk-1.0 -isystem /usr/include/at-spi2-atk/2.0 -isystem /usr/include/at-spi-2.0 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/dbus-1.0/include
|
||||
OBJECT_DIR = CMakeFiles/example.dir
|
||||
OBJECT_FILE_DIR = CMakeFiles/example.dir
|
||||
|
||||
build CMakeFiles/example.dir/flutter/generated_plugin_registrant.cc.o: CXX_COMPILER__example_unscanned_Debug /media/Source/flutter/stripe_native_card_field/example/linux/flutter/generated_plugin_registrant.cc || cmake_object_order_depends_target_example
|
||||
DEFINES = -DAPPLICATION_ID=\"com.example.example\"
|
||||
DEP_FILE = CMakeFiles/example.dir/flutter/generated_plugin_registrant.cc.o.d
|
||||
FLAGS = -g -Wall -Werror -pthread
|
||||
INCLUDES = -I/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral -isystem /usr/include/gtk-3.0 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/include/sysprof-6 -isystem /usr/include/harfbuzz -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/cloudproviders -isystem /usr/include/atk-1.0 -isystem /usr/include/at-spi2-atk/2.0 -isystem /usr/include/at-spi-2.0 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/dbus-1.0/include
|
||||
OBJECT_DIR = CMakeFiles/example.dir
|
||||
OBJECT_FILE_DIR = CMakeFiles/example.dir/flutter
|
||||
|
||||
|
||||
# =============================================================================
|
||||
# Link build statements for EXECUTABLE target example
|
||||
|
||||
|
||||
#############################################
|
||||
# Link the executable intermediates_do_not_run/example
|
||||
|
||||
build intermediates_do_not_run/example: CXX_EXECUTABLE_LINKER__example_Debug CMakeFiles/example.dir/main.cc.o CMakeFiles/example.dir/my_application.cc.o CMakeFiles/example.dir/flutter/generated_plugin_registrant.cc.o | /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/libflutter_linux_gtk.so /usr/lib/libgtk-3.so /usr/lib/libgdk-3.so /usr/lib/libz.so /usr/lib/libpangocairo-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libharfbuzz.so /usr/lib/libatk-1.0.so /usr/lib/libcairo-gobject.so /usr/lib/libcairo.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libgio-2.0.so /usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so || flutter/flutter_assemble
|
||||
FLAGS = -g
|
||||
LINK_LIBRARIES = -Wl,-rpath,/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral: /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/libflutter_linux_gtk.so /usr/lib/libgtk-3.so /usr/lib/libgdk-3.so /usr/lib/libz.so /usr/lib/libpangocairo-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libharfbuzz.so /usr/lib/libatk-1.0.so /usr/lib/libcairo-gobject.so /usr/lib/libcairo.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libgio-2.0.so /usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so
|
||||
OBJECT_DIR = CMakeFiles/example.dir
|
||||
POST_BUILD = :
|
||||
PRE_LINK = :
|
||||
TARGET_FILE = intermediates_do_not_run/example
|
||||
TARGET_PDB = example.dbg
|
||||
|
||||
|
||||
#############################################
|
||||
# Utility command for edit_cache
|
||||
|
||||
build CMakeFiles/edit_cache.util: CUSTOM_COMMAND
|
||||
COMMAND = cd /media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug && /usr/bin/ccmake -S/media/Source/flutter/stripe_native_card_field/example/linux -B/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug
|
||||
DESC = Running CMake cache editor...
|
||||
pool = console
|
||||
restat = 1
|
||||
|
||||
build edit_cache: phony CMakeFiles/edit_cache.util
|
||||
|
||||
|
||||
#############################################
|
||||
# Utility command for rebuild_cache
|
||||
|
||||
build CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND
|
||||
COMMAND = cd /media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug && /usr/bin/cmake --regenerate-during-build -S/media/Source/flutter/stripe_native_card_field/example/linux -B/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug
|
||||
DESC = Running CMake to regenerate build system...
|
||||
pool = console
|
||||
restat = 1
|
||||
|
||||
build rebuild_cache: phony CMakeFiles/rebuild_cache.util
|
||||
|
||||
|
||||
#############################################
|
||||
# Utility command for list_install_components
|
||||
|
||||
build list_install_components: phony
|
||||
|
||||
|
||||
#############################################
|
||||
# Utility command for install
|
||||
|
||||
build CMakeFiles/install.util: CUSTOM_COMMAND all
|
||||
COMMAND = cd /media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug && /usr/bin/cmake -P cmake_install.cmake
|
||||
DESC = Install the project...
|
||||
pool = console
|
||||
restat = 1
|
||||
|
||||
build install: phony CMakeFiles/install.util
|
||||
|
||||
|
||||
#############################################
|
||||
# Utility command for install/local
|
||||
|
||||
build CMakeFiles/install/local.util: CUSTOM_COMMAND all
|
||||
COMMAND = cd /media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug && /usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
|
||||
DESC = Installing only the local directory...
|
||||
pool = console
|
||||
restat = 1
|
||||
|
||||
build install/local: phony CMakeFiles/install/local.util
|
||||
|
||||
|
||||
#############################################
|
||||
# Utility command for install/strip
|
||||
|
||||
build CMakeFiles/install/strip.util: CUSTOM_COMMAND all
|
||||
COMMAND = cd /media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug && /usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
|
||||
DESC = Installing the project stripped...
|
||||
pool = console
|
||||
restat = 1
|
||||
|
||||
build install/strip: phony CMakeFiles/install/strip.util
|
||||
|
||||
# =============================================================================
|
||||
# Write statements declared in CMakeLists.txt:
|
||||
# /media/Source/flutter/stripe_native_card_field/example/linux/CMakeLists.txt
|
||||
# =============================================================================
|
||||
|
||||
|
||||
#############################################
|
||||
# Utility command for flutter_assemble
|
||||
|
||||
build flutter/flutter_assemble: phony flutter/CMakeFiles/flutter_assemble /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/libflutter_linux_gtk.so /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_engine.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_call.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_response.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_value.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_view.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/flutter_linux.h flutter/_phony_
|
||||
|
||||
|
||||
#############################################
|
||||
# Utility command for edit_cache
|
||||
|
||||
build flutter/CMakeFiles/edit_cache.util: CUSTOM_COMMAND
|
||||
COMMAND = cd /media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/flutter && /usr/bin/ccmake -S/media/Source/flutter/stripe_native_card_field/example/linux -B/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug
|
||||
DESC = Running CMake cache editor...
|
||||
pool = console
|
||||
restat = 1
|
||||
|
||||
build flutter/edit_cache: phony flutter/CMakeFiles/edit_cache.util
|
||||
|
||||
|
||||
#############################################
|
||||
# Utility command for rebuild_cache
|
||||
|
||||
build flutter/CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND
|
||||
COMMAND = cd /media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/flutter && /usr/bin/cmake --regenerate-during-build -S/media/Source/flutter/stripe_native_card_field/example/linux -B/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug
|
||||
DESC = Running CMake to regenerate build system...
|
||||
pool = console
|
||||
restat = 1
|
||||
|
||||
build flutter/rebuild_cache: phony flutter/CMakeFiles/rebuild_cache.util
|
||||
|
||||
|
||||
#############################################
|
||||
# Utility command for list_install_components
|
||||
|
||||
build flutter/list_install_components: phony
|
||||
|
||||
|
||||
#############################################
|
||||
# Utility command for install
|
||||
|
||||
build flutter/CMakeFiles/install.util: CUSTOM_COMMAND flutter/all
|
||||
COMMAND = cd /media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/flutter && /usr/bin/cmake -P cmake_install.cmake
|
||||
DESC = Install the project...
|
||||
pool = console
|
||||
restat = 1
|
||||
|
||||
build flutter/install: phony flutter/CMakeFiles/install.util
|
||||
|
||||
|
||||
#############################################
|
||||
# Utility command for install/local
|
||||
|
||||
build flutter/CMakeFiles/install/local.util: CUSTOM_COMMAND flutter/all
|
||||
COMMAND = cd /media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/flutter && /usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
|
||||
DESC = Installing only the local directory...
|
||||
pool = console
|
||||
restat = 1
|
||||
|
||||
build flutter/install/local: phony flutter/CMakeFiles/install/local.util
|
||||
|
||||
|
||||
#############################################
|
||||
# Utility command for install/strip
|
||||
|
||||
build flutter/CMakeFiles/install/strip.util: CUSTOM_COMMAND flutter/all
|
||||
COMMAND = cd /media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/flutter && /usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
|
||||
DESC = Installing the project stripped...
|
||||
pool = console
|
||||
restat = 1
|
||||
|
||||
build flutter/install/strip: phony flutter/CMakeFiles/install/strip.util
|
||||
|
||||
|
||||
#############################################
|
||||
# Phony custom command for flutter/CMakeFiles/flutter_assemble
|
||||
|
||||
build flutter/CMakeFiles/flutter_assemble | ${cmake_ninja_workdir}flutter/CMakeFiles/flutter_assemble: phony /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/libflutter_linux_gtk.so /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_engine.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_call.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_response.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_value.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_view.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/flutter_linux.h
|
||||
|
||||
|
||||
#############################################
|
||||
# Custom command for /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/libflutter_linux_gtk.so
|
||||
|
||||
build /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/libflutter_linux_gtk.so /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_engine.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_call.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_response.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_value.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_view.h /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/flutter_linux.h flutter/_phony_ | ${cmake_ninja_workdir}flutter/_phony_: CUSTOM_COMMAND
|
||||
COMMAND = cd /media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/flutter && /usr/bin/cmake -E env FLUTTER_ROOT=/home/nate/Tooling/flutter PROJECT_DIR=/media/Source/flutter/stripe_native_card_field/example DART_DEFINES=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==,RkxVVFRFUl9XRUJfQ0FOVkFTS0lUX1VSTD1odHRwczovL3d3dy5nc3RhdGljLmNvbS9mbHV0dGVyLWNhbnZhc2tpdC9hNzk0Y2YyNjgxYzZjOWZlN2IyNjBlMGU4NGRlOTYyOThkYzljMThiLw== DART_OBFUSCATION=false TRACK_WIDGET_CREATION=true TREE_SHAKE_ICONS=false PACKAGE_CONFIG=/media/Source/flutter/stripe_native_card_field/example/.dart_tool/package_config.json FLUTTER_TARGET=/media/Source/flutter/stripe_native_card_field/example/lib/main.dart /home/nate/Tooling/flutter/packages/flutter_tools/bin/tool_backend.sh linux-x64 Debug
|
||||
DESC = Generating /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/libflutter_linux_gtk.so, /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h, /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h, /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h, /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h, /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_engine.h, /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h, /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h, /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h, /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_call.h, /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h, /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h, /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_method_response.h, /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h, /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h, /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h, /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h, /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h, /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_value.h, /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/fl_view.h, /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/flutter_linux/flutter_linux.h, _phony_
|
||||
restat = 1
|
||||
|
||||
# =============================================================================
|
||||
# Target aliases.
|
||||
|
||||
build example: phony intermediates_do_not_run/example
|
||||
|
||||
build flutter_assemble: phony flutter/flutter_assemble
|
||||
|
||||
# =============================================================================
|
||||
# Folder targets.
|
||||
|
||||
# =============================================================================
|
||||
|
||||
#############################################
|
||||
# Folder: /media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug
|
||||
|
||||
build all: phony intermediates_do_not_run/example flutter/all
|
||||
|
||||
# =============================================================================
|
||||
|
||||
#############################################
|
||||
# Folder: /media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/flutter
|
||||
|
||||
build flutter/all: phony
|
||||
|
||||
# =============================================================================
|
||||
# Built-in targets
|
||||
|
||||
|
||||
#############################################
|
||||
# Re-run CMake if any of its inputs changed.
|
||||
|
||||
build build.ninja: RERUN_CMAKE | /media/Source/flutter/stripe_native_card_field/example/linux/CMakeLists.txt /media/Source/flutter/stripe_native_card_field/example/linux/flutter/CMakeLists.txt /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/generated_config.cmake /media/Source/flutter/stripe_native_card_field/example/linux/flutter/generated_plugins.cmake /usr/share/cmake/Modules/CMakeCXXInformation.cmake /usr/share/cmake/Modules/CMakeCommonLanguageInclude.cmake /usr/share/cmake/Modules/CMakeGenericSystem.cmake /usr/share/cmake/Modules/CMakeInitializeConfigs.cmake /usr/share/cmake/Modules/CMakeLanguageInformation.cmake /usr/share/cmake/Modules/CMakeSystemSpecificInformation.cmake /usr/share/cmake/Modules/CMakeSystemSpecificInitialize.cmake /usr/share/cmake/Modules/Compiler/CMakeCommonCompilerMacros.cmake /usr/share/cmake/Modules/Compiler/Clang-CXX.cmake /usr/share/cmake/Modules/Compiler/Clang.cmake /usr/share/cmake/Modules/Compiler/GNU.cmake /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake /usr/share/cmake/Modules/FindPackageMessage.cmake /usr/share/cmake/Modules/FindPkgConfig.cmake /usr/share/cmake/Modules/Platform/Linux-Clang-CXX.cmake /usr/share/cmake/Modules/Platform/Linux-GNU-CXX.cmake /usr/share/cmake/Modules/Platform/Linux-GNU.cmake /usr/share/cmake/Modules/Platform/Linux-Initialize.cmake /usr/share/cmake/Modules/Platform/Linux.cmake /usr/share/cmake/Modules/Platform/UnixPaths.cmake CMakeCache.txt CMakeFiles/3.27.7/CMakeCXXCompiler.cmake CMakeFiles/3.27.7/CMakeSystem.cmake
|
||||
pool = console
|
||||
|
||||
|
||||
#############################################
|
||||
# A missing CMake input file is not an error.
|
||||
|
||||
build /media/Source/flutter/stripe_native_card_field/example/linux/CMakeLists.txt /media/Source/flutter/stripe_native_card_field/example/linux/flutter/CMakeLists.txt /media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/generated_config.cmake /media/Source/flutter/stripe_native_card_field/example/linux/flutter/generated_plugins.cmake /usr/share/cmake/Modules/CMakeCXXInformation.cmake /usr/share/cmake/Modules/CMakeCommonLanguageInclude.cmake /usr/share/cmake/Modules/CMakeGenericSystem.cmake /usr/share/cmake/Modules/CMakeInitializeConfigs.cmake /usr/share/cmake/Modules/CMakeLanguageInformation.cmake /usr/share/cmake/Modules/CMakeSystemSpecificInformation.cmake /usr/share/cmake/Modules/CMakeSystemSpecificInitialize.cmake /usr/share/cmake/Modules/Compiler/CMakeCommonCompilerMacros.cmake /usr/share/cmake/Modules/Compiler/Clang-CXX.cmake /usr/share/cmake/Modules/Compiler/Clang.cmake /usr/share/cmake/Modules/Compiler/GNU.cmake /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake /usr/share/cmake/Modules/FindPackageMessage.cmake /usr/share/cmake/Modules/FindPkgConfig.cmake /usr/share/cmake/Modules/Platform/Linux-Clang-CXX.cmake /usr/share/cmake/Modules/Platform/Linux-GNU-CXX.cmake /usr/share/cmake/Modules/Platform/Linux-GNU.cmake /usr/share/cmake/Modules/Platform/Linux-Initialize.cmake /usr/share/cmake/Modules/Platform/Linux.cmake /usr/share/cmake/Modules/Platform/UnixPaths.cmake CMakeCache.txt CMakeFiles/3.27.7/CMakeCXXCompiler.cmake CMakeFiles/3.27.7/CMakeSystem.cmake: phony
|
||||
|
||||
|
||||
#############################################
|
||||
# Clean all the built files.
|
||||
|
||||
build clean: CLEAN
|
||||
|
||||
|
||||
#############################################
|
||||
# Print all primary targets available.
|
||||
|
||||
build help: HELP
|
||||
|
||||
|
||||
#############################################
|
||||
# Make the all target the default.
|
||||
|
||||
default all
|
|
@ -0,0 +1 @@
|
|||
2packages/cupertino_icons/assets/CupertinoIcons.ttf
asset2packages/cupertino_icons/assets/CupertinoIcons.ttf
|
|
@ -0,0 +1 @@
|
|||
{"packages/cupertino_icons/assets/CupertinoIcons.ttf":["packages/cupertino_icons/assets/CupertinoIcons.ttf"]}
|
|
@ -0,0 +1 @@
|
|||
[{"family":"MaterialIcons","fonts":[{"asset":"fonts/MaterialIcons-Regular.otf"}]},{"family":"packages/cupertino_icons/CupertinoIcons","fonts":[{"asset":"packages/cupertino_icons/assets/CupertinoIcons.ttf"}]}]
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
{"app_name":"example","version":"1.0.0","build_number":"1","package_name":"example"}
|
BIN
example/build/linux/x64/debug/bundle/data/icudtl.dat
Normal file
BIN
example/build/linux/x64/debug/bundle/data/icudtl.dat
Normal file
Binary file not shown.
BIN
example/build/linux/x64/debug/bundle/example
Executable file
BIN
example/build/linux/x64/debug/bundle/example
Executable file
Binary file not shown.
BIN
example/build/linux/x64/debug/bundle/lib/libflutter_linux_gtk.so
Normal file
BIN
example/build/linux/x64/debug/bundle/lib/libflutter_linux_gtk.so
Normal file
Binary file not shown.
136
example/build/linux/x64/debug/cmake_install.cmake
Normal file
136
example/build/linux/x64/debug/cmake_install.cmake
Normal file
|
@ -0,0 +1,136 @@
|
|||
# Install script for directory: /media/Source/flutter/stripe_native_card_field/example/linux
|
||||
|
||||
# Set the install prefix
|
||||
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
||||
set(CMAKE_INSTALL_PREFIX "/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle")
|
||||
endif()
|
||||
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
||||
|
||||
# Set the install configuration name.
|
||||
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
||||
if(BUILD_TYPE)
|
||||
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
|
||||
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_CONFIG_NAME "Debug")
|
||||
endif()
|
||||
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
|
||||
endif()
|
||||
|
||||
# Set the component getting installed.
|
||||
if(NOT CMAKE_INSTALL_COMPONENT)
|
||||
if(COMPONENT)
|
||||
message(STATUS "Install component: \"${COMPONENT}\"")
|
||||
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_COMPONENT)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Install shared libraries without execute permission?
|
||||
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
|
||||
set(CMAKE_INSTALL_SO_NO_EXE "0")
|
||||
endif()
|
||||
|
||||
# Is this installation the result of a crosscompile?
|
||||
if(NOT DEFINED CMAKE_CROSSCOMPILING)
|
||||
set(CMAKE_CROSSCOMPILING "FALSE")
|
||||
endif()
|
||||
|
||||
# Set default install directory permissions.
|
||||
if(NOT DEFINED CMAKE_OBJDUMP)
|
||||
set(CMAKE_OBJDUMP "/usr/bin/objdump")
|
||||
endif()
|
||||
|
||||
if(CMAKE_INSTALL_COMPONENT STREQUAL "Runtime" OR NOT CMAKE_INSTALL_COMPONENT)
|
||||
|
||||
file(REMOVE_RECURSE "/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/")
|
||||
|
||||
endif()
|
||||
|
||||
if(CMAKE_INSTALL_COMPONENT STREQUAL "Runtime" OR NOT CMAKE_INSTALL_COMPONENT)
|
||||
if(EXISTS "$ENV{DESTDIR}/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/example" AND
|
||||
NOT IS_SYMLINK "$ENV{DESTDIR}/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/example")
|
||||
file(RPATH_CHECK
|
||||
FILE "$ENV{DESTDIR}/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/example"
|
||||
RPATH "$ORIGIN/lib")
|
||||
endif()
|
||||
list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
|
||||
"/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/example")
|
||||
if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
|
||||
message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
|
||||
endif()
|
||||
if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
|
||||
message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
|
||||
endif()
|
||||
file(INSTALL DESTINATION "/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle" TYPE EXECUTABLE FILES "/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/intermediates_do_not_run/example")
|
||||
if(EXISTS "$ENV{DESTDIR}/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/example" AND
|
||||
NOT IS_SYMLINK "$ENV{DESTDIR}/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/example")
|
||||
file(RPATH_CHANGE
|
||||
FILE "$ENV{DESTDIR}/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/example"
|
||||
OLD_RPATH "/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral:"
|
||||
NEW_RPATH "$ORIGIN/lib")
|
||||
if(CMAKE_INSTALL_DO_STRIP)
|
||||
execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/example")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(CMAKE_INSTALL_COMPONENT STREQUAL "Runtime" OR NOT CMAKE_INSTALL_COMPONENT)
|
||||
list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
|
||||
"/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/data/icudtl.dat")
|
||||
if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
|
||||
message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
|
||||
endif()
|
||||
if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
|
||||
message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
|
||||
endif()
|
||||
file(INSTALL DESTINATION "/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/data" TYPE FILE FILES "/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/icudtl.dat")
|
||||
endif()
|
||||
|
||||
if(CMAKE_INSTALL_COMPONENT STREQUAL "Runtime" OR NOT CMAKE_INSTALL_COMPONENT)
|
||||
list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
|
||||
"/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/lib/libflutter_linux_gtk.so")
|
||||
if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
|
||||
message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
|
||||
endif()
|
||||
if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
|
||||
message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
|
||||
endif()
|
||||
file(INSTALL DESTINATION "/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/lib" TYPE FILE FILES "/media/Source/flutter/stripe_native_card_field/example/linux/flutter/ephemeral/libflutter_linux_gtk.so")
|
||||
endif()
|
||||
|
||||
if(CMAKE_INSTALL_COMPONENT STREQUAL "Runtime" OR NOT CMAKE_INSTALL_COMPONENT)
|
||||
|
||||
file(REMOVE_RECURSE "/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/data/flutter_assets")
|
||||
|
||||
endif()
|
||||
|
||||
if(CMAKE_INSTALL_COMPONENT STREQUAL "Runtime" OR NOT CMAKE_INSTALL_COMPONENT)
|
||||
list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
|
||||
"/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/data/flutter_assets")
|
||||
if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
|
||||
message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
|
||||
endif()
|
||||
if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
|
||||
message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
|
||||
endif()
|
||||
file(INSTALL DESTINATION "/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/data" TYPE DIRECTORY FILES "/media/Source/flutter/stripe_native_card_field/example/build//flutter_assets")
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_INSTALL_LOCAL_ONLY)
|
||||
# Include the install script for each subdirectory.
|
||||
include("/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/flutter/cmake_install.cmake")
|
||||
|
||||
endif()
|
||||
|
||||
if(CMAKE_INSTALL_COMPONENT)
|
||||
set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
|
||||
else()
|
||||
set(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
|
||||
endif()
|
||||
|
||||
string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
|
||||
"${CMAKE_INSTALL_MANIFEST_FILES}")
|
||||
file(WRITE "/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/${CMAKE_INSTALL_MANIFEST}"
|
||||
"${CMAKE_INSTALL_MANIFEST_CONTENT}")
|
44
example/build/linux/x64/debug/flutter/cmake_install.cmake
Normal file
44
example/build/linux/x64/debug/flutter/cmake_install.cmake
Normal file
|
@ -0,0 +1,44 @@
|
|||
# Install script for directory: /media/Source/flutter/stripe_native_card_field/example/linux/flutter
|
||||
|
||||
# Set the install prefix
|
||||
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
||||
set(CMAKE_INSTALL_PREFIX "/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle")
|
||||
endif()
|
||||
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
||||
|
||||
# Set the install configuration name.
|
||||
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
||||
if(BUILD_TYPE)
|
||||
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
|
||||
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_CONFIG_NAME "Debug")
|
||||
endif()
|
||||
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
|
||||
endif()
|
||||
|
||||
# Set the component getting installed.
|
||||
if(NOT CMAKE_INSTALL_COMPONENT)
|
||||
if(COMPONENT)
|
||||
message(STATUS "Install component: \"${COMPONENT}\"")
|
||||
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_COMPONENT)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Install shared libraries without execute permission?
|
||||
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
|
||||
set(CMAKE_INSTALL_SO_NO_EXE "0")
|
||||
endif()
|
||||
|
||||
# Is this installation the result of a crosscompile?
|
||||
if(NOT DEFINED CMAKE_CROSSCOMPILING)
|
||||
set(CMAKE_CROSSCOMPILING "FALSE")
|
||||
endif()
|
||||
|
||||
# Set default install directory permissions.
|
||||
if(NOT DEFINED CMAKE_OBJDUMP)
|
||||
set(CMAKE_OBJDUMP "/usr/bin/objdump")
|
||||
endif()
|
||||
|
12
example/build/linux/x64/debug/install_manifest.txt
Normal file
12
example/build/linux/x64/debug/install_manifest.txt
Normal file
|
@ -0,0 +1,12 @@
|
|||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/example
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/data/icudtl.dat
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/lib/libflutter_linux_gtk.so
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/data/flutter_assets/fonts/MaterialIcons-Regular.otf
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/data/flutter_assets/version.json
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/data/flutter_assets/FontManifest.json
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/data/flutter_assets/AssetManifest.bin
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/data/flutter_assets/AssetManifest.json
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/data/flutter_assets/kernel_blob.bin
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/data/flutter_assets/NOTICES.Z
|
||||
/media/Source/flutter/stripe_native_card_field/example/build/linux/x64/debug/bundle/data/flutter_assets/shaders/ink_sparkle.frag
|
BIN
example/build/linux/x64/debug/intermediates_do_not_run/example
Executable file
BIN
example/build/linux/x64/debug/intermediates_do_not_run/example
Executable file
Binary file not shown.
Binary file not shown.
1
example/build/unit_test_assets/AssetManifest.bin
Normal file
1
example/build/unit_test_assets/AssetManifest.bin
Normal file
|
@ -0,0 +1 @@
|
|||
2packages/cupertino_icons/assets/CupertinoIcons.ttf
asset2packages/cupertino_icons/assets/CupertinoIcons.ttf
|
1
example/build/unit_test_assets/AssetManifest.json
Normal file
1
example/build/unit_test_assets/AssetManifest.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"packages/cupertino_icons/assets/CupertinoIcons.ttf":["packages/cupertino_icons/assets/CupertinoIcons.ttf"]}
|
1
example/build/unit_test_assets/FontManifest.json
Normal file
1
example/build/unit_test_assets/FontManifest.json
Normal file
|
@ -0,0 +1 @@
|
|||
[{"family":"MaterialIcons","fonts":[{"asset":"fonts/MaterialIcons-Regular.otf"}]},{"family":"packages/cupertino_icons/CupertinoIcons","fonts":[{"asset":"packages/cupertino_icons/assets/CupertinoIcons.ttf"}]}]
|
BIN
example/build/unit_test_assets/NOTICES.Z
Normal file
BIN
example/build/unit_test_assets/NOTICES.Z
Normal file
Binary file not shown.
BIN
example/build/unit_test_assets/fonts/MaterialIcons-Regular.otf
Normal file
BIN
example/build/unit_test_assets/fonts/MaterialIcons-Regular.otf
Normal file
Binary file not shown.
Binary file not shown.
BIN
example/build/unit_test_assets/shaders/ink_sparkle.frag
Normal file
BIN
example/build/unit_test_assets/shaders/ink_sparkle.frag
Normal file
Binary file not shown.
17
example/example.iml
Normal file
17
example/example.iml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/lib" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/.dart_tool" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/.idea" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build" />
|
||||
</content>
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="Dart SDK" level="project" />
|
||||
<orderEntry type="library" name="Flutter Plugins" level="project" />
|
||||
<orderEntry type="library" name="Dart Packages" level="project" />
|
||||
</component>
|
||||
</module>
|
14
example/ios/Flutter/Generated.xcconfig
Normal file
14
example/ios/Flutter/Generated.xcconfig
Normal file
|
@ -0,0 +1,14 @@
|
|||
// This is a generated file; do not edit or check into version control.
|
||||
FLUTTER_ROOT=/home/nate/Tooling/flutter
|
||||
FLUTTER_APPLICATION_PATH=/media/Source/flutter/stripe_native_card_field/example
|
||||
COCOAPODS_PARALLEL_CODE_SIGN=true
|
||||
FLUTTER_TARGET=lib/main.dart
|
||||
FLUTTER_BUILD_DIR=build
|
||||
FLUTTER_BUILD_NAME=1.0.0
|
||||
FLUTTER_BUILD_NUMBER=1
|
||||
EXCLUDED_ARCHS[sdk=iphonesimulator*]=i386
|
||||
EXCLUDED_ARCHS[sdk=iphoneos*]=armv7
|
||||
DART_OBFUSCATION=false
|
||||
TRACK_WIDGET_CREATION=true
|
||||
TREE_SHAKE_ICONS=false
|
||||
PACKAGE_CONFIG=.dart_tool/package_config.json
|
13
example/ios/Flutter/flutter_export_environment.sh
Executable file
13
example/ios/Flutter/flutter_export_environment.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
# This is a generated file; do not edit or check into version control.
|
||||
export "FLUTTER_ROOT=/home/nate/Tooling/flutter"
|
||||
export "FLUTTER_APPLICATION_PATH=/media/Source/flutter/stripe_native_card_field/example"
|
||||
export "COCOAPODS_PARALLEL_CODE_SIGN=true"
|
||||
export "FLUTTER_TARGET=lib/main.dart"
|
||||
export "FLUTTER_BUILD_DIR=build"
|
||||
export "FLUTTER_BUILD_NAME=1.0.0"
|
||||
export "FLUTTER_BUILD_NUMBER=1"
|
||||
export "DART_OBFUSCATION=false"
|
||||
export "TRACK_WIDGET_CREATION=true"
|
||||
export "TREE_SHAKE_ICONS=false"
|
||||
export "PACKAGE_CONFIG=.dart_tool/package_config.json"
|
19
example/ios/Runner/GeneratedPluginRegistrant.h
Normal file
19
example/ios/Runner/GeneratedPluginRegistrant.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
//
|
||||
// Generated file. Do not edit.
|
||||
//
|
||||
|
||||
// clang-format off
|
||||
|
||||
#ifndef GeneratedPluginRegistrant_h
|
||||
#define GeneratedPluginRegistrant_h
|
||||
|
||||
#import <Flutter/Flutter.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface GeneratedPluginRegistrant : NSObject
|
||||
+ (void)registerWithRegistry:(NSObject<FlutterPluginRegistry>*)registry;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
#endif /* GeneratedPluginRegistrant_h */
|
14
example/ios/Runner/GeneratedPluginRegistrant.m
Normal file
14
example/ios/Runner/GeneratedPluginRegistrant.m
Normal file
|
@ -0,0 +1,14 @@
|
|||
//
|
||||
// Generated file. Do not edit.
|
||||
//
|
||||
|
||||
// clang-format off
|
||||
|
||||
#import "GeneratedPluginRegistrant.h"
|
||||
|
||||
@implementation GeneratedPluginRegistrant
|
||||
|
||||
+ (void)registerWithRegistry:(NSObject<FlutterPluginRegistry>*)registry {
|
||||
}
|
||||
|
||||
@end
|
|
@ -1,5 +1,6 @@
|
|||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:stripe_native_card_field/card_details.dart';
|
||||
import 'package:stripe_native_card_field/stripe_native_card_field.dart';
|
||||
|
||||
void main() {
|
||||
|
@ -57,6 +58,9 @@ class MyHomePage extends StatefulWidget {
|
|||
}
|
||||
|
||||
class _MyHomePageState extends State<MyHomePage> {
|
||||
ValidState? state;
|
||||
String? errorText;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
|
@ -68,15 +72,26 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
const Text(
|
||||
'Enter your card details below:',
|
||||
const Padding(
|
||||
padding: EdgeInsets.all(8.0),
|
||||
child: Text(
|
||||
'Enter your card details below:',
|
||||
),
|
||||
),
|
||||
CardTextField(
|
||||
width: 500,
|
||||
onCardDetailsComplete: (details) {
|
||||
width: 300,
|
||||
stripePublishableKey: 'pk_live_YHfarauddQAhnNAsW1qqJha6',
|
||||
onTokenReceived: (details) {
|
||||
if (kDebugMode) print('Got card details: $details');
|
||||
},
|
||||
),
|
||||
ElevatedButton(
|
||||
child: const Text('Set error'),
|
||||
onPressed: () => setState(() {
|
||||
errorText = 'There is a problem';
|
||||
state = ValidState.invalidCard;
|
||||
}),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
@ -0,0 +1,206 @@
|
|||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_BASIC_MESSAGE_CHANNEL_H_
|
||||
#define FLUTTER_SHELL_PLATFORM_LINUX_FL_BASIC_MESSAGE_CHANNEL_H_
|
||||
|
||||
#if !defined(__FLUTTER_LINUX_INSIDE__) && !defined(FLUTTER_LINUX_COMPILATION)
|
||||
#error "Only <flutter_linux/flutter_linux.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#include <gio/gio.h>
|
||||
#include <glib-object.h>
|
||||
|
||||
#include "fl_binary_messenger.h"
|
||||
#include "fl_message_codec.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
G_DECLARE_FINAL_TYPE(FlBasicMessageChannel,
|
||||
fl_basic_message_channel,
|
||||
FL,
|
||||
BASIC_MESSAGE_CHANNEL,
|
||||
GObject)
|
||||
|
||||
G_DECLARE_FINAL_TYPE(FlBasicMessageChannelResponseHandle,
|
||||
fl_basic_message_channel_response_handle,
|
||||
FL,
|
||||
BASIC_MESSAGE_CHANNEL_RESPONSE_HANDLE,
|
||||
GObject)
|
||||
|
||||
/**
|
||||
* FlBasicMessageChannel:
|
||||
*
|
||||
* #FlBasicMessageChannel is an object that allows sending and receiving
|
||||
* messages to/from Dart code over platform channels.
|
||||
*
|
||||
* The following example shows how to send messages on a channel:
|
||||
*
|
||||
* |[<!-- language="C" -->
|
||||
* static FlBasicMessageChannel *channel = NULL;
|
||||
*
|
||||
* static void message_cb (FlBasicMessageChannel* channel,
|
||||
* FlValue* message,
|
||||
* FlBasicMessageChannelResponseHandle* response_handle,
|
||||
* gpointer user_data) {
|
||||
* g_autoptr(FlValue) response = handle_message (message);
|
||||
* g_autoptr(GError) error = NULL;
|
||||
* if (!fl_basic_message_channel_respond (channel, response_handle, response,
|
||||
* &error))
|
||||
* g_warning ("Failed to send channel response: %s", error->message);
|
||||
* }
|
||||
*
|
||||
* static void message_response_cb (GObject *object,
|
||||
* GAsyncResult *result,
|
||||
* gpointer user_data) {
|
||||
* g_autoptr(GError) error = NULL;
|
||||
* g_autoptr(FlValue) response =
|
||||
* fl_basic_message_channel_send_finish (FL_BASIC_MESSAGE_CHANNEL (object),
|
||||
* result, &error);
|
||||
* if (response == NULL) {
|
||||
* g_warning ("Failed to send message: %s", error->message);
|
||||
* return;
|
||||
* }
|
||||
*
|
||||
* handle_response (response);
|
||||
* }
|
||||
*
|
||||
* static void setup_channel () {
|
||||
* g_autoptr(FlStandardMessageCodec) codec = fl_standard_message_codec_new ();
|
||||
* channel = fl_basic_message_channel_new (messenger, "flutter/foo",
|
||||
* FL_MESSAGE_CODEC (codec));
|
||||
* fl_basic_message_channel_set_message_handler (channel, message_cb, NULL,
|
||||
* NULL);
|
||||
*
|
||||
* g_autoptr(FlValue) message = fl_value_new_string ("Hello World");
|
||||
* fl_basic_message_channel_send (channel, message, NULL,
|
||||
* message_response_cb, NULL);
|
||||
* }
|
||||
* ]|
|
||||
*
|
||||
* #FlBasicMessageChannel matches the BasicMessageChannel class in the Flutter
|
||||
* services library.
|
||||
*/
|
||||
|
||||
/**
|
||||
* FlBasicMessageChannelResponseHandle:
|
||||
*
|
||||
* #FlBasicMessageChannelResponseHandle is an object used to send responses
|
||||
* with.
|
||||
*/
|
||||
|
||||
/**
|
||||
* FlBasicMessageChannelMessageHandler:
|
||||
* @channel: an #FlBasicMessageChannel.
|
||||
* @message: message received.
|
||||
* @response_handle: a handle to respond to the message with.
|
||||
* @user_data: (closure): data provided when registering this handler.
|
||||
*
|
||||
* Function called when a message is received. Call
|
||||
* fl_basic_message_channel_respond() to respond to this message. If the
|
||||
* response is not occurring in this callback take a reference to
|
||||
* @response_handle and release that once it has been responded to. Failing to
|
||||
* respond before the last reference to @response_handle is dropped is a
|
||||
* programming error.
|
||||
*/
|
||||
typedef void (*FlBasicMessageChannelMessageHandler)(
|
||||
FlBasicMessageChannel* channel,
|
||||
FlValue* message,
|
||||
FlBasicMessageChannelResponseHandle* response_handle,
|
||||
gpointer user_data);
|
||||
|
||||
/**
|
||||
* fl_basic_message_channel_new:
|
||||
* @messenger: an #FlBinaryMessenger.
|
||||
* @name: a channel name.
|
||||
* @codec: the message codec.
|
||||
*
|
||||
* Creates a basic message channel. @codec must match the codec used on the Dart
|
||||
* end of the channel.
|
||||
*
|
||||
* Returns: a new #FlBasicMessageChannel.
|
||||
*/
|
||||
FlBasicMessageChannel* fl_basic_message_channel_new(
|
||||
FlBinaryMessenger* messenger,
|
||||
const gchar* name,
|
||||
FlMessageCodec* codec);
|
||||
|
||||
/**
|
||||
* fl_basic_message_channel_set_message_handler:
|
||||
* @channel: an #FlBasicMessageChannel.
|
||||
* @handler: (allow-none): function to call when a message is received on this
|
||||
* channel or %NULL to disable the handler.
|
||||
* @user_data: (closure): user data to pass to @handler.
|
||||
* @destroy_notify: (allow-none): a function which gets called to free
|
||||
* @user_data, or %NULL.
|
||||
*
|
||||
* Sets the function called when a message is received from the Dart side of the
|
||||
* channel. See #FlBasicMessageChannelMessageHandler for details on how to
|
||||
* respond to messages.
|
||||
*
|
||||
* The handler is removed if the channel is closed or is replaced by another
|
||||
* handler, set @destroy_notify if you want to detect this.
|
||||
*/
|
||||
void fl_basic_message_channel_set_message_handler(
|
||||
FlBasicMessageChannel* channel,
|
||||
FlBasicMessageChannelMessageHandler handler,
|
||||
gpointer user_data,
|
||||
GDestroyNotify destroy_notify);
|
||||
|
||||
/**
|
||||
* fl_basic_message_channel_respond:
|
||||
* @channel: an #FlBasicMessageChannel.
|
||||
* @response_handle: handle that was provided in a
|
||||
* #FlBasicMessageChannelMessageHandler.
|
||||
* @message: (allow-none): message response to send or %NULL for an empty
|
||||
* response.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or %NULL
|
||||
* to ignore.
|
||||
*
|
||||
* Responds to a message.
|
||||
*
|
||||
* Returns: %TRUE on success.
|
||||
*/
|
||||
gboolean fl_basic_message_channel_respond(
|
||||
FlBasicMessageChannel* channel,
|
||||
FlBasicMessageChannelResponseHandle* response_handle,
|
||||
FlValue* message,
|
||||
GError** error);
|
||||
|
||||
/**
|
||||
* fl_basic_message_channel_send:
|
||||
* @channel: an #FlBasicMessageChannel.
|
||||
* @message: (allow-none): message to send, must match what the #FlMessageCodec
|
||||
* supports.
|
||||
* @cancellable: (allow-none): a #GCancellable or %NULL.
|
||||
* @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when
|
||||
* the request is satisfied or %NULL to ignore the response.
|
||||
* @user_data: (closure): user data to pass to @callback.
|
||||
*
|
||||
* Asynchronously sends a message.
|
||||
*/
|
||||
void fl_basic_message_channel_send(FlBasicMessageChannel* channel,
|
||||
FlValue* message,
|
||||
GCancellable* cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
|
||||
/**
|
||||
* fl_basic_message_channel_send_finish:
|
||||
* @channel: an #FlBasicMessageChannel.
|
||||
* @result: a #GAsyncResult.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or %NULL
|
||||
* to ignore.
|
||||
*
|
||||
* Completes request started with fl_basic_message_channel_send().
|
||||
*
|
||||
* Returns: message response on success or %NULL on error.
|
||||
*/
|
||||
FlValue* fl_basic_message_channel_send_finish(FlBasicMessageChannel* channel,
|
||||
GAsyncResult* result,
|
||||
GError** error);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_BASIC_MESSAGE_CHANNEL_H_
|
|
@ -0,0 +1,45 @@
|
|||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_BINARY_CODEC_H_
|
||||
#define FLUTTER_SHELL_PLATFORM_LINUX_FL_BINARY_CODEC_H_
|
||||
|
||||
#if !defined(__FLUTTER_LINUX_INSIDE__) && !defined(FLUTTER_LINUX_COMPILATION)
|
||||
#error "Only <flutter_linux/flutter_linux.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#include "fl_message_codec.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
G_DECLARE_FINAL_TYPE(FlBinaryCodec,
|
||||
fl_binary_codec,
|
||||
FL,
|
||||
BINARY_CODEC,
|
||||
FlMessageCodec)
|
||||
|
||||
/**
|
||||
* FlBinaryCodec:
|
||||
*
|
||||
* #FlBinaryCodec is an #FlMessageCodec that implements the Flutter binary
|
||||
* message encoding. This only encodes and decodes #FlValue of type
|
||||
* #FL_VALUE_TYPE_UINT8_LIST, other types #FlValues will generate an error
|
||||
* during encoding.
|
||||
*
|
||||
* #FlBinaryCodec matches the BinaryCodec class in the Flutter services
|
||||
* library.
|
||||
*/
|
||||
|
||||
/**
|
||||
* fl_binary_codec_new:
|
||||
*
|
||||
* Creates an #FlBinaryCodec.
|
||||
*
|
||||
* Returns: a new #FlBinaryCodec.
|
||||
*/
|
||||
FlBinaryCodec* fl_binary_codec_new();
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_BINARY_CODEC_H_
|
|
@ -0,0 +1,189 @@
|
|||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_BINARY_MESSENGER_H_
|
||||
#define FLUTTER_SHELL_PLATFORM_LINUX_FL_BINARY_MESSENGER_H_
|
||||
|
||||
#if !defined(__FLUTTER_LINUX_INSIDE__) && !defined(FLUTTER_LINUX_COMPILATION)
|
||||
#error "Only <flutter_linux/flutter_linux.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#include <gio/gio.h>
|
||||
#include <glib-object.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
/**
|
||||
* FlBinaryMessengerError:
|
||||
* @FL_BINARY_MESSENGER_ERROR_ALREADY_RESPONDED: unable to send response, this
|
||||
* message has already been responded to.
|
||||
*
|
||||
* Errors for #FlBinaryMessenger objects to set on failures.
|
||||
*/
|
||||
#define FL_BINARY_MESSENGER_ERROR fl_binary_messenger_codec_error_quark()
|
||||
|
||||
typedef enum {
|
||||
FL_BINARY_MESSENGER_ERROR_ALREADY_RESPONDED,
|
||||
} FlBinaryMessengerError;
|
||||
|
||||
GQuark fl_binary_messenger_codec_error_quark(void) G_GNUC_CONST;
|
||||
|
||||
G_DECLARE_INTERFACE(FlBinaryMessenger,
|
||||
fl_binary_messenger,
|
||||
FL,
|
||||
BINARY_MESSENGER,
|
||||
GObject)
|
||||
|
||||
G_DECLARE_DERIVABLE_TYPE(FlBinaryMessengerResponseHandle,
|
||||
fl_binary_messenger_response_handle,
|
||||
FL,
|
||||
BINARY_MESSENGER_RESPONSE_HANDLE,
|
||||
GObject)
|
||||
|
||||
/**
|
||||
* FlBinaryMessengerMessageHandler:
|
||||
* @messenger: an #FlBinaryMessenger.
|
||||
* @channel: channel message received on.
|
||||
* @message: message content received from Dart.
|
||||
* @response_handle: a handle to respond to the message with.
|
||||
* @user_data: (closure): data provided when registering this handler.
|
||||
*
|
||||
* Function called when platform messages are received. Call
|
||||
* fl_binary_messenger_send_response() to respond to this message. If the
|
||||
* response is not occurring in this callback take a reference to
|
||||
* @response_handle and release that once it has been responded to. Failing to
|
||||
* respond before the last reference to @response_handle is dropped is a
|
||||
* programming error.
|
||||
*/
|
||||
typedef void (*FlBinaryMessengerMessageHandler)(
|
||||
FlBinaryMessenger* messenger,
|
||||
const gchar* channel,
|
||||
GBytes* message,
|
||||
FlBinaryMessengerResponseHandle* response_handle,
|
||||
gpointer user_data);
|
||||
|
||||
struct _FlBinaryMessengerInterface {
|
||||
GTypeInterface parent_iface;
|
||||
|
||||
void (*set_message_handler_on_channel)(
|
||||
FlBinaryMessenger* messenger,
|
||||
const gchar* channel,
|
||||
FlBinaryMessengerMessageHandler handler,
|
||||
gpointer user_data,
|
||||
GDestroyNotify destroy_notify);
|
||||
|
||||
gboolean (*send_response)(FlBinaryMessenger* messenger,
|
||||
FlBinaryMessengerResponseHandle* response_handle,
|
||||
GBytes* response,
|
||||
GError** error);
|
||||
|
||||
void (*send_on_channel)(FlBinaryMessenger* messenger,
|
||||
const gchar* channel,
|
||||
GBytes* message,
|
||||
GCancellable* cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
|
||||
GBytes* (*send_on_channel_finish)(FlBinaryMessenger* messenger,
|
||||
GAsyncResult* result,
|
||||
GError** error);
|
||||
};
|
||||
|
||||
struct _FlBinaryMessengerResponseHandleClass {
|
||||
GObjectClass parent_class;
|
||||
};
|
||||
|
||||
/**
|
||||
* FlBinaryMessenger:
|
||||
*
|
||||
* #FlBinaryMessenger is an object that allows sending and receiving of platform
|
||||
* messages with an #FlEngine.
|
||||
*/
|
||||
|
||||
/**
|
||||
* FlBinaryMessengerResponseHandle:
|
||||
*
|
||||
* #FlBinaryMessengerResponseHandle is an object used to send responses with.
|
||||
*/
|
||||
|
||||
/**
|
||||
* fl_binary_messenger_set_platform_message_handler:
|
||||
* @binary_messenger: an #FlBinaryMessenger.
|
||||
* @channel: channel to listen on.
|
||||
* @handler: (allow-none): function to call when a message is received on this
|
||||
* channel or %NULL to disable a handler
|
||||
* @user_data: (closure): user data to pass to @handler.
|
||||
* @destroy_notify: (allow-none): a function which gets called to free
|
||||
* @user_data, or %NULL.
|
||||
*
|
||||
* Sets the function called when a platform message is received on the given
|
||||
* channel. See #FlBinaryMessengerMessageHandler for details on how to respond
|
||||
* to messages.
|
||||
*
|
||||
* The handler is removed if the channel is closed or is replaced by another
|
||||
* handler, set @destroy_notify if you want to detect this.
|
||||
*/
|
||||
void fl_binary_messenger_set_message_handler_on_channel(
|
||||
FlBinaryMessenger* messenger,
|
||||
const gchar* channel,
|
||||
FlBinaryMessengerMessageHandler handler,
|
||||
gpointer user_data,
|
||||
GDestroyNotify destroy_notify);
|
||||
|
||||
/**
|
||||
* fl_binary_messenger_send_response:
|
||||
* @binary_messenger: an #FlBinaryMessenger.
|
||||
* @response_handle: handle that was provided in a
|
||||
* #FlBinaryMessengerMessageHandler.
|
||||
* @response: (allow-none): response to send or %NULL for an empty response.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or %NULL
|
||||
* to ignore.
|
||||
*
|
||||
* Responds to a platform message. This function is thread-safe.
|
||||
*
|
||||
* Returns: %TRUE on success.
|
||||
*/
|
||||
gboolean fl_binary_messenger_send_response(
|
||||
FlBinaryMessenger* messenger,
|
||||
FlBinaryMessengerResponseHandle* response_handle,
|
||||
GBytes* response,
|
||||
GError** error);
|
||||
|
||||
/**
|
||||
* fl_binary_messenger_send_on_channel:
|
||||
* @binary_messenger: an #FlBinaryMessenger.
|
||||
* @channel: channel to send to.
|
||||
* @message: (allow-none): message buffer to send or %NULL for an empty message.
|
||||
* @cancellable: (allow-none): a #GCancellable or %NULL.
|
||||
* @callback: (scope async): a #GAsyncReadyCallback to call when the request is
|
||||
* satisfied.
|
||||
* @user_data: (closure): user data to pass to @callback.
|
||||
*
|
||||
* Asynchronously sends a platform message.
|
||||
*/
|
||||
void fl_binary_messenger_send_on_channel(FlBinaryMessenger* messenger,
|
||||
const gchar* channel,
|
||||
GBytes* message,
|
||||
GCancellable* cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
|
||||
/**
|
||||
* fl_binary_messenger_send_on_channel_finish:
|
||||
* @binary_messenger: an #FlBinaryMessenger.
|
||||
* @result: a #GAsyncResult.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or %NULL
|
||||
* to ignore.
|
||||
*
|
||||
* Completes request started with fl_binary_messenger_send_on_channel().
|
||||
*
|
||||
* Returns: (transfer full): message response on success or %NULL on error.
|
||||
*/
|
||||
GBytes* fl_binary_messenger_send_on_channel_finish(FlBinaryMessenger* messenger,
|
||||
GAsyncResult* result,
|
||||
GError** error);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_BINARY_MESSENGER_H_
|
119
example/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h
Normal file
119
example/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h
Normal file
|
@ -0,0 +1,119 @@
|
|||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_DART_PROJECT_H_
|
||||
#define FLUTTER_SHELL_PLATFORM_LINUX_FL_DART_PROJECT_H_
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
#if !defined(__FLUTTER_LINUX_INSIDE__) && !defined(FLUTTER_LINUX_COMPILATION)
|
||||
#error "Only <flutter_linux/flutter_linux.h> can be included directly."
|
||||
#endif
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
G_DECLARE_FINAL_TYPE(FlDartProject, fl_dart_project, FL, DART_PROJECT, GObject)
|
||||
|
||||
/**
|
||||
* FlDartProject:
|
||||
*
|
||||
* #FlDartProject represents a Dart project. It is used to provide information
|
||||
* about the application when creating an #FlView.
|
||||
*/
|
||||
|
||||
/**
|
||||
* fl_dart_project_new:
|
||||
*
|
||||
* Creates a Flutter project for the currently running executable. The following
|
||||
* data files are required relative to the location of the executable:
|
||||
* - data/flutter_assets/ (as built by the Flutter tool).
|
||||
* - data/icudtl.dat (provided as a resource by the Flutter tool).
|
||||
* - lib/libapp.so (as built by the Flutter tool when in AOT mode).
|
||||
*
|
||||
* Returns: a new #FlDartProject.
|
||||
*/
|
||||
FlDartProject* fl_dart_project_new();
|
||||
|
||||
/**
|
||||
* fl_dart_project_get_aot_library_path:
|
||||
* @project: an #FlDartProject.
|
||||
*
|
||||
* Gets the path to the AOT library in the Flutter application.
|
||||
*
|
||||
* Returns: (type filename): an absolute file path, e.g.
|
||||
* "/projects/my_dart_project/lib/libapp.so".
|
||||
*/
|
||||
const gchar* fl_dart_project_get_aot_library_path(FlDartProject* project);
|
||||
|
||||
/**
|
||||
* fl_dart_project_set_assets_path:
|
||||
* @project: an #FlDartProject.
|
||||
* @path: the absolute path to the assets directory.
|
||||
*
|
||||
* Sets the path to the directory containing the assets used in the Flutter
|
||||
* application. By default, this is the data/flutter_assets subdirectory
|
||||
* relative to the executable directory.
|
||||
*/
|
||||
void fl_dart_project_set_assets_path(FlDartProject* project, gchar* path);
|
||||
|
||||
/**
|
||||
* fl_dart_project_get_assets_path:
|
||||
* @project: an #FlDartProject.
|
||||
*
|
||||
* Gets the path to the directory containing the assets used in the Flutter
|
||||
* application.
|
||||
*
|
||||
* Returns: (type filename): an absolute directory path, e.g.
|
||||
* "/projects/my_dart_project/data/flutter_assets".
|
||||
*/
|
||||
const gchar* fl_dart_project_get_assets_path(FlDartProject* project);
|
||||
|
||||
/**
|
||||
* fl_dart_project_set_icu_data_path:
|
||||
* @project: an #FlDartProject.
|
||||
* @path: the absolute path to the ICU data file.
|
||||
*
|
||||
* Sets the path to the ICU data file used in the Flutter application. By
|
||||
* default, this is data/icudtl.dat relative to the executable directory.
|
||||
*/
|
||||
void fl_dart_project_set_icu_data_path(FlDartProject* project, gchar* path);
|
||||
|
||||
/**
|
||||
* fl_dart_project_get_icu_data_path:
|
||||
* @project: an #FlDartProject.
|
||||
*
|
||||
* Gets the path to the ICU data file in the Flutter application.
|
||||
*
|
||||
* Returns: (type filename): an absolute file path, e.g.
|
||||
* "/projects/my_dart_project/data/icudtl.dat".
|
||||
*/
|
||||
const gchar* fl_dart_project_get_icu_data_path(FlDartProject* project);
|
||||
|
||||
/**
|
||||
* fl_dart_project_set_dart_entrypoint_arguments:
|
||||
* @project: an #FlDartProject.
|
||||
* @argv: a pointer to a NULL-terminated array of C strings containing the
|
||||
* command line arguments.
|
||||
*
|
||||
* Sets the command line arguments to be passed through to the Dart
|
||||
* entrypoint function.
|
||||
*/
|
||||
void fl_dart_project_set_dart_entrypoint_arguments(FlDartProject* project,
|
||||
char** argv);
|
||||
|
||||
/**
|
||||
* fl_dart_project_get_dart_entrypoint_arguments:
|
||||
* @project: an #FlDartProject.
|
||||
*
|
||||
* Gets the command line arguments to be passed through to the Dart entrypoint
|
||||
* function.
|
||||
*
|
||||
* Returns: a NULL-terminated array of strings containing the command line
|
||||
* arguments to be passed to the Dart entrypoint.
|
||||
*/
|
||||
gchar** fl_dart_project_get_dart_entrypoint_arguments(FlDartProject* project);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_DART_PROJECT_H_
|
60
example/linux/flutter/ephemeral/flutter_linux/fl_engine.h
Normal file
60
example/linux/flutter/ephemeral/flutter_linux/fl_engine.h
Normal file
|
@ -0,0 +1,60 @@
|
|||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_ENGINE_H_
|
||||
#define FLUTTER_SHELL_PLATFORM_LINUX_FL_ENGINE_H_
|
||||
|
||||
#if !defined(__FLUTTER_LINUX_INSIDE__) && !defined(FLUTTER_LINUX_COMPILATION)
|
||||
#error "Only <flutter_linux/flutter_linux.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
#include "fl_binary_messenger.h"
|
||||
#include "fl_dart_project.h"
|
||||
#include "fl_texture_registrar.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
G_DECLARE_FINAL_TYPE(FlEngine, fl_engine, FL, ENGINE, GObject)
|
||||
|
||||
/**
|
||||
* FlEngine:
|
||||
*
|
||||
* #FlEngine is an object that contains a running Flutter engine.
|
||||
*/
|
||||
|
||||
/**
|
||||
* fl_engine_new_headless:
|
||||
* @project: an #FlDartProject.
|
||||
*
|
||||
* Creates new Flutter engine running in headless mode.
|
||||
*
|
||||
* Returns: a new #FlEngine.
|
||||
*/
|
||||
FlEngine* fl_engine_new_headless(FlDartProject* project);
|
||||
|
||||
/**
|
||||
* fl_engine_get_binary_messenger:
|
||||
* @engine: an #FlEngine.
|
||||
*
|
||||
* Gets the messenger to communicate with this engine.
|
||||
*
|
||||
* Returns: an #FlBinaryMessenger.
|
||||
*/
|
||||
FlBinaryMessenger* fl_engine_get_binary_messenger(FlEngine* engine);
|
||||
|
||||
/**
|
||||
* fl_engine_get_texture_registrar:
|
||||
* @engine: an #FlEngine.
|
||||
*
|
||||
* Gets the texture registrar for registering textures.
|
||||
*
|
||||
* Returns: an #FlTextureRegistrar.
|
||||
*/
|
||||
FlTextureRegistrar* fl_engine_get_texture_registrar(FlEngine* engine);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_ENGINE_H_
|
187
example/linux/flutter/ephemeral/flutter_linux/fl_event_channel.h
Normal file
187
example/linux/flutter/ephemeral/flutter_linux/fl_event_channel.h
Normal file
|
@ -0,0 +1,187 @@
|
|||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_EVENT_CHANNEL_H_
|
||||
#define FLUTTER_SHELL_PLATFORM_LINUX_FL_EVENT_CHANNEL_H_
|
||||
|
||||
#if !defined(__FLUTTER_LINUX_INSIDE__) && !defined(FLUTTER_LINUX_COMPILATION)
|
||||
#error "Only <flutter_linux/flutter_linux.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#include <gio/gio.h>
|
||||
#include <glib-object.h>
|
||||
|
||||
#include "fl_binary_messenger.h"
|
||||
#include "fl_method_channel.h"
|
||||
#include "fl_method_response.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
G_DECLARE_FINAL_TYPE(FlEventChannel,
|
||||
fl_event_channel,
|
||||
FL,
|
||||
EVENT_CHANNEL,
|
||||
GObject)
|
||||
|
||||
/**
|
||||
* FlEventChannel:
|
||||
*
|
||||
* #FlEventChannel is an object that allows sending
|
||||
* an events stream to Dart code over platform channels.
|
||||
*
|
||||
* The following example shows how to send events on a channel:
|
||||
*
|
||||
* |[<!-- language="C" -->
|
||||
* static FlEventChannel *channel = NULL;
|
||||
* static gboolean send_events = FALSE;
|
||||
*
|
||||
* static void event_occurs_cb (FooEvent *event) {
|
||||
* if (send_events) {
|
||||
* g_autoptr(FlValue) message = foo_event_to_value (event);
|
||||
* g_autoptr(GError) error = NULL;
|
||||
* if (!fl_event_channel_send (channel, message, NULL, &error)) {
|
||||
* g_warning ("Failed to send event: %s", error->message);
|
||||
* }
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* static FlMethodErrorResponse* listen_cb (FlEventChannel* channel,
|
||||
* FlValue *args,
|
||||
* gpointer user_data) {
|
||||
* send_events = TRUE;
|
||||
* return NULL;
|
||||
* }
|
||||
*
|
||||
* static FlMethodErrorResponse* cancel_cb (GObject *object,
|
||||
* FlValue *args,
|
||||
* gpointer user_data) {
|
||||
* send_events = FALSE;
|
||||
* return NULL;
|
||||
* }
|
||||
*
|
||||
* static void setup_channel () {
|
||||
* g_autoptr(FlStandardMethodCodec) codec = fl_standard_method_codec_new ();
|
||||
* channel = fl_event_channel_new (messenger, "flutter/foo",
|
||||
* FL_METHOD_CODEC (codec));
|
||||
* fl_event_channel_set_stream_handlers (channel, listen_cb, cancel_cb,
|
||||
* NULL, NULL);
|
||||
* }
|
||||
* ]|
|
||||
*
|
||||
* #FlEventChannel matches the EventChannel class in the Flutter
|
||||
* services library.
|
||||
*/
|
||||
|
||||
/**
|
||||
* FlEventChannelHandler:
|
||||
* @channel: an #FlEventChannel.
|
||||
* @args: arguments passed from the Dart end of the channel.
|
||||
* @user_data: (closure): data provided when registering this handler.
|
||||
*
|
||||
* Function called when the stream is listened to or cancelled.
|
||||
*
|
||||
* Returns: (transfer full): an #FlMethodErrorResponse or %NULL if no error.
|
||||
*/
|
||||
typedef FlMethodErrorResponse* (*FlEventChannelHandler)(FlEventChannel* channel,
|
||||
FlValue* args,
|
||||
gpointer user_data);
|
||||
|
||||
/**
|
||||
* fl_event_channel_new:
|
||||
* @messenger: an #FlBinaryMessenger.
|
||||
* @name: a channel name.
|
||||
* @codec: the message codec.
|
||||
*
|
||||
* Creates an event channel. @codec must match the codec used on the Dart
|
||||
* end of the channel.
|
||||
*
|
||||
* Returns: a new #FlEventChannel.
|
||||
*/
|
||||
FlEventChannel* fl_event_channel_new(FlBinaryMessenger* messenger,
|
||||
const gchar* name,
|
||||
FlMethodCodec* codec);
|
||||
|
||||
/**
|
||||
* fl_event_channel_set_stream_handlers:
|
||||
* @channel: an #FlEventChannel.
|
||||
* @listen_handler: (allow-none): function to call when the Dart side of the
|
||||
* channel starts listening to the stream.
|
||||
* @cancel_handler: (allow-none): function to call when the Dart side of the
|
||||
* channel cancels their subscription to the stream.
|
||||
* @user_data: (closure): user data to pass to @listen_handler and
|
||||
* @cancel_handler.
|
||||
* @destroy_notify: (allow-none): a function which gets called to free
|
||||
* @user_data, or %NULL.
|
||||
*
|
||||
* Sets the functions called when the Dart side requests the stream to start and
|
||||
* finish.
|
||||
*
|
||||
* The handlers are removed if the channel is closed or is replaced by another
|
||||
* handler, set @destroy_notify if you want to detect this.
|
||||
*/
|
||||
void fl_event_channel_set_stream_handlers(FlEventChannel* channel,
|
||||
FlEventChannelHandler listen_handler,
|
||||
FlEventChannelHandler cancel_handler,
|
||||
gpointer user_data,
|
||||
GDestroyNotify destroy_notify);
|
||||
|
||||
/**
|
||||
* fl_event_channel_send:
|
||||
* @channel: an #FlEventChannel.
|
||||
* @event: event to send, must match what the #FlMethodCodec supports.
|
||||
* @cancellable: (allow-none): a #GCancellable or %NULL.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or %NULL
|
||||
* to ignore.
|
||||
*
|
||||
* Sends an event on the channel.
|
||||
* Events should only be sent once the channel is being listened to.
|
||||
*
|
||||
* Returns: %TRUE if successful.
|
||||
*/
|
||||
gboolean fl_event_channel_send(FlEventChannel* channel,
|
||||
FlValue* event,
|
||||
GCancellable* cancellable,
|
||||
GError** error);
|
||||
|
||||
/**
|
||||
* fl_event_channel_send_error:
|
||||
* @channel: an #FlEventChannel.
|
||||
* @code: error code to send.
|
||||
* @message: error message to send.
|
||||
* @details: (allow-none): error details or %NULL.
|
||||
* @cancellable: (allow-none): a #GCancellable or %NULL.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or %NULL
|
||||
* to ignore.
|
||||
*
|
||||
* Sends an error on the channel.
|
||||
* Errors should only be sent once the channel is being listened to.
|
||||
*
|
||||
* Returns: %TRUE if successful.
|
||||
*/
|
||||
gboolean fl_event_channel_send_error(FlEventChannel* channel,
|
||||
const gchar* code,
|
||||
const gchar* message,
|
||||
FlValue* details,
|
||||
GCancellable* cancellable,
|
||||
GError** error);
|
||||
|
||||
/**
|
||||
* fl_event_channel_send_end_of_stream:
|
||||
* @channel: an #FlEventChannel.
|
||||
* @cancellable: (allow-none): a #GCancellable or %NULL.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or %NULL
|
||||
* to ignore.
|
||||
*
|
||||
* Indicates the stream has completed.
|
||||
* It is a programmer error to send any more events after calling this.
|
||||
*
|
||||
* Returns: %TRUE if successful.
|
||||
*/
|
||||
gboolean fl_event_channel_send_end_of_stream(FlEventChannel* channel,
|
||||
GCancellable* cancellable,
|
||||
GError** error);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_EVENT_CHANNEL_H_
|
|
@ -0,0 +1,96 @@
|
|||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_JSON_MESSAGE_CODEC_H_
|
||||
#define FLUTTER_SHELL_PLATFORM_LINUX_FL_JSON_MESSAGE_CODEC_H_
|
||||
|
||||
#if !defined(__FLUTTER_LINUX_INSIDE__) && !defined(FLUTTER_LINUX_COMPILATION)
|
||||
#error "Only <flutter_linux/flutter_linux.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#include "fl_message_codec.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
/**
|
||||
* FlJsonMessageCodecError:
|
||||
* @FL_JSON_MESSAGE_CODEC_ERROR_INVALID_UTF8: Message is not valid UTF-8.
|
||||
* @FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON: Message is not valid JSON.
|
||||
* @FL_JSON_MESSAGE_CODEC_ERROR_INVALID_OBJECT_KEY_TYPE: Invalid object key
|
||||
* type.
|
||||
*
|
||||
* Errors for #FlJsonMessageCodec objects to set on failures.
|
||||
*/
|
||||
#define FL_JSON_MESSAGE_CODEC_ERROR fl_json_message_codec_error_quark()
|
||||
|
||||
typedef enum {
|
||||
FL_JSON_MESSAGE_CODEC_ERROR_INVALID_UTF8,
|
||||
FL_JSON_MESSAGE_CODEC_ERROR_INVALID_JSON,
|
||||
FL_JSON_MESSAGE_CODEC_ERROR_INVALID_OBJECT_KEY_TYPE,
|
||||
} FlJsonMessageCodecError;
|
||||
|
||||
GQuark fl_json_message_codec_error_quark(void) G_GNUC_CONST;
|
||||
|
||||
G_DECLARE_FINAL_TYPE(FlJsonMessageCodec,
|
||||
fl_json_message_codec,
|
||||
FL,
|
||||
JSON_CODEC,
|
||||
FlMessageCodec)
|
||||
|
||||
/**
|
||||
* FlJsonMessageCodec:
|
||||
*
|
||||
* #FlJsonMessageCodec is an #FlMessageCodec that implements the encodes
|
||||
* #FlValue to/from JSON. This codec encodes and decodes #FlValue of type
|
||||
* #FL_VALUE_TYPE_NULL, #FL_VALUE_TYPE_BOOL, #FL_VALUE_TYPE_INT,
|
||||
* #FL_VALUE_TYPE_FLOAT, #FL_VALUE_TYPE_STRING, #FL_VALUE_TYPE_UINT8_LIST,
|
||||
* #FL_VALUE_TYPE_INT32_LIST, #FL_VALUE_TYPE_INT64_LIST,
|
||||
* #FL_VALUE_TYPE_FLOAT_LIST, #FL_VALUE_TYPE_LIST, and #FL_VALUE_TYPE_MAP.
|
||||
*
|
||||
* #FlJsonMessageCodec matches the JSONMessageCodec class in the Flutter
|
||||
* services library.
|
||||
*/
|
||||
|
||||
/**
|
||||
* fl_json_message_codec_new:
|
||||
*
|
||||
* Creates an #FlJsonMessageCodec.
|
||||
*
|
||||
* Returns: a new #FlJsonMessageCodec.
|
||||
*/
|
||||
FlJsonMessageCodec* fl_json_message_codec_new();
|
||||
|
||||
/**
|
||||
* fl_json_message_codec_encode:
|
||||
* @codec: an #FlJsonMessageCodec.
|
||||
* @value: value to encode.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or
|
||||
* %NULL.
|
||||
*
|
||||
* Encodes a value to a JSON string.
|
||||
*
|
||||
* Returns: a JSON representation of this value or %NULL on error.
|
||||
*/
|
||||
gchar* fl_json_message_codec_encode(FlJsonMessageCodec* codec,
|
||||
FlValue* value,
|
||||
GError** error);
|
||||
|
||||
/**
|
||||
* fl_json_message_codec_decode:
|
||||
* @codec: an #FlJsonMessageCodec.
|
||||
* @text: UTF-8 text in JSON format.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or
|
||||
* %NULL.
|
||||
*
|
||||
* Decodes a value from a JSON string.
|
||||
*
|
||||
* Returns: an #FlValue or %NULL on error.
|
||||
*/
|
||||
FlValue* fl_json_message_codec_decode(FlJsonMessageCodec* codec,
|
||||
const gchar* text,
|
||||
GError** error);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_JSON_MESSAGE_CODEC_H_
|
|
@ -0,0 +1,44 @@
|
|||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_JSON_METHOD_CODEC_H_
|
||||
#define FLUTTER_SHELL_PLATFORM_LINUX_FL_JSON_METHOD_CODEC_H_
|
||||
|
||||
#if !defined(__FLUTTER_LINUX_INSIDE__) && !defined(FLUTTER_LINUX_COMPILATION)
|
||||
#error "Only <flutter_linux/flutter_linux.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#include "fl_method_codec.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
G_DECLARE_FINAL_TYPE(FlJsonMethodCodec,
|
||||
fl_json_method_codec,
|
||||
FL,
|
||||
JSON_METHOD_CODEC,
|
||||
FlMethodCodec)
|
||||
|
||||
/**
|
||||
* FlJsonMethodCodec:
|
||||
*
|
||||
* #FlJsonMessageCodec is an #FlMethodCodec that implements method calls using
|
||||
* the Flutter JSON message encoding. It should be used with an
|
||||
* #FlMethodChannel.
|
||||
*
|
||||
* #FlJsonMethodCodec matches the JSONMethodCodec class in the Flutter services
|
||||
* library.
|
||||
*/
|
||||
|
||||
/**
|
||||
* fl_json_method_codec_new:
|
||||
*
|
||||
* Creates an #FlJsonMethodCodec.
|
||||
*
|
||||
* Returns: a new #FlJsonMethodCodec.
|
||||
*/
|
||||
FlJsonMethodCodec* fl_json_method_codec_new();
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_JSON_METHOD_CODEC_H_
|
129
example/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h
Normal file
129
example/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h
Normal file
|
@ -0,0 +1,129 @@
|
|||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_MESSAGE_CODEC_H_
|
||||
#define FLUTTER_SHELL_PLATFORM_LINUX_FL_MESSAGE_CODEC_H_
|
||||
|
||||
#if !defined(__FLUTTER_LINUX_INSIDE__) && !defined(FLUTTER_LINUX_COMPILATION)
|
||||
#error "Only <flutter_linux/flutter_linux.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
#include "fl_value.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
/**
|
||||
* FlMessageCodecError:
|
||||
* @FL_MESSAGE_CODEC_ERROR_FAILED: Codec failed due to an unspecified error.
|
||||
* @FL_MESSAGE_CODEC_ERROR_OUT_OF_DATA: Codec ran out of data reading a value.
|
||||
* @FL_MESSAGE_CODEC_ERROR_ADDITIONAL_DATA: Additional data encountered in
|
||||
* message.
|
||||
* @FL_MESSAGE_CODEC_ERROR_UNSUPPORTED_TYPE: Codec encountered an unsupported
|
||||
* #FlValue.
|
||||
*
|
||||
* Errors for #FlMessageCodec objects to set on failures.
|
||||
*/
|
||||
#define FL_MESSAGE_CODEC_ERROR fl_message_codec_error_quark()
|
||||
|
||||
typedef enum {
|
||||
FL_MESSAGE_CODEC_ERROR_FAILED,
|
||||
FL_MESSAGE_CODEC_ERROR_OUT_OF_DATA,
|
||||
FL_MESSAGE_CODEC_ERROR_ADDITIONAL_DATA,
|
||||
FL_MESSAGE_CODEC_ERROR_UNSUPPORTED_TYPE,
|
||||
} FlMessageCodecError;
|
||||
|
||||
GQuark fl_message_codec_error_quark(void) G_GNUC_CONST;
|
||||
|
||||
G_DECLARE_DERIVABLE_TYPE(FlMessageCodec,
|
||||
fl_message_codec,
|
||||
FL,
|
||||
MESSAGE_CODEC,
|
||||
GObject)
|
||||
|
||||
/**
|
||||
* FlMessageCodec:
|
||||
*
|
||||
* #FlMessageCodec is a message encoding/decoding mechanism that operates on
|
||||
* #FlValue objects. Both operations returns errors if the conversion fails.
|
||||
* Such situations should be treated as programming errors.
|
||||
*
|
||||
* #FlMessageCodec matches the MethodCodec class in the Flutter services
|
||||
* library.
|
||||
*/
|
||||
|
||||
struct _FlMessageCodecClass {
|
||||
GObjectClass parent_class;
|
||||
|
||||
/**
|
||||
* FlMessageCodec::encode_message:
|
||||
* @codec: A #FlMessageCodec.
|
||||
* @message: message to encode or %NULL to encode the null value.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or
|
||||
* %NULL.
|
||||
*
|
||||
* Virtual method to encode a message. A subclass must implement this method.
|
||||
* If the subclass cannot handle the type of @message then it must generate a
|
||||
* FL_MESSAGE_CODEC_ERROR_UNSUPPORTED_TYPE error.
|
||||
*
|
||||
* Returns: a binary message or %NULL on error.
|
||||
*/
|
||||
GBytes* (*encode_message)(FlMessageCodec* codec,
|
||||
FlValue* message,
|
||||
GError** error);
|
||||
|
||||
/**
|
||||
* FlMessageCodec::decode_message:
|
||||
* @codec: an #FlMessageCodec.
|
||||
* @message: binary message to decode.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or
|
||||
* %NULL.
|
||||
*
|
||||
* Virtual method to decode a message. A subclass must implement this method.
|
||||
* If @message is too small then a #FL_MESSAGE_CODEC_ERROR_OUT_OF_DATA error
|
||||
* must be generated. If @message is too large then a
|
||||
* #FL_MESSAGE_CODEC_ERROR_ADDITIONAL_DATA error must be generated.
|
||||
*
|
||||
* Returns: an #FlValue or %NULL on error.
|
||||
*/
|
||||
FlValue* (*decode_message)(FlMessageCodec* codec,
|
||||
GBytes* message,
|
||||
GError** error);
|
||||
};
|
||||
|
||||
/**
|
||||
* fl_message_codec_encode_message:
|
||||
* @codec: an #FlMessageCodec.
|
||||
* @buffer: buffer to write to.
|
||||
* @message: message to encode or %NULL to encode the null value.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or
|
||||
* %NULL.
|
||||
*
|
||||
* Encodes a message into a binary representation.
|
||||
*
|
||||
* Returns: a binary encoded message or %NULL on error.
|
||||
*/
|
||||
GBytes* fl_message_codec_encode_message(FlMessageCodec* codec,
|
||||
FlValue* message,
|
||||
GError** error);
|
||||
|
||||
/**
|
||||
* fl_message_codec_decode_message:
|
||||
* @codec: an #FlMessageCodec.
|
||||
* @message: binary message to decode.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or
|
||||
* %NULL.
|
||||
*
|
||||
* Decodes a message from a binary encoding.
|
||||
*
|
||||
* Returns: an #FlValue or %NULL on error.
|
||||
*/
|
||||
FlValue* fl_message_codec_decode_message(FlMessageCodec* codec,
|
||||
GBytes* message,
|
||||
GError** error);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_MESSAGE_CODEC_H_
|
115
example/linux/flutter/ephemeral/flutter_linux/fl_method_call.h
Normal file
115
example/linux/flutter/ephemeral/flutter_linux/fl_method_call.h
Normal file
|
@ -0,0 +1,115 @@
|
|||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_METHOD_CALL_H_
|
||||
#define FLUTTER_SHELL_PLATFORM_LINUX_FL_METHOD_CALL_H_
|
||||
|
||||
#if !defined(__FLUTTER_LINUX_INSIDE__) && !defined(FLUTTER_LINUX_COMPILATION)
|
||||
#error "Only <flutter_linux/flutter_linux.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
#include "fl_method_response.h"
|
||||
#include "fl_value.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
G_DECLARE_FINAL_TYPE(FlMethodCall, fl_method_call, FL, METHOD_CALL, GObject)
|
||||
|
||||
/**
|
||||
* FlMethodCall:
|
||||
*
|
||||
* #FlMethodCall represents and incoming method call as returned by an
|
||||
* #FlMethodChannel.
|
||||
*/
|
||||
|
||||
/**
|
||||
* fl_method_call_get_name:
|
||||
* @method_call: an #FlMethodCall.
|
||||
*
|
||||
* Gets the name of the method call.
|
||||
*
|
||||
* Returns: a method name.
|
||||
*/
|
||||
const gchar* fl_method_call_get_name(FlMethodCall* method_call);
|
||||
|
||||
/**
|
||||
* fl_method_call_get_args:
|
||||
* @method_call: an #FlMethodCall.
|
||||
*
|
||||
* Gets the arguments passed to the method.
|
||||
*
|
||||
* Returns: an #FlValue.
|
||||
*/
|
||||
FlValue* fl_method_call_get_args(FlMethodCall* method_call);
|
||||
|
||||
/**
|
||||
* fl_method_call_respond:
|
||||
* @method_call: an #FlMethodCall.
|
||||
* @response: an #FlMethodResponse.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or %NULL
|
||||
* to ignore.
|
||||
*
|
||||
* Responds to a method call.
|
||||
*
|
||||
* Returns: %TRUE on success.
|
||||
*/
|
||||
gboolean fl_method_call_respond(FlMethodCall* method_call,
|
||||
FlMethodResponse* response,
|
||||
GError** error);
|
||||
|
||||
/**
|
||||
* fl_method_call_respond_success:
|
||||
* @method_call: an #FlMethodCall.
|
||||
* @result: (allow-none): value to respond with, must match what the
|
||||
* #FlMethodCodec supports.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or %NULL
|
||||
* to ignore.
|
||||
*
|
||||
* Convenience method that responds to method call with
|
||||
* #FlMethodSuccessResponse.
|
||||
*
|
||||
* Returns: %TRUE on success.
|
||||
*/
|
||||
gboolean fl_method_call_respond_success(FlMethodCall* method_call,
|
||||
FlValue* result,
|
||||
GError** error);
|
||||
|
||||
/**
|
||||
* fl_method_call_respond_error:
|
||||
* @method_call: an #FlMethodCall.
|
||||
* @code: error code.
|
||||
* @message: (allow-none): error message.
|
||||
* @details: (allow-none): details for the error.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or %NULL
|
||||
* to ignore.
|
||||
*
|
||||
* Convenience method that responds to method call with #FlMethodErrorResponse.
|
||||
*
|
||||
* Returns: %TRUE on success.
|
||||
*/
|
||||
gboolean fl_method_call_respond_error(FlMethodCall* method_call,
|
||||
const gchar* code,
|
||||
const gchar* message,
|
||||
FlValue* details,
|
||||
GError** error);
|
||||
|
||||
/**
|
||||
* fl_method_call_respond_not_implemented:
|
||||
* @method_call: an #FlMethodCall.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or %NULL
|
||||
* to ignore.
|
||||
*
|
||||
* Convenience method that responds to method call with
|
||||
* #FlMethodNotImplementedResponse.
|
||||
*
|
||||
* Returns: %TRUE on success.
|
||||
*/
|
||||
gboolean fl_method_call_respond_not_implemented(FlMethodCall* method_call,
|
||||
GError** error);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_METHOD_CALL_H_
|
|
@ -0,0 +1,195 @@
|
|||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_METHOD_CHANNEL_H_
|
||||
#define FLUTTER_SHELL_PLATFORM_LINUX_FL_METHOD_CHANNEL_H_
|
||||
|
||||
#if !defined(__FLUTTER_LINUX_INSIDE__) && !defined(FLUTTER_LINUX_COMPILATION)
|
||||
#error "Only <flutter_linux/flutter_linux.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#include <gio/gio.h>
|
||||
#include <glib-object.h>
|
||||
|
||||
#include "fl_binary_messenger.h"
|
||||
#include "fl_method_call.h"
|
||||
#include "fl_method_codec.h"
|
||||
#include "fl_method_response.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
G_DECLARE_FINAL_TYPE(FlMethodChannel,
|
||||
fl_method_channel,
|
||||
FL,
|
||||
METHOD_CHANNEL,
|
||||
GObject)
|
||||
|
||||
/**
|
||||
* FlMethodChannel:
|
||||
*
|
||||
* #FlMethodChannel is an object that allows method calls to and from Dart code.
|
||||
*
|
||||
* The following example shows how to call and handle methods on a channel.
|
||||
* See #FlMethodResponse for how to handle errors in more detail.
|
||||
*
|
||||
* |[<!-- language="C" -->
|
||||
* static FlMethodChannel *channel = NULL;
|
||||
*
|
||||
* static void method_call_cb (FlMethodChannel* channel,
|
||||
* FlMethodCall* method_call,
|
||||
* gpointer user_data) {
|
||||
* g_autoptr(FlMethodResponse) response = NULL;
|
||||
* if (strcmp (fl_method_call_get_name (method_call), "Foo.bar") == 0) {
|
||||
* g_autoptr(GError) bar_error = NULL;
|
||||
* g_autoptr(FlValue) result =
|
||||
* do_bar (fl_method_call_get_args (method_call), &bar_error);
|
||||
* if (result == NULL) {
|
||||
* response =
|
||||
* FL_METHOD_RESPONSE (fl_method_error_response_new ("bar error",
|
||||
* bar_error->message,
|
||||
* nullptr);
|
||||
* } else {
|
||||
* response =
|
||||
* FL_METHOD_RESPONSE (fl_method_success_response_new (result));
|
||||
* }
|
||||
* } else {
|
||||
* response =
|
||||
* FL_METHOD_RESPONSE (fl_method_not_implemented_response_new ());
|
||||
* }
|
||||
*
|
||||
* g_autoptr(GError) error = NULL;
|
||||
* if (!fl_method_call_respond(method_call, response, &error))
|
||||
* g_warning ("Failed to send response: %s", error->message);
|
||||
* }
|
||||
*
|
||||
* static void method_response_cb(GObject *object,
|
||||
* GAsyncResult *result,
|
||||
* gpointer user_data) {
|
||||
* g_autoptr(GError) error = NULL;
|
||||
* g_autoptr(FlMethodResponse) response =
|
||||
* fl_method_channel_invoke_method_finish (FL_METHOD_CODEC (object), result,
|
||||
* &error);
|
||||
* if (response == NULL) {
|
||||
* g_warning ("Failed to call method: %s", error->message);
|
||||
* return;
|
||||
* }
|
||||
*
|
||||
* g_autoptr(FlValue) value =
|
||||
* fl_method_response_get_result (response, &error);
|
||||
* if (response == NULL) {
|
||||
* g_warning ("Method returned error: %s", error->message);
|
||||
* return;
|
||||
* }
|
||||
*
|
||||
* use_result (value);
|
||||
* }
|
||||
*
|
||||
* static void call_method () {
|
||||
* g_autoptr(FlStandardMethodCodec) codec = fl_standard_method_codec_new ();
|
||||
* channel =
|
||||
* fl_method_channel_new(messenger, "flutter/foo", FL_METHOD_CODEC (codec));
|
||||
* fl_method_channel_set_method_call_handler (channel, method_call_cb, NULL,
|
||||
* NULL);
|
||||
*
|
||||
* g_autoptr(FlValue) args = fl_value_new_string ("Hello World");
|
||||
* fl_method_channel_invoke_method (channel, "Foo.foo", args,
|
||||
* cancellable, method_response_cb, NULL);
|
||||
* }
|
||||
* ]|
|
||||
*
|
||||
* #FlMethodChannel matches the MethodChannel class in the Flutter services
|
||||
* library.
|
||||
*/
|
||||
|
||||
/**
|
||||
* FlMethodChannelMethodCallHandler:
|
||||
* @channel: an #FlMethodChannel.
|
||||
* @method_call: an #FlMethodCall.
|
||||
* @user_data: (closure): data provided when registering this handler.
|
||||
*
|
||||
* Function called when a method call is received. Respond to the method call
|
||||
* with fl_method_call_respond(). If the response is not occurring in this
|
||||
* callback take a reference to @method_call and release that once it has been
|
||||
* responded to. Failing to respond before the last reference to @method_call is
|
||||
* dropped is a programming error.
|
||||
*/
|
||||
typedef void (*FlMethodChannelMethodCallHandler)(FlMethodChannel* channel,
|
||||
FlMethodCall* method_call,
|
||||
gpointer user_data);
|
||||
|
||||
/**
|
||||
* fl_method_channel_new:
|
||||
* @messenger: an #FlBinaryMessenger.
|
||||
* @name: a channel name.
|
||||
* @codec: the method codec.
|
||||
*
|
||||
* Creates a new method channel. @codec must match the codec used on the Dart
|
||||
* end of the channel.
|
||||
*
|
||||
* Returns: a new #FlMethodChannel.
|
||||
*/
|
||||
FlMethodChannel* fl_method_channel_new(FlBinaryMessenger* messenger,
|
||||
const gchar* name,
|
||||
FlMethodCodec* codec);
|
||||
|
||||
/**
|
||||
* fl_method_channel_set_method_call_handler:
|
||||
* @channel: an #FlMethodChannel.
|
||||
* @handler: function to call when a method call is received on this channel.
|
||||
* @user_data: (closure): user data to pass to @handler.
|
||||
* @destroy_notify: (allow-none): a function which gets called to free
|
||||
* @user_data, or %NULL.
|
||||
*
|
||||
* Sets the function called when a method call is received from the Dart side of
|
||||
* the channel. See #FlMethodChannelMethodCallHandler for details on how to
|
||||
* respond to method calls.
|
||||
*
|
||||
* The handler is removed if the channel is closed or is replaced by another
|
||||
* handler, set @destroy_notify if you want to detect this.
|
||||
*/
|
||||
void fl_method_channel_set_method_call_handler(
|
||||
FlMethodChannel* channel,
|
||||
FlMethodChannelMethodCallHandler handler,
|
||||
gpointer user_data,
|
||||
GDestroyNotify destroy_notify);
|
||||
|
||||
/**
|
||||
* fl_method_channel_invoke_method:
|
||||
* @channel: an #FlMethodChannel.
|
||||
* @method: the method to call.
|
||||
* @args: (allow-none): arguments to the method, must match what the
|
||||
* #FlMethodCodec supports.
|
||||
* @cancellable: (allow-none): a #GCancellable or %NULL.
|
||||
* @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when
|
||||
* the request is satisfied or %NULL to ignore the response.
|
||||
* @user_data: (closure): user data to pass to @callback.
|
||||
*
|
||||
* Calls a method on this channel.
|
||||
*/
|
||||
void fl_method_channel_invoke_method(FlMethodChannel* channel,
|
||||
const gchar* method,
|
||||
FlValue* args,
|
||||
GCancellable* cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
|
||||
/**
|
||||
* fl_method_channel_invoke_method_finish:
|
||||
* @channel: an #FlMethodChannel.
|
||||
* @result: #GAsyncResult.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or %NULL
|
||||
* to ignore.
|
||||
*
|
||||
* Completes request started with fl_method_channel_invoke_method().
|
||||
*
|
||||
* Returns: (transfer full): an #FlMethodResponse or %NULL on error.
|
||||
*/
|
||||
FlMethodResponse* fl_method_channel_invoke_method_finish(
|
||||
FlMethodChannel* channel,
|
||||
GAsyncResult* result,
|
||||
GError** error);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_METHOD_CHANNEL_H_
|
131
example/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h
Normal file
131
example/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h
Normal file
|
@ -0,0 +1,131 @@
|
|||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_METHOD_CODEC_H_
|
||||
#define FLUTTER_SHELL_PLATFORM_LINUX_FL_METHOD_CODEC_H_
|
||||
|
||||
#if !defined(__FLUTTER_LINUX_INSIDE__) && !defined(FLUTTER_LINUX_COMPILATION)
|
||||
#error "Only <flutter_linux/flutter_linux.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
#include "fl_method_response.h"
|
||||
#include "fl_value.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
G_DECLARE_DERIVABLE_TYPE(FlMethodCodec,
|
||||
fl_method_codec,
|
||||
FL,
|
||||
METHOD_CODEC,
|
||||
GObject)
|
||||
|
||||
/**
|
||||
* FlMethodCodec:
|
||||
*
|
||||
* #FlMethodCodec is an abstract class that encodes and decodes method calls on
|
||||
* a platform channel. Override this class to implement an encoding.
|
||||
*
|
||||
* #FlMethodCodec matches the MethodCodec class in the Flutter services
|
||||
* library.
|
||||
*/
|
||||
|
||||
struct _FlMethodCodecClass {
|
||||
GObjectClass parent_class;
|
||||
|
||||
/**
|
||||
* FlMethodCodec::encode_method_call:
|
||||
* @codec: an #FlMethodCodec.
|
||||
* @name: method name.
|
||||
* @args: (allow-none): method arguments, or %NULL.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or
|
||||
* %NULL.
|
||||
*
|
||||
* Encodes a method call.
|
||||
*
|
||||
* Returns: (transfer full): a binary encoding of this method call or %NULL if
|
||||
* not able to encode.
|
||||
*/
|
||||
GBytes* (*encode_method_call)(FlMethodCodec* codec,
|
||||
const gchar* name,
|
||||
FlValue* args,
|
||||
GError** error);
|
||||
|
||||
/**
|
||||
* FlMethodCodec::decode_method_call:
|
||||
* @codec: an #FlMethodCodec
|
||||
* @message: message to decode.
|
||||
* @name: (transfer full): location to write method name or %NULL if not
|
||||
* required
|
||||
* @args: (transfer full): location to write method arguments, or %NULL if not
|
||||
* required
|
||||
* @error: (allow-none): #GError location to store the error occurring, or
|
||||
* %NULL
|
||||
*
|
||||
* Decodes a method call.
|
||||
*
|
||||
* Returns: %TRUE if successfully decoded.
|
||||
*/
|
||||
gboolean (*decode_method_call)(FlMethodCodec* codec,
|
||||
GBytes* message,
|
||||
gchar** name,
|
||||
FlValue** args,
|
||||
GError** error);
|
||||
|
||||
/**
|
||||
* FlMethodCodec::encode_success_envelope:
|
||||
* @codec: an #FlMethodCodec.
|
||||
* @result: (allow-none): method result, or %NULL.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or
|
||||
* %NULL.
|
||||
*
|
||||
* Encodes a successful response to a method call.
|
||||
*
|
||||
* Returns: (transfer full): a binary encoding of this response or %NULL if
|
||||
* not able to encode.
|
||||
*/
|
||||
GBytes* (*encode_success_envelope)(FlMethodCodec* codec,
|
||||
FlValue* result,
|
||||
GError** error);
|
||||
|
||||
/**
|
||||
* FlMethodCodec::encode_error_envelope:
|
||||
* @codec: an #FlMethodCodec.
|
||||
* @code: an error code.
|
||||
* @message: (allow-none): an error message, or %NULL.
|
||||
* @details: (allow-none): error details, or %NULL.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or
|
||||
* %NULL.
|
||||
*
|
||||
* Encodes an error response to a method call.
|
||||
*
|
||||
* Returns: (transfer full): a binary encoding of this response or %NULL if
|
||||
* not able to encode.
|
||||
*/
|
||||
GBytes* (*encode_error_envelope)(FlMethodCodec* codec,
|
||||
const gchar* code,
|
||||
const gchar* message,
|
||||
FlValue* details,
|
||||
GError** error);
|
||||
|
||||
/**
|
||||
* FlMethodCodec::decode_response:
|
||||
* @codec: an #FlMethodCodec.
|
||||
* @message: message to decode.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or
|
||||
* %NULL.
|
||||
*
|
||||
* Decodes a response to a method call.
|
||||
*
|
||||
* Returns: a new #FlMethodResponse or %NULL on error.
|
||||
*/
|
||||
FlMethodResponse* (*decode_response)(FlMethodCodec* codec,
|
||||
GBytes* message,
|
||||
GError** error);
|
||||
};
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_METHOD_CODEC_H_
|
|
@ -0,0 +1,212 @@
|
|||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_METHOD_RESPONSE_H_
|
||||
#define FLUTTER_SHELL_PLATFORM_LINUX_FL_METHOD_RESPONSE_H_
|
||||
|
||||
#if !defined(__FLUTTER_LINUX_INSIDE__) && !defined(FLUTTER_LINUX_COMPILATION)
|
||||
#error "Only <flutter_linux/flutter_linux.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
#include "fl_value.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
/**
|
||||
* FlMethodResponseError:
|
||||
* @FL_METHOD_RESPONSE_ERROR_FAILED: Call failed due to an unspecified error.
|
||||
* @FL_METHOD_RESPONSE_ERROR_REMOTE_ERROR: An error was returned by the other
|
||||
* side of the channel.
|
||||
* @FL_METHOD_RESPONSE_ERROR_NOT_IMPLEMENTED: The requested method is not
|
||||
* implemented.
|
||||
*
|
||||
* Errors set by `fl_method_response_get_result` when the method call response
|
||||
* is not #FlMethodSuccessResponse.
|
||||
*/
|
||||
#define FL_METHOD_RESPONSE_ERROR fl_method_response_error_quark()
|
||||
|
||||
typedef enum {
|
||||
FL_METHOD_RESPONSE_ERROR_FAILED,
|
||||
FL_METHOD_RESPONSE_ERROR_REMOTE_ERROR,
|
||||
FL_METHOD_RESPONSE_ERROR_NOT_IMPLEMENTED,
|
||||
} FlMethodResponseError;
|
||||
|
||||
GQuark fl_method_response_error_quark(void) G_GNUC_CONST;
|
||||
|
||||
G_DECLARE_DERIVABLE_TYPE(FlMethodResponse,
|
||||
fl_method_response,
|
||||
FL,
|
||||
METHOD_RESPONSE,
|
||||
GObject)
|
||||
|
||||
struct _FlMethodResponseClass {
|
||||
GObjectClass parent_class;
|
||||
};
|
||||
|
||||
G_DECLARE_FINAL_TYPE(FlMethodSuccessResponse,
|
||||
fl_method_success_response,
|
||||
FL,
|
||||
METHOD_SUCCESS_RESPONSE,
|
||||
FlMethodResponse)
|
||||
|
||||
G_DECLARE_FINAL_TYPE(FlMethodErrorResponse,
|
||||
fl_method_error_response,
|
||||
FL,
|
||||
METHOD_ERROR_RESPONSE,
|
||||
FlMethodResponse)
|
||||
|
||||
G_DECLARE_FINAL_TYPE(FlMethodNotImplementedResponse,
|
||||
fl_method_not_implemented_response,
|
||||
FL,
|
||||
METHOD_NOT_IMPLEMENTED_RESPONSE,
|
||||
FlMethodResponse)
|
||||
|
||||
/**
|
||||
* FlMethodResponse:
|
||||
*
|
||||
* #FlMethodResponse contains the information returned when an #FlMethodChannel
|
||||
* method call returns. If you expect the method call to be successful use
|
||||
* fl_method_response_get_result(). If you want to handle error cases then you
|
||||
* should use code like:
|
||||
*
|
||||
* |[<!-- language="C" -->
|
||||
* if (FL_IS_METHOD_SUCCESS_RESPONSE (response)) {
|
||||
* FlValue *result =
|
||||
* fl_method_success_response_get_result(
|
||||
* FL_METHOD_SUCCESS_RESPONSE (response));
|
||||
* handle_result (result);
|
||||
* } else if (FL_IS_METHOD_ERROR_RESPONSE (response)) {
|
||||
* FlMethodErrorResponse *error_response =
|
||||
* FL_METHOD_ERROR_RESPONSE (response);
|
||||
* handle_error (fl_method_error_response_get_code (error_response),
|
||||
* fl_method_error_response_get_message (error_response),
|
||||
* fl_method_error_response_get_details (error_response));
|
||||
* }
|
||||
* else if (FL_IS_METHOD_NOT_IMPLEMENTED_RESPONSE (response)) {
|
||||
* handle_not_implemented ();
|
||||
* }
|
||||
* }
|
||||
* ]|
|
||||
*/
|
||||
|
||||
/**
|
||||
* FlMethodSuccessResponse:
|
||||
*
|
||||
* #FlMethodSuccessResponse is the #FlMethodResponse returned when a method call
|
||||
* has successfully completed. The result of the method call is obtained using
|
||||
* `fl_method_success_response_get_result`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* FlMethodErrorResponse:
|
||||
*
|
||||
* #FlMethodErrorResponse is the #FlMethodResponse returned when a method call
|
||||
* results in an error. The error details are obtained using
|
||||
* `fl_method_error_response_get_code`, `fl_method_error_response_get_message`
|
||||
* and `fl_method_error_response_get_details`.
|
||||
*/
|
||||
|
||||
/**
|
||||
* FlMethodNotImplementedResponse:
|
||||
*
|
||||
* #FlMethodNotImplementedResponse is the #FlMethodResponse returned when a
|
||||
* method call is not implemented.
|
||||
*/
|
||||
|
||||
/**
|
||||
* fl_method_response_get_result:
|
||||
* @response: an #FlMethodResponse.
|
||||
* @error: (allow-none): #GError location to store the error occurring, or %NULL
|
||||
* to ignore.
|
||||
*
|
||||
* Gets the result of a method call, or an error if the response wasn't
|
||||
* successful.
|
||||
*
|
||||
* Returns: an #FlValue or %NULL on error.
|
||||
*/
|
||||
FlValue* fl_method_response_get_result(FlMethodResponse* response,
|
||||
GError** error);
|
||||
|
||||
/**
|
||||
* fl_method_success_response_new:
|
||||
* @result: (allow-none): the #FlValue returned by the method call or %NULL.
|
||||
*
|
||||
* Creates a response to a method call when that method has successfully
|
||||
* completed.
|
||||
*
|
||||
* Returns: a new #FlMethodResponse.
|
||||
*/
|
||||
FlMethodSuccessResponse* fl_method_success_response_new(FlValue* result);
|
||||
|
||||
/**
|
||||
* fl_method_success_response_get_result:
|
||||
* @response: an #FlMethodSuccessResponse.
|
||||
*
|
||||
* Gets the result of the method call.
|
||||
*
|
||||
* Returns: an #FlValue.
|
||||
*/
|
||||
FlValue* fl_method_success_response_get_result(
|
||||
FlMethodSuccessResponse* response);
|
||||
|
||||
/**
|
||||
* fl_method_error_response_new:
|
||||
* @result: an #FlValue.
|
||||
* @code: an error code.
|
||||
* @message: (allow-none): an error message.
|
||||
* @details: (allow-none): error details.
|
||||
*
|
||||
* Creates a response to a method call when that method has returned an error.
|
||||
*
|
||||
* Returns: a new #FlMethodErrorResponse.
|
||||
*/
|
||||
FlMethodErrorResponse* fl_method_error_response_new(const gchar* code,
|
||||
const gchar* message,
|
||||
FlValue* details);
|
||||
|
||||
/**
|
||||
* fl_method_error_response_get_code:
|
||||
* @response: an #FlMethodErrorResponse.
|
||||
*
|
||||
* Gets the error code reported.
|
||||
*
|
||||
* Returns: an error code.
|
||||
*/
|
||||
const gchar* fl_method_error_response_get_code(FlMethodErrorResponse* response);
|
||||
|
||||
/**
|
||||
* fl_method_error_response_get_message:
|
||||
* @response: an #FlMethodErrorResponse.
|
||||
*
|
||||
* Gets the error message reported.
|
||||
*
|
||||
* Returns: an error message or %NULL if no error message provided.
|
||||
*/
|
||||
const gchar* fl_method_error_response_get_message(
|
||||
FlMethodErrorResponse* response);
|
||||
|
||||
/**
|
||||
* fl_method_error_response_get_details:
|
||||
* @response: an #FlMethodErrorResponse.
|
||||
*
|
||||
* Gets the details provided with this error.
|
||||
*
|
||||
* Returns: an #FlValue or %NULL if no details provided.
|
||||
*/
|
||||
FlValue* fl_method_error_response_get_details(FlMethodErrorResponse* response);
|
||||
|
||||
/**
|
||||
* fl_method_not_implemented_response_new:
|
||||
*
|
||||
* Creates a response to a method call when that method does not exist.
|
||||
*
|
||||
* Returns: a new #FlMethodNotImplementedResponse.
|
||||
*/
|
||||
FlMethodNotImplementedResponse* fl_method_not_implemented_response_new();
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_METHOD_RESPONSE_H_
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user