mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-11-29 09:11:17 +01:00
Forked the upstream package (https://github.com/Swatimishra8/multi_window_native) into packages/multi_window_native and pinned pubspec to the path dep. Key macOS change in the vendored plugin's createNewWindow: - NSPanel instead of NSWindow with styleMask = [.titled, .closable, .resizable, .nonactivatingPanel, .utilityWindow]. - isFloatingPanel = true, becomesKeyOnlyIfNeeded = true, hidesOnDeactivate = false. - level = .screenSaver (highest standard user-space level). - collectionBehavior = [.canJoinAllSpaces, .fullScreenAuxiliary, .stationary, .ignoresCycle]. - Initial size dropped from 1440x900 / minSize 800x900 to 220x140 / minSize 160x80 (closer to what the trainer overlay needs). With those properties set at construction time, the sub-window sits above fullscreened trainer apps from the moment it's shown — no more retry loop chasing the window after the fact. MainFlutterWindow.swift's onEngineCreatedCallback no longer needs the elevation retry; it just calls RegisterGeneratedPlugins on the new engine and leaves the window-level work to the plugin. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
31 lines
1.2 KiB
Ruby
31 lines
1.2 KiB
Ruby
#
|
|
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
|
|
# Run `pod lib lint multi_window_native.podspec` to validate before publishing.
|
|
#
|
|
Pod::Spec.new do |s|
|
|
s.name = 'multi_window_native'
|
|
s.version = '0.0.1'
|
|
s.summary = 'A new Flutter plugin project.'
|
|
s.description = <<-DESC
|
|
A new Flutter plugin project.
|
|
DESC
|
|
s.homepage = 'http://example.com'
|
|
s.license = { :file => '../LICENSE' }
|
|
s.author = { 'Your Company' => 'email@example.com' }
|
|
|
|
s.source = { :path => '.' }
|
|
s.source_files = 'Classes/**/*'
|
|
|
|
# If your plugin requires a privacy manifest, for example if it collects user
|
|
# data, update the PrivacyInfo.xcprivacy file to describe your plugin's
|
|
# privacy impact, and then uncomment this line. For more information,
|
|
# see https://developer.apple.com/documentation/bundleresources/privacy_manifest_files
|
|
# s.resource_bundles = {'multi_window_native_privacy' => ['Resources/PrivacyInfo.xcprivacy']}
|
|
|
|
s.dependency 'FlutterMacOS'
|
|
|
|
s.platform = :osx, '10.11'
|
|
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
|
|
s.swift_version = '5.0'
|
|
end
|