-
Notifications
You must be signed in to change notification settings - Fork 162
feat: swift package manager for dynamic_color macOS plugin #634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
EchoEllet
wants to merge
3
commits into
material-foundation:main
Choose a base branch
from
EchoEllet:feat/swift-package-manager
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,16 @@ | ||
PODS: | ||
- dynamic_color (0.0.2): | ||
- FlutterMacOS | ||
- FlutterMacOS (1.0.0) | ||
|
||
DEPENDENCIES: | ||
- dynamic_color (from `Flutter/ephemeral/.symlinks/plugins/dynamic_color/macos`) | ||
- FlutterMacOS (from `Flutter/ephemeral`) | ||
|
||
EXTERNAL SOURCES: | ||
dynamic_color: | ||
:path: Flutter/ephemeral/.symlinks/plugins/dynamic_color/macos | ||
FlutterMacOS: | ||
:path: Flutter/ephemeral | ||
|
||
SPEC CHECKSUMS: | ||
dynamic_color: 394d6a888650f8534e029b27d2f8bc5c64e44008 | ||
FlutterMacOS: 85f90bfb3f1703249cf1539e4dfbff31e8584698 | ||
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 | ||
|
||
PODFILE CHECKSUM: a884f6dd3f7494f3892ee6c81feea3a3abbf9153 | ||
PODFILE CHECKSUM: 353c8bcc5d5b0994e508d035b5431cfe18c1dea7 | ||
|
||
COCOAPODS: 1.11.3 | ||
COCOAPODS: 1.16.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 19 additions & 1 deletion
20
packages/dynamic_color/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
import Cocoa | ||
import FlutterMacOS | ||
|
||
@NSApplicationMain | ||
@main | ||
class AppDelegate: FlutterAppDelegate { | ||
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { | ||
return true | ||
} | ||
|
||
override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool { | ||
return true | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
Pod::Spec.new do |s| | ||
s.name = 'dynamic_color' | ||
s.authors = 'Material Flutter team + Ebrahim Byagowi' | ||
s.license = 'BSD-3-Clause' | ||
s.license = { :type => 'BSD-3-Clause', :file => '../LICENSE' } | ||
s.homepage = 'https://github.com/material-foundation/flutter-packages/tree/main/packages/dynamic_color' | ||
s.summary = 'Retrieves accent color' | ||
s.version = '0.0.2' | ||
s.source = { :path => '.' } | ||
s.source_files = 'Classes/**/*' | ||
s.source = { :http => 'https://github.com/material-foundation/flutter-packages/tree/main/packages/dynamic_color' } | ||
s.source_files = 'dynamic_color/Sources/dynamic_color/**/*.swift' | ||
s.dependency 'FlutterMacOS' | ||
s.platform = :osx, '10.11' | ||
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } | ||
s.swift_version = '5.0' | ||
|
||
s.resource_bundles = {'dynamic_color_macos_privacy' => ['dynamic_color/Sources/dynamic_color/Resources/PrivacyInfo.xcprivacy']} | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// swift-tools-version: 5.9 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "dynamic_color", | ||
platforms: [ | ||
.macOS("10.14") | ||
EchoEllet marked this conversation as resolved.
Show resolved
Hide resolved
|
||
], | ||
products: [ | ||
.library(name: "dynamic-color", targets: ["dynamic_color"]) | ||
], | ||
dependencies: [], | ||
targets: [ | ||
.target( | ||
name: "dynamic_color", | ||
dependencies: [], | ||
resources: [ | ||
.process("Resources"), | ||
] | ||
) | ||
] | ||
) |
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
...s/dynamic_color/macos/dynamic_color/Sources/dynamic_color/Resources/PrivacyInfo.xcprivacy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>NSPrivacyTrackingDomains</key> | ||
<array/> | ||
<key>NSPrivacyCollectedDataTypes</key> | ||
<array/> | ||
<key>NSPrivacyTracking</key> | ||
<false/> | ||
</dict> | ||
</plist> | ||
EchoEllet marked this conversation as resolved.
Show resolved
Hide resolved
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.