├── ncmdump_mobile
├── linux
│ ├── .gitignore
│ ├── runner
│ │ ├── main.cc
│ │ ├── my_application.h
│ │ ├── CMakeLists.txt
│ │ └── my_application.cc
│ ├── flutter
│ │ ├── generated_plugin_registrant.cc
│ │ ├── generated_plugin_registrant.h
│ │ ├── generated_plugins.cmake
│ │ └── CMakeLists.txt
│ └── CMakeLists.txt
├── ios
│ ├── Flutter
│ │ ├── Debug.xcconfig
│ │ ├── Release.xcconfig
│ │ └── AppFrameworkInfo.plist
│ ├── Runner
│ │ ├── Runner-Bridging-Header.h
│ │ ├── Assets.xcassets
│ │ │ ├── LaunchImage.imageset
│ │ │ │ ├── LaunchImage.png
│ │ │ │ ├── LaunchImage@2x.png
│ │ │ │ ├── LaunchImage@3x.png
│ │ │ │ ├── README.md
│ │ │ │ └── Contents.json
│ │ │ └── AppIcon.appiconset
│ │ │ │ ├── Icon-App-20x20@1x.png
│ │ │ │ ├── Icon-App-20x20@2x.png
│ │ │ │ ├── Icon-App-20x20@3x.png
│ │ │ │ ├── Icon-App-29x29@1x.png
│ │ │ │ ├── Icon-App-29x29@2x.png
│ │ │ │ ├── Icon-App-29x29@3x.png
│ │ │ │ ├── Icon-App-40x40@1x.png
│ │ │ │ ├── Icon-App-40x40@2x.png
│ │ │ │ ├── Icon-App-40x40@3x.png
│ │ │ │ ├── Icon-App-50x50@1x.png
│ │ │ │ ├── Icon-App-50x50@2x.png
│ │ │ │ ├── Icon-App-57x57@1x.png
│ │ │ │ ├── Icon-App-57x57@2x.png
│ │ │ │ ├── Icon-App-60x60@2x.png
│ │ │ │ ├── Icon-App-60x60@3x.png
│ │ │ │ ├── Icon-App-72x72@1x.png
│ │ │ │ ├── Icon-App-72x72@2x.png
│ │ │ │ ├── Icon-App-76x76@1x.png
│ │ │ │ ├── Icon-App-76x76@2x.png
│ │ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ │ ├── Icon-App-83.5x83.5@2x.png
│ │ │ │ └── Contents.json
│ │ ├── AppDelegate.swift
│ │ ├── Base.lproj
│ │ │ ├── Main.storyboard
│ │ │ └── LaunchScreen.storyboard
│ │ └── Info.plist
│ ├── Runner.xcodeproj
│ │ ├── project.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ │ ├── WorkspaceSettings.xcsettings
│ │ │ │ └── IDEWorkspaceChecks.plist
│ │ └── xcshareddata
│ │ │ └── xcschemes
│ │ │ └── Runner.xcscheme
│ ├── Runner.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── WorkspaceSettings.xcsettings
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── RunnerTests
│ │ └── RunnerTests.swift
│ └── .gitignore
├── macos
│ ├── Flutter
│ │ ├── Flutter-Debug.xcconfig
│ │ ├── Flutter-Release.xcconfig
│ │ └── GeneratedPluginRegistrant.swift
│ ├── Runner
│ │ ├── Configs
│ │ │ ├── Debug.xcconfig
│ │ │ ├── Release.xcconfig
│ │ │ ├── Warnings.xcconfig
│ │ │ └── AppInfo.xcconfig
│ │ ├── Assets.xcassets
│ │ │ └── AppIcon.appiconset
│ │ │ │ ├── app_icon_128.png
│ │ │ │ ├── app_icon_16.png
│ │ │ │ ├── app_icon_256.png
│ │ │ │ ├── app_icon_32.png
│ │ │ │ ├── app_icon_512.png
│ │ │ │ ├── app_icon_64.png
│ │ │ │ ├── app_icon_1024.png
│ │ │ │ └── Contents.json
│ │ ├── Release.entitlements
│ │ ├── AppDelegate.swift
│ │ ├── DebugProfile.entitlements
│ │ ├── MainFlutterWindow.swift
│ │ ├── Info.plist
│ │ └── Base.lproj
│ │ │ └── MainMenu.xib
│ ├── .gitignore
│ ├── Runner.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── Runner.xcodeproj
│ │ ├── project.xcworkspace
│ │ │ └── xcshareddata
│ │ │ │ └── IDEWorkspaceChecks.plist
│ │ └── xcshareddata
│ │ │ └── xcschemes
│ │ │ └── Runner.xcscheme
│ └── RunnerTests
│ │ └── RunnerTests.swift
├── web
│ ├── favicon.png
│ ├── icons
│ │ ├── Icon-192.png
│ │ ├── Icon-512.png
│ │ ├── Icon-maskable-192.png
│ │ └── Icon-maskable-512.png
│ ├── manifest.json
│ └── index.html
├── assets
│ ├── icon_opaque.png
│ └── icon_transparent.png
├── windows
│ ├── runner
│ │ ├── resources
│ │ │ └── app_icon.ico
│ │ ├── resource.h
│ │ ├── runner.exe.manifest
│ │ ├── utils.h
│ │ ├── flutter_window.h
│ │ ├── main.cpp
│ │ ├── CMakeLists.txt
│ │ ├── utils.cpp
│ │ ├── ncmdump.h
│ │ ├── flutter_window.cpp
│ │ ├── Runner.rc
│ │ ├── win32_window.h
│ │ └── win32_window.cpp
│ ├── .gitignore
│ ├── flutter
│ │ ├── generated_plugin_registrant.h
│ │ ├── generated_plugin_registrant.cc
│ │ ├── generated_plugins.cmake
│ │ └── CMakeLists.txt
│ └── CMakeLists.txt
├── android
│ ├── gradle.properties
│ ├── app
│ │ ├── src
│ │ │ ├── main
│ │ │ │ ├── res
│ │ │ │ │ ├── values
│ │ │ │ │ │ ├── colors.xml
│ │ │ │ │ │ └── styles.xml
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── drawable-hdpi
│ │ │ │ │ │ └── ic_launcher_foreground.png
│ │ │ │ │ ├── drawable-mdpi
│ │ │ │ │ │ └── ic_launcher_foreground.png
│ │ │ │ │ ├── drawable-xhdpi
│ │ │ │ │ │ └── ic_launcher_foreground.png
│ │ │ │ │ ├── drawable-xxhdpi
│ │ │ │ │ │ └── ic_launcher_foreground.png
│ │ │ │ │ ├── drawable-xxxhdpi
│ │ │ │ │ │ └── ic_launcher_foreground.png
│ │ │ │ │ ├── mipmap-anydpi-v26
│ │ │ │ │ │ └── ic_launcher.xml
│ │ │ │ │ ├── drawable
│ │ │ │ │ │ └── launch_background.xml
│ │ │ │ │ ├── drawable-v21
│ │ │ │ │ │ └── launch_background.xml
│ │ │ │ │ └── values-night
│ │ │ │ │ │ └── styles.xml
│ │ │ │ ├── kotlin
│ │ │ │ │ └── com
│ │ │ │ │ │ └── grandduke1106
│ │ │ │ │ │ └── ncmdump_mobile
│ │ │ │ │ │ └── MainActivity.kt
│ │ │ │ └── AndroidManifest.xml
│ │ │ ├── debug
│ │ │ │ └── AndroidManifest.xml
│ │ │ └── profile
│ │ │ │ └── AndroidManifest.xml
│ │ └── build.gradle.kts
│ ├── gradle
│ │ └── wrapper
│ │ │ └── gradle-wrapper.properties
│ ├── .gitignore
│ ├── build.gradle.kts
│ └── settings.gradle.kts
├── .gitignore
├── test
│ └── widget_test.dart
├── analysis_options.yaml
├── .metadata
├── pubspec.yaml
├── lib
│ └── ncmdump_service.dart
└── pubspec.lock
├── ext
├── go.mod
├── mobile
│ └── bridge.go
├── desktop
│ └── export.go
└── go.sum
├── LICENSE
├── .gitignore
├── README.md
└── .github
└── workflows
└── release.yaml
/ncmdump_mobile/linux/.gitignore:
--------------------------------------------------------------------------------
1 | flutter/ephemeral
2 |
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Flutter/Flutter-Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "ephemeral/Flutter-Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Flutter/Flutter-Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "ephemeral/Flutter-Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ncmdump_mobile/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/web/favicon.png
--------------------------------------------------------------------------------
/ncmdump_mobile/assets/icon_opaque.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/assets/icon_opaque.png
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner/Configs/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Debug.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/ncmdump_mobile/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/ncmdump_mobile/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner/Configs/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Release.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/ncmdump_mobile/assets/icon_transparent.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/assets/icon_transparent.png
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/.gitignore:
--------------------------------------------------------------------------------
1 | # Flutter-related
2 | **/Flutter/ephemeral/
3 | **/Pods/
4 |
5 | # Xcode-related
6 | **/dgph
7 | **/xcuserdata/
8 |
--------------------------------------------------------------------------------
/ncmdump_mobile/web/icons/Icon-maskable-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/web/icons/Icon-maskable-192.png
--------------------------------------------------------------------------------
/ncmdump_mobile/web/icons/Icon-maskable-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/web/icons/Icon-maskable-512.png
--------------------------------------------------------------------------------
/ncmdump_mobile/windows/runner/resources/app_icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/windows/runner/resources/app_icon.ico
--------------------------------------------------------------------------------
/ncmdump_mobile/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
2 | android.useAndroidX=true
3 |
--------------------------------------------------------------------------------
/ncmdump_mobile/android/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFFFFF
4 |
--------------------------------------------------------------------------------
/ncmdump_mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ncmdump_mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ncmdump_mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ncmdump_mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ncmdump_mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
--------------------------------------------------------------------------------
/ncmdump_mobile/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/ncmdump_mobile/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/ncmdump_mobile/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/ncmdump_mobile/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
--------------------------------------------------------------------------------
/ncmdump_mobile/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/GrandDuke1106/ncmdump_mobile/HEAD/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ncmdump_mobile/linux/runner/main.cc:
--------------------------------------------------------------------------------
1 | #include "my_application.h"
2 |
3 | int main(int argc, char** argv) {
4 | g_autoptr(MyApplication) app = my_application_new();
5 | return g_application_run(G_APPLICATION(app), argc, argv);
6 | }
7 |
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ncmdump_mobile/linux/flutter/generated_plugin_registrant.cc:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // clang-format off
6 |
7 | #include "generated_plugin_registrant.h"
8 |
9 |
10 | void fl_register_plugins(FlPluginRegistry* registry) {
11 | }
12 |
--------------------------------------------------------------------------------
/ncmdump_mobile/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-all.zip
6 |
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner/Release.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ncmdump_mobile/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 | .cxx/
9 |
10 | # Remember to never publicly share your keystore.
11 | # See https://flutter.dev/to/reference-keystore
12 | key.properties
13 | **/*.keystore
14 | **/*.jks
15 |
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/RunnerTests/RunnerTests.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import UIKit
3 | import XCTest
4 |
5 | class RunnerTests: XCTestCase {
6 |
7 | func testExample() {
8 | // If you add code to the Runner application, consider adding tests here.
9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/RunnerTests/RunnerTests.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 | import XCTest
4 |
5 | class RunnerTests: XCTestCase {
6 |
7 | func testExample() {
8 | // If you add code to the Runner application, consider adding tests here.
9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ncmdump_mobile/windows/.gitignore:
--------------------------------------------------------------------------------
1 | flutter/ephemeral/
2 |
3 | # Visual Studio user-specific files.
4 | *.suo
5 | *.user
6 | *.userosscache
7 | *.sln.docstates
8 |
9 | # Visual Studio build-related files.
10 | x64/
11 | x86/
12 |
13 | # Visual Studio cache files
14 | # files ending in .cache can be ignored
15 | *.[Cc]ache
16 | # but keep track of directories ending in .cache
17 | !*.[Cc]ache/
18 |
--------------------------------------------------------------------------------
/ncmdump_mobile/linux/flutter/generated_plugin_registrant.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // clang-format off
6 |
7 | #ifndef GENERATED_PLUGIN_REGISTRANT_
8 | #define GENERATED_PLUGIN_REGISTRANT_
9 |
10 | #include
11 |
12 | // Registers Flutter plugins.
13 | void fl_register_plugins(FlPluginRegistry* registry);
14 |
15 | #endif // GENERATED_PLUGIN_REGISTRANT_
16 |
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | @main
5 | class AppDelegate: FlutterAppDelegate {
6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
7 | return true
8 | }
9 |
10 | override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
11 | return true
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ncmdump_mobile/windows/flutter/generated_plugin_registrant.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // clang-format off
6 |
7 | #ifndef GENERATED_PLUGIN_REGISTRANT_
8 | #define GENERATED_PLUGIN_REGISTRANT_
9 |
10 | #include
11 |
12 | // Registers Flutter plugins.
13 | void RegisterPlugins(flutter::PluginRegistry* registry);
14 |
15 | #endif // GENERATED_PLUGIN_REGISTRANT_
16 |
--------------------------------------------------------------------------------
/ncmdump_mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/ncmdump_mobile/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ncmdump_mobile/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner/DebugProfile.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 | com.apple.security.cs.allow-jit
8 |
9 | com.apple.security.network.server
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/ncmdump_mobile/windows/flutter/generated_plugin_registrant.cc:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // clang-format off
6 |
7 | #include "generated_plugin_registrant.h"
8 |
9 | #include
10 |
11 | void RegisterPlugins(flutter::PluginRegistry* registry) {
12 | PermissionHandlerWindowsPluginRegisterWithRegistrar(
13 | registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin"));
14 | }
15 |
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import UIKit
3 |
4 | @main
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner/MainFlutterWindow.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | class MainFlutterWindow: NSWindow {
5 | override func awakeFromNib() {
6 | let flutterViewController = FlutterViewController()
7 | let windowFrame = self.frame
8 | self.contentViewController = flutterViewController
9 | self.setFrame(windowFrame, display: true)
10 |
11 | RegisterGeneratedPlugins(registry: flutterViewController)
12 |
13 | super.awakeFromNib()
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/ncmdump_mobile/windows/runner/resource.h:
--------------------------------------------------------------------------------
1 | //{{NO_DEPENDENCIES}}
2 | // Microsoft Visual C++ generated include file.
3 | // Used by Runner.rc
4 | //
5 | #define IDI_APP_ICON 101
6 |
7 | // Next default values for new objects
8 | //
9 | #ifdef APSTUDIO_INVOKED
10 | #ifndef APSTUDIO_READONLY_SYMBOLS
11 | #define _APS_NEXT_RESOURCE_VALUE 102
12 | #define _APS_NEXT_COMMAND_VALUE 40001
13 | #define _APS_NEXT_CONTROL_VALUE 1001
14 | #define _APS_NEXT_SYMED_VALUE 101
15 | #endif
16 | #endif
17 |
--------------------------------------------------------------------------------
/ncmdump_mobile/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/ncmdump_mobile/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ncmdump_mobile/android/build.gradle.kts:
--------------------------------------------------------------------------------
1 |
2 |
3 | val newBuildDir: Directory =
4 | rootProject.layout.buildDirectory
5 | .dir("../../build")
6 | .get()
7 | rootProject.layout.buildDirectory.value(newBuildDir)
8 |
9 | subprojects {
10 | val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
11 | project.layout.buildDirectory.value(newSubprojectBuildDir)
12 | }
13 | subprojects {
14 | project.evaluationDependsOn(":app")
15 | }
16 |
17 | tasks.register("clean") {
18 | delete(rootProject.layout.buildDirectory)
19 | }
20 |
--------------------------------------------------------------------------------
/ncmdump_mobile/linux/runner/my_application.h:
--------------------------------------------------------------------------------
1 | #ifndef FLUTTER_MY_APPLICATION_H_
2 | #define FLUTTER_MY_APPLICATION_H_
3 |
4 | #include
5 |
6 | G_DECLARE_FINAL_TYPE(MyApplication,
7 | my_application,
8 | MY,
9 | APPLICATION,
10 | GtkApplication)
11 |
12 | /**
13 | * my_application_new:
14 | *
15 | * Creates a new Flutter-based application.
16 | *
17 | * Returns: a new #MyApplication.
18 | */
19 | MyApplication* my_application_new();
20 |
21 | #endif // FLUTTER_MY_APPLICATION_H_
22 |
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner/Configs/Warnings.xcconfig:
--------------------------------------------------------------------------------
1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings
2 | GCC_WARN_UNDECLARED_SELECTOR = YES
3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE
5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
6 | CLANG_WARN_PRAGMA_PACK = YES
7 | CLANG_WARN_STRICT_PROTOTYPES = YES
8 | CLANG_WARN_COMMA = YES
9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES
10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
12 | GCC_WARN_SHADOW = YES
13 | CLANG_WARN_UNREACHABLE_CODE = YES
14 |
--------------------------------------------------------------------------------
/ncmdump_mobile/windows/runner/runner.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PerMonitorV2
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner/Configs/AppInfo.xcconfig:
--------------------------------------------------------------------------------
1 | // Application-level settings for the Runner target.
2 | //
3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the
4 | // future. If not, the values below would default to using the project name when this becomes a
5 | // 'flutter create' template.
6 |
7 | // The application's name. By default this is also the title of the Flutter window.
8 | PRODUCT_NAME = ncmdump_mobile
9 |
10 | // The application's bundle identifier
11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.ncmdumpMobile
12 |
13 | // The copyright displayed in application information
14 | PRODUCT_COPYRIGHT = Copyright © 2025 com.example. All rights reserved.
15 |
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Flutter/GeneratedPluginRegistrant.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | import FlutterMacOS
6 | import Foundation
7 |
8 | import device_info_plus
9 | import file_picker
10 | import path_provider_foundation
11 | import shared_preferences_foundation
12 |
13 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
14 | DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))
15 | FilePickerPlugin.register(with: registry.registrar(forPlugin: "FilePickerPlugin"))
16 | PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
17 | SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
18 | }
19 |
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/ext/go.mod:
--------------------------------------------------------------------------------
1 | module ncmdump-mobile
2 |
3 | go 1.25.4
4 |
5 | require git.taurusxin.com/taurusxin/ncmdump-go v1.7.5
6 |
7 | require (
8 | github.com/TwiN/go-color v1.4.1 // indirect
9 | github.com/bogem/id3v2/v2 v2.1.4 // indirect
10 | github.com/go-flac/flacpicture v0.3.0 // indirect
11 | github.com/go-flac/flacvorbis v0.2.0 // indirect
12 | github.com/go-flac/go-flac v1.0.0 // indirect
13 | github.com/tidwall/gjson v1.17.3 // indirect
14 | github.com/tidwall/match v1.1.1 // indirect
15 | github.com/tidwall/pretty v1.2.1 // indirect
16 | golang.org/x/mobile v0.0.0-20251126181937-5c265dc024c4 // indirect
17 | golang.org/x/mod v0.30.0 // indirect
18 | golang.org/x/sync v0.18.0 // indirect
19 | golang.org/x/text v0.18.0 // indirect
20 | golang.org/x/tools v0.39.0 // indirect
21 | )
22 |
--------------------------------------------------------------------------------
/ncmdump_mobile/windows/runner/utils.h:
--------------------------------------------------------------------------------
1 | #ifndef RUNNER_UTILS_H_
2 | #define RUNNER_UTILS_H_
3 |
4 | #include
5 | #include
6 |
7 | // Creates a console for the process, and redirects stdout and stderr to
8 | // it for both the runner and the Flutter library.
9 | void CreateAndAttachConsole();
10 |
11 | // Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string
12 | // encoded in UTF-8. Returns an empty std::string on failure.
13 | std::string Utf8FromUtf16(const wchar_t* utf16_string);
14 |
15 | // Gets the command line arguments passed in as a std::vector,
16 | // encoded in UTF-8. Returns an empty std::vector on failure.
17 | std::vector GetCommandLineArguments();
18 |
19 | #endif // RUNNER_UTILS_H_
20 |
--------------------------------------------------------------------------------
/ncmdump_mobile/linux/flutter/generated_plugins.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Generated file, do not edit.
3 | #
4 |
5 | list(APPEND FLUTTER_PLUGIN_LIST
6 | )
7 |
8 | list(APPEND FLUTTER_FFI_PLUGIN_LIST
9 | )
10 |
11 | set(PLUGIN_BUNDLED_LIBRARIES)
12 |
13 | foreach(plugin ${FLUTTER_PLUGIN_LIST})
14 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin})
15 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
16 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $)
17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
18 | endforeach(plugin)
19 |
20 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
21 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})
22 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
23 | endforeach(ffi_plugin)
24 |
--------------------------------------------------------------------------------
/ncmdump_mobile/windows/flutter/generated_plugins.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Generated file, do not edit.
3 | #
4 |
5 | list(APPEND FLUTTER_PLUGIN_LIST
6 | permission_handler_windows
7 | )
8 |
9 | list(APPEND FLUTTER_FFI_PLUGIN_LIST
10 | )
11 |
12 | set(PLUGIN_BUNDLED_LIBRARIES)
13 |
14 | foreach(plugin ${FLUTTER_PLUGIN_LIST})
15 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin})
16 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $)
18 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
19 | endforeach(plugin)
20 |
21 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
22 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin})
23 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
24 | endforeach(ffi_plugin)
25 |
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 13.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ncmdump_mobile/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .build/
9 | .buildlog/
10 | .history
11 | .svn/
12 | .swiftpm/
13 | migrate_working_dir/
14 |
15 | # IntelliJ related
16 | *.iml
17 | *.ipr
18 | *.iws
19 | .idea/
20 |
21 | # The .vscode folder contains launch configuration and tasks you configure in
22 | # VS Code which you may wish to be included in version control, so this line
23 | # is commented out by default.
24 | #.vscode/
25 |
26 | # Flutter/Dart/Pub related
27 | **/doc/api/
28 | **/ios/Flutter/.last_build_id
29 | .dart_tool/
30 | .flutter-plugins-dependencies
31 | .pub-cache/
32 | .pub/
33 | /build/
34 | /coverage/
35 |
36 | # Symbolication related
37 | app.*.symbols
38 |
39 | # Obfuscation related
40 | app.*.map.json
41 |
42 | # Android Studio will place build artifacts here
43 | /android/app/debug
44 | /android/app/profile
45 | /android/app/release
46 |
--------------------------------------------------------------------------------
/ext/mobile/bridge.go:
--------------------------------------------------------------------------------
1 | package bridge
2 |
3 | import (
4 | "fmt"
5 | //"path/filepath"
6 | "git.taurusxin.com/taurusxin/ncmdump-go/ncmcrypt"
7 | )
8 |
9 | // ConvertFile 是我们要暴露给安卓的方法
10 | // 返回值:空字符串表示成功,非空字符串表示错误信息
11 | func ConvertFile(filePath string, outputDir string) string {
12 | // 1. 读取文件
13 | ncm, err := ncmcrypt.NewNeteaseCloudMusic(filePath)
14 | if err != nil {
15 | return fmt.Sprintf("读取失败: %s", err.Error())
16 | }
17 |
18 | // 2. 转换 (Dump)
19 | // 如果 outputDir 为空,ncmdump 逻辑默认是在原目录,但在安卓上可能需要显式指定
20 | dumpResult, err := ncm.Dump(outputDir)
21 | if err != nil {
22 | return fmt.Sprintf("转换失败: %s", err.Error())
23 | }
24 |
25 | // 3. 修复元数据 (FixMetadata)
26 | if dumpResult {
27 | // 这里设置为 true,允许联网下载封面
28 | success, err := ncm.FixMetadata(true)
29 | if !success || err != nil {
30 | // 注意:即使元数据修复失败,文件可能已经转换成功了,
31 | // 这里视情况决定是返回错误还是仅返回警告
32 | return fmt.Sprintf("转换成功但元数据修复失败: %s", err.Error())
33 | }
34 | }
35 |
36 | return "" // 成功
37 | }
--------------------------------------------------------------------------------
/ext/desktop/export.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "C"
5 | "git.taurusxin.com/taurusxin/ncmdump-go/ncmcrypt"
6 | //"unsafe"
7 | )
8 |
9 | // main 函数对于 buildmode=c-shared 是必须的,但不会被执行
10 | func main() {}
11 |
12 | //export ConvertFile
13 | // 这里的输入和输出必须使用 C 语言的类型 (*C.char)
14 | func ConvertFile(cFilePath *C.char, cOutputDir *C.char) *C.char {
15 | // 1. C String -> Go String
16 | filePath := C.GoString(cFilePath)
17 | outputDir := C.GoString(cOutputDir)
18 |
19 | // 2. 调用核心逻辑 (复用你之前的逻辑)
20 | ncm, err := ncmcrypt.NewNeteaseCloudMusic(filePath)
21 | if err != nil {
22 | return C.CString("读取失败: " + err.Error())
23 | }
24 |
25 | dumpResult, err := ncm.Dump(outputDir)
26 | if err != nil {
27 | return C.CString("转换失败: " + err.Error())
28 | }
29 |
30 | if dumpResult {
31 | success, err := ncm.FixMetadata(true)
32 | if !success || err != nil {
33 | return C.CString("转换成功但元数据修复失败: " + err.Error())
34 | }
35 | }
36 |
37 | // 返回 nil 代表成功,返回字符串代表错误信息
38 | return nil
39 | }
--------------------------------------------------------------------------------
/ncmdump_mobile/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ncmdump_mobile",
3 | "short_name": "ncmdump_mobile",
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 | }
--------------------------------------------------------------------------------
/ncmdump_mobile/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/ncmdump_mobile/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/ncmdump_mobile/windows/runner/flutter_window.h:
--------------------------------------------------------------------------------
1 | #ifndef RUNNER_FLUTTER_WINDOW_H_
2 | #define RUNNER_FLUTTER_WINDOW_H_
3 |
4 | #include
5 | #include
6 |
7 | #include
8 |
9 | #include "win32_window.h"
10 |
11 | // A window that does nothing but host a Flutter view.
12 | class FlutterWindow : public Win32Window {
13 | public:
14 | // Creates a new FlutterWindow hosting a Flutter view running |project|.
15 | explicit FlutterWindow(const flutter::DartProject& project);
16 | virtual ~FlutterWindow();
17 |
18 | protected:
19 | // Win32Window:
20 | bool OnCreate() override;
21 | void OnDestroy() override;
22 | LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam,
23 | LPARAM const lparam) noexcept override;
24 |
25 | private:
26 | // The project to run.
27 | flutter::DartProject project_;
28 |
29 | // The Flutter instance hosted by this window.
30 | std::unique_ptr flutter_controller_;
31 | };
32 |
33 | #endif // RUNNER_FLUTTER_WINDOW_H_
34 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2025 GrandDuke1106
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/ncmdump_mobile/test/widget_test.dart:
--------------------------------------------------------------------------------
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:ncmdump_mobile/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 | }
31 |
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIconFile
10 |
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSMinimumSystemVersion
24 | $(MACOSX_DEPLOYMENT_TARGET)
25 | NSHumanReadableCopyright
26 | $(PRODUCT_COPYRIGHT)
27 | NSMainNibFile
28 | MainMenu
29 | NSPrincipalClass
30 | NSApplication
31 |
32 |
33 |
--------------------------------------------------------------------------------
/ncmdump_mobile/linux/runner/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required(VERSION 3.13)
2 | project(runner LANGUAGES CXX)
3 |
4 | # Define the application target. To change its name, change BINARY_NAME in the
5 | # top-level CMakeLists.txt, not the value here, or `flutter run` will no longer
6 | # work.
7 | #
8 | # Any new source files that you add to the application should be added here.
9 | add_executable(${BINARY_NAME}
10 | "main.cc"
11 | "my_application.cc"
12 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
13 | )
14 |
15 | # Apply the standard set of build settings. This can be removed for applications
16 | # that need different build settings.
17 | apply_standard_settings(${BINARY_NAME})
18 |
19 | # Add preprocessor definitions for the application ID.
20 | add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}")
21 |
22 | # Add dependency libraries. Add any application-specific dependencies here.
23 | target_link_libraries(${BINARY_NAME} PRIVATE flutter)
24 | target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)
25 |
26 | target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}")
27 |
28 | install(FILES "${CMAKE_SOURCE_DIR}/libncmdump.so"
29 | DESTINATION "${CMAKE_INSTALL_PREFIX}/lib"
30 | COMPONENT Runtime)
31 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Go编译生成的二进制文件
2 | *.exe
3 | *.dll
4 | *.so
5 | *.dylib
6 | *.aar
7 | *.jar
8 | # Go测试生成的文件
9 | *.test
10 | *.out
11 | *.prof
12 | # 临时文件和目录
13 | tmp/
14 | *.log
15 | # 系统生成的文件
16 | DS_Store
17 | Thumbs.db
18 | # IDE和编辑器配置文件
19 | idea/
20 | vscode/
21 | *.sublime*
22 | # Node.js相关(如果涉及前端开发)
23 | node_modules/
24 |
25 |
26 |
27 | # Miscellaneous
28 | *.class
29 | *.log
30 | *.pyc
31 | *.swp
32 | .DS_Store
33 | .atom/
34 | .build/
35 | .buildlog/
36 | .history
37 | .svn/
38 | .swiftpm/
39 | migrate_working_dir/
40 |
41 | # IntelliJ related
42 | *.iml
43 | *.ipr
44 | *.iws
45 | .idea/
46 |
47 | # The .vscode folder contains launch configuration and tasks you configure in
48 | # VS Code which you may wish to be included in version control, so this line
49 | # is commented out by default.
50 | #.vscode/
51 |
52 | # Flutter/Dart/Pub related
53 | **/doc/api/
54 | **/ios/Flutter/.last_build_id
55 | .dart_tool/
56 | .flutter-plugins-dependencies
57 | .pub-cache/
58 | .pub/
59 | /build/
60 | /coverage/
61 |
62 | # Symbolication related
63 | app.*.symbols
64 |
65 | # Obfuscation related
66 | app.*.map.json
67 |
68 | # Android Studio will place build artifacts here
69 | /android/app/debug
70 | /android/app/profile
71 | /android/app/release
72 |
--------------------------------------------------------------------------------
/ncmdump_mobile/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | ncmdump_mobile
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/ncmdump_mobile/windows/runner/main.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 |
5 | #include "flutter_window.h"
6 | #include "utils.h"
7 |
8 | int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
9 | _In_ wchar_t *command_line, _In_ int show_command) {
10 | // Attach to console when present (e.g., 'flutter run') or create a
11 | // new console when running with a debugger.
12 | if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) {
13 | CreateAndAttachConsole();
14 | }
15 |
16 | // Initialize COM, so that it is available for use in the library and/or
17 | // plugins.
18 | ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
19 |
20 | flutter::DartProject project(L"data");
21 |
22 | std::vector command_line_arguments =
23 | GetCommandLineArguments();
24 |
25 | project.set_dart_entrypoint_arguments(std::move(command_line_arguments));
26 |
27 | FlutterWindow window(project);
28 | Win32Window::Point origin(10, 10);
29 | Win32Window::Size size(1280, 720);
30 | if (!window.Create(L"NCM Dump", origin, size)) {
31 | return EXIT_FAILURE;
32 | }
33 | window.SetQuitOnClose(true);
34 |
35 | ::MSG msg;
36 | while (::GetMessage(&msg, nullptr, 0, 0)) {
37 | ::TranslateMessage(&msg);
38 | ::DispatchMessage(&msg);
39 | }
40 |
41 | ::CoUninitialize();
42 | return EXIT_SUCCESS;
43 | }
44 |
--------------------------------------------------------------------------------
/ncmdump_mobile/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at https://dart.dev/lints.
17 | #
18 | # Instead of disabling a lint rule for the entire project in the
19 | # section below, it can also be suppressed for a single line of code
20 | # or a specific dart file by using the `// ignore: name_of_lint` and
21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
22 | # producing the lint.
23 | rules:
24 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
25 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
26 |
27 | # Additional information about this file can be found at
28 | # https://dart.dev/guides/language/analysis-options
29 |
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ncmdump_mobile/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: "19074d12f7eaf6a8180cd4036a430c1d76de904e"
8 | channel: "stable"
9 |
10 | project_type: app
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
17 | base_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
18 | - platform: android
19 | create_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
20 | base_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
21 | - platform: ios
22 | create_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
23 | base_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
24 | - platform: linux
25 | create_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
26 | base_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
27 | - platform: macos
28 | create_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
29 | base_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
30 | - platform: web
31 | create_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
32 | base_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
33 | - platform: windows
34 | create_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
35 | base_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
36 |
37 | # User provided section
38 |
39 | # List of Local paths (relative to this file) that should be
40 | # ignored by the migrate tool.
41 | #
42 | # Files that are not part of the templates will be ignored by default.
43 | unmanaged_files:
44 | - 'lib/main.dart'
45 | - 'ios/Runner.xcodeproj/project.pbxproj'
46 |
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | Ncmdump Mobile
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | ncmdump_mobile
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | $(FLUTTER_BUILD_NUMBER)
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 | CADisableMinimumFrameDurationOnPhone
45 |
46 | UIApplicationSupportsIndirectInputEvents
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info": {
3 | "version": 1,
4 | "author": "xcode"
5 | },
6 | "images": [
7 | {
8 | "size": "16x16",
9 | "idiom": "mac",
10 | "filename": "app_icon_16.png",
11 | "scale": "1x"
12 | },
13 | {
14 | "size": "16x16",
15 | "idiom": "mac",
16 | "filename": "app_icon_32.png",
17 | "scale": "2x"
18 | },
19 | {
20 | "size": "32x32",
21 | "idiom": "mac",
22 | "filename": "app_icon_32.png",
23 | "scale": "1x"
24 | },
25 | {
26 | "size": "32x32",
27 | "idiom": "mac",
28 | "filename": "app_icon_64.png",
29 | "scale": "2x"
30 | },
31 | {
32 | "size": "128x128",
33 | "idiom": "mac",
34 | "filename": "app_icon_128.png",
35 | "scale": "1x"
36 | },
37 | {
38 | "size": "128x128",
39 | "idiom": "mac",
40 | "filename": "app_icon_256.png",
41 | "scale": "2x"
42 | },
43 | {
44 | "size": "256x256",
45 | "idiom": "mac",
46 | "filename": "app_icon_256.png",
47 | "scale": "1x"
48 | },
49 | {
50 | "size": "256x256",
51 | "idiom": "mac",
52 | "filename": "app_icon_512.png",
53 | "scale": "2x"
54 | },
55 | {
56 | "size": "512x512",
57 | "idiom": "mac",
58 | "filename": "app_icon_512.png",
59 | "scale": "1x"
60 | },
61 | {
62 | "size": "512x512",
63 | "idiom": "mac",
64 | "filename": "app_icon_1024.png",
65 | "scale": "2x"
66 | }
67 | ]
68 | }
--------------------------------------------------------------------------------
/ncmdump_mobile/android/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | val flutterSdkPath =
3 | run {
4 | val properties = java.util.Properties()
5 | file("local.properties").inputStream().use { properties.load(it) }
6 | val flutterSdkPath = properties.getProperty("flutter.sdk")
7 | require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
8 | flutterSdkPath
9 | }
10 |
11 | includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
12 |
13 | repositories {
14 | //maven { url = java.net.URI("https://storage.flutter-io.cn/download.flutter.io") }
15 |
16 | //maven { url = java.net.URI("https://maven.aliyun.com/repository/google") }
17 | //maven { url = java.net.URI("https://maven.aliyun.com/repository/public") }
18 | //maven { url = java.net.URI("https://maven.aliyun.com/repository/gradle-plugin") }
19 |
20 | google()
21 | mavenCentral()
22 | gradlePluginPortal()
23 | }
24 | }
25 |
26 | plugins {
27 | id("dev.flutter.flutter-plugin-loader") version "1.0.0"
28 | id("com.android.application") version "8.11.1" apply false
29 | id("org.jetbrains.kotlin.android") version "2.2.20" apply false
30 | }
31 |
32 | include(":app")
33 |
34 | dependencyResolutionManagement {
35 | repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
36 | repositories {
37 | //maven { url = java.net.URI("https://storage.flutter-io.cn/download.flutter.io") }
38 |
39 | //maven { url = java.net.URI("https://maven.aliyun.com/repository/google") }
40 | //maven { url = java.net.URI("https://maven.aliyun.com/repository/public") }
41 |
42 | google()
43 | mavenCentral()
44 | maven {
45 | url = uri("https://storage.googleapis.com/download.flutter.io")
46 | }
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/ncmdump_mobile/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: ncmdump_mobile
2 | description: A mobile GUI for ncmdump-go, providing a modern graphical interface for ncmdump-go.
3 | publish_to: 'none'
4 | version: 1.2.0+3
5 |
6 | environment:
7 | sdk: '>=3.0.0 <4.0.0'
8 |
9 | dependencies:
10 | flutter:
11 | sdk: flutter
12 | flutter_localizations:
13 | sdk: flutter
14 | file_picker: ^10.3.7
15 | permission_handler: ^12.0.1
16 | path_provider: ^2.1.1
17 | provider: ^6.0.0
18 | device_info_plus: ^12.0.0
19 | shared_preferences: ^2.0.0
20 | ffi: ^2.1.0
21 |
22 | dev_dependencies:
23 | flutter_test:
24 | sdk: flutter
25 | flutter_lints: ^6.0.0
26 | flutter_launcher_icons: ^0.14.0
27 |
28 | flutter_launcher_icons:
29 | # === Android 配置 (混合模式: 8.0+用透明, 旧版用不透明) ===
30 | android: "ic_launcher"
31 | min_sdk_android: 21
32 | adaptive_icon_background: "#FFFFFF"
33 | adaptive_icon_foreground: "assets/icon_transparent.png" # 前景:透明底
34 | image_path_android: "assets/icon_opaque.png" # 旧版安卓:不透明底
35 |
36 | # === iOS 配置 (必须不透明) ===
37 | ios: true
38 | image_path_ios: "assets/icon_opaque.png"
39 |
40 | # === macOS 配置 (桌面端图标) ===
41 | macos:
42 | generate: true
43 | image_path: "assets/icon_opaque.png" # macOS 图标通常也不带透明边距,或者可以用 icon_transparent.png 视设计风格而定
44 |
45 | # === Windows 配置 (推荐透明) ===
46 | windows:
47 | generate: true
48 | image_path: "assets/icon_transparent.png"
49 | icon_size: 48
50 |
51 | # === Linux 配置 (推荐透明) ===
52 | linux:
53 | generate: true
54 | image_path: "assets/icon_transparent.png"
55 |
56 | # === Web 配置 (推荐透明) ===
57 | web:
58 | generate: true
59 | image_path: "assets/icon_transparent.png"
60 | background_color: "#0175C2" # 网页应用背景色
61 | theme_color: "#0175C2" # 浏览器地址栏颜色
62 |
63 | # === 默认回退 (必须项) ===
64 | image_path: "assets/icon_opaque.png"
65 |
66 | flutter:
67 | uses-material-design: true
68 |
--------------------------------------------------------------------------------
/ncmdump_mobile/windows/runner/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required(VERSION 3.14)
2 | project(runner LANGUAGES CXX)
3 |
4 | # Define the application target. To change its name, change BINARY_NAME in the
5 | # top-level CMakeLists.txt, not the value here, or `flutter run` will no longer
6 | # work.
7 | #
8 | # Any new source files that you add to the application should be added here.
9 | add_executable(${BINARY_NAME} WIN32
10 | "flutter_window.cpp"
11 | "main.cpp"
12 | "utils.cpp"
13 | "win32_window.cpp"
14 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
15 | "Runner.rc"
16 | "runner.exe.manifest"
17 | )
18 |
19 | # Apply the standard set of build settings. This can be removed for applications
20 | # that need different build settings.
21 | apply_standard_settings(${BINARY_NAME})
22 |
23 | # Add preprocessor definitions for the build version.
24 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"")
25 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}")
26 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}")
27 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}")
28 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}")
29 |
30 | # Disable Windows macros that collide with C++ standard library functions.
31 | target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX")
32 |
33 | # Add dependency libraries and include directories. Add any application-specific
34 | # dependencies here.
35 | target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app)
36 | target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib")
37 | target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}")
38 |
39 | # Run the Flutter tool portions of the build. This must not be removed.
40 | add_dependencies(${BINARY_NAME} flutter_assemble)
41 |
42 |
43 |
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {"images":[{"size":"20x20","idiom":"iphone","filename":"Icon-App-20x20@2x.png","scale":"2x"},{"size":"20x20","idiom":"iphone","filename":"Icon-App-20x20@3x.png","scale":"3x"},{"size":"29x29","idiom":"iphone","filename":"Icon-App-29x29@1x.png","scale":"1x"},{"size":"29x29","idiom":"iphone","filename":"Icon-App-29x29@2x.png","scale":"2x"},{"size":"29x29","idiom":"iphone","filename":"Icon-App-29x29@3x.png","scale":"3x"},{"size":"40x40","idiom":"iphone","filename":"Icon-App-40x40@2x.png","scale":"2x"},{"size":"40x40","idiom":"iphone","filename":"Icon-App-40x40@3x.png","scale":"3x"},{"size":"57x57","idiom":"iphone","filename":"Icon-App-57x57@1x.png","scale":"1x"},{"size":"57x57","idiom":"iphone","filename":"Icon-App-57x57@2x.png","scale":"2x"},{"size":"60x60","idiom":"iphone","filename":"Icon-App-60x60@2x.png","scale":"2x"},{"size":"60x60","idiom":"iphone","filename":"Icon-App-60x60@3x.png","scale":"3x"},{"size":"20x20","idiom":"ipad","filename":"Icon-App-20x20@1x.png","scale":"1x"},{"size":"20x20","idiom":"ipad","filename":"Icon-App-20x20@2x.png","scale":"2x"},{"size":"29x29","idiom":"ipad","filename":"Icon-App-29x29@1x.png","scale":"1x"},{"size":"29x29","idiom":"ipad","filename":"Icon-App-29x29@2x.png","scale":"2x"},{"size":"40x40","idiom":"ipad","filename":"Icon-App-40x40@1x.png","scale":"1x"},{"size":"40x40","idiom":"ipad","filename":"Icon-App-40x40@2x.png","scale":"2x"},{"size":"50x50","idiom":"ipad","filename":"Icon-App-50x50@1x.png","scale":"1x"},{"size":"50x50","idiom":"ipad","filename":"Icon-App-50x50@2x.png","scale":"2x"},{"size":"72x72","idiom":"ipad","filename":"Icon-App-72x72@1x.png","scale":"1x"},{"size":"72x72","idiom":"ipad","filename":"Icon-App-72x72@2x.png","scale":"2x"},{"size":"76x76","idiom":"ipad","filename":"Icon-App-76x76@1x.png","scale":"1x"},{"size":"76x76","idiom":"ipad","filename":"Icon-App-76x76@2x.png","scale":"2x"},{"size":"83.5x83.5","idiom":"ipad","filename":"Icon-App-83.5x83.5@2x.png","scale":"2x"},{"size":"1024x1024","idiom":"ios-marketing","filename":"Icon-App-1024x1024@1x.png","scale":"1x"}],"info":{"version":1,"author":"xcode"}}
--------------------------------------------------------------------------------
/ncmdump_mobile/windows/runner/utils.cpp:
--------------------------------------------------------------------------------
1 | #include "utils.h"
2 |
3 | #include
4 | #include
5 | #include
6 | #include
7 |
8 | #include
9 |
10 | void CreateAndAttachConsole() {
11 | if (::AllocConsole()) {
12 | FILE *unused;
13 | if (freopen_s(&unused, "CONOUT$", "w", stdout)) {
14 | _dup2(_fileno(stdout), 1);
15 | }
16 | if (freopen_s(&unused, "CONOUT$", "w", stderr)) {
17 | _dup2(_fileno(stdout), 2);
18 | }
19 | std::ios::sync_with_stdio();
20 | FlutterDesktopResyncOutputStreams();
21 | }
22 | }
23 |
24 | std::vector GetCommandLineArguments() {
25 | // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use.
26 | int argc;
27 | wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc);
28 | if (argv == nullptr) {
29 | return std::vector();
30 | }
31 |
32 | std::vector command_line_arguments;
33 |
34 | // Skip the first argument as it's the binary name.
35 | for (int i = 1; i < argc; i++) {
36 | command_line_arguments.push_back(Utf8FromUtf16(argv[i]));
37 | }
38 |
39 | ::LocalFree(argv);
40 |
41 | return command_line_arguments;
42 | }
43 |
44 | std::string Utf8FromUtf16(const wchar_t* utf16_string) {
45 | if (utf16_string == nullptr) {
46 | return std::string();
47 | }
48 | unsigned int target_length = ::WideCharToMultiByte(
49 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string,
50 | -1, nullptr, 0, nullptr, nullptr)
51 | -1; // remove the trailing null character
52 | int input_length = (int)wcslen(utf16_string);
53 | std::string utf8_string;
54 | if (target_length == 0 || target_length > utf8_string.max_size()) {
55 | return utf8_string;
56 | }
57 | utf8_string.resize(target_length);
58 | int converted_length = ::WideCharToMultiByte(
59 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string,
60 | input_length, utf8_string.data(), target_length, nullptr, nullptr);
61 | if (converted_length == 0) {
62 | return std::string();
63 | }
64 | return utf8_string;
65 | }
66 |
--------------------------------------------------------------------------------
/ncmdump_mobile/android/app/src/main/kotlin/com/grandduke1106/ncmdump_mobile/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.grandduke1106.ncmdump_mobile
2 |
3 | import androidx.annotation.NonNull
4 | import io.flutter.embedding.android.FlutterActivity
5 | import io.flutter.embedding.engine.FlutterEngine
6 | import io.flutter.plugin.common.MethodChannel
7 | import bridge.Bridge
8 | import kotlinx.coroutines.*
9 |
10 | class MainActivity: FlutterActivity() {
11 | private val CHANNEL = "com.taurusxin.ncmdump/converter"
12 |
13 | override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
14 | super.configureFlutterEngine(flutterEngine)
15 | MethodChannel(flutterEngine.dartExecutor.binaryMessenger, CHANNEL).setMethodCallHandler { call, result ->
16 | if (call.method == "convertFile") {
17 | val inputPath = call.argument("inputPath")
18 | val outputDir = call.argument("outputDir")
19 |
20 | if (inputPath != null) {
21 | // 使用协程在后台线程运行,避免阻塞 UI
22 | CoroutineScope(Dispatchers.IO).launch {
23 | try {
24 | // 调用 Go 的函数
25 | val errorMsg = Bridge.convertFile(inputPath, outputDir ?: "")
26 | withContext(Dispatchers.Main) {
27 | if (errorMsg.isEmpty()) {
28 | result.success("Success")
29 | } else {
30 | result.error("CONVERT_ERR", errorMsg, null)
31 | }
32 | }
33 | } catch (e: Exception) {
34 | withContext(Dispatchers.Main) {
35 | result.error("NATIVE_ERR", e.message, null)
36 | }
37 | }
38 | }
39 | } else {
40 | result.error("INVALID_ARGS", "Input path is null", null)
41 | }
42 | } else {
43 | result.notImplemented()
44 | }
45 | }
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/ncmdump_mobile/windows/runner/ncmdump.h:
--------------------------------------------------------------------------------
1 | /* Code generated by cmd/cgo; DO NOT EDIT. */
2 |
3 | /* package command-line-arguments */
4 |
5 |
6 | #line 1 "cgo-builtin-export-prolog"
7 |
8 | #include
9 |
10 | #ifndef GO_CGO_EXPORT_PROLOGUE_H
11 | #define GO_CGO_EXPORT_PROLOGUE_H
12 |
13 | #ifndef GO_CGO_GOSTRING_TYPEDEF
14 | typedef struct { const char *p; ptrdiff_t n; } _GoString_;
15 | extern size_t _GoStringLen(_GoString_ s);
16 | extern const char *_GoStringPtr(_GoString_ s);
17 | #endif
18 |
19 | #endif
20 |
21 | /* Start of preamble from import "C" comments. */
22 |
23 |
24 |
25 |
26 | /* End of preamble from import "C" comments. */
27 |
28 |
29 | /* Start of boilerplate cgo prologue. */
30 | #line 1 "cgo-gcc-export-header-prolog"
31 |
32 | #ifndef GO_CGO_PROLOGUE_H
33 | #define GO_CGO_PROLOGUE_H
34 |
35 | typedef signed char GoInt8;
36 | typedef unsigned char GoUint8;
37 | typedef short GoInt16;
38 | typedef unsigned short GoUint16;
39 | typedef int GoInt32;
40 | typedef unsigned int GoUint32;
41 | typedef long long GoInt64;
42 | typedef unsigned long long GoUint64;
43 | typedef GoInt64 GoInt;
44 | typedef GoUint64 GoUint;
45 | typedef size_t GoUintptr;
46 | typedef float GoFloat32;
47 | typedef double GoFloat64;
48 | #ifdef _MSC_VER
49 | #if !defined(__cplusplus) || _MSVC_LANG <= 201402L
50 | #include
51 | typedef _Fcomplex GoComplex64;
52 | typedef _Dcomplex GoComplex128;
53 | #else
54 | #include
55 | typedef std::complex GoComplex64;
56 | typedef std::complex GoComplex128;
57 | #endif
58 | #else
59 | typedef float _Complex GoComplex64;
60 | typedef double _Complex GoComplex128;
61 | #endif
62 |
63 | /*
64 | static assertion to make sure the file is being used on architecture
65 | at least with matching size of GoInt.
66 | */
67 | typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
68 |
69 | #ifndef GO_CGO_GOSTRING_TYPEDEF
70 | typedef _GoString_ GoString;
71 | #endif
72 | typedef void *GoMap;
73 | typedef void *GoChan;
74 | typedef struct { void *t; void *v; } GoInterface;
75 | typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
76 |
77 | #endif
78 |
79 | /* End of boilerplate cgo prologue. */
80 |
81 | #ifdef __cplusplus
82 | extern "C" {
83 | #endif
84 |
85 |
86 | // 这里的输入和输出必须使用 C 语言的类型 (*C.char)
87 | extern __declspec(dllexport) char* ConvertFile(char* cFilePath, char* cOutputDir);
88 |
89 | #ifdef __cplusplus
90 | }
91 | #endif
92 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ncmdump-mobile
2 |
3 | 这是一个基于 Flutter 开发的小玩具,为 [ncmdump-go](https://git.taurusxin.com/taurusxin/ncmdump-go) 提供了现代化的移动端图形界面。
4 |
5 | Windows 端也可以使用[ncmdump-gui](https://git.taurusxin.com/taurusxin/ncmdump-gui)。本程序的 ui 完全为手机设计,桌面端(Windows, Linux)可能用得不顺手,不过相同的后端功能都一样。
6 |
7 | 它可以帮助你在各种设备上直接将网易云音乐的 `.ncm` 文件转换为普通的 `.mp3` 或 `.flac` 格式,并自动补全专辑封面等元数据。
8 |
9 | ## ✨ 功能特性
10 |
11 | * **批量转换**:支持添加单个文件或扫描整个目录下的 `.ncm` 文件。
12 | * **元数据修复**:转换同时自动下载并修复歌曲的专辑封面、歌手、专辑名等信息。
13 | * **智能分组**:自动按目录分组显示文件,清晰直观。
14 | * **目录历史**:记住你添加过的目录,支持下拉刷新,一键重新扫描所有历史目录。
15 |
16 | ## 🚀 编译指南
17 |
18 | 如果你想自己编译这个项目,请按照以下步骤操作。
19 |
20 | ### 1. 环境准备
21 |
22 | 确保你已经安装了以下环境:
23 | * Flutter SDK
24 | * Go 1.24+
25 | * Android Studio & Android SDK
26 | * `gomobile` 工具:
27 | ```bash
28 | cd exc
29 | go install golang.org/x/mobile/cmd/gomobile@latest
30 | gomobile init
31 | ```
32 |
33 | ### 2. 编译 Go 核心库
34 |
35 | 本项目依赖 `ncmdump-go` 的核心逻辑。你需要先将 Go 代码编译为 Android, Windows 或者 Linux 的 `.aar`, `dll` 或者 `so` 库。
36 |
37 | 在项目根目录执行:
38 |
39 | ```bash
40 | # 如果遇到 javac 报错,请检查 JAVA_HOME 环境变量
41 | cd exc
42 | gomobile bind -target=android -androidapi 21 -o ../ncmdump_mobile/android/app/libs/ncmdump.aar ./mobile
43 | go build -buildmode=c-shared -o ../ncmdump_mobile/windows/runner/ncmdump.dll export.go ./desktop
44 | go build -buildmode=c-shared -o ../ncmdump_mobile/linux/libncmdump.so export.go ./desktop
45 | ````
46 |
47 | ### 3. 安装 Flutter 依赖
48 |
49 | ```bash
50 | cd ncmdump_mobile
51 | flutter pub get
52 | ```
53 |
54 | ### 4. 运行或打包
55 |
56 | 连接你的需要调试的设备:
57 |
58 | ```bash
59 | # 调试运行
60 | flutter run
61 |
62 | # 打包各个平台的软件
63 | flutter build apk --release --split-per-abi
64 | flutter build windows --release
65 | flutter build linux --release
66 | ```
67 |
68 | ## 📦 主要依赖库
69 |
70 | * **`ffi`**: 外部函数接口,用于调用 Go 编写的 `ncmdump` 核心动态库。
71 | * **`file_picker`**: 跨平台的文件与目录选择器。
72 | * **`permission_handler`**: 处理 Android 和 iOS 的运行时权限请求。
73 | * **`provider`**: 简单高效的应用状态管理。
74 | * **`shared_preferences`**: 本地持久化存储,用于保存目录扫描历史。
75 | * **`device_info_plus`**: 获取设备信息,用于适配不同 Android 版本的权限策略。
76 | * **`path_provider`**: 获取各平台的常用文件路径(如文档目录、临时目录)。
77 | * **`flutter_launcher_icons`** (Dev): 自动化生成和配置所有平台的应用启动图标。
78 |
79 | ## ⚖️ 免责声明
80 |
81 | 本项目基于[MIT](LICENSE)开源,不提供担保。
82 |
83 | 本项目仅供学习和技术研究使用。请勿将本软件用于任何商业用途或侵犯第三方版权的行为。使用本软件产生的任何法律后果由使用者自行承担。
84 |
85 | ## 🙏 致谢
86 |
87 | 后端来自于:[ncmdump-go](https://git.taurusxin.com/taurusxin/ncmdump-go)
88 |
89 |
--------------------------------------------------------------------------------
/ncmdump_mobile/windows/runner/flutter_window.cpp:
--------------------------------------------------------------------------------
1 | #include "flutter_window.h"
2 |
3 | #include
4 |
5 | #include "flutter/generated_plugin_registrant.h"
6 |
7 | FlutterWindow::FlutterWindow(const flutter::DartProject& project)
8 | : project_(project) {}
9 |
10 | FlutterWindow::~FlutterWindow() {}
11 |
12 | bool FlutterWindow::OnCreate() {
13 | if (!Win32Window::OnCreate()) {
14 | return false;
15 | }
16 |
17 | RECT frame = GetClientArea();
18 |
19 | // The size here must match the window dimensions to avoid unnecessary surface
20 | // creation / destruction in the startup path.
21 | flutter_controller_ = std::make_unique(
22 | frame.right - frame.left, frame.bottom - frame.top, project_);
23 | // Ensure that basic setup of the controller was successful.
24 | if (!flutter_controller_->engine() || !flutter_controller_->view()) {
25 | return false;
26 | }
27 | RegisterPlugins(flutter_controller_->engine());
28 | SetChildContent(flutter_controller_->view()->GetNativeWindow());
29 |
30 | flutter_controller_->engine()->SetNextFrameCallback([&]() {
31 | this->Show();
32 | });
33 |
34 | // Flutter can complete the first frame before the "show window" callback is
35 | // registered. The following call ensures a frame is pending to ensure the
36 | // window is shown. It is a no-op if the first frame hasn't completed yet.
37 | flutter_controller_->ForceRedraw();
38 |
39 | return true;
40 | }
41 |
42 | void FlutterWindow::OnDestroy() {
43 | if (flutter_controller_) {
44 | flutter_controller_ = nullptr;
45 | }
46 |
47 | Win32Window::OnDestroy();
48 | }
49 |
50 | LRESULT
51 | FlutterWindow::MessageHandler(HWND hwnd, UINT const message,
52 | WPARAM const wparam,
53 | LPARAM const lparam) noexcept {
54 | // Give Flutter, including plugins, an opportunity to handle window messages.
55 | if (flutter_controller_) {
56 | std::optional result =
57 | flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam,
58 | lparam);
59 | if (result) {
60 | return *result;
61 | }
62 | }
63 |
64 | switch (message) {
65 | case WM_FONTCHANGE:
66 | flutter_controller_->engine()->ReloadSystemFonts();
67 | break;
68 | }
69 |
70 | return Win32Window::MessageHandler(hwnd, message, wparam, lparam);
71 | }
72 |
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ncmdump_mobile/android/app/build.gradle.kts:
--------------------------------------------------------------------------------
1 | import java.util.Properties
2 | import java.io.FileInputStream
3 |
4 | plugins {
5 | id("com.android.application")
6 | id("kotlin-android")
7 | // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
8 | id("dev.flutter.flutter-gradle-plugin")
9 | }
10 |
11 | android {
12 | namespace = "com.grandduke1106.ncmdump_mobile"
13 | compileSdk = flutter.compileSdkVersion
14 | ndkVersion = flutter.ndkVersion
15 |
16 | val keystoreProperties = Properties()
17 | val keystorePropertiesFile = rootProject.file("key.properties")
18 | if (keystorePropertiesFile.exists()) {
19 | keystoreProperties.load(FileInputStream(keystorePropertiesFile))
20 | }
21 |
22 | compileOptions {
23 | sourceCompatibility = JavaVersion.VERSION_17
24 | targetCompatibility = JavaVersion.VERSION_17
25 | }
26 |
27 | kotlinOptions {
28 | jvmTarget = JavaVersion.VERSION_17.toString()
29 | }
30 |
31 | defaultConfig {
32 | applicationId = "com.grandduke1106.ncmdump_mobile"
33 | // You can update the following values to match your application needs.
34 | // For more information, see: https://flutter.dev/to/review-gradle-config.
35 | minSdk = flutter.minSdkVersion
36 | targetSdk = flutter.targetSdkVersion
37 | versionCode = flutter.versionCode
38 | versionName = flutter.versionName
39 | }
40 |
41 | signingConfigs {
42 | create("release") {
43 | keyAlias = keystoreProperties["keyAlias"] as String?
44 | keyPassword = keystoreProperties["keyPassword"] as String?
45 | storeFile = keystoreProperties["storeFile"]?.let { file(it) }
46 | storePassword = keystoreProperties["storePassword"] as String?
47 | }
48 | }
49 |
50 | buildTypes {
51 | release {
52 | if (keystorePropertiesFile.exists()) {
53 | signingConfig = signingConfigs.getByName("release")
54 | } else {
55 | signingConfig = signingConfigs.getByName("debug")
56 | }
57 |
58 | isMinifyEnabled = true
59 | isShrinkResources = true
60 | proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
61 | }
62 | }
63 |
64 | dependencies {
65 | implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar", "*.aar"))))
66 | }
67 | }
68 |
69 | flutter {
70 | source = "../.."
71 | }
72 |
--------------------------------------------------------------------------------
/ncmdump_mobile/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
10 |
19 |
23 |
27 |
28 |
29 |
30 |
31 |
32 |
34 |
37 |
38 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/ncmdump_mobile/lib/ncmdump_service.dart:
--------------------------------------------------------------------------------
1 | import 'dart:ffi' as ffi;
2 | import 'dart:io';
3 | import 'package:ffi/ffi.dart';
4 | import 'package:flutter/services.dart';
5 |
6 | // 定义 C 函数签名
7 | typedef ConvertFileC = ffi.Pointer Function(ffi.Pointer src, ffi.Pointer dst);
8 | // 定义 Dart 函数签名
9 | typedef ConvertFileDart = ffi.Pointer Function(ffi.Pointer src, ffi.Pointer dst);
10 |
11 | class NcmDumpService {
12 | static const _channel = MethodChannel('com.taurusxin.ncmdump/converter');
13 |
14 | static ConvertFileDart? _nativeConvertFunc;
15 |
16 | /// 核心转换方法
17 | static Future convertFile(String inputPath, String outputDir) async {
18 | // === 移动端逻辑 (Android/iOS) ===
19 | if (Platform.isAndroid || Platform.isIOS) {
20 | try {
21 | final String? result = await _channel.invokeMethod('convertFile', {
22 | "inputPath": inputPath,
23 | "outputDir": outputDir,
24 | });
25 |
26 | if (result == "Success") return null;
27 |
28 | return (result != null && result.isNotEmpty) ? result : null;
29 | } on PlatformException catch (e) {
30 | return e.message ?? "未知错误";
31 | }
32 | }
33 |
34 | // === 桌面端逻辑 (Windows/Linux) ===
35 | else if (Platform.isWindows || Platform.isLinux) {
36 | try {
37 | _nativeConvertFunc ??= _loadLibrary();
38 |
39 | final inputPtr = inputPath.toNativeUtf8();
40 | final outputPtr = outputDir.toNativeUtf8();
41 |
42 | final resultPtr = _nativeConvertFunc!(inputPtr, outputPtr);
43 |
44 | calloc.free(inputPtr);
45 | calloc.free(outputPtr);
46 |
47 | if (resultPtr == ffi.nullptr) {
48 | return null; // 成功
49 | } else {
50 | return resultPtr.toDartString();
51 | }
52 | } catch (e) {
53 | return "${Platform.operatingSystem}调用失败: $e";
54 | }
55 | }
56 |
57 | return "不支持的平台";
58 | }
59 |
60 | static ConvertFileDart _loadLibrary() {
61 | if (Platform.isWindows) {
62 | return ffi.DynamicLibrary.open('ncmdump.dll')
63 | .lookup>('ConvertFile')
64 | .asFunction();
65 | } else if (Platform.isLinux) {
66 | try {
67 | // [修改点]:这里原来是用 + 号拼接,现在改为插值字符串 '$.../...'
68 | final libPath = '${File(Platform.resolvedExecutable).parent.path}/lib/libncmdump.so';
69 |
70 | return ffi.DynamicLibrary.open(libPath)
71 | .lookup>('ConvertFile')
72 | .asFunction();
73 | } catch (_) {
74 | // 回退尝试直接加载
75 | return ffi.DynamicLibrary.open('libncmdump.so')
76 | .lookup>('ConvertFile')
77 | .asFunction();
78 | }
79 | }
80 | throw UnsupportedError("不支持的桌面平台");
81 | }
82 | }
83 |
--------------------------------------------------------------------------------
/ncmdump_mobile/linux/flutter/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # This file controls Flutter-level build steps. It should not be edited.
2 | cmake_minimum_required(VERSION 3.10)
3 |
4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral")
5 |
6 | # Configuration provided via flutter tool.
7 | include(${EPHEMERAL_DIR}/generated_config.cmake)
8 |
9 | # TODO: Move the rest of this into files in ephemeral. See
10 | # https://github.com/flutter/flutter/issues/57146.
11 |
12 | # Serves the same purpose as list(TRANSFORM ... PREPEND ...),
13 | # which isn't available in 3.10.
14 | function(list_prepend LIST_NAME PREFIX)
15 | set(NEW_LIST "")
16 | foreach(element ${${LIST_NAME}})
17 | list(APPEND NEW_LIST "${PREFIX}${element}")
18 | endforeach(element)
19 | set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE)
20 | endfunction()
21 |
22 | # === Flutter Library ===
23 | # System-level dependencies.
24 | find_package(PkgConfig REQUIRED)
25 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
26 | pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0)
27 | pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0)
28 |
29 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so")
30 |
31 | # Published to parent scope for install step.
32 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)
33 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE)
34 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE)
35 | set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE)
36 |
37 | list(APPEND FLUTTER_LIBRARY_HEADERS
38 | "fl_basic_message_channel.h"
39 | "fl_binary_codec.h"
40 | "fl_binary_messenger.h"
41 | "fl_dart_project.h"
42 | "fl_engine.h"
43 | "fl_json_message_codec.h"
44 | "fl_json_method_codec.h"
45 | "fl_message_codec.h"
46 | "fl_method_call.h"
47 | "fl_method_channel.h"
48 | "fl_method_codec.h"
49 | "fl_method_response.h"
50 | "fl_plugin_registrar.h"
51 | "fl_plugin_registry.h"
52 | "fl_standard_message_codec.h"
53 | "fl_standard_method_codec.h"
54 | "fl_string_codec.h"
55 | "fl_value.h"
56 | "fl_view.h"
57 | "flutter_linux.h"
58 | )
59 | list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/")
60 | add_library(flutter INTERFACE)
61 | target_include_directories(flutter INTERFACE
62 | "${EPHEMERAL_DIR}"
63 | )
64 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}")
65 | target_link_libraries(flutter INTERFACE
66 | PkgConfig::GTK
67 | PkgConfig::GLIB
68 | PkgConfig::GIO
69 | )
70 | add_dependencies(flutter flutter_assemble)
71 |
72 | # === Flutter tool backend ===
73 | # _phony_ is a non-existent file to force this command to run every time,
74 | # since currently there's no way to get a full input/output list from the
75 | # flutter tool.
76 | add_custom_command(
77 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}
78 | ${CMAKE_CURRENT_BINARY_DIR}/_phony_
79 | COMMAND ${CMAKE_COMMAND} -E env
80 | ${FLUTTER_TOOL_ENVIRONMENT}
81 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh"
82 | ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE}
83 | VERBATIM
84 | )
85 | add_custom_target(flutter_assemble DEPENDS
86 | "${FLUTTER_LIBRARY}"
87 | ${FLUTTER_LIBRARY_HEADERS}
88 | )
89 |
--------------------------------------------------------------------------------
/ncmdump_mobile/windows/runner/Runner.rc:
--------------------------------------------------------------------------------
1 | // Microsoft Visual C++ generated resource script.
2 | //
3 | #pragma code_page(65001)
4 | #include "resource.h"
5 |
6 | #define APSTUDIO_READONLY_SYMBOLS
7 | /////////////////////////////////////////////////////////////////////////////
8 | //
9 | // Generated from the TEXTINCLUDE 2 resource.
10 | //
11 | #include "winres.h"
12 |
13 | /////////////////////////////////////////////////////////////////////////////
14 | #undef APSTUDIO_READONLY_SYMBOLS
15 |
16 | /////////////////////////////////////////////////////////////////////////////
17 | // English (United States) resources
18 |
19 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
21 |
22 | #ifdef APSTUDIO_INVOKED
23 | /////////////////////////////////////////////////////////////////////////////
24 | //
25 | // TEXTINCLUDE
26 | //
27 |
28 | 1 TEXTINCLUDE
29 | BEGIN
30 | "resource.h\0"
31 | END
32 |
33 | 2 TEXTINCLUDE
34 | BEGIN
35 | "#include ""winres.h""\r\n"
36 | "\0"
37 | END
38 |
39 | 3 TEXTINCLUDE
40 | BEGIN
41 | "\r\n"
42 | "\0"
43 | END
44 |
45 | #endif // APSTUDIO_INVOKED
46 |
47 |
48 | /////////////////////////////////////////////////////////////////////////////
49 | //
50 | // Icon
51 | //
52 |
53 | // Icon with lowest ID value placed first to ensure application icon
54 | // remains consistent on all systems.
55 | IDI_APP_ICON ICON "resources\\app_icon.ico"
56 |
57 |
58 | /////////////////////////////////////////////////////////////////////////////
59 | //
60 | // Version
61 | //
62 |
63 | #if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD)
64 | #define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD
65 | #else
66 | #define VERSION_AS_NUMBER 1,0,0,0
67 | #endif
68 |
69 | #if defined(FLUTTER_VERSION)
70 | #define VERSION_AS_STRING FLUTTER_VERSION
71 | #else
72 | #define VERSION_AS_STRING "1.0.0"
73 | #endif
74 |
75 | VS_VERSION_INFO VERSIONINFO
76 | FILEVERSION VERSION_AS_NUMBER
77 | PRODUCTVERSION VERSION_AS_NUMBER
78 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
79 | #ifdef _DEBUG
80 | FILEFLAGS VS_FF_DEBUG
81 | #else
82 | FILEFLAGS 0x0L
83 | #endif
84 | FILEOS VOS__WINDOWS32
85 | FILETYPE VFT_APP
86 | FILESUBTYPE 0x0L
87 | BEGIN
88 | BLOCK "StringFileInfo"
89 | BEGIN
90 | BLOCK "040904e4"
91 | BEGIN
92 | VALUE "CompanyName", "com.GrandDuke1106" "\0"
93 | VALUE "FileDescription", "NCM Dump" "\0"
94 | VALUE "FileVersion", VERSION_AS_STRING "\0"
95 | VALUE "InternalName", "ncmdump_mobile" "\0"
96 | VALUE "LegalCopyright", "Copyright (C) 2025 GrandDuke1106. All rights reserved." "\0"
97 | VALUE "OriginalFilename", "ncmdump_mobile.exe" "\0"
98 | VALUE "ProductName", "ncmdump_mobile" "\0"
99 | VALUE "ProductVersion", VERSION_AS_STRING "\0"
100 | END
101 | END
102 | BLOCK "VarFileInfo"
103 | BEGIN
104 | VALUE "Translation", 0x409, 1252
105 | END
106 | END
107 |
108 | #endif // English (United States) resources
109 | /////////////////////////////////////////////////////////////////////////////
110 |
111 |
112 |
113 | #ifndef APSTUDIO_INVOKED
114 | /////////////////////////////////////////////////////////////////////////////
115 | //
116 | // Generated from the TEXTINCLUDE 3 resource.
117 | //
118 |
119 |
120 | /////////////////////////////////////////////////////////////////////////////
121 | #endif // not APSTUDIO_INVOKED
122 |
--------------------------------------------------------------------------------
/ncmdump_mobile/windows/runner/win32_window.h:
--------------------------------------------------------------------------------
1 | #ifndef RUNNER_WIN32_WINDOW_H_
2 | #define RUNNER_WIN32_WINDOW_H_
3 |
4 | #include
5 |
6 | #include
7 | #include
8 | #include
9 |
10 | // A class abstraction for a high DPI-aware Win32 Window. Intended to be
11 | // inherited from by classes that wish to specialize with custom
12 | // rendering and input handling
13 | class Win32Window {
14 | public:
15 | struct Point {
16 | unsigned int x;
17 | unsigned int y;
18 | Point(unsigned int x, unsigned int y) : x(x), y(y) {}
19 | };
20 |
21 | struct Size {
22 | unsigned int width;
23 | unsigned int height;
24 | Size(unsigned int width, unsigned int height)
25 | : width(width), height(height) {}
26 | };
27 |
28 | Win32Window();
29 | virtual ~Win32Window();
30 |
31 | // Creates a win32 window with |title| that is positioned and sized using
32 | // |origin| and |size|. New windows are created on the default monitor. Window
33 | // sizes are specified to the OS in physical pixels, hence to ensure a
34 | // consistent size this function will scale the inputted width and height as
35 | // as appropriate for the default monitor. The window is invisible until
36 | // |Show| is called. Returns true if the window was created successfully.
37 | bool Create(const std::wstring& title, const Point& origin, const Size& size);
38 |
39 | // Show the current window. Returns true if the window was successfully shown.
40 | bool Show();
41 |
42 | // Release OS resources associated with window.
43 | void Destroy();
44 |
45 | // Inserts |content| into the window tree.
46 | void SetChildContent(HWND content);
47 |
48 | // Returns the backing Window handle to enable clients to set icon and other
49 | // window properties. Returns nullptr if the window has been destroyed.
50 | HWND GetHandle();
51 |
52 | // If true, closing this window will quit the application.
53 | void SetQuitOnClose(bool quit_on_close);
54 |
55 | // Return a RECT representing the bounds of the current client area.
56 | RECT GetClientArea();
57 |
58 | protected:
59 | // Processes and route salient window messages for mouse handling,
60 | // size change and DPI. Delegates handling of these to member overloads that
61 | // inheriting classes can handle.
62 | virtual LRESULT MessageHandler(HWND window,
63 | UINT const message,
64 | WPARAM const wparam,
65 | LPARAM const lparam) noexcept;
66 |
67 | // Called when CreateAndShow is called, allowing subclass window-related
68 | // setup. Subclasses should return false if setup fails.
69 | virtual bool OnCreate();
70 |
71 | // Called when Destroy is called.
72 | virtual void OnDestroy();
73 |
74 | private:
75 | friend class WindowClassRegistrar;
76 |
77 | // OS callback called by message pump. Handles the WM_NCCREATE message which
78 | // is passed when the non-client area is being created and enables automatic
79 | // non-client DPI scaling so that the non-client area automatically
80 | // responds to changes in DPI. All other messages are handled by
81 | // MessageHandler.
82 | static LRESULT CALLBACK WndProc(HWND const window,
83 | UINT const message,
84 | WPARAM const wparam,
85 | LPARAM const lparam) noexcept;
86 |
87 | // Retrieves a class instance pointer for |window|
88 | static Win32Window* GetThisFromHandle(HWND const window) noexcept;
89 |
90 | // Update the window frame's theme to match the system theme.
91 | static void UpdateTheme(HWND const window);
92 |
93 | bool quit_on_close_ = false;
94 |
95 | // window handle for top level window.
96 | HWND window_handle_ = nullptr;
97 |
98 | // window handle for hosted content.
99 | HWND child_content_ = nullptr;
100 | };
101 |
102 | #endif // RUNNER_WIN32_WINDOW_H_
103 |
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
43 |
49 |
50 |
51 |
52 |
53 |
64 |
66 |
72 |
73 |
74 |
75 |
81 |
83 |
89 |
90 |
91 |
92 |
94 |
95 |
98 |
99 |
100 |
--------------------------------------------------------------------------------
/ncmdump_mobile/windows/flutter/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # This file controls Flutter-level build steps. It should not be edited.
2 | cmake_minimum_required(VERSION 3.14)
3 |
4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral")
5 |
6 | # Configuration provided via flutter tool.
7 | include(${EPHEMERAL_DIR}/generated_config.cmake)
8 |
9 | # TODO: Move the rest of this into files in ephemeral. See
10 | # https://github.com/flutter/flutter/issues/57146.
11 | set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper")
12 |
13 | # Set fallback configurations for older versions of the flutter tool.
14 | if (NOT DEFINED FLUTTER_TARGET_PLATFORM)
15 | set(FLUTTER_TARGET_PLATFORM "windows-x64")
16 | endif()
17 |
18 | # === Flutter Library ===
19 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll")
20 |
21 | # Published to parent scope for install step.
22 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)
23 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE)
24 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE)
25 | set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE)
26 |
27 | list(APPEND FLUTTER_LIBRARY_HEADERS
28 | "flutter_export.h"
29 | "flutter_windows.h"
30 | "flutter_messenger.h"
31 | "flutter_plugin_registrar.h"
32 | "flutter_texture_registrar.h"
33 | )
34 | list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/")
35 | add_library(flutter INTERFACE)
36 | target_include_directories(flutter INTERFACE
37 | "${EPHEMERAL_DIR}"
38 | )
39 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib")
40 | add_dependencies(flutter flutter_assemble)
41 |
42 | # === Wrapper ===
43 | list(APPEND CPP_WRAPPER_SOURCES_CORE
44 | "core_implementations.cc"
45 | "standard_codec.cc"
46 | )
47 | list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/")
48 | list(APPEND CPP_WRAPPER_SOURCES_PLUGIN
49 | "plugin_registrar.cc"
50 | )
51 | list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/")
52 | list(APPEND CPP_WRAPPER_SOURCES_APP
53 | "flutter_engine.cc"
54 | "flutter_view_controller.cc"
55 | )
56 | list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/")
57 |
58 | # Wrapper sources needed for a plugin.
59 | add_library(flutter_wrapper_plugin STATIC
60 | ${CPP_WRAPPER_SOURCES_CORE}
61 | ${CPP_WRAPPER_SOURCES_PLUGIN}
62 | )
63 | apply_standard_settings(flutter_wrapper_plugin)
64 | set_target_properties(flutter_wrapper_plugin PROPERTIES
65 | POSITION_INDEPENDENT_CODE ON)
66 | set_target_properties(flutter_wrapper_plugin PROPERTIES
67 | CXX_VISIBILITY_PRESET hidden)
68 | target_link_libraries(flutter_wrapper_plugin PUBLIC flutter)
69 | target_include_directories(flutter_wrapper_plugin PUBLIC
70 | "${WRAPPER_ROOT}/include"
71 | )
72 | add_dependencies(flutter_wrapper_plugin flutter_assemble)
73 |
74 | # Wrapper sources needed for the runner.
75 | add_library(flutter_wrapper_app STATIC
76 | ${CPP_WRAPPER_SOURCES_CORE}
77 | ${CPP_WRAPPER_SOURCES_APP}
78 | )
79 | apply_standard_settings(flutter_wrapper_app)
80 | target_link_libraries(flutter_wrapper_app PUBLIC flutter)
81 | target_include_directories(flutter_wrapper_app PUBLIC
82 | "${WRAPPER_ROOT}/include"
83 | )
84 | add_dependencies(flutter_wrapper_app flutter_assemble)
85 |
86 | # === Flutter tool backend ===
87 | # _phony_ is a non-existent file to force this command to run every time,
88 | # since currently there's no way to get a full input/output list from the
89 | # flutter tool.
90 | set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_")
91 | set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE)
92 | add_custom_command(
93 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}
94 | ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN}
95 | ${CPP_WRAPPER_SOURCES_APP}
96 | ${PHONY_OUTPUT}
97 | COMMAND ${CMAKE_COMMAND} -E env
98 | ${FLUTTER_TOOL_ENVIRONMENT}
99 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
100 | ${FLUTTER_TARGET_PLATFORM} $
101 | VERBATIM
102 | )
103 | add_custom_target(flutter_assemble DEPENDS
104 | "${FLUTTER_LIBRARY}"
105 | ${FLUTTER_LIBRARY_HEADERS}
106 | ${CPP_WRAPPER_SOURCES_CORE}
107 | ${CPP_WRAPPER_SOURCES_PLUGIN}
108 | ${CPP_WRAPPER_SOURCES_APP}
109 | )
110 |
--------------------------------------------------------------------------------
/ncmdump_mobile/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
31 |
32 |
38 |
39 |
40 |
41 |
44 |
50 |
51 |
52 |
53 |
54 |
66 |
68 |
74 |
75 |
76 |
77 |
83 |
85 |
91 |
92 |
93 |
94 |
96 |
97 |
100 |
101 |
102 |
--------------------------------------------------------------------------------
/ncmdump_mobile/windows/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Project-level configuration.
2 | cmake_minimum_required(VERSION 3.14)
3 | project(ncmdump_mobile 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 "ncmdump_mobile")
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 "$<$:_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 "$")
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)
109 |
110 | install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/runner/ncmdump.dll" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
111 | COMPONENT Runtime)
112 |
--------------------------------------------------------------------------------
/ext/go.sum:
--------------------------------------------------------------------------------
1 | git.taurusxin.com/taurusxin/ncmdump-go v1.7.5 h1:O7t1qnIohDy+Xx0rfJGHZi/gAdfFUewRbhna7UmCzTw=
2 | git.taurusxin.com/taurusxin/ncmdump-go v1.7.5/go.mod h1:6kRSwUFM9BZwvDrg6MEPBn+29+Q2131QjK/URWO7seg=
3 | github.com/TwiN/go-color v1.4.1 h1:mqG0P/KBgHKVqmtL5ye7K0/Gr4l6hTksPgTgMk3mUzc=
4 | github.com/TwiN/go-color v1.4.1/go.mod h1:WcPf/jtiW95WBIsEeY1Lc/b8aaWoiqQpu5cf8WFxu+s=
5 | github.com/bogem/id3v2/v2 v2.1.4 h1:CEwe+lS2p6dd9UZRlPc1zbFNIha2mb2qzT1cCEoNWoI=
6 | github.com/bogem/id3v2/v2 v2.1.4/go.mod h1:l+gR8MZ6rc9ryPTPkX77smS5Me/36gxkMgDayZ9G1vY=
7 | github.com/go-flac/flacpicture v0.3.0 h1:LkmTxzFLIynwfhHiZsX0s8xcr3/u33MzvV89u+zOT8I=
8 | github.com/go-flac/flacpicture v0.3.0/go.mod h1:DPbrzVYQ3fJcvSgLFp9HXIrEQEdfdk/+m0nQCzwodZI=
9 | github.com/go-flac/flacvorbis v0.2.0 h1:KH0xjpkNTXFER4cszH4zeJxYcrHbUobz/RticWGOESs=
10 | github.com/go-flac/flacvorbis v0.2.0/go.mod h1:uIysHOtuU7OLGoCRG92bvnkg7QEqHx19qKRV6K1pBrI=
11 | github.com/go-flac/go-flac v1.0.0 h1:6qI9XOVLcO50xpzm3nXvO31BgDgHhnr/p/rER/K/doY=
12 | github.com/go-flac/go-flac v1.0.0/go.mod h1:WnZhcpmq4u1UdZMNn9LYSoASpWOCMOoxXxcWEHSzkW8=
13 | github.com/tidwall/gjson v1.17.3 h1:bwWLZU7icoKRG+C+0PNwIKC6FCJO/Q3p2pZvuP0jN94=
14 | github.com/tidwall/gjson v1.17.3/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
15 | github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=
16 | github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM=
17 | github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
18 | github.com/tidwall/pretty v1.2.1 h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4=
19 | github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
20 | github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
21 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
22 | golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
23 | golang.org/x/mobile v0.0.0-20251126181937-5c265dc024c4 h1:lZKReZrCBTDNaVewUp31194cua6qf65/tYg3mq1KUU0=
24 | golang.org/x/mobile v0.0.0-20251126181937-5c265dc024c4/go.mod h1:Eq3Nh/5pFSWug2ohiudJ1iyU59SO78QFuh4qTTN++I0=
25 | golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
26 | golang.org/x/mod v0.30.0 h1:fDEXFVZ/fmCKProc/yAXXUijritrDzahmwwefnjoPFk=
27 | golang.org/x/mod v0.30.0/go.mod h1:lAsf5O2EvJeSFMiBxXDki7sCgAxEUcZHXoXMKT4GJKc=
28 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
29 | golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
30 | golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
31 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
32 | golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
33 | golang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I=
34 | golang.org/x/sync v0.18.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
35 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
36 | golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
37 | golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
38 | golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
39 | golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
40 | golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
41 | golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
42 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
43 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
44 | golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
45 | golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
46 | golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224=
47 | golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
48 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
49 | golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
50 | golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
51 | golang.org/x/tools v0.39.0 h1:ik4ho21kwuQln40uelmciQPp9SipgNDdrafrYA4TmQQ=
52 | golang.org/x/tools v0.39.0/go.mod h1:JnefbkDPyD8UU2kI5fuf8ZX4/yUeh9W877ZeBONxUqQ=
53 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
54 |
--------------------------------------------------------------------------------
/ncmdump_mobile/linux/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Project-level configuration.
2 | cmake_minimum_required(VERSION 3.13)
3 | project(runner 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 "ncmdump_mobile")
8 | # The unique GTK application identifier for this application. See:
9 | # https://wiki.gnome.org/HowDoI/ChooseApplicationID
10 | set(APPLICATION_ID "com.grandduke1106.ncmdump_mobile")
11 |
12 | # Explicitly opt in to modern CMake behaviors to avoid warnings with recent
13 | # versions of CMake.
14 | cmake_policy(SET CMP0063 NEW)
15 |
16 | # Load bundled libraries from the lib/ directory relative to the binary.
17 | set(CMAKE_INSTALL_RPATH "$ORIGIN/lib")
18 |
19 | # Root filesystem for cross-building.
20 | if(FLUTTER_TARGET_PLATFORM_SYSROOT)
21 | set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT})
22 | set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT})
23 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
24 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
25 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
26 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
27 | endif()
28 |
29 | # Define build configuration options.
30 | if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
31 | set(CMAKE_BUILD_TYPE "Debug" CACHE
32 | STRING "Flutter build mode" FORCE)
33 | set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
34 | "Debug" "Profile" "Release")
35 | endif()
36 |
37 | # Compilation settings that should be applied to most targets.
38 | #
39 | # Be cautious about adding new options here, as plugins use this function by
40 | # default. In most cases, you should add new options to specific targets instead
41 | # of modifying this function.
42 | function(APPLY_STANDARD_SETTINGS TARGET)
43 | target_compile_features(${TARGET} PUBLIC cxx_std_14)
44 | target_compile_options(${TARGET} PRIVATE -Wall -Werror)
45 | target_compile_options(${TARGET} PRIVATE "$<$>:-O3>")
46 | target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>")
47 | endfunction()
48 |
49 | # Flutter library and tool build rules.
50 | set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
51 | add_subdirectory(${FLUTTER_MANAGED_DIR})
52 |
53 | # System-level dependencies.
54 | find_package(PkgConfig REQUIRED)
55 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
56 |
57 | # === Installation ===
58 | # By default, "installing" just makes a relocatable bundle in the build
59 | # directory.
60 | set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle")
61 | #if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
62 | # set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
63 | #endif()
64 |
65 | set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "Installer prefix" FORCE)
66 |
67 | # Application build; see runner/CMakeLists.txt.
68 | add_subdirectory("runner")
69 |
70 | # Run the Flutter tool portions of the build. This must not be removed.
71 | add_dependencies(${BINARY_NAME} flutter_assemble)
72 |
73 | # Only the install-generated bundle's copy of the executable will launch
74 | # correctly, since the resources must in the right relative locations. To avoid
75 | # people trying to run the unbundled copy, put it in a subdirectory instead of
76 | # the default top-level location.
77 | set_target_properties(${BINARY_NAME}
78 | PROPERTIES
79 | RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run"
80 | )
81 |
82 |
83 | # Generated plugin build rules, which manage building the plugins and adding
84 | # them to the application.
85 | include(flutter/generated_plugins.cmake)
86 |
87 |
88 |
89 |
90 | # Start with a clean build bundle directory every time.
91 | install(CODE "
92 | file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\")
93 | " COMPONENT Runtime)
94 |
95 | set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
96 | set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib")
97 |
98 | install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
99 | COMPONENT Runtime)
100 |
101 | install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
102 | COMPONENT Runtime)
103 |
104 | install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
105 | COMPONENT Runtime)
106 |
107 | foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES})
108 | install(FILES "${bundled_library}"
109 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
110 | COMPONENT Runtime)
111 | endforeach(bundled_library)
112 |
113 | # Copy the native assets provided by the build.dart from all packages.
114 | set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/linux/")
115 | install(DIRECTORY "${NATIVE_ASSETS_DIR}"
116 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
117 | COMPONENT Runtime)
118 |
119 | # Fully re-copy the assets directory on each build to avoid having stale files
120 | # from a previous install.
121 | set(FLUTTER_ASSET_DIR_NAME "flutter_assets")
122 | install(CODE "
123 | file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\")
124 | " COMPONENT Runtime)
125 | install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"
126 | DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)
127 |
128 | # Install the AOT library on non-Debug builds only.
129 | if(NOT CMAKE_BUILD_TYPE MATCHES "Debug")
130 | install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
131 | COMPONENT Runtime)
132 | endif()
133 |
--------------------------------------------------------------------------------
/ncmdump_mobile/linux/runner/my_application.cc:
--------------------------------------------------------------------------------
1 | #include "my_application.h"
2 |
3 | #include
4 | #ifdef GDK_WINDOWING_X11
5 | #include
6 | #endif
7 |
8 | #include "flutter/generated_plugin_registrant.h"
9 |
10 | struct _MyApplication {
11 | GtkApplication parent_instance;
12 | char** dart_entrypoint_arguments;
13 | };
14 |
15 | G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION)
16 |
17 | // Called when first Flutter frame received.
18 | static void first_frame_cb(MyApplication* self, FlView* view) {
19 | gtk_widget_show(gtk_widget_get_toplevel(GTK_WIDGET(view)));
20 | }
21 |
22 | // Implements GApplication::activate.
23 | static void my_application_activate(GApplication* application) {
24 | MyApplication* self = MY_APPLICATION(application);
25 | GtkWindow* window =
26 | GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application)));
27 |
28 | // Use a header bar when running in GNOME as this is the common style used
29 | // by applications and is the setup most users will be using (e.g. Ubuntu
30 | // desktop).
31 | // If running on X and not using GNOME then just use a traditional title bar
32 | // in case the window manager does more exotic layout, e.g. tiling.
33 | // If running on Wayland assume the header bar will work (may need changing
34 | // if future cases occur).
35 | gboolean use_header_bar = TRUE;
36 | #ifdef GDK_WINDOWING_X11
37 | GdkScreen* screen = gtk_window_get_screen(window);
38 | if (GDK_IS_X11_SCREEN(screen)) {
39 | const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen);
40 | if (g_strcmp0(wm_name, "GNOME Shell") != 0) {
41 | use_header_bar = FALSE;
42 | }
43 | }
44 | #endif
45 | if (use_header_bar) {
46 | GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new());
47 | gtk_widget_show(GTK_WIDGET(header_bar));
48 | gtk_header_bar_set_title(header_bar, "NCM Dump");
49 | gtk_header_bar_set_show_close_button(header_bar, TRUE);
50 | gtk_window_set_titlebar(window, GTK_WIDGET(header_bar));
51 | } else {
52 | gtk_window_set_title(window, "NCM Dump");
53 | }
54 |
55 | gtk_window_set_default_size(window, 1280, 720);
56 |
57 | g_autoptr(FlDartProject) project = fl_dart_project_new();
58 | fl_dart_project_set_dart_entrypoint_arguments(
59 | project, self->dart_entrypoint_arguments);
60 |
61 | FlView* view = fl_view_new(project);
62 | GdkRGBA background_color;
63 | // Background defaults to black, override it here if necessary, e.g. #00000000
64 | // for transparent.
65 | gdk_rgba_parse(&background_color, "#000000");
66 | fl_view_set_background_color(view, &background_color);
67 | gtk_widget_show(GTK_WIDGET(view));
68 | gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view));
69 |
70 | // Show the window when Flutter renders.
71 | // Requires the view to be realized so we can start rendering.
72 | g_signal_connect_swapped(view, "first-frame", G_CALLBACK(first_frame_cb),
73 | self);
74 | gtk_widget_realize(GTK_WIDGET(view));
75 |
76 | fl_register_plugins(FL_PLUGIN_REGISTRY(view));
77 |
78 | gtk_widget_grab_focus(GTK_WIDGET(view));
79 | }
80 |
81 | // Implements GApplication::local_command_line.
82 | static gboolean my_application_local_command_line(GApplication* application,
83 | gchar*** arguments,
84 | int* exit_status) {
85 | MyApplication* self = MY_APPLICATION(application);
86 | // Strip out the first argument as it is the binary name.
87 | self->dart_entrypoint_arguments = g_strdupv(*arguments + 1);
88 |
89 | g_autoptr(GError) error = nullptr;
90 | if (!g_application_register(application, nullptr, &error)) {
91 | g_warning("Failed to register: %s", error->message);
92 | *exit_status = 1;
93 | return TRUE;
94 | }
95 |
96 | g_application_activate(application);
97 | *exit_status = 0;
98 |
99 | return TRUE;
100 | }
101 |
102 | // Implements GApplication::startup.
103 | static void my_application_startup(GApplication* application) {
104 | // MyApplication* self = MY_APPLICATION(object);
105 |
106 | // Perform any actions required at application startup.
107 |
108 | G_APPLICATION_CLASS(my_application_parent_class)->startup(application);
109 | }
110 |
111 | // Implements GApplication::shutdown.
112 | static void my_application_shutdown(GApplication* application) {
113 | // MyApplication* self = MY_APPLICATION(object);
114 |
115 | // Perform any actions required at application shutdown.
116 |
117 | G_APPLICATION_CLASS(my_application_parent_class)->shutdown(application);
118 | }
119 |
120 | // Implements GObject::dispose.
121 | static void my_application_dispose(GObject* object) {
122 | MyApplication* self = MY_APPLICATION(object);
123 | g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev);
124 | G_OBJECT_CLASS(my_application_parent_class)->dispose(object);
125 | }
126 |
127 | static void my_application_class_init(MyApplicationClass* klass) {
128 | G_APPLICATION_CLASS(klass)->activate = my_application_activate;
129 | G_APPLICATION_CLASS(klass)->local_command_line =
130 | my_application_local_command_line;
131 | G_APPLICATION_CLASS(klass)->startup = my_application_startup;
132 | G_APPLICATION_CLASS(klass)->shutdown = my_application_shutdown;
133 | G_OBJECT_CLASS(klass)->dispose = my_application_dispose;
134 | }
135 |
136 | static void my_application_init(MyApplication* self) {}
137 |
138 | MyApplication* my_application_new() {
139 | // Set the program name to the application ID, which helps various systems
140 | // like GTK and desktop environments map this running application to its
141 | // corresponding .desktop file. This ensures better integration by allowing
142 | // the application to be recognized beyond its binary name.
143 | g_set_prgname(APPLICATION_ID);
144 |
145 | return MY_APPLICATION(g_object_new(my_application_get_type(),
146 | "application-id", APPLICATION_ID, "flags",
147 | G_APPLICATION_NON_UNIQUE, nullptr));
148 | }
149 |
--------------------------------------------------------------------------------
/.github/workflows/release.yaml:
--------------------------------------------------------------------------------
1 | name: Build and Release
2 |
3 | # 触发规则:
4 | # 1. 推送到 main 分支时触发构建(测试用,生成带 commit id 的包)
5 | # 2. 推送以 'v' 开头的 tag 时触发构建并发布(如 v1.0.0,生成带 tag 的包)
6 | on:
7 | push:
8 | branches: [ "main" ]
9 | tags: [ "v*" ]
10 | workflow_dispatch:
11 |
12 | jobs:
13 | # ================= Android =================
14 | build-android:
15 | name: Build Android
16 | runs-on: ubuntu-latest
17 | steps:
18 | - uses: actions/checkout@v4
19 |
20 | # [新增] 获取版本号步骤
21 | # 如果是 Tag 推送,VERSION = v1.0.0
22 | # 如果是 Commit 推送,VERSION = dev-e025c7a (dev-前缀 + 7位 commit hash)
23 | - name: Get Version
24 | id: get_version
25 | shell: bash
26 | run: |
27 | if [[ $GITHUB_REF == refs/tags/* ]]; then
28 | echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
29 | else
30 | echo "VERSION=dev-$(git rev-parse --short HEAD)" >> $GITHUB_ENV
31 | fi
32 |
33 | - name: Setup Java
34 | uses: actions/setup-java@v4
35 | with:
36 | distribution: 'zulu'
37 | java-version: '17'
38 |
39 | - name: Setup Flutter
40 | uses: subosito/flutter-action@v2
41 | with:
42 | channel: 'stable'
43 |
44 | - name: Setup Go
45 | uses: actions/setup-go@v5
46 | with:
47 | go-version: '1.24'
48 |
49 | - name: Install Gomobile
50 | working-directory: ./ext
51 | run: |
52 | go install golang.org/x/mobile/cmd/gomobile@latest
53 | gomobile init
54 |
55 | - name: Build Go Library (Android)
56 | working-directory: ./ext
57 | run: |
58 | mkdir -p ../ncmdump_mobile/android/app/libs
59 | gomobile bind -target=android -androidapi 21 -ldflags="-s -w" -o ../ncmdump_mobile/android/app/libs/ncmdump.aar ./mobile
60 |
61 | - name: Configure Keystore
62 | working-directory: ./ncmdump_mobile
63 | run: |
64 | echo "${{ secrets.ANDROID_KEYSTORE_BASE64 }}" | base64 --decode > android/app/upload-keystore.jks
65 | echo "storePassword=${{ secrets.STORE_PASSWORD }}" > android/key.properties
66 | echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> android/key.properties
67 | echo "keyAlias=upload" >> android/key.properties
68 | echo "storeFile=upload-keystore.jks" >> android/key.properties
69 |
70 | # [修改] 增加 --split-per-abi 参数进行分包
71 | - name: Build APK
72 | working-directory: ./ncmdump_mobile
73 | run: flutter build apk --release --split-per-abi
74 |
75 | # [新增] 重命名 APK 文件,带上版本号和架构名
76 | - name: Rename APKs
77 | working-directory: ./ncmdump_mobile/build/app/outputs/flutter-apk
78 | run: |
79 | mv app-arm64-v8a-release.apk ncmdump-mobile-${{ env.VERSION }}-android-arm64.apk
80 | mv app-armeabi-v7a-release.apk ncmdump-mobile-${{ env.VERSION }}-android-armv7.apk
81 | mv app-x86_64-release.apk ncmdump-mobile-${{ env.VERSION }}-android-x64.apk
82 |
83 | rm -f app-release.apk app.apk
84 |
85 | # [修改] 上传所有重命名后的 APK,Artifact 名称也带上版本号
86 | - name: Upload APK Artifact
87 | uses: actions/upload-artifact@v4
88 | with:
89 | name: ncmdump-mobile-${{ env.VERSION }}-android-apks
90 | path: ./ncmdump_mobile/build/app/outputs/flutter-apk/*.apk
91 |
92 | # ================= Windows =================
93 | build-windows:
94 | name: Build Windows
95 | runs-on: windows-latest
96 | steps:
97 | - uses: actions/checkout@v4
98 |
99 | # [新增] 获取版本号 (Windows Powershell 语法不同,但 Actions 中可以用 bash)
100 | - name: Get Version
101 | shell: bash
102 | run: |
103 | if [[ $GITHUB_REF == refs/tags/* ]]; then
104 | echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
105 | else
106 | echo "VERSION=dev-$(git rev-parse --short HEAD)" >> $GITHUB_ENV
107 | fi
108 |
109 | - name: Setup Flutter
110 | uses: subosito/flutter-action@v2
111 | with:
112 | channel: 'stable'
113 | - name: Setup Go
114 | uses: actions/setup-go@v5
115 | with:
116 | go-version: '1.24'
117 | - name: Build Go Library (Windows)
118 | working-directory: ./ext
119 | run: |
120 | go build -ldflags "-s -w" -buildmode=c-shared -o ../ncmdump_mobile/windows/runner/ncmdump.dll ./desktop
121 | - name: Build Windows Release
122 | working-directory: ./ncmdump_mobile
123 | run: flutter build windows --release
124 |
125 | # [修改] Artifact 名称带上版本号
126 | - name: Upload Windows Artifact
127 | uses: actions/upload-artifact@v4
128 | with:
129 | name: ncmdump-mobile-${{ env.VERSION }}-windows-folder
130 | path: ./ncmdump_mobile/build/windows/x64/runner/Release
131 |
132 | # ================= Linux =================
133 | build-linux:
134 | name: Build Linux
135 | runs-on: ubuntu-latest
136 | steps:
137 | - uses: actions/checkout@v4
138 |
139 | # [新增] 获取版本号
140 | - name: Get Version
141 | shell: bash
142 | run: |
143 | if [[ $GITHUB_REF == refs/tags/* ]]; then
144 | echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
145 | else
146 | echo "VERSION=dev-$(git rev-parse --short HEAD)" >> $GITHUB_ENV
147 | fi
148 |
149 | - name: Install Linux Dependencies
150 | run: |
151 | sudo apt-get update
152 | sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
153 | - name: Setup Flutter
154 | uses: subosito/flutter-action@v2
155 | with:
156 | channel: 'stable'
157 | - name: Setup Go
158 | uses: actions/setup-go@v5
159 | with:
160 | go-version: '1.24'
161 | - name: Build Go Library (Linux)
162 | working-directory: ./ext
163 | run: |
164 | go build -ldflags "-s -w" -buildmode=c-shared -o ../ncmdump_mobile/linux/libncmdump.so ./desktop
165 | - name: Build Linux Release
166 | working-directory: ./ncmdump_mobile
167 | run: flutter build linux --release
168 |
169 | # [修改] Artifact 名称带上版本号
170 | - name: Upload Linux Artifact
171 | uses: actions/upload-artifact@v4
172 | with:
173 | name: ncmdump-mobile-${{ env.VERSION }}-linux-folder
174 | path: ./ncmdump_mobile/build/linux/x64/release/bundle
175 |
176 | # ================= Release =================
177 | create-release:
178 | name: Create Release
179 | needs: [build-android, build-windows, build-linux]
180 | if: startsWith(github.ref, 'refs/tags/')
181 | runs-on: ubuntu-latest
182 | permissions:
183 | contents: write
184 | steps:
185 | - uses: actions/checkout@v4 # 需要 checkout 来获取 git commit hash (虽然这里主要用 tag)
186 |
187 | # [新增] 获取版本号,用于文件名
188 | - name: Get Version
189 | shell: bash
190 | run: |
191 | echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
192 |
193 | # [修改] 下载所有 Artifacts
194 | # 因为 Artifact 名称现在包含动态版本号,我们使用 pattern 来匹配
195 | # merge-multiple: false 会保持文件夹结构,方便我们分别处理
196 | - name: Download Artifacts
197 | uses: actions/download-artifact@v4
198 | with:
199 | path: artifacts
200 | pattern: ncmdump-mobile-*
201 | merge-multiple: false
202 |
203 | - name: Archive Builds
204 | run: |
205 | WIN_DIR=$(find artifacts -type d -name "*-windows-folder" | head -n 1)
206 | if [ -d "$WIN_DIR" ]; then
207 | cd "$WIN_DIR"
208 | zip -r ../../ncmdump-mobile-${{ env.VERSION }}-windows.zip .
209 | cd ../..
210 | fi
211 |
212 | LINUX_DIR=$(find artifacts -type d -name "*-linux-folder" | head -n 1)
213 | if [ -d "$LINUX_DIR" ]; then
214 | cd "$LINUX_DIR"
215 | tar -czf ../../ncmdump-mobile-${{ env.VERSION }}-linux.tar.gz .
216 | cd ../..
217 | fi
218 |
219 | find artifacts -name "*.apk" -exec cp {} . \;
220 |
221 | - name: Create Release
222 | uses: softprops/action-gh-release@v1
223 | with:
224 | files: |
225 | *.apk
226 | *.zip
227 | *.tar.gz
228 | draft: false
229 | prerelease: false
230 | generate_release_notes: true
--------------------------------------------------------------------------------
/ncmdump_mobile/windows/runner/win32_window.cpp:
--------------------------------------------------------------------------------
1 | #include "win32_window.h"
2 |
3 | #include
4 | #include
5 |
6 | #include "resource.h"
7 |
8 | namespace {
9 |
10 | /// Window attribute that enables dark mode window decorations.
11 | ///
12 | /// Redefined in case the developer's machine has a Windows SDK older than
13 | /// version 10.0.22000.0.
14 | /// See: https://docs.microsoft.com/windows/win32/api/dwmapi/ne-dwmapi-dwmwindowattribute
15 | #ifndef DWMWA_USE_IMMERSIVE_DARK_MODE
16 | #define DWMWA_USE_IMMERSIVE_DARK_MODE 20
17 | #endif
18 |
19 | constexpr const wchar_t kWindowClassName[] = L"FLUTTER_RUNNER_WIN32_WINDOW";
20 |
21 | /// Registry key for app theme preference.
22 | ///
23 | /// A value of 0 indicates apps should use dark mode. A non-zero or missing
24 | /// value indicates apps should use light mode.
25 | constexpr const wchar_t kGetPreferredBrightnessRegKey[] =
26 | L"Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize";
27 | constexpr const wchar_t kGetPreferredBrightnessRegValue[] = L"AppsUseLightTheme";
28 |
29 | // The number of Win32Window objects that currently exist.
30 | static int g_active_window_count = 0;
31 |
32 | using EnableNonClientDpiScaling = BOOL __stdcall(HWND hwnd);
33 |
34 | // Scale helper to convert logical scaler values to physical using passed in
35 | // scale factor
36 | int Scale(int source, double scale_factor) {
37 | return static_cast(source * scale_factor);
38 | }
39 |
40 | // Dynamically loads the |EnableNonClientDpiScaling| from the User32 module.
41 | // This API is only needed for PerMonitor V1 awareness mode.
42 | void EnableFullDpiSupportIfAvailable(HWND hwnd) {
43 | HMODULE user32_module = LoadLibraryA("User32.dll");
44 | if (!user32_module) {
45 | return;
46 | }
47 | auto enable_non_client_dpi_scaling =
48 | reinterpret_cast(
49 | GetProcAddress(user32_module, "EnableNonClientDpiScaling"));
50 | if (enable_non_client_dpi_scaling != nullptr) {
51 | enable_non_client_dpi_scaling(hwnd);
52 | }
53 | FreeLibrary(user32_module);
54 | }
55 |
56 | } // namespace
57 |
58 | // Manages the Win32Window's window class registration.
59 | class WindowClassRegistrar {
60 | public:
61 | ~WindowClassRegistrar() = default;
62 |
63 | // Returns the singleton registrar instance.
64 | static WindowClassRegistrar* GetInstance() {
65 | if (!instance_) {
66 | instance_ = new WindowClassRegistrar();
67 | }
68 | return instance_;
69 | }
70 |
71 | // Returns the name of the window class, registering the class if it hasn't
72 | // previously been registered.
73 | const wchar_t* GetWindowClass();
74 |
75 | // Unregisters the window class. Should only be called if there are no
76 | // instances of the window.
77 | void UnregisterWindowClass();
78 |
79 | private:
80 | WindowClassRegistrar() = default;
81 |
82 | static WindowClassRegistrar* instance_;
83 |
84 | bool class_registered_ = false;
85 | };
86 |
87 | WindowClassRegistrar* WindowClassRegistrar::instance_ = nullptr;
88 |
89 | const wchar_t* WindowClassRegistrar::GetWindowClass() {
90 | if (!class_registered_) {
91 | WNDCLASS window_class{};
92 | window_class.hCursor = LoadCursor(nullptr, IDC_ARROW);
93 | window_class.lpszClassName = kWindowClassName;
94 | window_class.style = CS_HREDRAW | CS_VREDRAW;
95 | window_class.cbClsExtra = 0;
96 | window_class.cbWndExtra = 0;
97 | window_class.hInstance = GetModuleHandle(nullptr);
98 | window_class.hIcon =
99 | LoadIcon(window_class.hInstance, MAKEINTRESOURCE(IDI_APP_ICON));
100 | window_class.hbrBackground = 0;
101 | window_class.lpszMenuName = nullptr;
102 | window_class.lpfnWndProc = Win32Window::WndProc;
103 | RegisterClass(&window_class);
104 | class_registered_ = true;
105 | }
106 | return kWindowClassName;
107 | }
108 |
109 | void WindowClassRegistrar::UnregisterWindowClass() {
110 | UnregisterClass(kWindowClassName, nullptr);
111 | class_registered_ = false;
112 | }
113 |
114 | Win32Window::Win32Window() {
115 | ++g_active_window_count;
116 | }
117 |
118 | Win32Window::~Win32Window() {
119 | --g_active_window_count;
120 | Destroy();
121 | }
122 |
123 | bool Win32Window::Create(const std::wstring& title,
124 | const Point& origin,
125 | const Size& size) {
126 | Destroy();
127 |
128 | const wchar_t* window_class =
129 | WindowClassRegistrar::GetInstance()->GetWindowClass();
130 |
131 | const POINT target_point = {static_cast(origin.x),
132 | static_cast(origin.y)};
133 | HMONITOR monitor = MonitorFromPoint(target_point, MONITOR_DEFAULTTONEAREST);
134 | UINT dpi = FlutterDesktopGetDpiForMonitor(monitor);
135 | double scale_factor = dpi / 96.0;
136 |
137 | HWND window = CreateWindow(
138 | window_class, title.c_str(), WS_OVERLAPPEDWINDOW,
139 | Scale(origin.x, scale_factor), Scale(origin.y, scale_factor),
140 | Scale(size.width, scale_factor), Scale(size.height, scale_factor),
141 | nullptr, nullptr, GetModuleHandle(nullptr), this);
142 |
143 | if (!window) {
144 | return false;
145 | }
146 |
147 | UpdateTheme(window);
148 |
149 | return OnCreate();
150 | }
151 |
152 | bool Win32Window::Show() {
153 | return ShowWindow(window_handle_, SW_SHOWNORMAL);
154 | }
155 |
156 | // static
157 | LRESULT CALLBACK Win32Window::WndProc(HWND const window,
158 | UINT const message,
159 | WPARAM const wparam,
160 | LPARAM const lparam) noexcept {
161 | if (message == WM_NCCREATE) {
162 | auto window_struct = reinterpret_cast(lparam);
163 | SetWindowLongPtr(window, GWLP_USERDATA,
164 | reinterpret_cast(window_struct->lpCreateParams));
165 |
166 | auto that = static_cast(window_struct->lpCreateParams);
167 | EnableFullDpiSupportIfAvailable(window);
168 | that->window_handle_ = window;
169 | } else if (Win32Window* that = GetThisFromHandle(window)) {
170 | return that->MessageHandler(window, message, wparam, lparam);
171 | }
172 |
173 | return DefWindowProc(window, message, wparam, lparam);
174 | }
175 |
176 | LRESULT
177 | Win32Window::MessageHandler(HWND hwnd,
178 | UINT const message,
179 | WPARAM const wparam,
180 | LPARAM const lparam) noexcept {
181 | switch (message) {
182 | case WM_DESTROY:
183 | window_handle_ = nullptr;
184 | Destroy();
185 | if (quit_on_close_) {
186 | PostQuitMessage(0);
187 | }
188 | return 0;
189 |
190 | case WM_DPICHANGED: {
191 | auto newRectSize = reinterpret_cast(lparam);
192 | LONG newWidth = newRectSize->right - newRectSize->left;
193 | LONG newHeight = newRectSize->bottom - newRectSize->top;
194 |
195 | SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth,
196 | newHeight, SWP_NOZORDER | SWP_NOACTIVATE);
197 |
198 | return 0;
199 | }
200 | case WM_SIZE: {
201 | RECT rect = GetClientArea();
202 | if (child_content_ != nullptr) {
203 | // Size and position the child window.
204 | MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left,
205 | rect.bottom - rect.top, TRUE);
206 | }
207 | return 0;
208 | }
209 |
210 | case WM_ACTIVATE:
211 | if (child_content_ != nullptr) {
212 | SetFocus(child_content_);
213 | }
214 | return 0;
215 |
216 | case WM_DWMCOLORIZATIONCOLORCHANGED:
217 | UpdateTheme(hwnd);
218 | return 0;
219 | }
220 |
221 | return DefWindowProc(window_handle_, message, wparam, lparam);
222 | }
223 |
224 | void Win32Window::Destroy() {
225 | OnDestroy();
226 |
227 | if (window_handle_) {
228 | DestroyWindow(window_handle_);
229 | window_handle_ = nullptr;
230 | }
231 | if (g_active_window_count == 0) {
232 | WindowClassRegistrar::GetInstance()->UnregisterWindowClass();
233 | }
234 | }
235 |
236 | Win32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept {
237 | return reinterpret_cast(
238 | GetWindowLongPtr(window, GWLP_USERDATA));
239 | }
240 |
241 | void Win32Window::SetChildContent(HWND content) {
242 | child_content_ = content;
243 | SetParent(content, window_handle_);
244 | RECT frame = GetClientArea();
245 |
246 | MoveWindow(content, frame.left, frame.top, frame.right - frame.left,
247 | frame.bottom - frame.top, true);
248 |
249 | SetFocus(child_content_);
250 | }
251 |
252 | RECT Win32Window::GetClientArea() {
253 | RECT frame;
254 | GetClientRect(window_handle_, &frame);
255 | return frame;
256 | }
257 |
258 | HWND Win32Window::GetHandle() {
259 | return window_handle_;
260 | }
261 |
262 | void Win32Window::SetQuitOnClose(bool quit_on_close) {
263 | quit_on_close_ = quit_on_close;
264 | }
265 |
266 | bool Win32Window::OnCreate() {
267 | // No-op; provided for subclasses.
268 | return true;
269 | }
270 |
271 | void Win32Window::OnDestroy() {
272 | // No-op; provided for subclasses.
273 | }
274 |
275 | void Win32Window::UpdateTheme(HWND const window) {
276 | DWORD light_mode;
277 | DWORD light_mode_size = sizeof(light_mode);
278 | LSTATUS result = RegGetValue(HKEY_CURRENT_USER, kGetPreferredBrightnessRegKey,
279 | kGetPreferredBrightnessRegValue,
280 | RRF_RT_REG_DWORD, nullptr, &light_mode,
281 | &light_mode_size);
282 |
283 | if (result == ERROR_SUCCESS) {
284 | BOOL enable_dark_mode = light_mode == 0;
285 | DwmSetWindowAttribute(window, DWMWA_USE_IMMERSIVE_DARK_MODE,
286 | &enable_dark_mode, sizeof(enable_dark_mode));
287 | }
288 | }
289 |
--------------------------------------------------------------------------------
/ncmdump_mobile/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | archive:
5 | dependency: transitive
6 | description:
7 | name: archive
8 | sha256: "2fde1607386ab523f7a36bb3e7edb43bd58e6edaf2ffb29d8a6d578b297fdbbd"
9 | url: "https://pub.flutter-io.cn"
10 | source: hosted
11 | version: "4.0.7"
12 | args:
13 | dependency: transitive
14 | description:
15 | name: args
16 | sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04
17 | url: "https://pub.flutter-io.cn"
18 | source: hosted
19 | version: "2.7.0"
20 | async:
21 | dependency: transitive
22 | description:
23 | name: async
24 | sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb"
25 | url: "https://pub.flutter-io.cn"
26 | source: hosted
27 | version: "2.13.0"
28 | boolean_selector:
29 | dependency: transitive
30 | description:
31 | name: boolean_selector
32 | sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea"
33 | url: "https://pub.flutter-io.cn"
34 | source: hosted
35 | version: "2.1.2"
36 | characters:
37 | dependency: transitive
38 | description:
39 | name: characters
40 | sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803
41 | url: "https://pub.flutter-io.cn"
42 | source: hosted
43 | version: "1.4.0"
44 | checked_yaml:
45 | dependency: transitive
46 | description:
47 | name: checked_yaml
48 | sha256: "959525d3162f249993882720d52b7e0c833978df229be20702b33d48d91de70f"
49 | url: "https://pub.flutter-io.cn"
50 | source: hosted
51 | version: "2.0.4"
52 | cli_util:
53 | dependency: transitive
54 | description:
55 | name: cli_util
56 | sha256: ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c
57 | url: "https://pub.flutter-io.cn"
58 | source: hosted
59 | version: "0.4.2"
60 | clock:
61 | dependency: transitive
62 | description:
63 | name: clock
64 | sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b
65 | url: "https://pub.flutter-io.cn"
66 | source: hosted
67 | version: "1.1.2"
68 | collection:
69 | dependency: transitive
70 | description:
71 | name: collection
72 | sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
73 | url: "https://pub.flutter-io.cn"
74 | source: hosted
75 | version: "1.19.1"
76 | cross_file:
77 | dependency: transitive
78 | description:
79 | name: cross_file
80 | sha256: "701dcfc06da0882883a2657c445103380e53e647060ad8d9dfb710c100996608"
81 | url: "https://pub.flutter-io.cn"
82 | source: hosted
83 | version: "0.3.5+1"
84 | crypto:
85 | dependency: transitive
86 | description:
87 | name: crypto
88 | sha256: c8ea0233063ba03258fbcf2ca4d6dadfefe14f02fab57702265467a19f27fadf
89 | url: "https://pub.flutter-io.cn"
90 | source: hosted
91 | version: "3.0.7"
92 | dbus:
93 | dependency: transitive
94 | description:
95 | name: dbus
96 | sha256: "79e0c23480ff85dc68de79e2cd6334add97e48f7f4865d17686dd6ea81a47e8c"
97 | url: "https://pub.flutter-io.cn"
98 | source: hosted
99 | version: "0.7.11"
100 | device_info_plus:
101 | dependency: "direct main"
102 | description:
103 | name: device_info_plus
104 | sha256: "4df8babf73058181227e18b08e6ea3520cf5fc5d796888d33b7cb0f33f984b7c"
105 | url: "https://pub.flutter-io.cn"
106 | source: hosted
107 | version: "12.3.0"
108 | device_info_plus_platform_interface:
109 | dependency: transitive
110 | description:
111 | name: device_info_plus_platform_interface
112 | sha256: e1ea89119e34903dca74b883d0dd78eb762814f97fb6c76f35e9ff74d261a18f
113 | url: "https://pub.flutter-io.cn"
114 | source: hosted
115 | version: "7.0.3"
116 | fake_async:
117 | dependency: transitive
118 | description:
119 | name: fake_async
120 | sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44"
121 | url: "https://pub.flutter-io.cn"
122 | source: hosted
123 | version: "1.3.3"
124 | ffi:
125 | dependency: "direct main"
126 | description:
127 | name: ffi
128 | sha256: "289279317b4b16eb2bb7e271abccd4bf84ec9bdcbe999e278a94b804f5630418"
129 | url: "https://pub.flutter-io.cn"
130 | source: hosted
131 | version: "2.1.4"
132 | file:
133 | dependency: transitive
134 | description:
135 | name: file
136 | sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4
137 | url: "https://pub.flutter-io.cn"
138 | source: hosted
139 | version: "7.0.1"
140 | file_picker:
141 | dependency: "direct main"
142 | description:
143 | name: file_picker
144 | sha256: "7872545770c277236fd32b022767576c562ba28366204ff1a5628853cf8f2200"
145 | url: "https://pub.flutter-io.cn"
146 | source: hosted
147 | version: "10.3.7"
148 | flutter:
149 | dependency: "direct main"
150 | description: flutter
151 | source: sdk
152 | version: "0.0.0"
153 | flutter_launcher_icons:
154 | dependency: "direct dev"
155 | description:
156 | name: flutter_launcher_icons
157 | sha256: "10f13781741a2e3972126fae08393d3c4e01fa4cd7473326b94b72cf594195e7"
158 | url: "https://pub.flutter-io.cn"
159 | source: hosted
160 | version: "0.14.4"
161 | flutter_lints:
162 | dependency: "direct dev"
163 | description:
164 | name: flutter_lints
165 | sha256: "3105dc8492f6183fb076ccf1f351ac3d60564bff92e20bfc4af9cc1651f4e7e1"
166 | url: "https://pub.flutter-io.cn"
167 | source: hosted
168 | version: "6.0.0"
169 | flutter_localizations:
170 | dependency: "direct main"
171 | description: flutter
172 | source: sdk
173 | version: "0.0.0"
174 | flutter_plugin_android_lifecycle:
175 | dependency: transitive
176 | description:
177 | name: flutter_plugin_android_lifecycle
178 | sha256: ee8068e0e1cd16c4a82714119918efdeed33b3ba7772c54b5d094ab53f9b7fd1
179 | url: "https://pub.flutter-io.cn"
180 | source: hosted
181 | version: "2.0.33"
182 | flutter_test:
183 | dependency: "direct dev"
184 | description: flutter
185 | source: sdk
186 | version: "0.0.0"
187 | flutter_web_plugins:
188 | dependency: transitive
189 | description: flutter
190 | source: sdk
191 | version: "0.0.0"
192 | image:
193 | dependency: transitive
194 | description:
195 | name: image
196 | sha256: "4e973fcf4caae1a4be2fa0a13157aa38a8f9cb049db6529aa00b4d71abc4d928"
197 | url: "https://pub.flutter-io.cn"
198 | source: hosted
199 | version: "4.5.4"
200 | intl:
201 | dependency: transitive
202 | description:
203 | name: intl
204 | sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5"
205 | url: "https://pub.flutter-io.cn"
206 | source: hosted
207 | version: "0.20.2"
208 | json_annotation:
209 | dependency: transitive
210 | description:
211 | name: json_annotation
212 | sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1"
213 | url: "https://pub.flutter-io.cn"
214 | source: hosted
215 | version: "4.9.0"
216 | leak_tracker:
217 | dependency: transitive
218 | description:
219 | name: leak_tracker
220 | sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de"
221 | url: "https://pub.flutter-io.cn"
222 | source: hosted
223 | version: "11.0.2"
224 | leak_tracker_flutter_testing:
225 | dependency: transitive
226 | description:
227 | name: leak_tracker_flutter_testing
228 | sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1"
229 | url: "https://pub.flutter-io.cn"
230 | source: hosted
231 | version: "3.0.10"
232 | leak_tracker_testing:
233 | dependency: transitive
234 | description:
235 | name: leak_tracker_testing
236 | sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1"
237 | url: "https://pub.flutter-io.cn"
238 | source: hosted
239 | version: "3.0.2"
240 | lints:
241 | dependency: transitive
242 | description:
243 | name: lints
244 | sha256: a5e2b223cb7c9c8efdc663ef484fdd95bb243bff242ef5b13e26883547fce9a0
245 | url: "https://pub.flutter-io.cn"
246 | source: hosted
247 | version: "6.0.0"
248 | matcher:
249 | dependency: transitive
250 | description:
251 | name: matcher
252 | sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2
253 | url: "https://pub.flutter-io.cn"
254 | source: hosted
255 | version: "0.12.17"
256 | material_color_utilities:
257 | dependency: transitive
258 | description:
259 | name: material_color_utilities
260 | sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
261 | url: "https://pub.flutter-io.cn"
262 | source: hosted
263 | version: "0.11.1"
264 | meta:
265 | dependency: transitive
266 | description:
267 | name: meta
268 | sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394"
269 | url: "https://pub.flutter-io.cn"
270 | source: hosted
271 | version: "1.17.0"
272 | nested:
273 | dependency: transitive
274 | description:
275 | name: nested
276 | sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20"
277 | url: "https://pub.flutter-io.cn"
278 | source: hosted
279 | version: "1.0.0"
280 | path:
281 | dependency: transitive
282 | description:
283 | name: path
284 | sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"
285 | url: "https://pub.flutter-io.cn"
286 | source: hosted
287 | version: "1.9.1"
288 | path_provider:
289 | dependency: "direct main"
290 | description:
291 | name: path_provider
292 | sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd"
293 | url: "https://pub.flutter-io.cn"
294 | source: hosted
295 | version: "2.1.5"
296 | path_provider_android:
297 | dependency: transitive
298 | description:
299 | name: path_provider_android
300 | sha256: f2c65e21139ce2c3dad46922be8272bb5963516045659e71bb16e151c93b580e
301 | url: "https://pub.flutter-io.cn"
302 | source: hosted
303 | version: "2.2.22"
304 | path_provider_foundation:
305 | dependency: transitive
306 | description:
307 | name: path_provider_foundation
308 | sha256: "6d13aece7b3f5c5a9731eaf553ff9dcbc2eff41087fd2df587fd0fed9a3eb0c4"
309 | url: "https://pub.flutter-io.cn"
310 | source: hosted
311 | version: "2.5.1"
312 | path_provider_linux:
313 | dependency: transitive
314 | description:
315 | name: path_provider_linux
316 | sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279
317 | url: "https://pub.flutter-io.cn"
318 | source: hosted
319 | version: "2.2.1"
320 | path_provider_platform_interface:
321 | dependency: transitive
322 | description:
323 | name: path_provider_platform_interface
324 | sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334"
325 | url: "https://pub.flutter-io.cn"
326 | source: hosted
327 | version: "2.1.2"
328 | path_provider_windows:
329 | dependency: transitive
330 | description:
331 | name: path_provider_windows
332 | sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7
333 | url: "https://pub.flutter-io.cn"
334 | source: hosted
335 | version: "2.3.0"
336 | permission_handler:
337 | dependency: "direct main"
338 | description:
339 | name: permission_handler
340 | sha256: bc917da36261b00137bbc8896bf1482169cd76f866282368948f032c8c1caae1
341 | url: "https://pub.flutter-io.cn"
342 | source: hosted
343 | version: "12.0.1"
344 | permission_handler_android:
345 | dependency: transitive
346 | description:
347 | name: permission_handler_android
348 | sha256: "1e3bc410ca1bf84662104b100eb126e066cb55791b7451307f9708d4007350e6"
349 | url: "https://pub.flutter-io.cn"
350 | source: hosted
351 | version: "13.0.1"
352 | permission_handler_apple:
353 | dependency: transitive
354 | description:
355 | name: permission_handler_apple
356 | sha256: f000131e755c54cf4d84a5d8bd6e4149e262cc31c5a8b1d698de1ac85fa41023
357 | url: "https://pub.flutter-io.cn"
358 | source: hosted
359 | version: "9.4.7"
360 | permission_handler_html:
361 | dependency: transitive
362 | description:
363 | name: permission_handler_html
364 | sha256: "38f000e83355abb3392140f6bc3030660cfaef189e1f87824facb76300b4ff24"
365 | url: "https://pub.flutter-io.cn"
366 | source: hosted
367 | version: "0.1.3+5"
368 | permission_handler_platform_interface:
369 | dependency: transitive
370 | description:
371 | name: permission_handler_platform_interface
372 | sha256: eb99b295153abce5d683cac8c02e22faab63e50679b937fa1bf67d58bb282878
373 | url: "https://pub.flutter-io.cn"
374 | source: hosted
375 | version: "4.3.0"
376 | permission_handler_windows:
377 | dependency: transitive
378 | description:
379 | name: permission_handler_windows
380 | sha256: "1a790728016f79a41216d88672dbc5df30e686e811ad4e698bfc51f76ad91f1e"
381 | url: "https://pub.flutter-io.cn"
382 | source: hosted
383 | version: "0.2.1"
384 | petitparser:
385 | dependency: transitive
386 | description:
387 | name: petitparser
388 | sha256: "1a97266a94f7350d30ae522c0af07890c70b8e62c71e8e3920d1db4d23c057d1"
389 | url: "https://pub.flutter-io.cn"
390 | source: hosted
391 | version: "7.0.1"
392 | platform:
393 | dependency: transitive
394 | description:
395 | name: platform
396 | sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984"
397 | url: "https://pub.flutter-io.cn"
398 | source: hosted
399 | version: "3.1.6"
400 | plugin_platform_interface:
401 | dependency: transitive
402 | description:
403 | name: plugin_platform_interface
404 | sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02"
405 | url: "https://pub.flutter-io.cn"
406 | source: hosted
407 | version: "2.1.8"
408 | posix:
409 | dependency: transitive
410 | description:
411 | name: posix
412 | sha256: "6323a5b0fa688b6a010df4905a56b00181479e6d10534cecfecede2aa55add61"
413 | url: "https://pub.flutter-io.cn"
414 | source: hosted
415 | version: "6.0.3"
416 | provider:
417 | dependency: "direct main"
418 | description:
419 | name: provider
420 | sha256: "4e82183fa20e5ca25703ead7e05de9e4cceed1fbd1eadc1ac3cb6f565a09f272"
421 | url: "https://pub.flutter-io.cn"
422 | source: hosted
423 | version: "6.1.5+1"
424 | shared_preferences:
425 | dependency: "direct main"
426 | description:
427 | name: shared_preferences
428 | sha256: "6e8bf70b7fef813df4e9a36f658ac46d107db4b4cfe1048b477d4e453a8159f5"
429 | url: "https://pub.flutter-io.cn"
430 | source: hosted
431 | version: "2.5.3"
432 | shared_preferences_android:
433 | dependency: transitive
434 | description:
435 | name: shared_preferences_android
436 | sha256: "46a46fd64659eff15f4638bbe19de43f9483f0e0bf024a9fb6b3582064bacc7b"
437 | url: "https://pub.flutter-io.cn"
438 | source: hosted
439 | version: "2.4.17"
440 | shared_preferences_foundation:
441 | dependency: transitive
442 | description:
443 | name: shared_preferences_foundation
444 | sha256: "4e7eaffc2b17ba398759f1151415869a34771ba11ebbccd1b0145472a619a64f"
445 | url: "https://pub.flutter-io.cn"
446 | source: hosted
447 | version: "2.5.6"
448 | shared_preferences_linux:
449 | dependency: transitive
450 | description:
451 | name: shared_preferences_linux
452 | sha256: "580abfd40f415611503cae30adf626e6656dfb2f0cee8f465ece7b6defb40f2f"
453 | url: "https://pub.flutter-io.cn"
454 | source: hosted
455 | version: "2.4.1"
456 | shared_preferences_platform_interface:
457 | dependency: transitive
458 | description:
459 | name: shared_preferences_platform_interface
460 | sha256: "57cbf196c486bc2cf1f02b85784932c6094376284b3ad5779d1b1c6c6a816b80"
461 | url: "https://pub.flutter-io.cn"
462 | source: hosted
463 | version: "2.4.1"
464 | shared_preferences_web:
465 | dependency: transitive
466 | description:
467 | name: shared_preferences_web
468 | sha256: c49bd060261c9a3f0ff445892695d6212ff603ef3115edbb448509d407600019
469 | url: "https://pub.flutter-io.cn"
470 | source: hosted
471 | version: "2.4.3"
472 | shared_preferences_windows:
473 | dependency: transitive
474 | description:
475 | name: shared_preferences_windows
476 | sha256: "94ef0f72b2d71bc3e700e025db3710911bd51a71cefb65cc609dd0d9a982e3c1"
477 | url: "https://pub.flutter-io.cn"
478 | source: hosted
479 | version: "2.4.1"
480 | sky_engine:
481 | dependency: transitive
482 | description: flutter
483 | source: sdk
484 | version: "0.0.0"
485 | source_span:
486 | dependency: transitive
487 | description:
488 | name: source_span
489 | sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c"
490 | url: "https://pub.flutter-io.cn"
491 | source: hosted
492 | version: "1.10.1"
493 | stack_trace:
494 | dependency: transitive
495 | description:
496 | name: stack_trace
497 | sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1"
498 | url: "https://pub.flutter-io.cn"
499 | source: hosted
500 | version: "1.12.1"
501 | stream_channel:
502 | dependency: transitive
503 | description:
504 | name: stream_channel
505 | sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d"
506 | url: "https://pub.flutter-io.cn"
507 | source: hosted
508 | version: "2.1.4"
509 | string_scanner:
510 | dependency: transitive
511 | description:
512 | name: string_scanner
513 | sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43"
514 | url: "https://pub.flutter-io.cn"
515 | source: hosted
516 | version: "1.4.1"
517 | term_glyph:
518 | dependency: transitive
519 | description:
520 | name: term_glyph
521 | sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e"
522 | url: "https://pub.flutter-io.cn"
523 | source: hosted
524 | version: "1.2.2"
525 | test_api:
526 | dependency: transitive
527 | description:
528 | name: test_api
529 | sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55
530 | url: "https://pub.flutter-io.cn"
531 | source: hosted
532 | version: "0.7.7"
533 | typed_data:
534 | dependency: transitive
535 | description:
536 | name: typed_data
537 | sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006
538 | url: "https://pub.flutter-io.cn"
539 | source: hosted
540 | version: "1.4.0"
541 | vector_math:
542 | dependency: transitive
543 | description:
544 | name: vector_math
545 | sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
546 | url: "https://pub.flutter-io.cn"
547 | source: hosted
548 | version: "2.2.0"
549 | vm_service:
550 | dependency: transitive
551 | description:
552 | name: vm_service
553 | sha256: "45caa6c5917fa127b5dbcfbd1fa60b14e583afdc08bfc96dda38886ca252eb60"
554 | url: "https://pub.flutter-io.cn"
555 | source: hosted
556 | version: "15.0.2"
557 | web:
558 | dependency: transitive
559 | description:
560 | name: web
561 | sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a"
562 | url: "https://pub.flutter-io.cn"
563 | source: hosted
564 | version: "1.1.1"
565 | win32:
566 | dependency: transitive
567 | description:
568 | name: win32
569 | sha256: d7cb55e04cd34096cd3a79b3330245f54cb96a370a1c27adb3c84b917de8b08e
570 | url: "https://pub.flutter-io.cn"
571 | source: hosted
572 | version: "5.15.0"
573 | win32_registry:
574 | dependency: transitive
575 | description:
576 | name: win32_registry
577 | sha256: "6f1b564492d0147b330dd794fee8f512cec4977957f310f9951b5f9d83618dae"
578 | url: "https://pub.flutter-io.cn"
579 | source: hosted
580 | version: "2.1.0"
581 | xdg_directories:
582 | dependency: transitive
583 | description:
584 | name: xdg_directories
585 | sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15"
586 | url: "https://pub.flutter-io.cn"
587 | source: hosted
588 | version: "1.1.0"
589 | xml:
590 | dependency: transitive
591 | description:
592 | name: xml
593 | sha256: "971043b3a0d3da28727e40ed3e0b5d18b742fa5a68665cca88e74b7876d5e025"
594 | url: "https://pub.flutter-io.cn"
595 | source: hosted
596 | version: "6.6.1"
597 | yaml:
598 | dependency: transitive
599 | description:
600 | name: yaml
601 | sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce
602 | url: "https://pub.flutter-io.cn"
603 | source: hosted
604 | version: "3.1.3"
605 | sdks:
606 | dart: ">=3.9.0 <4.0.0"
607 | flutter: ">=3.35.0"
608 |
--------------------------------------------------------------------------------
/ncmdump_mobile/macos/Runner/Base.lproj/MainMenu.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
333 |
334 |
335 |
336 |
337 |
338 |
339 |
340 |
341 |
342 |
343 |
344 |
--------------------------------------------------------------------------------