File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed
Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -893,9 +893,11 @@ def ios_application_test_suite(name):
893893 target_under_test = "//test/starlark_tests/targets_under_test/ios:app_with_app_intents" ,
894894 text_test_file = "$BUNDLE_ROOT/Metadata.appintents/extract.actionsdata" ,
895895 text_test_values = [
896- ".*HelloWorldIntent.*" ,
896+ ".*\" identifier \" : \" HelloWorldIntent\" .*" ,
897897 ".*IntelIntent.*" ,
898898 ".*iOSIntent.*" ,
899+ ".*TestAppShortcuts.*" ,
900+ ".*\" actionIdentifier\" :\" HelloWorldIntent\" .*" ,
899901 ],
900902 text_file_not_contains = [
901903 ".*ArmIntent.*" ,
@@ -911,9 +913,11 @@ def ios_application_test_suite(name):
911913 target_under_test = "//test/starlark_tests/targets_under_test/ios:app_with_app_intents" ,
912914 text_test_file = "$BUNDLE_ROOT/Metadata.appintents/extract.actionsdata" ,
913915 text_test_values = [
914- ".*HelloWorldIntent.*" ,
916+ ".*\" identifier \" : \" HelloWorldIntent\" .*" ,
915917 ".*ArmIntent.*" ,
916918 ".*iOSIntent.*" ,
919+ ".*TestAppShortcuts.*" ,
920+ ".*\" actionIdentifier\" :\" HelloWorldIntent\" .*" ,
917921 ],
918922 text_file_not_contains = [
919923 ".*IntelIntent.*" ,
Original file line number Diff line number Diff line change @@ -96,3 +96,16 @@ struct HelloWorldIntent: AppIntent {
9696 }
9797 }
9898#endif
99+
100+ struct TestAppShortcuts : AppShortcutsProvider {
101+ static var appShortcuts : [ AppShortcut ] {
102+ AppShortcut (
103+ intent: HelloWorldIntent ( ) ,
104+ phrases: [
105+ " Run hello world in \( . applicationName) " ,
106+ ] ,
107+ shortTitle: " Run HelloWorld Intent " ,
108+ systemImageName: " 1.circle "
109+ )
110+ }
111+ }
You can’t perform that action at this time.
0 commit comments