@sentry/wizard 3.42.1 → 4.0.1
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.
- package/CHANGELOG.md +30 -0
- package/dist/bin.js +44 -35
- package/dist/bin.js.map +1 -1
- package/dist/e2e-tests/jest.config.js +1 -1
- package/dist/e2e-tests/jest.config.js.map +1 -1
- package/dist/e2e-tests/tests/flutter.test.js +62 -147
- package/dist/e2e-tests/tests/flutter.test.js.map +1 -1
- package/dist/e2e-tests/tests/nextjs.test.js +77 -175
- package/dist/e2e-tests/tests/nextjs.test.js.map +1 -1
- package/dist/e2e-tests/tests/nuxt-3.test.js +61 -162
- package/dist/e2e-tests/tests/nuxt-3.test.js.map +1 -1
- package/dist/e2e-tests/tests/nuxt-4.test.js +62 -163
- package/dist/e2e-tests/tests/nuxt-4.test.js.map +1 -1
- package/dist/e2e-tests/tests/remix.test.js +147 -189
- package/dist/e2e-tests/tests/remix.test.js.map +1 -1
- package/dist/e2e-tests/tests/sveltekit.test.js +133 -187
- package/dist/e2e-tests/tests/sveltekit.test.js.map +1 -1
- package/dist/e2e-tests/utils/index.d.ts +1 -1
- package/dist/e2e-tests/utils/index.js +113 -195
- package/dist/e2e-tests/utils/index.js.map +1 -1
- package/dist/lib/Constants.js +5 -5
- package/dist/lib/Constants.js.map +1 -1
- package/dist/lib/Helper/BottomBar.d.ts +1 -1
- package/dist/lib/Helper/BottomBar.js +14 -15
- package/dist/lib/Helper/BottomBar.js.map +1 -1
- package/dist/lib/Helper/Env.js +5 -2
- package/dist/lib/Helper/Env.js.map +1 -1
- package/dist/lib/Helper/File.js +14 -27
- package/dist/lib/Helper/File.js.map +1 -1
- package/dist/lib/Helper/Git.js +24 -59
- package/dist/lib/Helper/Git.js.map +1 -1
- package/dist/lib/Helper/Logging.js +2 -2
- package/dist/lib/Helper/Logging.js.map +1 -1
- package/dist/lib/Helper/MergeConfig.js +4 -4
- package/dist/lib/Helper/MergeConfig.js.map +1 -1
- package/dist/lib/Helper/Package.d.ts +4 -1
- package/dist/lib/Helper/Package.js +12 -38
- package/dist/lib/Helper/Package.js.map +1 -1
- package/dist/lib/Helper/SentryCli.js +77 -149
- package/dist/lib/Helper/SentryCli.js.map +1 -1
- package/dist/lib/Helper/Wizard.js +29 -124
- package/dist/lib/Helper/Wizard.js.map +1 -1
- package/dist/lib/Helper/__tests__/File.js +4 -4
- package/dist/lib/Helper/__tests__/File.js.map +1 -1
- package/dist/lib/Helper/__tests__/MergeConfig.js +24 -24
- package/dist/lib/Helper/__tests__/MergeConfig.js.map +1 -1
- package/dist/lib/Helper/__tests__/SentryCli.js +33 -23
- package/dist/lib/Helper/__tests__/SentryCli.js.map +1 -1
- package/dist/lib/Setup.js +23 -85
- package/dist/lib/Setup.js.map +1 -1
- package/dist/lib/Steps/BaseStep.js +8 -8
- package/dist/lib/Steps/BaseStep.js.map +1 -1
- package/dist/lib/Steps/ChooseIntegration.js +80 -125
- package/dist/lib/Steps/ChooseIntegration.js.map +1 -1
- package/dist/lib/Steps/ConfigureProject.js +6 -66
- package/dist/lib/Steps/ConfigureProject.js.map +1 -1
- package/dist/lib/Steps/Initial.js +16 -104
- package/dist/lib/Steps/Initial.js.map +1 -1
- package/dist/lib/Steps/Integrations/BaseIntegration.js +24 -118
- package/dist/lib/Steps/Integrations/BaseIntegration.js.map +1 -1
- package/dist/lib/Steps/Integrations/Cordova.js +95 -183
- package/dist/lib/Steps/Integrations/Cordova.js.map +1 -1
- package/dist/lib/Steps/Integrations/Electron.js +87 -145
- package/dist/lib/Steps/Integrations/Electron.js.map +1 -1
- package/dist/lib/Steps/Integrations/MobileProject.js +40 -148
- package/dist/lib/Steps/Integrations/MobileProject.js.map +1 -1
- package/dist/lib/Steps/OpenSentry.js +63 -126
- package/dist/lib/Steps/OpenSentry.js.map +1 -1
- package/dist/lib/Steps/PromptForParameters.js +110 -206
- package/dist/lib/Steps/PromptForParameters.js.map +1 -1
- package/dist/lib/Steps/Result.js +19 -79
- package/dist/lib/Steps/Result.js.map +1 -1
- package/dist/lib/Steps/SentryProjectSelector.js +57 -148
- package/dist/lib/Steps/SentryProjectSelector.js.map +1 -1
- package/dist/lib/Steps/ShouldConfigure.js +6 -66
- package/dist/lib/Steps/ShouldConfigure.js.map +1 -1
- package/dist/lib/Steps/WaitForSentry.js +43 -120
- package/dist/lib/Steps/WaitForSentry.js.map +1 -1
- package/dist/lib/Steps/Welcome.js +17 -76
- package/dist/lib/Steps/Welcome.js.map +1 -1
- package/dist/lib/__tests__/Env.js +3 -3
- package/dist/lib/__tests__/Env.js.map +1 -1
- package/dist/src/android/android-wizard.js +100 -176
- package/dist/src/android/android-wizard.js.map +1 -1
- package/dist/src/android/code-tools.js +24 -33
- package/dist/src/android/code-tools.js.map +1 -1
- package/dist/src/android/gradle.js +106 -165
- package/dist/src/android/gradle.js.map +1 -1
- package/dist/src/android/manifest.js +26 -27
- package/dist/src/android/manifest.js.map +1 -1
- package/dist/src/android/templates.js +76 -23
- package/dist/src/android/templates.js.map +1 -1
- package/dist/src/apple/apple-wizard.js +129 -225
- package/dist/src/apple/apple-wizard.js.map +1 -1
- package/dist/src/apple/cocoapod.js +47 -109
- package/dist/src/apple/cocoapod.js.map +1 -1
- package/dist/src/apple/code-tools.js +32 -35
- package/dist/src/apple/code-tools.js.map +1 -1
- package/dist/src/apple/fastlane.js +51 -97
- package/dist/src/apple/fastlane.js.map +1 -1
- package/dist/src/apple/templates.js +41 -5
- package/dist/src/apple/templates.js.map +1 -1
- package/dist/src/apple/xcode-manager.d.ts +2 -2
- package/dist/src/apple/xcode-manager.js +93 -108
- package/dist/src/apple/xcode-manager.js.map +1 -1
- package/dist/src/flutter/code-tools.js +79 -127
- package/dist/src/flutter/code-tools.js.map +1 -1
- package/dist/src/flutter/flutter-wizard.js +75 -136
- package/dist/src/flutter/flutter-wizard.js.map +1 -1
- package/dist/src/flutter/templates.js +48 -12
- package/dist/src/flutter/templates.js.map +1 -1
- package/dist/src/nextjs/nextjs-wizard.js +527 -805
- package/dist/src/nextjs/nextjs-wizard.js.map +1 -1
- package/dist/src/nextjs/templates.js +380 -40
- package/dist/src/nextjs/templates.js.map +1 -1
- package/dist/src/nextjs/utils.js +5 -5
- package/dist/src/nextjs/utils.js.map +1 -1
- package/dist/src/nuxt/nuxt-wizard.js +91 -188
- package/dist/src/nuxt/nuxt-wizard.js.map +1 -1
- package/dist/src/nuxt/sdk-example.js +68 -137
- package/dist/src/nuxt/sdk-example.js.map +1 -1
- package/dist/src/nuxt/sdk-setup.d.ts +4 -4
- package/dist/src/nuxt/sdk-setup.js +180 -336
- package/dist/src/nuxt/sdk-setup.js.map +1 -1
- package/dist/src/nuxt/templates.js +195 -18
- package/dist/src/nuxt/templates.js.map +1 -1
- package/dist/src/nuxt/utils.js +29 -76
- package/dist/src/nuxt/utils.js.map +1 -1
- package/dist/src/react-native/expo-env-file.js +41 -94
- package/dist/src/react-native/expo-env-file.js.map +1 -1
- package/dist/src/react-native/expo-metro.d.ts +1 -1
- package/dist/src/react-native/expo-metro.js +75 -130
- package/dist/src/react-native/expo-metro.js.map +1 -1
- package/dist/src/react-native/expo.js +61 -114
- package/dist/src/react-native/expo.js.map +1 -1
- package/dist/src/react-native/git.js +23 -56
- package/dist/src/react-native/git.js.map +1 -1
- package/dist/src/react-native/glob.js +3 -3
- package/dist/src/react-native/glob.js.map +1 -1
- package/dist/src/react-native/gradle.js +4 -4
- package/dist/src/react-native/gradle.js.map +1 -1
- package/dist/src/react-native/javascript.js +51 -95
- package/dist/src/react-native/javascript.js.map +1 -1
- package/dist/src/react-native/metro.js +176 -296
- package/dist/src/react-native/metro.js.map +1 -1
- package/dist/src/react-native/react-native-wizard.js +267 -418
- package/dist/src/react-native/react-native-wizard.js.map +1 -1
- package/dist/src/react-native/uninstall.js +37 -80
- package/dist/src/react-native/uninstall.js.map +1 -1
- package/dist/src/react-native/xcode.js +57 -55
- package/dist/src/react-native/xcode.js.map +1 -1
- package/dist/src/remix/codemods/express-server.js +27 -82
- package/dist/src/remix/codemods/express-server.js.map +1 -1
- package/dist/src/remix/codemods/handle-error.js +28 -31
- package/dist/src/remix/codemods/handle-error.js.map +1 -1
- package/dist/src/remix/codemods/root-common.js +11 -11
- package/dist/src/remix/codemods/root-common.js.map +1 -1
- package/dist/src/remix/codemods/root-v1.js +17 -67
- package/dist/src/remix/codemods/root-v1.js.map +1 -1
- package/dist/src/remix/codemods/root-v2.js +89 -140
- package/dist/src/remix/codemods/root-v2.js.map +1 -1
- package/dist/src/remix/remix-wizard.js +181 -343
- package/dist/src/remix/remix-wizard.js.map +1 -1
- package/dist/src/remix/sdk-example.js +84 -66
- package/dist/src/remix/sdk-example.js.map +1 -1
- package/dist/src/remix/sdk-setup.js +161 -293
- package/dist/src/remix/sdk-setup.js.map +1 -1
- package/dist/src/remix/templates.js +10 -2
- package/dist/src/remix/templates.js.map +1 -1
- package/dist/src/remix/utils.js +13 -14
- package/dist/src/remix/utils.js.map +1 -1
- package/dist/src/run.js +106 -178
- package/dist/src/run.js.map +1 -1
- package/dist/src/sourcemaps/sourcemaps-wizard.js +248 -372
- package/dist/src/sourcemaps/sourcemaps-wizard.js.map +1 -1
- package/dist/src/sourcemaps/tools/angular.js +32 -66
- package/dist/src/sourcemaps/tools/angular.js.map +1 -1
- package/dist/src/sourcemaps/tools/create-react-app.js +14 -59
- package/dist/src/sourcemaps/tools/create-react-app.js.map +1 -1
- package/dist/src/sourcemaps/tools/esbuild.js +34 -77
- package/dist/src/sourcemaps/tools/esbuild.js.map +1 -1
- package/dist/src/sourcemaps/tools/nextjs.d.ts +2 -2
- package/dist/src/sourcemaps/tools/nextjs.js +75 -102
- package/dist/src/sourcemaps/tools/nextjs.js.map +1 -1
- package/dist/src/sourcemaps/tools/remix.js +53 -93
- package/dist/src/sourcemaps/tools/remix.js.map +1 -1
- package/dist/src/sourcemaps/tools/rollup.js +35 -76
- package/dist/src/sourcemaps/tools/rollup.js.map +1 -1
- package/dist/src/sourcemaps/tools/sentry-cli.js +157 -289
- package/dist/src/sourcemaps/tools/sentry-cli.js.map +1 -1
- package/dist/src/sourcemaps/tools/tsc.js +68 -134
- package/dist/src/sourcemaps/tools/tsc.js.map +1 -1
- package/dist/src/sourcemaps/tools/vite.js +111 -196
- package/dist/src/sourcemaps/tools/vite.js.map +1 -1
- package/dist/src/sourcemaps/tools/webpack.d.ts +1 -1
- package/dist/src/sourcemaps/tools/webpack.js +158 -260
- package/dist/src/sourcemaps/tools/webpack.js.map +1 -1
- package/dist/src/sourcemaps/utils/detect-tool.js +9 -54
- package/dist/src/sourcemaps/utils/detect-tool.js.map +1 -1
- package/dist/src/sourcemaps/utils/other-wizards.js +77 -144
- package/dist/src/sourcemaps/utils/other-wizards.js.map +1 -1
- package/dist/src/sourcemaps/utils/sdk-version.js +112 -191
- package/dist/src/sourcemaps/utils/sdk-version.js.map +1 -1
- package/dist/src/sveltekit/sdk-example.js +20 -70
- package/dist/src/sveltekit/sdk-example.js.map +1 -1
- package/dist/src/sveltekit/sdk-setup.js +250 -411
- package/dist/src/sveltekit/sdk-setup.js.map +1 -1
- package/dist/src/sveltekit/sveltekit-wizard.js +107 -191
- package/dist/src/sveltekit/sveltekit-wizard.js.map +1 -1
- package/dist/src/sveltekit/templates.js +147 -13
- package/dist/src/sveltekit/templates.js.map +1 -1
- package/dist/src/sveltekit/utils.js +3 -3
- package/dist/src/sveltekit/utils.js.map +1 -1
- package/dist/src/telemetry.d.ts +2 -2
- package/dist/src/telemetry.js +58 -108
- package/dist/src/telemetry.js.map +1 -1
- package/dist/src/utils/ast-utils.js +39 -54
- package/dist/src/utils/ast-utils.js.map +1 -1
- package/dist/src/utils/bash.js +28 -75
- package/dist/src/utils/bash.js.map +1 -1
- package/dist/src/utils/clack-utils.d.ts +3 -7
- package/dist/src/utils/clack-utils.js +688 -1083
- package/dist/src/utils/clack-utils.js.map +1 -1
- package/dist/src/utils/debug.js +6 -10
- package/dist/src/utils/debug.js.map +1 -1
- package/dist/src/utils/package-json.js +5 -6
- package/dist/src/utils/package-json.js.map +1 -1
- package/dist/src/utils/package-manager.js +65 -139
- package/dist/src/utils/package-manager.js.map +1 -1
- package/dist/src/utils/release-registry.js +12 -59
- package/dist/src/utils/release-registry.js.map +1 -1
- package/dist/src/utils/semver.js +3 -4
- package/dist/src/utils/semver.js.map +1 -1
- package/dist/src/utils/sentrycli-utils.js +4 -4
- package/dist/src/utils/sentrycli-utils.js.map +1 -1
- package/dist/src/utils/url.js +5 -6
- package/dist/src/utils/url.js.map +1 -1
- package/dist/test/android/code-tools.test.js +18 -18
- package/dist/test/android/code-tools.test.js.map +1 -1
- package/dist/test/apple/cocoapod.test.js +154 -299
- package/dist/test/apple/cocoapod.test.js.map +1 -1
- package/dist/test/apple/code-tools.test.js +375 -263
- package/dist/test/apple/code-tools.test.js.map +1 -1
- package/dist/test/apple/fastfile.test.js +319 -271
- package/dist/test/apple/fastfile.test.js.map +1 -1
- package/dist/test/apple/templates.test.js +114 -30
- package/dist/test/apple/templates.test.js.map +1 -1
- package/dist/test/apple/xcode-manager.test.js +230 -234
- package/dist/test/apple/xcode-manager.test.js.map +1 -1
- package/dist/test/flutter/code-tools.test.js +119 -48
- package/dist/test/flutter/code-tools.test.js.map +1 -1
- package/dist/test/flutter/templates.test.js +63 -20
- package/dist/test/flutter/templates.test.js.map +1 -1
- package/dist/test/nextjs/templates.test.js +332 -43
- package/dist/test/nextjs/templates.test.js.map +1 -1
- package/dist/test/nuxt/templates.test.js +161 -33
- package/dist/test/nuxt/templates.test.js.map +1 -1
- package/dist/test/react-native/expo-metro.test.js +61 -15
- package/dist/test/react-native/expo-metro.test.js.map +1 -1
- package/dist/test/react-native/expo.test.js +37 -17
- package/dist/test/react-native/expo.test.js.map +1 -1
- package/dist/test/react-native/gradle.test.js +260 -28
- package/dist/test/react-native/gradle.test.js.map +1 -1
- package/dist/test/react-native/javascript.test.js +85 -19
- package/dist/test/react-native/javascript.test.js.map +1 -1
- package/dist/test/react-native/metro.test.js +261 -187
- package/dist/test/react-native/metro.test.js.map +1 -1
- package/dist/test/react-native/xcode.test.js +243 -62
- package/dist/test/react-native/xcode.test.js.map +1 -1
- package/dist/test/remix/client-entry.test.js +81 -21
- package/dist/test/remix/client-entry.test.js.map +1 -1
- package/dist/test/remix/server-instrumentation.test.js +21 -8
- package/dist/test/remix/server-instrumentation.test.js.map +1 -1
- package/dist/test/sourcemaps/tools/sentry-cli.test.js +20 -72
- package/dist/test/sourcemaps/tools/sentry-cli.test.js.map +1 -1
- package/dist/test/sourcemaps/tools/tsc.test.js +142 -68
- package/dist/test/sourcemaps/tools/tsc.test.js.map +1 -1
- package/dist/test/sourcemaps/tools/vite.test.js +106 -75
- package/dist/test/sourcemaps/tools/vite.test.js.map +1 -1
- package/dist/test/sourcemaps/tools/webpack.test.js +226 -102
- package/dist/test/sourcemaps/tools/webpack.test.js.map +1 -1
- package/dist/test/sveltekit/templates.test.js +117 -18
- package/dist/test/sveltekit/templates.test.js.map +1 -1
- package/dist/test/utils/ast-utils.test.js +99 -58
- package/dist/test/utils/ast-utils.test.js.map +1 -1
- package/dist/test/utils/clack-utils.test.js +142 -247
- package/dist/test/utils/clack-utils.test.js.map +1 -1
- package/package.json +16 -9
- package/bin.ts +0 -138
- package/codecov.yml +0 -15
- package/dist/package.json +0 -128
- package/e2e-tests/.env.example +0 -11
- package/e2e-tests/README.md +0 -63
- package/e2e-tests/jest.config.ts +0 -22
- package/e2e-tests/package.json +0 -14
- package/e2e-tests/run.sh +0 -15
- package/e2e-tests/test-applications/apple/damaged-missing-configuration-list/Project.xcodeproj/project.pbxproj +0 -52
- package/e2e-tests/test-applications/apple/damaged-missing-configuration-list/Project.xcodeproj/xcshareddata/xcschemes/Project1.xcscheme +0 -78
- package/e2e-tests/test-applications/apple/no-targets/Project.xcodeproj/project.pbxproj +0 -62
- package/e2e-tests/test-applications/apple/no-targets/Project.xcodeproj/xcshareddata/xcschemes/Project1.xcscheme +0 -78
- package/e2e-tests/test-applications/apple/spm-swiftui-multi-targets/Project.xcodeproj/project.pbxproj +0 -470
- package/e2e-tests/test-applications/apple/spm-swiftui-multi-targets/Project.xcodeproj/xcshareddata/xcschemes/Project1.xcscheme +0 -78
- package/e2e-tests/test-applications/apple/spm-swiftui-multi-targets/Project1/ContentView.swift +0 -7
- package/e2e-tests/test-applications/apple/spm-swiftui-multi-targets/Project1/Project1App.swift +0 -10
- package/e2e-tests/test-applications/apple/spm-swiftui-multi-targets/Project2/ContentView.swift +0 -7
- package/e2e-tests/test-applications/apple/spm-swiftui-multi-targets/Project2/Project2App.swift +0 -10
- package/e2e-tests/test-applications/apple/spm-swiftui-single-target/Project.xcodeproj/project.pbxproj +0 -382
- package/e2e-tests/test-applications/apple/spm-swiftui-single-target/Project.xcodeproj/xcshareddata/xcschemes/Project.xcscheme +0 -78
- package/e2e-tests/test-applications/apple/spm-swiftui-single-target/Sources/ContentView.swift +0 -7
- package/e2e-tests/test-applications/apple/spm-swiftui-single-target/Sources/MainApp.swift +0 -10
- package/e2e-tests/test-applications/flutter-test-app/.metadata +0 -45
- package/e2e-tests/test-applications/flutter-test-app/README.md +0 -16
- package/e2e-tests/test-applications/flutter-test-app/analysis_options.yaml +0 -28
- package/e2e-tests/test-applications/flutter-test-app/android/app/build.gradle +0 -44
- package/e2e-tests/test-applications/flutter-test-app/android/app/src/debug/AndroidManifest.xml +0 -7
- package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/AndroidManifest.xml +0 -45
- package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/kotlin/com/example/flutter_magic/MainActivity.kt +0 -5
- package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/res/drawable/launch_background.xml +0 -12
- package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/res/drawable-v21/launch_background.xml +0 -12
- package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/res/values/styles.xml +0 -18
- package/e2e-tests/test-applications/flutter-test-app/android/app/src/main/res/values-night/styles.xml +0 -18
- package/e2e-tests/test-applications/flutter-test-app/android/app/src/profile/AndroidManifest.xml +0 -7
- package/e2e-tests/test-applications/flutter-test-app/android/build.gradle +0 -18
- package/e2e-tests/test-applications/flutter-test-app/android/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/e2e-tests/test-applications/flutter-test-app/android/gradle.properties +0 -3
- package/e2e-tests/test-applications/flutter-test-app/android/settings.gradle +0 -25
- package/e2e-tests/test-applications/flutter-test-app/lib/main.dart +0 -125
- package/e2e-tests/test-applications/flutter-test-app/linux/CMakeLists.txt +0 -145
- package/e2e-tests/test-applications/flutter-test-app/linux/flutter/CMakeLists.txt +0 -88
- package/e2e-tests/test-applications/flutter-test-app/linux/flutter/generated_plugin_registrant.cc +0 -11
- package/e2e-tests/test-applications/flutter-test-app/linux/flutter/generated_plugin_registrant.h +0 -15
- package/e2e-tests/test-applications/flutter-test-app/linux/flutter/generated_plugins.cmake +0 -23
- package/e2e-tests/test-applications/flutter-test-app/linux/main.cc +0 -6
- package/e2e-tests/test-applications/flutter-test-app/linux/my_application.cc +0 -124
- package/e2e-tests/test-applications/flutter-test-app/linux/my_application.h +0 -18
- package/e2e-tests/test-applications/flutter-test-app/macos/Flutter/Flutter-Debug.xcconfig +0 -2
- package/e2e-tests/test-applications/flutter-test-app/macos/Flutter/Flutter-Release.xcconfig +0 -2
- package/e2e-tests/test-applications/flutter-test-app/macos/Flutter/GeneratedPluginRegistrant.swift +0 -10
- package/e2e-tests/test-applications/flutter-test-app/macos/Podfile +0 -43
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner/AppDelegate.swift +0 -9
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -68
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png +0 -0
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png +0 -0
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png +0 -0
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png +0 -0
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png +0 -0
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png +0 -0
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png +0 -0
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Base.lproj/MainMenu.xib +0 -343
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Configs/AppInfo.xcconfig +0 -14
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Configs/Debug.xcconfig +0 -2
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Configs/Release.xcconfig +0 -2
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Configs/Warnings.xcconfig +0 -13
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner/DebugProfile.entitlements +0 -12
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Info.plist +0 -32
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner/MainFlutterWindow.swift +0 -15
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner/Release.entitlements +0 -8
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner.xcodeproj/project.pbxproj +0 -705
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +0 -98
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner.xcworkspace/contents.xcworkspacedata +0 -7
- package/e2e-tests/test-applications/flutter-test-app/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/e2e-tests/test-applications/flutter-test-app/macos/RunnerTests/RunnerTests.swift +0 -12
- package/e2e-tests/test-applications/flutter-test-app/pubspec.lock +0 -213
- package/e2e-tests/test-applications/flutter-test-app/pubspec.yaml +0 -89
- package/e2e-tests/test-applications/flutter-test-app/test/widget_test.dart +0 -30
- package/e2e-tests/test-applications/flutter-test-app/web/favicon.png +0 -0
- package/e2e-tests/test-applications/flutter-test-app/web/icons/Icon-192.png +0 -0
- package/e2e-tests/test-applications/flutter-test-app/web/icons/Icon-512.png +0 -0
- package/e2e-tests/test-applications/flutter-test-app/web/icons/Icon-maskable-192.png +0 -0
- package/e2e-tests/test-applications/flutter-test-app/web/icons/Icon-maskable-512.png +0 -0
- package/e2e-tests/test-applications/flutter-test-app/web/index.html +0 -38
- package/e2e-tests/test-applications/flutter-test-app/web/manifest.json +0 -35
- package/e2e-tests/test-applications/flutter-test-app/windows/CMakeLists.txt +0 -108
- package/e2e-tests/test-applications/flutter-test-app/windows/flutter/CMakeLists.txt +0 -109
- package/e2e-tests/test-applications/flutter-test-app/windows/flutter/generated_plugin_registrant.cc +0 -11
- package/e2e-tests/test-applications/flutter-test-app/windows/flutter/generated_plugin_registrant.h +0 -15
- package/e2e-tests/test-applications/flutter-test-app/windows/flutter/generated_plugins.cmake +0 -23
- package/e2e-tests/test-applications/flutter-test-app/windows/runner/CMakeLists.txt +0 -40
- package/e2e-tests/test-applications/flutter-test-app/windows/runner/Runner.rc +0 -121
- package/e2e-tests/test-applications/flutter-test-app/windows/runner/flutter_window.cpp +0 -71
- package/e2e-tests/test-applications/flutter-test-app/windows/runner/flutter_window.h +0 -33
- package/e2e-tests/test-applications/flutter-test-app/windows/runner/main.cpp +0 -43
- package/e2e-tests/test-applications/flutter-test-app/windows/runner/resource.h +0 -16
- package/e2e-tests/test-applications/flutter-test-app/windows/runner/resources/app_icon.ico +0 -0
- package/e2e-tests/test-applications/flutter-test-app/windows/runner/runner.exe.manifest +0 -14
- package/e2e-tests/test-applications/flutter-test-app/windows/runner/utils.cpp +0 -65
- package/e2e-tests/test-applications/flutter-test-app/windows/runner/utils.h +0 -19
- package/e2e-tests/test-applications/flutter-test-app/windows/runner/win32_window.cpp +0 -288
- package/e2e-tests/test-applications/flutter-test-app/windows/runner/win32_window.h +0 -102
- package/e2e-tests/test-applications/nextjs-test-app/next.config.mjs +0 -4
- package/e2e-tests/test-applications/nextjs-test-app/package.json +0 -22
- package/e2e-tests/test-applications/nextjs-test-app/src/app/layout.tsx +0 -20
- package/e2e-tests/test-applications/nextjs-test-app/src/app/page.tsx +0 -90
- package/e2e-tests/test-applications/nuxt-3-test-app/README.md +0 -75
- package/e2e-tests/test-applications/nuxt-3-test-app/nuxt.config.ts +0 -5
- package/e2e-tests/test-applications/nuxt-3-test-app/package.json +0 -18
- package/e2e-tests/test-applications/nuxt-3-test-app/public/favicon.ico +0 -0
- package/e2e-tests/test-applications/nuxt-3-test-app/public/robots.txt +0 -1
- package/e2e-tests/test-applications/nuxt-4-test-app/README.md +0 -75
- package/e2e-tests/test-applications/nuxt-4-test-app/nuxt.config.ts +0 -6
- package/e2e-tests/test-applications/nuxt-4-test-app/package.json +0 -18
- package/e2e-tests/test-applications/nuxt-4-test-app/public/favicon.ico +0 -0
- package/e2e-tests/test-applications/nuxt-4-test-app/public/robots.txt +0 -1
- package/e2e-tests/test-applications/remix-test-app/app/entry.client.tsx +0 -18
- package/e2e-tests/test-applications/remix-test-app/app/entry.server.tsx +0 -140
- package/e2e-tests/test-applications/remix-test-app/app/root.tsx +0 -30
- package/e2e-tests/test-applications/remix-test-app/app/routes/_index.tsx +0 -48
- package/e2e-tests/test-applications/remix-test-app/app/tailwind.css +0 -3
- package/e2e-tests/test-applications/remix-test-app/package.json +0 -37
- package/e2e-tests/test-applications/remix-test-app/postcss.config.js +0 -6
- package/e2e-tests/test-applications/remix-test-app/tailwind.config.ts +0 -9
- package/e2e-tests/test-applications/remix-test-app/vite.config.ts +0 -16
- package/e2e-tests/test-applications/sveltekit-test-app/package.json +0 -21
- package/e2e-tests/test-applications/sveltekit-test-app/src/app.d.ts +0 -13
- package/e2e-tests/test-applications/sveltekit-test-app/src/app.html +0 -11
- package/e2e-tests/test-applications/sveltekit-test-app/src/lib/index.ts +0 -1
- package/e2e-tests/test-applications/sveltekit-test-app/src/routes/+page.svelte +0 -2
- package/e2e-tests/test-applications/sveltekit-test-app/svelte.config.js +0 -18
- package/e2e-tests/test-applications/sveltekit-test-app/vite.config.ts +0 -6
- package/e2e-tests/tests/flutter.test.ts +0 -127
- package/e2e-tests/tests/nextjs.test.ts +0 -161
- package/e2e-tests/tests/nuxt-3.test.ts +0 -189
- package/e2e-tests/tests/nuxt-4.test.ts +0 -188
- package/e2e-tests/tests/remix.test.ts +0 -277
- package/e2e-tests/tests/sveltekit.test.ts +0 -284
- package/e2e-tests/utils/index.ts +0 -438
- package/index.ts +0 -2
- package/lib/Constants.ts +0 -118
- package/lib/Helper/BottomBar.ts +0 -28
- package/lib/Helper/Env.ts +0 -7
- package/lib/Helper/File.ts +0 -65
- package/lib/Helper/Git.ts +0 -39
- package/lib/Helper/Logging.ts +0 -44
- package/lib/Helper/MergeConfig.ts +0 -19
- package/lib/Helper/Package.ts +0 -78
- package/lib/Helper/SentryCli.ts +0 -148
- package/lib/Helper/Wizard.ts +0 -59
- package/lib/Helper/__tests__/File.ts +0 -15
- package/lib/Helper/__tests__/MergeConfig.ts +0 -98
- package/lib/Helper/__tests__/SentryCli.ts +0 -86
- package/lib/Helper/test-fixtures/next.config.1-merged.js +0 -18
- package/lib/Helper/test-fixtures/next.config.1.js +0 -6
- package/lib/Helper/test-fixtures/next.config.2.js +0 -8
- package/lib/Helper/test-fixtures/next.config.3-merged.js +0 -21
- package/lib/Helper/test-fixtures/next.config.3.js +0 -9
- package/lib/Helper/test-fixtures/next.config.4-merged.js +0 -21
- package/lib/Helper/test-fixtures/next.config.4.js +0 -9
- package/lib/Setup.ts +0 -41
- package/lib/Steps/BaseStep.ts +0 -25
- package/lib/Steps/ChooseIntegration.ts +0 -112
- package/lib/Steps/ConfigureProject.ts +0 -10
- package/lib/Steps/Initial.ts +0 -44
- package/lib/Steps/Integrations/BaseIntegration.ts +0 -48
- package/lib/Steps/Integrations/Cordova.ts +0 -289
- package/lib/Steps/Integrations/Electron.ts +0 -161
- package/lib/Steps/Integrations/MobileProject.ts +0 -69
- package/lib/Steps/OpenSentry.ts +0 -75
- package/lib/Steps/PromptForParameters.ts +0 -207
- package/lib/Steps/Result.ts +0 -22
- package/lib/Steps/SentryProjectSelector.ts +0 -82
- package/lib/Steps/ShouldConfigure.ts +0 -10
- package/lib/Steps/WaitForSentry.ts +0 -50
- package/lib/Steps/Welcome.ts +0 -21
- package/lib/Steps/index.ts +0 -10
- package/lib/__tests__/Env.ts +0 -29
- package/scripts/NextJs/configs/_error.js +0 -39
- package/scripts/NextJs/configs/next.config.js +0 -36
- package/scripts/NextJs/configs/next.config.template.js +0 -12
- package/scripts/NextJs/configs/sentry.client.config.js +0 -17
- package/scripts/NextJs/configs/sentry.edge.config.js +0 -17
- package/scripts/NextJs/configs/sentry.server.config.js +0 -17
- package/scripts/NextJs/sentry_sample_error.js +0 -47
- package/scripts/craft-pre-release.sh +0 -10
- package/src/android/android-wizard.ts +0 -192
- package/src/android/code-tools.ts +0 -170
- package/src/android/gradle.ts +0 -250
- package/src/android/manifest.ts +0 -180
- package/src/android/templates.ts +0 -86
- package/src/apple/apple-wizard.ts +0 -269
- package/src/apple/cocoapod.ts +0 -73
- package/src/apple/code-tools.ts +0 -147
- package/src/apple/fastlane.ts +0 -170
- package/src/apple/templates.ts +0 -65
- package/src/apple/xcode-manager.ts +0 -404
- package/src/flutter/code-tools.ts +0 -284
- package/src/flutter/flutter-wizard.ts +0 -164
- package/src/flutter/templates.ts +0 -90
- package/src/nextjs/nextjs-wizard.ts +0 -1007
- package/src/nextjs/templates.ts +0 -526
- package/src/nextjs/utils.ts +0 -21
- package/src/nuxt/nuxt-wizard.ts +0 -188
- package/src/nuxt/sdk-example.ts +0 -135
- package/src/nuxt/sdk-setup.ts +0 -349
- package/src/nuxt/templates.ts +0 -303
- package/src/nuxt/types.ts +0 -8
- package/src/nuxt/utils.ts +0 -42
- package/src/react-native/expo-env-file.ts +0 -55
- package/src/react-native/expo-metro.ts +0 -212
- package/src/react-native/expo.ts +0 -175
- package/src/react-native/git.ts +0 -25
- package/src/react-native/glob.ts +0 -13
- package/src/react-native/gradle.ts +0 -26
- package/src/react-native/javascript.ts +0 -103
- package/src/react-native/metro.ts +0 -599
- package/src/react-native/options.ts +0 -5
- package/src/react-native/react-native-wizard.ts +0 -513
- package/src/react-native/uninstall.ts +0 -110
- package/src/react-native/xcode.ts +0 -302
- package/src/remix/codemods/express-server.ts +0 -44
- package/src/remix/codemods/handle-error.ts +0 -118
- package/src/remix/codemods/root-common.ts +0 -63
- package/src/remix/codemods/root-v1.ts +0 -41
- package/src/remix/codemods/root-v2.ts +0 -153
- package/src/remix/remix-wizard.ts +0 -261
- package/src/remix/sdk-example.ts +0 -120
- package/src/remix/sdk-setup.ts +0 -546
- package/src/remix/templates.ts +0 -11
- package/src/remix/utils.ts +0 -96
- package/src/run.ts +0 -204
- package/src/sourcemaps/sourcemaps-wizard.ts +0 -364
- package/src/sourcemaps/tools/angular.ts +0 -42
- package/src/sourcemaps/tools/create-react-app.ts +0 -19
- package/src/sourcemaps/tools/esbuild.ts +0 -65
- package/src/sourcemaps/tools/nextjs.ts +0 -114
- package/src/sourcemaps/tools/remix.ts +0 -90
- package/src/sourcemaps/tools/rollup.ts +0 -67
- package/src/sourcemaps/tools/sentry-cli.ts +0 -287
- package/src/sourcemaps/tools/tsc.ts +0 -144
- package/src/sourcemaps/tools/types.ts +0 -11
- package/src/sourcemaps/tools/vite.ts +0 -300
- package/src/sourcemaps/tools/webpack.ts +0 -383
- package/src/sourcemaps/utils/detect-tool.ts +0 -46
- package/src/sourcemaps/utils/other-wizards.ts +0 -167
- package/src/sourcemaps/utils/sdk-version.ts +0 -266
- package/src/sveltekit/sdk-example.ts +0 -56
- package/src/sveltekit/sdk-setup.ts +0 -667
- package/src/sveltekit/sveltekit-wizard.ts +0 -192
- package/src/sveltekit/templates.ts +0 -185
- package/src/sveltekit/utils.ts +0 -50
- package/src/telemetry.ts +0 -124
- package/src/utils/ast-utils.ts +0 -270
- package/src/utils/bash.ts +0 -57
- package/src/utils/clack-utils.ts +0 -1533
- package/src/utils/debug.ts +0 -20
- package/src/utils/package-json.ts +0 -51
- package/src/utils/package-manager.ts +0 -172
- package/src/utils/release-registry.ts +0 -19
- package/src/utils/semver.ts +0 -33
- package/src/utils/sentrycli-utils.ts +0 -24
- package/src/utils/string.ts +0 -7
- package/src/utils/types.ts +0 -77
- package/src/utils/url.ts +0 -27
- package/src/utils/vendor/is-unicorn-supported.ts +0 -29
- package/test/android/code-tools.test.ts +0 -49
- package/test/apple/cocoapod.test.ts +0 -306
- package/test/apple/code-tools.test.ts +0 -1042
- package/test/apple/fastfile.test.ts +0 -550
- package/test/apple/templates.test.ts +0 -191
- package/test/apple/xcode-manager.test.ts +0 -1066
- package/test/flutter/code-tools.test.ts +0 -212
- package/test/flutter/templates.test.ts +0 -100
- package/test/nextjs/templates.test.ts +0 -429
- package/test/nuxt/templates.test.ts +0 -255
- package/test/react-native/expo-metro.test.ts +0 -81
- package/test/react-native/expo.test.ts +0 -86
- package/test/react-native/gradle.test.ts +0 -310
- package/test/react-native/javascript.test.ts +0 -134
- package/test/react-native/metro.test.ts +0 -396
- package/test/react-native/xcode.test.ts +0 -401
- package/test/remix/client-entry.test.ts +0 -122
- package/test/remix/server-instrumentation.test.ts +0 -36
- package/test/sourcemaps/tools/sentry-cli.test.ts +0 -57
- package/test/sourcemaps/tools/tsc.test.ts +0 -181
- package/test/sourcemaps/tools/vite.test.ts +0 -149
- package/test/sourcemaps/tools/webpack.test.ts +0 -303
- package/test/sveltekit/templates.test.ts +0 -152
- package/test/utils/ast-utils.test.ts +0 -264
- package/test/utils/clack-utils.test.ts +0 -234
- package/types/xcode.d.ts +0 -526
|
@@ -1,98 +0,0 @@
|
|
|
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>
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,213 +0,0 @@
|
|
|
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"
|
|
@@ -1,89 +0,0 @@
|
|
|
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
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,38 +0,0 @@
|
|
|
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>
|
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
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)
|