@sentry/wizard 3.38.0 → 3.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/CHANGELOG.md +10 -1
  2. package/README.md +3 -3
  3. package/dist/e2e-tests/tests/flutter.test.d.ts +1 -0
  4. package/dist/e2e-tests/tests/flutter.test.js +190 -0
  5. package/dist/e2e-tests/tests/flutter.test.js.map +1 -0
  6. package/dist/e2e-tests/tests/nextjs.test.js +1 -1
  7. package/dist/e2e-tests/tests/nextjs.test.js.map +1 -1
  8. package/dist/e2e-tests/tests/nuxt-3.test.js +1 -1
  9. package/dist/e2e-tests/tests/nuxt-3.test.js.map +1 -1
  10. package/dist/e2e-tests/tests/nuxt-4.test.js +1 -1
  11. package/dist/e2e-tests/tests/nuxt-4.test.js.map +1 -1
  12. package/dist/e2e-tests/tests/remix.test.js +1 -2
  13. package/dist/e2e-tests/tests/remix.test.js.map +1 -1
  14. package/dist/e2e-tests/tests/sveltekit.test.js +17 -5
  15. package/dist/e2e-tests/tests/sveltekit.test.js.map +1 -1
  16. package/dist/e2e-tests/utils/index.d.ts +22 -1
  17. package/dist/e2e-tests/utils/index.js +58 -3
  18. package/dist/e2e-tests/utils/index.js.map +1 -1
  19. package/dist/lib/Constants.d.ts +1 -0
  20. package/dist/lib/Constants.js +5 -0
  21. package/dist/lib/Constants.js.map +1 -1
  22. package/dist/package.json +1 -1
  23. package/dist/src/apple/apple-wizard.js +1 -1
  24. package/dist/src/apple/apple-wizard.js.map +1 -1
  25. package/dist/src/apple/xcode-manager.d.ts +4 -4
  26. package/dist/src/apple/xcode-manager.js.map +1 -1
  27. package/dist/src/flutter/code-tools.d.ts +17 -0
  28. package/dist/src/flutter/code-tools.js +263 -0
  29. package/dist/src/flutter/code-tools.js.map +1 -0
  30. package/dist/src/flutter/flutter-wizard.d.ts +2 -0
  31. package/dist/src/flutter/flutter-wizard.js +171 -0
  32. package/dist/src/flutter/flutter-wizard.js.map +1 -0
  33. package/dist/src/flutter/templates.d.ts +9 -0
  34. package/dist/src/flutter/templates.js +40 -0
  35. package/dist/src/flutter/templates.js.map +1 -0
  36. package/dist/src/nextjs/nextjs-wizard.js +3 -1
  37. package/dist/src/nextjs/nextjs-wizard.js.map +1 -1
  38. package/dist/src/run.d.ts +1 -1
  39. package/dist/src/run.js +39 -32
  40. package/dist/src/run.js.map +1 -1
  41. package/dist/src/sourcemaps/sourcemaps-wizard.js +2 -3
  42. package/dist/src/sourcemaps/sourcemaps-wizard.js.map +1 -1
  43. package/dist/src/telemetry.d.ts +2 -1
  44. package/dist/src/telemetry.js +1 -1
  45. package/dist/src/telemetry.js.map +1 -1
  46. package/dist/src/utils/clack-utils.d.ts +1 -1
  47. package/dist/src/utils/clack-utils.js +3 -3
  48. package/dist/src/utils/clack-utils.js.map +1 -1
  49. package/dist/src/utils/package-manager.d.ts +0 -1
  50. package/dist/src/utils/package-manager.js +9 -10
  51. package/dist/src/utils/package-manager.js.map +1 -1
  52. package/dist/test/flutter/code-tools.test.d.ts +1 -0
  53. package/dist/test/flutter/code-tools.test.js +84 -0
  54. package/dist/test/flutter/code-tools.test.js.map +1 -0
  55. package/dist/test/flutter/templates.test.d.ts +1 -0
  56. package/dist/test/flutter/templates.test.js +41 -0
  57. package/dist/test/flutter/templates.test.js.map +1 -0
  58. package/e2e-tests/README.md +5 -1
  59. package/e2e-tests/test-applications/flutter-test-app/.metadata +45 -0
  60. package/e2e-tests/test-applications/flutter-test-app/README.md +16 -0
  61. package/e2e-tests/test-applications/flutter-test-app/analysis_options.yaml +28 -0
  62. package/e2e-tests/test-applications/flutter-test-app/android/app/build.gradle +44 -0
  63. package/e2e-tests/test-applications/flutter-test-app/android/app/src/debug/AndroidManifest.xml +7 -0
  64. package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/AndroidManifest.xml +45 -0
  65. package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/kotlin/com/example/flutter_magic/MainActivity.kt +5 -0
  66. package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/res/drawable/launch_background.xml +12 -0
  67. package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/res/drawable-v21/launch_background.xml +12 -0
  68. package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  69. package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  70. package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  71. package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  72. package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  73. package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/res/values/styles.xml +18 -0
  74. package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/res/values-night/styles.xml +18 -0
  75. package/e2e-tests/test-applications/flutter-test-app/android/app/src/profile/AndroidManifest.xml +7 -0
  76. package/e2e-tests/test-applications/flutter-test-app/android/build.gradle +18 -0
  77. package/e2e-tests/test-applications/flutter-test-app/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  78. package/e2e-tests/test-applications/flutter-test-app/android/gradle.properties +3 -0
  79. package/e2e-tests/test-applications/flutter-test-app/android/settings.gradle +25 -0
  80. package/e2e-tests/test-applications/flutter-test-app/lib/main.dart +125 -0
  81. package/e2e-tests/test-applications/flutter-test-app/linux/CMakeLists.txt +145 -0
  82. package/e2e-tests/test-applications/flutter-test-app/linux/flutter/CMakeLists.txt +88 -0
  83. package/e2e-tests/test-applications/flutter-test-app/linux/flutter/generated_plugin_registrant.cc +11 -0
  84. package/e2e-tests/test-applications/flutter-test-app/linux/flutter/generated_plugin_registrant.h +15 -0
  85. package/e2e-tests/test-applications/flutter-test-app/linux/flutter/generated_plugins.cmake +23 -0
  86. package/e2e-tests/test-applications/flutter-test-app/linux/main.cc +6 -0
  87. package/e2e-tests/test-applications/flutter-test-app/linux/my_application.cc +124 -0
  88. package/e2e-tests/test-applications/flutter-test-app/linux/my_application.h +18 -0
  89. package/e2e-tests/test-applications/flutter-test-app/macos/Flutter/Flutter-Debug.xcconfig +2 -0
  90. package/e2e-tests/test-applications/flutter-test-app/macos/Flutter/Flutter-Release.xcconfig +2 -0
  91. package/e2e-tests/test-applications/flutter-test-app/macos/Flutter/GeneratedPluginRegistrant.swift +10 -0
  92. package/e2e-tests/test-applications/flutter-test-app/macos/Podfile +43 -0
  93. package/e2e-tests/test-applications/flutter-test-app/macos/Runner/AppDelegate.swift +9 -0
  94. package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +68 -0
  95. package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png +0 -0
  96. package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png +0 -0
  97. package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png +0 -0
  98. package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png +0 -0
  99. package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png +0 -0
  100. package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png +0 -0
  101. package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png +0 -0
  102. package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Base.lproj/MainMenu.xib +343 -0
  103. package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Configs/AppInfo.xcconfig +14 -0
  104. package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Configs/Debug.xcconfig +2 -0
  105. package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Configs/Release.xcconfig +2 -0
  106. package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Configs/Warnings.xcconfig +13 -0
  107. package/e2e-tests/test-applications/flutter-test-app/macos/Runner/DebugProfile.entitlements +12 -0
  108. package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Info.plist +32 -0
  109. package/e2e-tests/test-applications/flutter-test-app/macos/Runner/MainFlutterWindow.swift +15 -0
  110. package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Release.entitlements +8 -0
  111. package/e2e-tests/test-applications/flutter-test-app/macos/Runner.xcodeproj/project.pbxproj +705 -0
  112. package/e2e-tests/test-applications/flutter-test-app/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  113. package/e2e-tests/test-applications/flutter-test-app/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +98 -0
  114. package/e2e-tests/test-applications/flutter-test-app/macos/Runner.xcworkspace/contents.xcworkspacedata +7 -0
  115. package/e2e-tests/test-applications/flutter-test-app/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  116. package/e2e-tests/test-applications/flutter-test-app/macos/RunnerTests/RunnerTests.swift +12 -0
  117. package/e2e-tests/test-applications/flutter-test-app/pubspec.lock +213 -0
  118. package/e2e-tests/test-applications/flutter-test-app/pubspec.yaml +89 -0
  119. package/e2e-tests/test-applications/flutter-test-app/test/widget_test.dart +30 -0
  120. package/e2e-tests/test-applications/flutter-test-app/web/favicon.png +0 -0
  121. package/e2e-tests/test-applications/flutter-test-app/web/icons/Icon-192.png +0 -0
  122. package/e2e-tests/test-applications/flutter-test-app/web/icons/Icon-512.png +0 -0
  123. package/e2e-tests/test-applications/flutter-test-app/web/icons/Icon-maskable-192.png +0 -0
  124. package/e2e-tests/test-applications/flutter-test-app/web/icons/Icon-maskable-512.png +0 -0
  125. package/e2e-tests/test-applications/flutter-test-app/web/index.html +38 -0
  126. package/e2e-tests/test-applications/flutter-test-app/web/manifest.json +35 -0
  127. package/e2e-tests/test-applications/flutter-test-app/windows/CMakeLists.txt +108 -0
  128. package/e2e-tests/test-applications/flutter-test-app/windows/flutter/CMakeLists.txt +109 -0
  129. package/e2e-tests/test-applications/flutter-test-app/windows/flutter/generated_plugin_registrant.cc +11 -0
  130. package/e2e-tests/test-applications/flutter-test-app/windows/flutter/generated_plugin_registrant.h +15 -0
  131. package/e2e-tests/test-applications/flutter-test-app/windows/flutter/generated_plugins.cmake +23 -0
  132. package/e2e-tests/test-applications/flutter-test-app/windows/runner/CMakeLists.txt +40 -0
  133. package/e2e-tests/test-applications/flutter-test-app/windows/runner/Runner.rc +121 -0
  134. package/e2e-tests/test-applications/flutter-test-app/windows/runner/flutter_window.cpp +71 -0
  135. package/e2e-tests/test-applications/flutter-test-app/windows/runner/flutter_window.h +33 -0
  136. package/e2e-tests/test-applications/flutter-test-app/windows/runner/main.cpp +43 -0
  137. package/e2e-tests/test-applications/flutter-test-app/windows/runner/resource.h +16 -0
  138. package/e2e-tests/test-applications/flutter-test-app/windows/runner/resources/app_icon.ico +0 -0
  139. package/e2e-tests/test-applications/flutter-test-app/windows/runner/runner.exe.manifest +14 -0
  140. package/e2e-tests/test-applications/flutter-test-app/windows/runner/utils.cpp +65 -0
  141. package/e2e-tests/test-applications/flutter-test-app/windows/runner/utils.h +19 -0
  142. package/e2e-tests/test-applications/flutter-test-app/windows/runner/win32_window.cpp +288 -0
  143. package/e2e-tests/test-applications/flutter-test-app/windows/runner/win32_window.h +102 -0
  144. package/e2e-tests/test-applications/nextjs-test-app/package.json +1 -1
  145. package/e2e-tests/tests/flutter.test.ts +127 -0
  146. package/e2e-tests/tests/nextjs.test.ts +1 -1
  147. package/e2e-tests/tests/nuxt-3.test.ts +1 -1
  148. package/e2e-tests/tests/nuxt-4.test.ts +1 -1
  149. package/e2e-tests/tests/remix.test.ts +30 -19
  150. package/e2e-tests/tests/sveltekit.test.ts +79 -50
  151. package/e2e-tests/utils/index.ts +62 -2
  152. package/lib/Constants.ts +5 -0
  153. package/package.json +1 -1
  154. package/src/apple/apple-wizard.ts +1 -1
  155. package/src/apple/xcode-manager.ts +5 -5
  156. package/src/flutter/code-tools.ts +284 -0
  157. package/src/flutter/flutter-wizard.ts +164 -0
  158. package/src/flutter/templates.ts +90 -0
  159. package/src/nextjs/nextjs-wizard.ts +4 -1
  160. package/src/run.ts +7 -0
  161. package/src/sourcemaps/sourcemaps-wizard.ts +3 -7
  162. package/src/telemetry.ts +6 -2
  163. package/src/utils/clack-utils.ts +8 -5
  164. package/src/utils/package-manager.ts +8 -11
  165. package/test/flutter/code-tools.test.ts +212 -0
  166. package/test/flutter/templates.test.ts +100 -0
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>IDEDidComputeMac32BitWarning</key>
6
+ <true/>
7
+ </dict>
8
+ </plist>
@@ -0,0 +1,98 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Scheme
3
+ LastUpgradeVersion = "1510"
4
+ version = "1.3">
5
+ <BuildAction
6
+ parallelizeBuildables = "YES"
7
+ buildImplicitDependencies = "YES">
8
+ <BuildActionEntries>
9
+ <BuildActionEntry
10
+ buildForTesting = "YES"
11
+ buildForRunning = "YES"
12
+ buildForProfiling = "YES"
13
+ buildForArchiving = "YES"
14
+ buildForAnalyzing = "YES">
15
+ <BuildableReference
16
+ BuildableIdentifier = "primary"
17
+ BlueprintIdentifier = "33CC10EC2044A3C60003C045"
18
+ BuildableName = "flutter_magic.app"
19
+ BlueprintName = "Runner"
20
+ ReferencedContainer = "container:Runner.xcodeproj">
21
+ </BuildableReference>
22
+ </BuildActionEntry>
23
+ </BuildActionEntries>
24
+ </BuildAction>
25
+ <TestAction
26
+ buildConfiguration = "Debug"
27
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29
+ shouldUseLaunchSchemeArgsEnv = "YES">
30
+ <MacroExpansion>
31
+ <BuildableReference
32
+ BuildableIdentifier = "primary"
33
+ BlueprintIdentifier = "33CC10EC2044A3C60003C045"
34
+ BuildableName = "flutter_magic.app"
35
+ BlueprintName = "Runner"
36
+ ReferencedContainer = "container:Runner.xcodeproj">
37
+ </BuildableReference>
38
+ </MacroExpansion>
39
+ <Testables>
40
+ <TestableReference
41
+ skipped = "NO"
42
+ parallelizable = "YES">
43
+ <BuildableReference
44
+ BuildableIdentifier = "primary"
45
+ BlueprintIdentifier = "331C80D4294CF70F00263BE5"
46
+ BuildableName = "RunnerTests.xctest"
47
+ BlueprintName = "RunnerTests"
48
+ ReferencedContainer = "container:Runner.xcodeproj">
49
+ </BuildableReference>
50
+ </TestableReference>
51
+ </Testables>
52
+ </TestAction>
53
+ <LaunchAction
54
+ buildConfiguration = "Debug"
55
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
56
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
57
+ launchStyle = "0"
58
+ useCustomWorkingDirectory = "NO"
59
+ ignoresPersistentStateOnLaunch = "NO"
60
+ debugDocumentVersioning = "YES"
61
+ debugServiceExtension = "internal"
62
+ allowLocationSimulation = "YES">
63
+ <BuildableProductRunnable
64
+ runnableDebuggingMode = "0">
65
+ <BuildableReference
66
+ BuildableIdentifier = "primary"
67
+ BlueprintIdentifier = "33CC10EC2044A3C60003C045"
68
+ BuildableName = "flutter_magic.app"
69
+ BlueprintName = "Runner"
70
+ ReferencedContainer = "container:Runner.xcodeproj">
71
+ </BuildableReference>
72
+ </BuildableProductRunnable>
73
+ </LaunchAction>
74
+ <ProfileAction
75
+ buildConfiguration = "Profile"
76
+ shouldUseLaunchSchemeArgsEnv = "YES"
77
+ savedToolIdentifier = ""
78
+ useCustomWorkingDirectory = "NO"
79
+ debugDocumentVersioning = "YES">
80
+ <BuildableProductRunnable
81
+ runnableDebuggingMode = "0">
82
+ <BuildableReference
83
+ BuildableIdentifier = "primary"
84
+ BlueprintIdentifier = "33CC10EC2044A3C60003C045"
85
+ BuildableName = "flutter_magic.app"
86
+ BlueprintName = "Runner"
87
+ ReferencedContainer = "container:Runner.xcodeproj">
88
+ </BuildableReference>
89
+ </BuildableProductRunnable>
90
+ </ProfileAction>
91
+ <AnalyzeAction
92
+ buildConfiguration = "Debug">
93
+ </AnalyzeAction>
94
+ <ArchiveAction
95
+ buildConfiguration = "Release"
96
+ revealArchiveInOrganizer = "YES">
97
+ </ArchiveAction>
98
+ </Scheme>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Workspace
3
+ version = "1.0">
4
+ <FileRef
5
+ location = "group:Runner.xcodeproj">
6
+ </FileRef>
7
+ </Workspace>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>IDEDidComputeMac32BitWarning</key>
6
+ <true/>
7
+ </dict>
8
+ </plist>
@@ -0,0 +1,12 @@
1
+ import Cocoa
2
+ import FlutterMacOS
3
+ import XCTest
4
+
5
+ class RunnerTests: XCTestCase {
6
+
7
+ func testExample() {
8
+ // If you add code to the Runner application, consider adding tests here.
9
+ // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
10
+ }
11
+
12
+ }
@@ -0,0 +1,213 @@
1
+ # Generated by pub
2
+ # See https://dart.dev/tools/pub/glossary#lockfile
3
+ packages:
4
+ async:
5
+ dependency: transitive
6
+ description:
7
+ name: async
8
+ sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
9
+ url: "https://pub.dev"
10
+ source: hosted
11
+ version: "2.11.0"
12
+ boolean_selector:
13
+ dependency: transitive
14
+ description:
15
+ name: boolean_selector
16
+ sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
17
+ url: "https://pub.dev"
18
+ source: hosted
19
+ version: "2.1.1"
20
+ characters:
21
+ dependency: transitive
22
+ description:
23
+ name: characters
24
+ sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
25
+ url: "https://pub.dev"
26
+ source: hosted
27
+ version: "1.3.0"
28
+ clock:
29
+ dependency: transitive
30
+ description:
31
+ name: clock
32
+ sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
33
+ url: "https://pub.dev"
34
+ source: hosted
35
+ version: "1.1.1"
36
+ collection:
37
+ dependency: transitive
38
+ description:
39
+ name: collection
40
+ sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf
41
+ url: "https://pub.dev"
42
+ source: hosted
43
+ version: "1.19.0"
44
+ cupertino_icons:
45
+ dependency: "direct main"
46
+ description:
47
+ name: cupertino_icons
48
+ sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6
49
+ url: "https://pub.dev"
50
+ source: hosted
51
+ version: "1.0.8"
52
+ fake_async:
53
+ dependency: transitive
54
+ description:
55
+ name: fake_async
56
+ sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
57
+ url: "https://pub.dev"
58
+ source: hosted
59
+ version: "1.3.1"
60
+ flutter:
61
+ dependency: "direct main"
62
+ description: flutter
63
+ source: sdk
64
+ version: "0.0.0"
65
+ flutter_lints:
66
+ dependency: "direct dev"
67
+ description:
68
+ name: flutter_lints
69
+ sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c"
70
+ url: "https://pub.dev"
71
+ source: hosted
72
+ version: "4.0.0"
73
+ flutter_test:
74
+ dependency: "direct dev"
75
+ description: flutter
76
+ source: sdk
77
+ version: "0.0.0"
78
+ leak_tracker:
79
+ dependency: transitive
80
+ description:
81
+ name: leak_tracker
82
+ sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06"
83
+ url: "https://pub.dev"
84
+ source: hosted
85
+ version: "10.0.7"
86
+ leak_tracker_flutter_testing:
87
+ dependency: transitive
88
+ description:
89
+ name: leak_tracker_flutter_testing
90
+ sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379"
91
+ url: "https://pub.dev"
92
+ source: hosted
93
+ version: "3.0.8"
94
+ leak_tracker_testing:
95
+ dependency: transitive
96
+ description:
97
+ name: leak_tracker_testing
98
+ sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
99
+ url: "https://pub.dev"
100
+ source: hosted
101
+ version: "3.0.1"
102
+ lints:
103
+ dependency: transitive
104
+ description:
105
+ name: lints
106
+ sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235"
107
+ url: "https://pub.dev"
108
+ source: hosted
109
+ version: "4.0.0"
110
+ matcher:
111
+ dependency: transitive
112
+ description:
113
+ name: matcher
114
+ sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
115
+ url: "https://pub.dev"
116
+ source: hosted
117
+ version: "0.12.16+1"
118
+ material_color_utilities:
119
+ dependency: transitive
120
+ description:
121
+ name: material_color_utilities
122
+ sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
123
+ url: "https://pub.dev"
124
+ source: hosted
125
+ version: "0.11.1"
126
+ meta:
127
+ dependency: transitive
128
+ description:
129
+ name: meta
130
+ sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
131
+ url: "https://pub.dev"
132
+ source: hosted
133
+ version: "1.15.0"
134
+ path:
135
+ dependency: transitive
136
+ description:
137
+ name: path
138
+ sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
139
+ url: "https://pub.dev"
140
+ source: hosted
141
+ version: "1.9.0"
142
+ sky_engine:
143
+ dependency: transitive
144
+ description: flutter
145
+ source: sdk
146
+ version: "0.0.0"
147
+ source_span:
148
+ dependency: transitive
149
+ description:
150
+ name: source_span
151
+ sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
152
+ url: "https://pub.dev"
153
+ source: hosted
154
+ version: "1.10.0"
155
+ stack_trace:
156
+ dependency: transitive
157
+ description:
158
+ name: stack_trace
159
+ sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377"
160
+ url: "https://pub.dev"
161
+ source: hosted
162
+ version: "1.12.0"
163
+ stream_channel:
164
+ dependency: transitive
165
+ description:
166
+ name: stream_channel
167
+ sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
168
+ url: "https://pub.dev"
169
+ source: hosted
170
+ version: "2.1.2"
171
+ string_scanner:
172
+ dependency: transitive
173
+ description:
174
+ name: string_scanner
175
+ sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3"
176
+ url: "https://pub.dev"
177
+ source: hosted
178
+ version: "1.3.0"
179
+ term_glyph:
180
+ dependency: transitive
181
+ description:
182
+ name: term_glyph
183
+ sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
184
+ url: "https://pub.dev"
185
+ source: hosted
186
+ version: "1.2.1"
187
+ test_api:
188
+ dependency: transitive
189
+ description:
190
+ name: test_api
191
+ sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c"
192
+ url: "https://pub.dev"
193
+ source: hosted
194
+ version: "0.7.3"
195
+ vector_math:
196
+ dependency: transitive
197
+ description:
198
+ name: vector_math
199
+ sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
200
+ url: "https://pub.dev"
201
+ source: hosted
202
+ version: "2.1.4"
203
+ vm_service:
204
+ dependency: transitive
205
+ description:
206
+ name: vm_service
207
+ sha256: f6be3ed8bd01289b34d679c2b62226f63c0e69f9fd2e50a6b3c1c729a961041b
208
+ url: "https://pub.dev"
209
+ source: hosted
210
+ version: "14.3.0"
211
+ sdks:
212
+ dart: ">=3.5.4 <4.0.0"
213
+ flutter: ">=3.18.0-18.0.pre.54"
@@ -0,0 +1,89 @@
1
+ name: flutter_magic
2
+ description: "A new Flutter project."
3
+ # The following line prevents the package from being accidentally published to
4
+ # pub.dev using `flutter pub publish`. This is preferred for private packages.
5
+ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
6
+
7
+ # The following defines the version and build number for your application.
8
+ # A version number is three numbers separated by dots, like 1.2.43
9
+ # followed by an optional build number separated by a +.
10
+ # Both the version and the builder number may be overridden in flutter
11
+ # build by specifying --build-name and --build-number, respectively.
12
+ # In Android, build-name is used as versionName while build-number used as versionCode.
13
+ # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
14
+ # In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
15
+ # Read more about iOS versioning at
16
+ # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
17
+ # In Windows, build-name is used as the major, minor, and patch parts
18
+ # of the product and file versions while build-number is used as the build suffix.
19
+ version: 1.0.0+1
20
+
21
+ environment:
22
+ sdk: ^3.5.4
23
+
24
+ # Dependencies specify other packages that your package needs in order to work.
25
+ # To automatically upgrade your package dependencies to the latest versions
26
+ # consider running `flutter pub upgrade --major-versions`. Alternatively,
27
+ # dependencies can be manually updated by changing the version numbers below to
28
+ # the latest version available on pub.dev. To see which dependencies have newer
29
+ # versions available, run `flutter pub outdated`.
30
+ dependencies:
31
+ flutter:
32
+ sdk: flutter
33
+
34
+ # The following adds the Cupertino Icons font to your application.
35
+ # Use with the CupertinoIcons class for iOS style icons.
36
+ cupertino_icons: ^1.0.8
37
+
38
+ dev_dependencies:
39
+ flutter_test:
40
+ sdk: flutter
41
+
42
+ # The "flutter_lints" package below contains a set of recommended lints to
43
+ # encourage good coding practices. The lint set provided by the package is
44
+ # activated in the `analysis_options.yaml` file located at the root of your
45
+ # package. See that file for information about deactivating specific lint
46
+ # rules and activating additional ones.
47
+ flutter_lints: ^4.0.0
48
+
49
+ # For information on the generic Dart part of this file, see the
50
+ # following page: https://dart.dev/tools/pub/pubspec
51
+
52
+ # The following section is specific to Flutter packages.
53
+ flutter:
54
+
55
+ # The following line ensures that the Material Icons font is
56
+ # included with your application, so that you can use the icons in
57
+ # the material Icons class.
58
+ uses-material-design: true
59
+
60
+ # To add assets to your application, add an assets section, like this:
61
+ # assets:
62
+ # - images/a_dot_burr.jpeg
63
+ # - images/a_dot_ham.jpeg
64
+
65
+ # An image asset can refer to one or more resolution-specific "variants", see
66
+ # https://flutter.dev/to/resolution-aware-images
67
+
68
+ # For details regarding adding assets from package dependencies, see
69
+ # https://flutter.dev/to/asset-from-package
70
+
71
+ # To add custom fonts to your application, add a fonts section here,
72
+ # in this "flutter" section. Each entry in this list should have a
73
+ # "family" key with the font family name, and a "fonts" key with a
74
+ # list giving the asset and other descriptors for the font. For
75
+ # example:
76
+ # fonts:
77
+ # - family: Schyler
78
+ # fonts:
79
+ # - asset: fonts/Schyler-Regular.ttf
80
+ # - asset: fonts/Schyler-Italic.ttf
81
+ # style: italic
82
+ # - family: Trajan Pro
83
+ # fonts:
84
+ # - asset: fonts/TrajanPro.ttf
85
+ # - asset: fonts/TrajanPro_Bold.ttf
86
+ # weight: 700
87
+ #
88
+ # For details regarding fonts from package dependencies,
89
+ # see https://flutter.dev/to/font-from-package
@@ -0,0 +1,30 @@
1
+ // This is a basic Flutter widget test.
2
+ //
3
+ // To perform an interaction with a widget in your test, use the WidgetTester
4
+ // utility in the flutter_test package. For example, you can send tap and scroll
5
+ // gestures. You can also use WidgetTester to find child widgets in the widget
6
+ // tree, read text, and verify that the values of widget properties are correct.
7
+
8
+ import 'package:flutter/material.dart';
9
+ import 'package:flutter_test/flutter_test.dart';
10
+
11
+ import 'package:flutter_magic/main.dart';
12
+
13
+ void main() {
14
+ testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15
+ // Build our app and trigger a frame.
16
+ await tester.pumpWidget(const MyApp());
17
+
18
+ // Verify that our counter starts at 0.
19
+ expect(find.text('0'), findsOneWidget);
20
+ expect(find.text('1'), findsNothing);
21
+
22
+ // Tap the '+' icon and trigger a frame.
23
+ await tester.tap(find.byIcon(Icons.add));
24
+ await tester.pump();
25
+
26
+ // Verify that our counter has incremented.
27
+ expect(find.text('0'), findsNothing);
28
+ expect(find.text('1'), findsOneWidget);
29
+ });
30
+ }
@@ -0,0 +1,38 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <!--
5
+ If you are serving your web app in a path other than the root, change the
6
+ href value below to reflect the base path you are serving from.
7
+
8
+ The path provided below has to start and end with a slash "/" in order for
9
+ it to work correctly.
10
+
11
+ For more details:
12
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
13
+
14
+ This is a placeholder for base href that will be replaced by the value of
15
+ the `--base-href` argument provided to `flutter build`.
16
+ -->
17
+ <base href="$FLUTTER_BASE_HREF">
18
+
19
+ <meta charset="UTF-8">
20
+ <meta content="IE=Edge" http-equiv="X-UA-Compatible">
21
+ <meta name="description" content="A new Flutter project.">
22
+
23
+ <!-- iOS meta tags & icons -->
24
+ <meta name="apple-mobile-web-app-capable" content="yes">
25
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
26
+ <meta name="apple-mobile-web-app-title" content="flutter_magic">
27
+ <link rel="apple-touch-icon" href="icons/Icon-192.png">
28
+
29
+ <!-- Favicon -->
30
+ <link rel="icon" type="image/png" href="favicon.png"/>
31
+
32
+ <title>flutter_magic</title>
33
+ <link rel="manifest" href="manifest.json">
34
+ </head>
35
+ <body>
36
+ <script src="flutter_bootstrap.js" async></script>
37
+ </body>
38
+ </html>
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "flutter_magic",
3
+ "short_name": "flutter_magic",
4
+ "start_url": ".",
5
+ "display": "standalone",
6
+ "background_color": "#0175C2",
7
+ "theme_color": "#0175C2",
8
+ "description": "A new Flutter project.",
9
+ "orientation": "portrait-primary",
10
+ "prefer_related_applications": false,
11
+ "icons": [
12
+ {
13
+ "src": "icons/Icon-192.png",
14
+ "sizes": "192x192",
15
+ "type": "image/png"
16
+ },
17
+ {
18
+ "src": "icons/Icon-512.png",
19
+ "sizes": "512x512",
20
+ "type": "image/png"
21
+ },
22
+ {
23
+ "src": "icons/Icon-maskable-192.png",
24
+ "sizes": "192x192",
25
+ "type": "image/png",
26
+ "purpose": "maskable"
27
+ },
28
+ {
29
+ "src": "icons/Icon-maskable-512.png",
30
+ "sizes": "512x512",
31
+ "type": "image/png",
32
+ "purpose": "maskable"
33
+ }
34
+ ]
35
+ }
@@ -0,0 +1,108 @@
1
+ # Project-level configuration.
2
+ cmake_minimum_required(VERSION 3.14)
3
+ project(flutter_magic LANGUAGES CXX)
4
+
5
+ # The name of the executable created for the application. Change this to change
6
+ # the on-disk name of your application.
7
+ set(BINARY_NAME "flutter_magic")
8
+
9
+ # Explicitly opt in to modern CMake behaviors to avoid warnings with recent
10
+ # versions of CMake.
11
+ cmake_policy(VERSION 3.14...3.25)
12
+
13
+ # Define build configuration option.
14
+ get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
15
+ if(IS_MULTICONFIG)
16
+ set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release"
17
+ CACHE STRING "" FORCE)
18
+ else()
19
+ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
20
+ set(CMAKE_BUILD_TYPE "Debug" CACHE
21
+ STRING "Flutter build mode" FORCE)
22
+ set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
23
+ "Debug" "Profile" "Release")
24
+ endif()
25
+ endif()
26
+ # Define settings for the Profile build mode.
27
+ set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}")
28
+ set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}")
29
+ set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}")
30
+ set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}")
31
+
32
+ # Use Unicode for all projects.
33
+ add_definitions(-DUNICODE -D_UNICODE)
34
+
35
+ # Compilation settings that should be applied to most targets.
36
+ #
37
+ # Be cautious about adding new options here, as plugins use this function by
38
+ # default. In most cases, you should add new options to specific targets instead
39
+ # of modifying this function.
40
+ function(APPLY_STANDARD_SETTINGS TARGET)
41
+ target_compile_features(${TARGET} PUBLIC cxx_std_17)
42
+ target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100")
43
+ target_compile_options(${TARGET} PRIVATE /EHsc)
44
+ target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0")
45
+ target_compile_definitions(${TARGET} PRIVATE "$<$<CONFIG:Debug>:_DEBUG>")
46
+ endfunction()
47
+
48
+ # Flutter library and tool build rules.
49
+ set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
50
+ add_subdirectory(${FLUTTER_MANAGED_DIR})
51
+
52
+ # Application build; see runner/CMakeLists.txt.
53
+ add_subdirectory("runner")
54
+
55
+
56
+ # Generated plugin build rules, which manage building the plugins and adding
57
+ # them to the application.
58
+ include(flutter/generated_plugins.cmake)
59
+
60
+
61
+ # === Installation ===
62
+ # Support files are copied into place next to the executable, so that it can
63
+ # run in place. This is done instead of making a separate bundle (as on Linux)
64
+ # so that building and running from within Visual Studio will work.
65
+ set(BUILD_BUNDLE_DIR "$<TARGET_FILE_DIR:${BINARY_NAME}>")
66
+ # Make the "install" step default, as it's required to run.
67
+ set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1)
68
+ if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
69
+ set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
70
+ endif()
71
+
72
+ set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
73
+ set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}")
74
+
75
+ install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
76
+ COMPONENT Runtime)
77
+
78
+ install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
79
+ COMPONENT Runtime)
80
+
81
+ install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
82
+ COMPONENT Runtime)
83
+
84
+ if(PLUGIN_BUNDLED_LIBRARIES)
85
+ install(FILES "${PLUGIN_BUNDLED_LIBRARIES}"
86
+ DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
87
+ COMPONENT Runtime)
88
+ endif()
89
+
90
+ # Copy the native assets provided by the build.dart from all packages.
91
+ set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/windows/")
92
+ install(DIRECTORY "${NATIVE_ASSETS_DIR}"
93
+ DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
94
+ COMPONENT Runtime)
95
+
96
+ # Fully re-copy the assets directory on each build to avoid having stale files
97
+ # from a previous install.
98
+ set(FLUTTER_ASSET_DIR_NAME "flutter_assets")
99
+ install(CODE "
100
+ file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\")
101
+ " COMPONENT Runtime)
102
+ install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"
103
+ DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)
104
+
105
+ # Install the AOT library on non-Debug builds only.
106
+ install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
107
+ CONFIGURATIONS Profile;Release
108
+ COMPONENT Runtime)