Compare commits
4 Commits
v100.0.0
...
b27b223a5e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b27b223a5e | ||
|
|
36949981b4 | ||
|
|
8ce5adc766 | ||
|
|
a09e08763f |
@@ -24,7 +24,7 @@ class GIFCollectionViewCell: UICollectionViewCell {
|
|||||||
return label
|
return label
|
||||||
}()
|
}()
|
||||||
|
|
||||||
private var currentTask: URLSessionDataTask?
|
private var gifData: Data?
|
||||||
|
|
||||||
override init(frame: CGRect) {
|
override init(frame: CGRect) {
|
||||||
super.init(frame: frame)
|
super.init(frame: frame)
|
||||||
@@ -38,8 +38,7 @@ class GIFCollectionViewCell: UICollectionViewCell {
|
|||||||
|
|
||||||
override func prepareForReuse() {
|
override func prepareForReuse() {
|
||||||
super.prepareForReuse()
|
super.prepareForReuse()
|
||||||
currentTask?.cancel()
|
gifData = nil
|
||||||
currentTask = nil
|
|
||||||
gifPlayerView.stopAnimating()
|
gifPlayerView.stopAnimating()
|
||||||
placeholderLabel.isHidden = false
|
placeholderLabel.isHidden = false
|
||||||
loadingIndicator.stopAnimating()
|
loadingIndicator.stopAnimating()
|
||||||
@@ -72,36 +71,32 @@ class GIFCollectionViewCell: UICollectionViewCell {
|
|||||||
contentView.layer.borderColor = UIColor.systemGray4.cgColor
|
contentView.layer.borderColor = UIColor.systemGray4.cgColor
|
||||||
}
|
}
|
||||||
|
|
||||||
func configure(with urlString: String) {
|
func configure(with gif: GIF) {
|
||||||
// Cancel any existing task
|
|
||||||
currentTask?.cancel()
|
|
||||||
|
|
||||||
// Reset UI
|
// Reset UI
|
||||||
gifPlayerView.stopAnimating()
|
gifPlayerView.stopAnimating()
|
||||||
placeholderLabel.isHidden = false
|
placeholderLabel.isHidden = false
|
||||||
loadingIndicator.startAnimating()
|
loadingIndicator.startAnimating()
|
||||||
|
|
||||||
guard let url = URL(string: urlString) else {
|
// Load the GIF data from local storage
|
||||||
loadingIndicator.stopAnimating()
|
DispatchQueue.global(qos: .userInitiated).async { [weak self] in
|
||||||
return
|
if let gifData = GIFStorageService.shared.getGIFData(for: gif) {
|
||||||
}
|
|
||||||
|
|
||||||
// Load the GIF
|
|
||||||
currentTask = URLSession.shared.dataTask(with: url) { [weak self] data, _, error in
|
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
guard let self = self else { return }
|
guard let self = self else { return }
|
||||||
self.loadingIndicator.stopAnimating()
|
self.loadingIndicator.stopAnimating()
|
||||||
|
|
||||||
if let data = data, error == nil {
|
self.gifData = gifData
|
||||||
self.gifPlayerView.loadGIF(from: data)
|
self.gifPlayerView.loadGIF(from: gifData)
|
||||||
self.gifPlayerView.startAnimating()
|
self.gifPlayerView.startAnimating()
|
||||||
self.placeholderLabel.isHidden = true
|
self.placeholderLabel.isHidden = true
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
|
DispatchQueue.main.async {
|
||||||
|
guard let self = self else { return }
|
||||||
|
self.loadingIndicator.stopAnimating()
|
||||||
self.placeholderLabel.isHidden = false
|
self.placeholderLabel.isHidden = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
currentTask?.resume()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
<?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>com.apple.security.application-groups</key>
|
||||||
|
<array>
|
||||||
|
<string>group.com.abunchofknowitalls.gif</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
@@ -5,8 +5,8 @@
|
|||||||
// Created by Joshua Higgins on 6/2/25.
|
// Created by Joshua Higgins on 6/2/25.
|
||||||
//
|
//
|
||||||
|
|
||||||
import UIKit
|
|
||||||
import Messages
|
import Messages
|
||||||
|
import UIKit
|
||||||
|
|
||||||
class MessagesViewController: MSMessagesAppViewController {
|
class MessagesViewController: MSMessagesAppViewController {
|
||||||
|
|
||||||
@@ -15,6 +15,12 @@ class MessagesViewController: MSMessagesAppViewController {
|
|||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
setupChildViewController()
|
setupChildViewController()
|
||||||
|
|
||||||
|
// Register for notifications when app becomes active
|
||||||
|
NotificationCenter.default.addObserver(self,
|
||||||
|
selector: #selector(appDidBecomeActive),
|
||||||
|
name: UIApplication.didBecomeActiveNotification,
|
||||||
|
object: nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
private func setupChildViewController() {
|
private func setupChildViewController() {
|
||||||
@@ -33,25 +39,21 @@ class MessagesViewController: MSMessagesAppViewController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func sendGIF(_ gif: GIF) {
|
private func sendGIF(_ gif: GIF) {
|
||||||
guard let conversation = activeConversation,
|
guard let conversation = activeConversation else { return }
|
||||||
let gifURL = gif.url else { return }
|
|
||||||
|
|
||||||
// Show a loading indicator
|
// Show a loading indicator
|
||||||
let loadingAlert = UIAlertController(title: "Preparing GIF", message: "Please wait...", preferredStyle: .alert)
|
let loadingAlert = UIAlertController(title: "Preparing GIF", message: "Please wait...", preferredStyle: .alert)
|
||||||
present(loadingAlert, animated: true)
|
present(loadingAlert, animated: true)
|
||||||
|
|
||||||
// Download the GIF data
|
// Load the GIF data from local storage
|
||||||
GIFDownloadService.shared.downloadGIF(from: gif.urlString) { data, error in
|
DispatchQueue.global(qos: .userInitiated).async {
|
||||||
|
let gifData = GIFStorageService.shared.getGIFData(for: gif)
|
||||||
|
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
// Dismiss the loading indicator
|
// Dismiss the loading indicator
|
||||||
self.dismiss(animated: true) {
|
self.dismiss(animated: true) {
|
||||||
if let error = error {
|
guard let gifData = gifData else {
|
||||||
self.showErrorAlert(error: error)
|
self.showErrorAlert(message: "Failed to load GIF from storage")
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
guard let gifData = data else {
|
|
||||||
self.showErrorAlert(message: "Failed to download GIF")
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -82,7 +84,8 @@ class MessagesViewController: MSMessagesAppViewController {
|
|||||||
|
|
||||||
private func showErrorAlert(error: Error? = nil, message: String? = nil) {
|
private func showErrorAlert(error: Error? = nil, message: String? = nil) {
|
||||||
let errorMessage = message ?? error?.localizedDescription ?? "An unknown error occurred"
|
let errorMessage = message ?? error?.localizedDescription ?? "An unknown error occurred"
|
||||||
let alertController = UIAlertController(title: "Error", message: errorMessage, preferredStyle: .alert)
|
let alertController = UIAlertController(
|
||||||
|
title: "Error", message: errorMessage, preferredStyle: .alert)
|
||||||
alertController.addAction(UIAlertAction(title: "OK", style: .default))
|
alertController.addAction(UIAlertAction(title: "OK", style: .default))
|
||||||
present(alertController, animated: true)
|
present(alertController, animated: true)
|
||||||
}
|
}
|
||||||
@@ -93,51 +96,25 @@ class MessagesViewController: MSMessagesAppViewController {
|
|||||||
// Called when the extension is about to move from the inactive to active state.
|
// Called when the extension is about to move from the inactive to active state.
|
||||||
// This will happen when the extension is about to present UI.
|
// This will happen when the extension is about to present UI.
|
||||||
|
|
||||||
|
// Check for GIFs shared from the Share Extension
|
||||||
|
GIFStorageService.shared.checkForSharedGIFs()
|
||||||
|
|
||||||
// Refresh GIFs list when becoming active
|
// Refresh GIFs list when becoming active
|
||||||
gifCollectionVC?.viewWillAppear(true)
|
gifCollectionVC?.viewWillAppear(true)
|
||||||
|
|
||||||
// We don't need to check for custom message URLs anymore since
|
|
||||||
// we're sending standard GIF attachments
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override func didResignActive(with conversation: MSConversation) {
|
override func didResignActive(with conversation: MSConversation) {
|
||||||
// Called when the extension is about to move from the active to inactive state.
|
// No action needed when the extension becomes inactive
|
||||||
// This will happen when the user dismisses the extension, changes to a different
|
|
||||||
// conversation or quits Messages.
|
|
||||||
|
|
||||||
// Use this method to release shared resources, save user data, invalidate timers,
|
|
||||||
// and store enough state information to restore your extension to its current state
|
|
||||||
// in case it is terminated later.
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override func didReceive(_ message: MSMessage, conversation: MSConversation) {
|
@objc private func appDidBecomeActive() {
|
||||||
// Called when a message arrives that was generated by another instance of this
|
// Check for GIFs shared through the Share Extension
|
||||||
// extension on a remote device.
|
GIFStorageService.shared.checkForSharedGIFs()
|
||||||
|
gifCollectionVC?.loadGIFs()
|
||||||
// Since we're now sending GIFs as standard attachments rather than
|
|
||||||
// custom messages, we don't need special handling for received messages
|
|
||||||
}
|
}
|
||||||
|
override func didReceive(_ message: MSMessage, conversation: MSConversation) {}
|
||||||
override func didStartSending(_ message: MSMessage, conversation: MSConversation) {
|
override func didStartSending(_ message: MSMessage, conversation: MSConversation) {}
|
||||||
// Called when the user taps the send button.
|
override func didCancelSending(_ message: MSMessage, conversation: MSConversation) {}
|
||||||
}
|
override func willTransition(to presentationStyle: MSMessagesAppPresentationStyle) {}
|
||||||
|
override func didTransition(to presentationStyle: MSMessagesAppPresentationStyle) {}
|
||||||
override func didCancelSending(_ message: MSMessage, conversation: MSConversation) {
|
|
||||||
// Called when the user deletes the message without sending it.
|
|
||||||
|
|
||||||
// Use this to clean up state related to the deleted message.
|
|
||||||
}
|
|
||||||
|
|
||||||
override func willTransition(to presentationStyle: MSMessagesAppPresentationStyle) {
|
|
||||||
// Called before the extension transitions to a new presentation style.
|
|
||||||
|
|
||||||
// Use this method to prepare for the change in presentation style.
|
|
||||||
}
|
|
||||||
|
|
||||||
override func didTransition(to presentationStyle: MSMessagesAppPresentationStyle) {
|
|
||||||
// Called after the extension transitions to a new presentation style.
|
|
||||||
|
|
||||||
// Use this method to finalize any behaviors associated with the change in presentation style.
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,16 +3,18 @@ import UIKit
|
|||||||
|
|
||||||
struct GIF: Codable, Identifiable, Equatable {
|
struct GIF: Codable, Identifiable, Equatable {
|
||||||
let id: UUID
|
let id: UUID
|
||||||
let urlString: String
|
let localFilePath: String
|
||||||
let createdAt: Date
|
let createdAt: Date
|
||||||
|
let originalURL: String
|
||||||
|
|
||||||
var url: URL? {
|
var fileURL: URL? {
|
||||||
return URL(string: urlString)
|
return URL(fileURLWithPath: localFilePath)
|
||||||
}
|
}
|
||||||
|
|
||||||
init(urlString: String) {
|
init(localFilePath: String, originalURL: String) {
|
||||||
self.id = UUID()
|
self.id = UUID()
|
||||||
self.urlString = urlString
|
self.localFilePath = localFilePath
|
||||||
|
self.originalURL = originalURL
|
||||||
self.createdAt = Date()
|
self.createdAt = Date()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
class GIFDownloadService {
|
class DownloadService {
|
||||||
static let shared = GIFDownloadService()
|
static let shared = DownloadService()
|
||||||
|
|
||||||
private let cache = NSCache<NSString, NSData>()
|
private let cache = NSCache<NSString, NSData>()
|
||||||
private var activeTasks: [URL: URLSessionDataTask] = [:]
|
private var activeTasks: [URL: URLSessionDataTask] = [:]
|
||||||
|
|
||||||
private init() {
|
private init() {
|
||||||
cache.totalCostLimit = 100 * 1024 * 1024 // 100 MB cache limit
|
cache.totalCostLimit = 50 * 1024 * 1024 // 50 MB cache limit
|
||||||
}
|
}
|
||||||
|
|
||||||
func downloadGIF(from urlString: String, completion: @escaping (Data?, Error?) -> Void) {
|
func downloadGIF(from urlString: String, completion: @escaping (Data?, Error?) -> Void) {
|
||||||
guard let url = URL(string: urlString) else {
|
guard let url = URL(string: urlString) else {
|
||||||
completion(nil, NSError(domain: "GIFDownloadService", code: 1, userInfo: [NSLocalizedDescriptionKey: "Invalid URL"]))
|
completion(nil, NSError(domain: "DownloadService", code: 1, userInfo: [NSLocalizedDescriptionKey: "Invalid URL"]))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ class GIFDownloadService {
|
|||||||
|
|
||||||
guard let self = self, error == nil, let data = data else {
|
guard let self = self, error == nil, let data = data else {
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
completion(nil, error ?? NSError(domain: "GIFDownloadService", code: 2, userInfo: [NSLocalizedDescriptionKey: "Failed to download GIF"]))
|
completion(nil, error ?? NSError(domain: "DownloadService", code: 2, userInfo: [NSLocalizedDescriptionKey: "Failed to download GIF"]))
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
177
GIFCollector MessagesExtension/Services/GIFFileManager.swift
Normal file
177
GIFCollector MessagesExtension/Services/GIFFileManager.swift
Normal file
@@ -0,0 +1,177 @@
|
|||||||
|
import Foundation
|
||||||
|
import UIKit
|
||||||
|
|
||||||
|
class GIFFileManager {
|
||||||
|
static let shared = GIFFileManager()
|
||||||
|
|
||||||
|
private init() {
|
||||||
|
createGIFsDirectoryIfNeeded()
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: - File Storage
|
||||||
|
|
||||||
|
private var documentsDirectory: URL {
|
||||||
|
// First try to get the App Group container
|
||||||
|
if let containerURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: "group.gifcollector") {
|
||||||
|
return containerURL
|
||||||
|
}
|
||||||
|
|
||||||
|
// Fall back to the app's documents directory if App Group is not available
|
||||||
|
let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)
|
||||||
|
return paths[0]
|
||||||
|
}
|
||||||
|
|
||||||
|
private var gifsDirectory: URL {
|
||||||
|
return documentsDirectory.appendingPathComponent("SavedGIFs", isDirectory: true)
|
||||||
|
}
|
||||||
|
|
||||||
|
private func createGIFsDirectoryIfNeeded() {
|
||||||
|
let fileManager = FileManager.default
|
||||||
|
|
||||||
|
if !fileManager.fileExists(atPath: gifsDirectory.path) {
|
||||||
|
do {
|
||||||
|
try fileManager.createDirectory(at: gifsDirectory, withIntermediateDirectories: true)
|
||||||
|
} catch {
|
||||||
|
print("Error creating GIFs directory: \(error)")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func storeGIF(data: Data, fromURL urlString: String) -> String? {
|
||||||
|
// Check if this is a shared GIF from the share extension
|
||||||
|
if let sharedGIFPath = checkForSharedGIF(withURL: urlString), FileManager.default.fileExists(atPath: sharedGIFPath) {
|
||||||
|
return sharedGIFPath
|
||||||
|
}
|
||||||
|
|
||||||
|
// Create a unique filename based on the URL hash and timestamp
|
||||||
|
let urlHash = urlString.hashValue
|
||||||
|
let timestamp = Int(Date().timeIntervalSince1970)
|
||||||
|
let filename = "gif_\(urlHash)_\(timestamp).gif"
|
||||||
|
|
||||||
|
let fileURL = gifsDirectory.appendingPathComponent(filename)
|
||||||
|
|
||||||
|
do {
|
||||||
|
try data.write(to: fileURL)
|
||||||
|
return fileURL.path
|
||||||
|
} catch {
|
||||||
|
print("Error saving GIF to disk: \(error)")
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func loadGIFData(from localPath: String) -> Data? {
|
||||||
|
let url = URL(fileURLWithPath: localPath)
|
||||||
|
|
||||||
|
do {
|
||||||
|
let data = try Data(contentsOf: url)
|
||||||
|
return data
|
||||||
|
} catch {
|
||||||
|
print("Error loading GIF from disk: \(error)")
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func deleteGIF(at localPath: String) -> Bool {
|
||||||
|
let fileManager = FileManager.default
|
||||||
|
|
||||||
|
do {
|
||||||
|
try fileManager.removeItem(atPath: localPath)
|
||||||
|
return true
|
||||||
|
} catch {
|
||||||
|
print("Error deleting GIF from disk: \(error)")
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func fileExists(at localPath: String) -> Bool {
|
||||||
|
return FileManager.default.fileExists(atPath: localPath)
|
||||||
|
}
|
||||||
|
|
||||||
|
func getAllGIFsSize() -> Int64 {
|
||||||
|
let fileManager = FileManager.default
|
||||||
|
let enumerator = fileManager.enumerator(at: gifsDirectory, includingPropertiesForKeys: [.fileSizeKey])
|
||||||
|
|
||||||
|
var totalSize: Int64 = 0
|
||||||
|
|
||||||
|
while let fileURL = enumerator?.nextObject() as? URL {
|
||||||
|
do {
|
||||||
|
let attributes = try fileURL.resourceValues(forKeys: [.fileSizeKey])
|
||||||
|
if let fileSize = attributes.fileSize {
|
||||||
|
totalSize += Int64(fileSize)
|
||||||
|
}
|
||||||
|
} catch {
|
||||||
|
print("Error calculating file size: \(error)")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return totalSize
|
||||||
|
}
|
||||||
|
|
||||||
|
// Clean up old GIFs if storage exceeds 100 MB
|
||||||
|
func performStorageCleanupIfNeeded() {
|
||||||
|
let maxStorageSize: Int64 = 100 * 1024 * 1024 // 100 MB
|
||||||
|
|
||||||
|
if getAllGIFsSize() > maxStorageSize {
|
||||||
|
cleanupOldGIFs()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private func cleanupOldGIFs() {
|
||||||
|
let fileManager = FileManager.default
|
||||||
|
|
||||||
|
do {
|
||||||
|
// Get all files and their creation dates
|
||||||
|
let fileURLs = try fileManager.contentsOfDirectory(at: gifsDirectory, includingPropertiesForKeys: [.creationDateKey])
|
||||||
|
|
||||||
|
// Sort by creation date
|
||||||
|
let sortedFiles = try fileURLs.sorted {
|
||||||
|
let date1 = try $0.resourceValues(forKeys: [.creationDateKey]).creationDate ?? Date.distantPast
|
||||||
|
let date2 = try $1.resourceValues(forKeys: [.creationDateKey]).creationDate ?? Date.distantPast
|
||||||
|
return date1 < date2
|
||||||
|
}
|
||||||
|
|
||||||
|
// Delete the oldest 30% of files
|
||||||
|
let filesToDelete = Int(Double(sortedFiles.count) * 0.3)
|
||||||
|
|
||||||
|
for i in 0..<min(filesToDelete, sortedFiles.count) {
|
||||||
|
try fileManager.removeItem(at: sortedFiles[i])
|
||||||
|
}
|
||||||
|
} catch {
|
||||||
|
print("Error cleaning up old GIFs: \(error)")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check if we already have this GIF in the shared container
|
||||||
|
private func checkForSharedGIF(withURL urlString: String) -> String? {
|
||||||
|
guard let containerURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: "group.gifcollector") else {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
let sharedGIFsFolder = containerURL.appendingPathComponent("GIFs", isDirectory: true)
|
||||||
|
|
||||||
|
guard FileManager.default.fileExists(atPath: sharedGIFsFolder.path) else {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
do {
|
||||||
|
let fileURLs = try FileManager.default.contentsOfDirectory(at: sharedGIFsFolder, includingPropertiesForKeys: nil)
|
||||||
|
|
||||||
|
// Find any shared GIF that matches our URL (usually won't find any, but helps avoid duplicates)
|
||||||
|
let userDefaults = UserDefaults(suiteName: "group.gifcollector")
|
||||||
|
if let pendingGIFs = userDefaults?.array(forKey: "pendingGIFs") as? [[String: Any]] {
|
||||||
|
for gifInfo in pendingGIFs {
|
||||||
|
if let originURL = gifInfo["originalURL"] as? String,
|
||||||
|
let path = gifInfo["localFilePath"] as? String,
|
||||||
|
originURL == urlString {
|
||||||
|
return path
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
} catch {
|
||||||
|
print("Error checking for shared GIFs: \(error)")
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -5,22 +5,40 @@ class GIFStorageService {
|
|||||||
|
|
||||||
private let userDefaults = UserDefaults(suiteName: "group.gifcollector")
|
private let userDefaults = UserDefaults(suiteName: "group.gifcollector")
|
||||||
private let savedGIFsKey = "savedGIFs"
|
private let savedGIFsKey = "savedGIFs"
|
||||||
|
private let pendingGIFsKey = "pendingGIFs"
|
||||||
|
|
||||||
private init() {
|
private init() {
|
||||||
// Make sure the shared UserDefaults exists
|
// Make sure the shared UserDefaults exists
|
||||||
if userDefaults == nil {
|
if userDefaults == nil {
|
||||||
print("Error: Could not create UserDefaults with app group")
|
print("Error: Could not create UserDefaults with app group")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Process any pending GIFs from the Share Extension
|
||||||
|
checkForSharedGIFs()
|
||||||
}
|
}
|
||||||
|
|
||||||
func saveGIF(_ gif: GIF) {
|
func saveGIF(data: Data, fromURL urlString: String, completion: @escaping (GIF?) -> Void) {
|
||||||
|
// First store the GIF data to disk
|
||||||
|
guard let localPath = GIFFileManager.shared.storeGIF(data: data, fromURL: urlString) else {
|
||||||
|
completion(nil)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// Create and save the GIF model
|
||||||
|
let gif = GIF(localFilePath: localPath, originalURL: urlString)
|
||||||
|
|
||||||
var savedGIFs = fetchGIFs()
|
var savedGIFs = fetchGIFs()
|
||||||
|
|
||||||
// Don't save duplicate URLs
|
// Don't save duplicates of the same URL
|
||||||
if !savedGIFs.contains(where: { $0.urlString == gif.urlString }) {
|
if !savedGIFs.contains(where: { $0.originalURL == urlString }) {
|
||||||
savedGIFs.append(gif)
|
savedGIFs.append(gif)
|
||||||
saveToUserDefaults(gifs: savedGIFs)
|
saveToUserDefaults(gifs: savedGIFs)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Perform cleanup if needed
|
||||||
|
GIFFileManager.shared.performStorageCleanupIfNeeded()
|
||||||
|
|
||||||
|
completion(gif)
|
||||||
}
|
}
|
||||||
|
|
||||||
func fetchGIFs() -> [GIF] {
|
func fetchGIFs() -> [GIF] {
|
||||||
@@ -29,16 +47,38 @@ class GIFStorageService {
|
|||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
||||||
return gifs.sorted(by: { $0.createdAt > $1.createdAt })
|
// Filter out any GIFs whose files no longer exist
|
||||||
|
let validGIFs = gifs.filter { GIFFileManager.shared.fileExists(at: $0.localFilePath) }
|
||||||
|
|
||||||
|
// If we filtered any out, save the updated list
|
||||||
|
if validGIFs.count != gifs.count {
|
||||||
|
saveToUserDefaults(gifs: validGIFs)
|
||||||
|
}
|
||||||
|
|
||||||
|
return validGIFs.sorted(by: { $0.createdAt > $1.createdAt })
|
||||||
}
|
}
|
||||||
|
|
||||||
func deleteGIF(with id: UUID) {
|
func deleteGIF(with id: UUID) {
|
||||||
var savedGIFs = fetchGIFs()
|
var savedGIFs = fetchGIFs()
|
||||||
|
|
||||||
|
// Find the GIF to delete
|
||||||
|
if let gifToDelete = savedGIFs.first(where: { $0.id == id }) {
|
||||||
|
// Delete the file from storage
|
||||||
|
GIFFileManager.shared.deleteGIF(at: gifToDelete.localFilePath)
|
||||||
|
|
||||||
|
// Remove from the list
|
||||||
savedGIFs.removeAll(where: { $0.id == id })
|
savedGIFs.removeAll(where: { $0.id == id })
|
||||||
saveToUserDefaults(gifs: savedGIFs)
|
saveToUserDefaults(gifs: savedGIFs)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func clearAllGIFs() {
|
func clearAllGIFs() {
|
||||||
|
// Delete all GIF files
|
||||||
|
fetchGIFs().forEach { gif in
|
||||||
|
GIFFileManager.shared.deleteGIF(at: gif.localFilePath)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Clear the list
|
||||||
saveToUserDefaults(gifs: [])
|
saveToUserDefaults(gifs: [])
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,4 +86,50 @@ class GIFStorageService {
|
|||||||
guard let data = try? JSONEncoder().encode(gifs) else { return }
|
guard let data = try? JSONEncoder().encode(gifs) else { return }
|
||||||
userDefaults?.set(data, forKey: savedGIFsKey)
|
userDefaults?.set(data, forKey: savedGIFsKey)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func getGIFData(for gif: GIF) -> Data? {
|
||||||
|
return GIFFileManager.shared.loadGIFData(from: gif.localFilePath)
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: - Share Extension Integration
|
||||||
|
|
||||||
|
func checkForSharedGIFs() {
|
||||||
|
guard let pendingGIFsData = userDefaults?.array(forKey: pendingGIFsKey) as? [[String: Any]] else {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
guard !pendingGIFsData.isEmpty else {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var savedGIFs = fetchGIFs()
|
||||||
|
var newGIFsAdded = false
|
||||||
|
|
||||||
|
for gifInfo in pendingGIFsData {
|
||||||
|
if let localFilePath = gifInfo["localFilePath"] as? String,
|
||||||
|
let originalURL = gifInfo["originalURL"] as? String,
|
||||||
|
let createdAt = gifInfo["createdAt"] as? TimeInterval {
|
||||||
|
|
||||||
|
// Create a GIF object
|
||||||
|
let gif = GIF(
|
||||||
|
localFilePath: localFilePath,
|
||||||
|
originalURL: originalURL
|
||||||
|
)
|
||||||
|
|
||||||
|
// Don't add duplicates
|
||||||
|
if !savedGIFs.contains(where: { $0.localFilePath == localFilePath }) {
|
||||||
|
savedGIFs.append(gif)
|
||||||
|
newGIFsAdded = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Save updated GIFs list and clear pending ones
|
||||||
|
if newGIFsAdded {
|
||||||
|
saveToUserDefaults(gifs: savedGIFs)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Clear pending GIFs
|
||||||
|
userDefaults?.removeObject(forKey: pendingGIFsKey)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -22,8 +22,6 @@ class AddGIFViewController: UIViewController {
|
|||||||
return textField
|
return textField
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private let previewGIFPlayer: GIFPlayerView = {
|
private let previewGIFPlayer: GIFPlayerView = {
|
||||||
let player = GIFPlayerView()
|
let player = GIFPlayerView()
|
||||||
player.clipsToBounds = true
|
player.clipsToBounds = true
|
||||||
@@ -56,8 +54,9 @@ class AddGIFViewController: UIViewController {
|
|||||||
return button
|
return button
|
||||||
}()
|
}()
|
||||||
|
|
||||||
private var currentTask: URLSessionDataTask?
|
private var currentTask: Any?
|
||||||
var onSaveGIF: ((GIF) -> Void)?
|
private var downloadedGIFData: Data?
|
||||||
|
var onSaveGIF: ((String, Data) -> Void)?
|
||||||
var onCancel: (() -> Void)?
|
var onCancel: (() -> Void)?
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
@@ -132,10 +131,13 @@ class AddGIFViewController: UIViewController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func loadGIFPreview(from urlString: String) {
|
private func loadGIFPreview(from urlString: String) {
|
||||||
// Cancel any existing task
|
// Cancel any existing task if needed
|
||||||
currentTask?.cancel()
|
if let task = currentTask as? URLSessionTask {
|
||||||
|
task.cancel()
|
||||||
|
}
|
||||||
|
currentTask = nil
|
||||||
|
|
||||||
guard let url = URL(string: urlString) else {
|
guard URL(string: urlString) != nil else {
|
||||||
saveButton.isEnabled = false
|
saveButton.isEnabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -143,32 +145,33 @@ class AddGIFViewController: UIViewController {
|
|||||||
loadingIndicator.startAnimating()
|
loadingIndicator.startAnimating()
|
||||||
previewGIFPlayer.stopAnimating()
|
previewGIFPlayer.stopAnimating()
|
||||||
|
|
||||||
currentTask = URLSession.shared.dataTask(with: url) { [weak self] data, _, error in
|
DownloadService.shared.downloadGIF(from: urlString) { [weak self] data, error in
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
guard let self = self else { return }
|
guard let self = self else { return }
|
||||||
|
|
||||||
self.loadingIndicator.stopAnimating()
|
self.loadingIndicator.stopAnimating()
|
||||||
|
|
||||||
if let data = data, error == nil {
|
if let data = data, error == nil {
|
||||||
|
self.downloadedGIFData = data
|
||||||
self.previewGIFPlayer.loadGIF(from: data)
|
self.previewGIFPlayer.loadGIF(from: data)
|
||||||
self.previewGIFPlayer.startAnimating()
|
self.previewGIFPlayer.startAnimating()
|
||||||
self.saveButton.isEnabled = true
|
self.saveButton.isEnabled = true
|
||||||
} else {
|
} else {
|
||||||
|
self.downloadedGIFData = nil
|
||||||
self.previewGIFPlayer.stopAnimating()
|
self.previewGIFPlayer.stopAnimating()
|
||||||
self.saveButton.isEnabled = false
|
self.saveButton.isEnabled = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
currentTask?.resume()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc private func saveButtonTapped() {
|
@objc private func saveButtonTapped() {
|
||||||
guard let urlString = urlTextField.text, !urlString.isEmpty else { return }
|
guard let urlString = urlTextField.text,
|
||||||
|
!urlString.isEmpty,
|
||||||
|
let gifData = downloadedGIFData
|
||||||
|
else { return }
|
||||||
|
|
||||||
let gif = GIF(urlString: urlString)
|
onSaveGIF?(urlString, gifData)
|
||||||
|
|
||||||
onSaveGIF?(gif)
|
|
||||||
dismiss(animated: true)
|
dismiss(animated: true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ class GIFCollectionViewController: UIViewController {
|
|||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
setupCollectionView()
|
setupCollectionView()
|
||||||
setupUI()
|
setupUI()
|
||||||
|
setupGestureRecognizers()
|
||||||
loadGIFs()
|
loadGIFs()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -41,6 +42,11 @@ class GIFCollectionViewController: UIViewController {
|
|||||||
collectionView.dataSource = self
|
collectionView.dataSource = self
|
||||||
collectionView.register(GIFCollectionViewCell.self, forCellWithReuseIdentifier: reuseIdentifier)
|
collectionView.register(GIFCollectionViewCell.self, forCellWithReuseIdentifier: reuseIdentifier)
|
||||||
collectionView.alwaysBounceVertical = true
|
collectionView.alwaysBounceVertical = true
|
||||||
|
|
||||||
|
if #available(iOS 14.0, *) {
|
||||||
|
// Use collection view's built-in contextual menu support
|
||||||
|
// This is set up in collectionView(_:contextMenuConfigurationForItemAt:point:)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private func setupUI() {
|
private func setupUI() {
|
||||||
@@ -87,7 +93,7 @@ class GIFCollectionViewController: UIViewController {
|
|||||||
updateEmptyState()
|
updateEmptyState()
|
||||||
}
|
}
|
||||||
|
|
||||||
private func loadGIFs() {
|
func loadGIFs() {
|
||||||
gifs = GIFStorageService.shared.fetchGIFs()
|
gifs = GIFStorageService.shared.fetchGIFs()
|
||||||
collectionView.reloadData()
|
collectionView.reloadData()
|
||||||
updateEmptyState()
|
updateEmptyState()
|
||||||
@@ -99,10 +105,13 @@ class GIFCollectionViewController: UIViewController {
|
|||||||
|
|
||||||
@objc private func addButtonTapped() {
|
@objc private func addButtonTapped() {
|
||||||
let addGIFVC = AddGIFViewController()
|
let addGIFVC = AddGIFViewController()
|
||||||
addGIFVC.onSaveGIF = { [weak self] gif in
|
addGIFVC.onSaveGIF = { [weak self] urlString, gifData in
|
||||||
GIFStorageService.shared.saveGIF(gif)
|
GIFStorageService.shared.saveGIF(data: gifData, fromURL: urlString) { _ in
|
||||||
|
DispatchQueue.main.async {
|
||||||
self?.loadGIFs()
|
self?.loadGIFs()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
addGIFVC.onCancel = { [weak self] in
|
addGIFVC.onCancel = { [weak self] in
|
||||||
self?.dismiss(animated: true)
|
self?.dismiss(animated: true)
|
||||||
}
|
}
|
||||||
@@ -111,6 +120,53 @@ class GIFCollectionViewController: UIViewController {
|
|||||||
navController.modalPresentationStyle = .formSheet
|
navController.modalPresentationStyle = .formSheet
|
||||||
present(navController, animated: true)
|
present(navController, animated: true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private func setupGestureRecognizers() {
|
||||||
|
// For iOS versions earlier than 14, we'll use a long press gesture recognizer
|
||||||
|
if #unavailable(iOS 14.0) {
|
||||||
|
let longPressGesture = UILongPressGestureRecognizer(target: self, action: #selector(handleLongPress(_:)))
|
||||||
|
collectionView.addGestureRecognizer(longPressGesture)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@objc private func handleLongPress(_ gesture: UILongPressGestureRecognizer) {
|
||||||
|
if gesture.state == .began {
|
||||||
|
let point = gesture.location(in: collectionView)
|
||||||
|
|
||||||
|
guard let indexPath = collectionView.indexPathForItem(at: point) else { return }
|
||||||
|
|
||||||
|
// Show action sheet for pre-iOS 14 devices
|
||||||
|
showDeleteActionSheet(for: indexPath)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private func showDeleteActionSheet(for indexPath: IndexPath) {
|
||||||
|
let gif = gifs[indexPath.item]
|
||||||
|
|
||||||
|
let alertController = UIAlertController(
|
||||||
|
title: "GIF Options",
|
||||||
|
message: "What would you like to do with this GIF?",
|
||||||
|
preferredStyle: .actionSheet
|
||||||
|
)
|
||||||
|
|
||||||
|
alertController.addAction(UIAlertAction(title: "Delete", style: .destructive) { [weak self] _ in
|
||||||
|
self?.deleteGIF(at: indexPath)
|
||||||
|
})
|
||||||
|
|
||||||
|
alertController.addAction(UIAlertAction(title: "Cancel", style: .cancel))
|
||||||
|
|
||||||
|
present(alertController, animated: true)
|
||||||
|
}
|
||||||
|
|
||||||
|
private func deleteGIF(at indexPath: IndexPath) {
|
||||||
|
let gif = gifs[indexPath.item]
|
||||||
|
GIFStorageService.shared.deleteGIF(with: gif.id)
|
||||||
|
|
||||||
|
// Remove from local array and update collection view
|
||||||
|
gifs.remove(at: indexPath.item)
|
||||||
|
collectionView.deleteItems(at: [indexPath])
|
||||||
|
updateEmptyState()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extension GIFCollectionViewController: UICollectionViewDelegate, UICollectionViewDataSource {
|
extension GIFCollectionViewController: UICollectionViewDelegate, UICollectionViewDataSource {
|
||||||
@@ -124,7 +180,7 @@ extension GIFCollectionViewController: UICollectionViewDelegate, UICollectionVie
|
|||||||
}
|
}
|
||||||
|
|
||||||
let gif = gifs[indexPath.item]
|
let gif = gifs[indexPath.item]
|
||||||
cell.configure(with: gif.urlString)
|
cell.configure(with: gif)
|
||||||
|
|
||||||
return cell
|
return cell
|
||||||
}
|
}
|
||||||
@@ -133,4 +189,23 @@ extension GIFCollectionViewController: UICollectionViewDelegate, UICollectionVie
|
|||||||
let gif = gifs[indexPath.item]
|
let gif = gifs[indexPath.item]
|
||||||
onSelectGIF?(gif)
|
onSelectGIF?(gif)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MARK: - Context Menu Support (iOS 14+)
|
||||||
|
|
||||||
|
@available(iOS 14.0, *)
|
||||||
|
func collectionView(_ collectionView: UICollectionView, contextMenuConfigurationForItemAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration? {
|
||||||
|
let gif = gifs[indexPath.item]
|
||||||
|
|
||||||
|
return UIContextMenuConfiguration(identifier: nil, previewProvider: nil) { _ in
|
||||||
|
let deleteAction = UIAction(
|
||||||
|
title: "Delete",
|
||||||
|
image: UIImage(systemName: "trash"),
|
||||||
|
attributes: .destructive
|
||||||
|
) { [weak self] _ in
|
||||||
|
self?.deleteGIF(at: indexPath)
|
||||||
|
}
|
||||||
|
|
||||||
|
return UIMenu(title: "", children: [deleteAction])
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="j1y-V4-xli">
|
||||||
|
<dependencies>
|
||||||
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
|
||||||
|
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||||
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
|
</dependencies>
|
||||||
|
<scenes>
|
||||||
|
<!--Share View Controller-->
|
||||||
|
<scene sceneID="ceB-am-kn3">
|
||||||
|
<objects>
|
||||||
|
<viewController id="j1y-V4-xli" customClass="ShareViewController" customModuleProvider="target" sceneMemberID="viewController">
|
||||||
|
<view key="view" opaque="NO" contentMode="scaleToFill" id="wbc-yd-nQP">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
|
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
|
<viewLayoutGuide key="safeArea" id="1Xd-am-t49"/>
|
||||||
|
</view>
|
||||||
|
</viewController>
|
||||||
|
<placeholder placeholderIdentifier="IBFirstResponder" id="CEy-Cv-SGf" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||||
|
</objects>
|
||||||
|
</scene>
|
||||||
|
</scenes>
|
||||||
|
</document>
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
<?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>com.apple.security.application-groups</key>
|
||||||
|
<array>
|
||||||
|
<string>group.com.abunchofknowitalls.gif</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
25
GIFCollector ShareExtension/Info.plist
Normal file
25
GIFCollector ShareExtension/Info.plist
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<?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>NSExtension</key>
|
||||||
|
<dict>
|
||||||
|
<key>NSExtensionAttributes</key>
|
||||||
|
<dict>
|
||||||
|
<key>NSExtensionActivationRule</key>
|
||||||
|
<dict>
|
||||||
|
<key>NSExtensionActivationSupportsFileWithMaxCount</key>
|
||||||
|
<integer>1</integer>
|
||||||
|
<key>NSExtensionActivationSupportsImageWithMaxCount</key>
|
||||||
|
<integer>1</integer>
|
||||||
|
<key>NSExtensionActivationSupportsWebURLWithMaxCount</key>
|
||||||
|
<integer>1</integer>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
<key>NSExtensionPrincipalClass</key>
|
||||||
|
<string>$(PRODUCT_MODULE_NAME).ShareViewController</string>
|
||||||
|
<key>NSExtensionPointIdentifier</key>
|
||||||
|
<string>com.apple.share-services</string>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
30
GIFCollector ShareExtension/ShareViewController.swift
Normal file
30
GIFCollector ShareExtension/ShareViewController.swift
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
//
|
||||||
|
// ShareViewController.swift
|
||||||
|
// GIFCollector ShareExtension
|
||||||
|
//
|
||||||
|
// Created by Joshua Higgins on 6/3/25.
|
||||||
|
//
|
||||||
|
|
||||||
|
import UIKit
|
||||||
|
import Social
|
||||||
|
|
||||||
|
class ShareViewController: SLComposeServiceViewController {
|
||||||
|
|
||||||
|
override func isContentValid() -> Bool {
|
||||||
|
// Do validation of contentText and/or NSExtensionContext attachments here
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
override func didSelectPost() {
|
||||||
|
// This is called after the user selects Post. Do the upload of contentText and/or NSExtensionContext attachments.
|
||||||
|
|
||||||
|
// Inform the host that we're done, so it un-blocks its UI. Note: Alternatively you could call super's -didSelectPost, which will similarly complete the extension context.
|
||||||
|
self.extensionContext!.completeRequest(returningItems: [], completionHandler: nil)
|
||||||
|
}
|
||||||
|
|
||||||
|
override func configurationItems() -> [Any]! {
|
||||||
|
// To add configuration options via table cells at the bottom of the sheet, return an array of SLComposeSheetConfigurationItem here.
|
||||||
|
return []
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -9,6 +9,9 @@
|
|||||||
/* Begin PBXBuildFile section */
|
/* Begin PBXBuildFile section */
|
||||||
1B3192822DEDCF86007850B9 /* GIFCollector MessagesExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 1B3192812DEDCF86007850B9 /* GIFCollector MessagesExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
1B3192822DEDCF86007850B9 /* GIFCollector MessagesExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 1B3192812DEDCF86007850B9 /* GIFCollector MessagesExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
||||||
1B3192872DEDCF86007850B9 /* Messages.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1B3192862DEDCF86007850B9 /* Messages.framework */; };
|
1B3192872DEDCF86007850B9 /* Messages.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1B3192862DEDCF86007850B9 /* Messages.framework */; };
|
||||||
|
1BDF21552DEFEF6B00128C3C /* GIFCollector ShareExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 1BDF21462DEFE9A500128C3C /* GIFCollector ShareExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
||||||
|
1BDF21722DEFF72800128C3C /* GIFCollector MessagesExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 1B3192812DEDCF86007850B9 /* GIFCollector MessagesExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
||||||
|
1BDF21752DEFF72800128C3C /* GIFCollector ShareExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 1BDF21462DEFE9A500128C3C /* GIFCollector ShareExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
||||||
/* End PBXBuildFile section */
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
/* Begin PBXContainerItemProxy section */
|
/* Begin PBXContainerItemProxy section */
|
||||||
@@ -19,6 +22,41 @@
|
|||||||
remoteGlobalIDString = 1B3192802DEDCF86007850B9;
|
remoteGlobalIDString = 1B3192802DEDCF86007850B9;
|
||||||
remoteInfo = "GIFCollector MessagesExtension";
|
remoteInfo = "GIFCollector MessagesExtension";
|
||||||
};
|
};
|
||||||
|
1BDF21562DEFEF6B00128C3C /* PBXContainerItemProxy */ = {
|
||||||
|
isa = PBXContainerItemProxy;
|
||||||
|
containerPortal = 1B3192722DEDCF83007850B9 /* Project object */;
|
||||||
|
proxyType = 1;
|
||||||
|
remoteGlobalIDString = 1BDF21452DEFE9A500128C3C;
|
||||||
|
remoteInfo = "GIFCollector ShareExtension";
|
||||||
|
};
|
||||||
|
1BDF21732DEFF72800128C3C /* PBXContainerItemProxy */ = {
|
||||||
|
isa = PBXContainerItemProxy;
|
||||||
|
containerPortal = 1B3192722DEDCF83007850B9 /* Project object */;
|
||||||
|
proxyType = 1;
|
||||||
|
remoteGlobalIDString = 1B3192802DEDCF86007850B9;
|
||||||
|
remoteInfo = "GIFCollector MessagesExtension";
|
||||||
|
};
|
||||||
|
1BDF21762DEFF72800128C3C /* PBXContainerItemProxy */ = {
|
||||||
|
isa = PBXContainerItemProxy;
|
||||||
|
containerPortal = 1B3192722DEDCF83007850B9 /* Project object */;
|
||||||
|
proxyType = 1;
|
||||||
|
remoteGlobalIDString = 1BDF21452DEFE9A500128C3C;
|
||||||
|
remoteInfo = "GIFCollector ShareExtension";
|
||||||
|
};
|
||||||
|
1BDF21792DEFF72D00128C3C /* PBXContainerItemProxy */ = {
|
||||||
|
isa = PBXContainerItemProxy;
|
||||||
|
containerPortal = 1B3192722DEDCF83007850B9 /* Project object */;
|
||||||
|
proxyType = 1;
|
||||||
|
remoteGlobalIDString = 1BDF21452DEFE9A500128C3C;
|
||||||
|
remoteInfo = "GIFCollector ShareExtension";
|
||||||
|
};
|
||||||
|
1BDF217B2DEFF73000128C3C /* PBXContainerItemProxy */ = {
|
||||||
|
isa = PBXContainerItemProxy;
|
||||||
|
containerPortal = 1B3192722DEDCF83007850B9 /* Project object */;
|
||||||
|
proxyType = 1;
|
||||||
|
remoteGlobalIDString = 1B3192802DEDCF86007850B9;
|
||||||
|
remoteInfo = "GIFCollector MessagesExtension";
|
||||||
|
};
|
||||||
/* End PBXContainerItemProxy section */
|
/* End PBXContainerItemProxy section */
|
||||||
|
|
||||||
/* Begin PBXCopyFilesBuildPhase section */
|
/* Begin PBXCopyFilesBuildPhase section */
|
||||||
@@ -28,17 +66,32 @@
|
|||||||
dstPath = "";
|
dstPath = "";
|
||||||
dstSubfolderSpec = 13;
|
dstSubfolderSpec = 13;
|
||||||
files = (
|
files = (
|
||||||
|
1BDF21552DEFEF6B00128C3C /* GIFCollector ShareExtension.appex in Embed Foundation Extensions */,
|
||||||
1B3192822DEDCF86007850B9 /* GIFCollector MessagesExtension.appex in Embed Foundation Extensions */,
|
1B3192822DEDCF86007850B9 /* GIFCollector MessagesExtension.appex in Embed Foundation Extensions */,
|
||||||
);
|
);
|
||||||
name = "Embed Foundation Extensions";
|
name = "Embed Foundation Extensions";
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
1BDF21782DEFF72800128C3C /* Embed Foundation Extensions */ = {
|
||||||
|
isa = PBXCopyFilesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
dstPath = "";
|
||||||
|
dstSubfolderSpec = 13;
|
||||||
|
files = (
|
||||||
|
1BDF21752DEFF72800128C3C /* GIFCollector ShareExtension.appex in Embed Foundation Extensions */,
|
||||||
|
1BDF21722DEFF72800128C3C /* GIFCollector MessagesExtension.appex in Embed Foundation Extensions */,
|
||||||
|
);
|
||||||
|
name = "Embed Foundation Extensions";
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
/* End PBXCopyFilesBuildPhase section */
|
/* End PBXCopyFilesBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXFileReference section */
|
/* Begin PBXFileReference section */
|
||||||
1B3192782DEDCF83007850B9 /* GIFCollector.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GIFCollector.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
1B3192782DEDCF83007850B9 /* GIFCollector.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GIFCollector.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
1B3192812DEDCF86007850B9 /* GIFCollector MessagesExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "GIFCollector MessagesExtension.appex"; sourceTree = BUILT_PRODUCTS_DIR; };
|
1B3192812DEDCF86007850B9 /* GIFCollector MessagesExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "GIFCollector MessagesExtension.appex"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
1B3192862DEDCF86007850B9 /* Messages.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Messages.framework; path = System/Library/Frameworks/Messages.framework; sourceTree = SDKROOT; };
|
1B3192862DEDCF86007850B9 /* Messages.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Messages.framework; path = System/Library/Frameworks/Messages.framework; sourceTree = SDKROOT; };
|
||||||
|
1BDF21462DEFE9A500128C3C /* GIFCollector ShareExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "GIFCollector ShareExtension.appex"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
|
1BDF21652DEFF71200128C3C /* GIFCollector App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "GIFCollector App.app"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
|
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
|
||||||
@@ -49,6 +102,13 @@
|
|||||||
);
|
);
|
||||||
target = 1B3192802DEDCF86007850B9 /* GIFCollector MessagesExtension */;
|
target = 1B3192802DEDCF86007850B9 /* GIFCollector MessagesExtension */;
|
||||||
};
|
};
|
||||||
|
1BDF214E2DEFE9A500128C3C /* Exceptions for "GIFCollector ShareExtension" folder in "GIFCollector ShareExtension" target */ = {
|
||||||
|
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
|
||||||
|
membershipExceptions = (
|
||||||
|
Info.plist,
|
||||||
|
);
|
||||||
|
target = 1BDF21452DEFE9A500128C3C /* GIFCollector ShareExtension */;
|
||||||
|
};
|
||||||
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */
|
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */
|
||||||
|
|
||||||
/* Begin PBXFileSystemSynchronizedRootGroup section */
|
/* Begin PBXFileSystemSynchronizedRootGroup section */
|
||||||
@@ -65,6 +125,14 @@
|
|||||||
path = "GIFCollector MessagesExtension";
|
path = "GIFCollector MessagesExtension";
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
|
1BDF21472DEFE9A500128C3C /* GIFCollector ShareExtension */ = {
|
||||||
|
isa = PBXFileSystemSynchronizedRootGroup;
|
||||||
|
exceptions = (
|
||||||
|
1BDF214E2DEFE9A500128C3C /* Exceptions for "GIFCollector ShareExtension" folder in "GIFCollector ShareExtension" target */,
|
||||||
|
);
|
||||||
|
path = "GIFCollector ShareExtension";
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
/* End PBXFileSystemSynchronizedRootGroup section */
|
/* End PBXFileSystemSynchronizedRootGroup section */
|
||||||
|
|
||||||
/* Begin PBXFrameworksBuildPhase section */
|
/* Begin PBXFrameworksBuildPhase section */
|
||||||
@@ -76,6 +144,20 @@
|
|||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
1BDF21432DEFE9A500128C3C /* Frameworks */ = {
|
||||||
|
isa = PBXFrameworksBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
1BDF21622DEFF71200128C3C /* Frameworks */ = {
|
||||||
|
isa = PBXFrameworksBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
/* End PBXFrameworksBuildPhase section */
|
/* End PBXFrameworksBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXGroup section */
|
/* Begin PBXGroup section */
|
||||||
@@ -84,6 +166,7 @@
|
|||||||
children = (
|
children = (
|
||||||
1B31927A2DEDCF83007850B9 /* GIFCollector */,
|
1B31927A2DEDCF83007850B9 /* GIFCollector */,
|
||||||
1B3192882DEDCF86007850B9 /* GIFCollector MessagesExtension */,
|
1B3192882DEDCF86007850B9 /* GIFCollector MessagesExtension */,
|
||||||
|
1BDF21472DEFE9A500128C3C /* GIFCollector ShareExtension */,
|
||||||
1B3192852DEDCF86007850B9 /* Frameworks */,
|
1B3192852DEDCF86007850B9 /* Frameworks */,
|
||||||
1B3192792DEDCF83007850B9 /* Products */,
|
1B3192792DEDCF83007850B9 /* Products */,
|
||||||
);
|
);
|
||||||
@@ -94,6 +177,8 @@
|
|||||||
children = (
|
children = (
|
||||||
1B3192782DEDCF83007850B9 /* GIFCollector.app */,
|
1B3192782DEDCF83007850B9 /* GIFCollector.app */,
|
||||||
1B3192812DEDCF86007850B9 /* GIFCollector MessagesExtension.appex */,
|
1B3192812DEDCF86007850B9 /* GIFCollector MessagesExtension.appex */,
|
||||||
|
1BDF21462DEFE9A500128C3C /* GIFCollector ShareExtension.appex */,
|
||||||
|
1BDF21652DEFF71200128C3C /* GIFCollector App.app */,
|
||||||
);
|
);
|
||||||
name = Products;
|
name = Products;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@@ -120,6 +205,7 @@
|
|||||||
);
|
);
|
||||||
dependencies = (
|
dependencies = (
|
||||||
1B3192842DEDCF86007850B9 /* PBXTargetDependency */,
|
1B3192842DEDCF86007850B9 /* PBXTargetDependency */,
|
||||||
|
1BDF21572DEFEF6B00128C3C /* PBXTargetDependency */,
|
||||||
);
|
);
|
||||||
fileSystemSynchronizedGroups = (
|
fileSystemSynchronizedGroups = (
|
||||||
1B31927A2DEDCF83007850B9 /* GIFCollector */,
|
1B31927A2DEDCF83007850B9 /* GIFCollector */,
|
||||||
@@ -153,6 +239,52 @@
|
|||||||
productReference = 1B3192812DEDCF86007850B9 /* GIFCollector MessagesExtension.appex */;
|
productReference = 1B3192812DEDCF86007850B9 /* GIFCollector MessagesExtension.appex */;
|
||||||
productType = "com.apple.product-type.app-extension.messages";
|
productType = "com.apple.product-type.app-extension.messages";
|
||||||
};
|
};
|
||||||
|
1BDF21452DEFE9A500128C3C /* GIFCollector ShareExtension */ = {
|
||||||
|
isa = PBXNativeTarget;
|
||||||
|
buildConfigurationList = 1BDF214F2DEFE9A500128C3C /* Build configuration list for PBXNativeTarget "GIFCollector ShareExtension" */;
|
||||||
|
buildPhases = (
|
||||||
|
1BDF21422DEFE9A500128C3C /* Sources */,
|
||||||
|
1BDF21432DEFE9A500128C3C /* Frameworks */,
|
||||||
|
1BDF21442DEFE9A500128C3C /* Resources */,
|
||||||
|
);
|
||||||
|
buildRules = (
|
||||||
|
);
|
||||||
|
dependencies = (
|
||||||
|
);
|
||||||
|
fileSystemSynchronizedGroups = (
|
||||||
|
1BDF21472DEFE9A500128C3C /* GIFCollector ShareExtension */,
|
||||||
|
);
|
||||||
|
name = "GIFCollector ShareExtension";
|
||||||
|
packageProductDependencies = (
|
||||||
|
);
|
||||||
|
productName = "GIFCollector ShareExtension";
|
||||||
|
productReference = 1BDF21462DEFE9A500128C3C /* GIFCollector ShareExtension.appex */;
|
||||||
|
productType = "com.apple.product-type.app-extension";
|
||||||
|
};
|
||||||
|
1BDF21642DEFF71200128C3C /* GIFCollector App */ = {
|
||||||
|
isa = PBXNativeTarget;
|
||||||
|
buildConfigurationList = 1BDF216F2DEFF71300128C3C /* Build configuration list for PBXNativeTarget "GIFCollector App" */;
|
||||||
|
buildPhases = (
|
||||||
|
1BDF21612DEFF71200128C3C /* Sources */,
|
||||||
|
1BDF21622DEFF71200128C3C /* Frameworks */,
|
||||||
|
1BDF21632DEFF71200128C3C /* Resources */,
|
||||||
|
1BDF21782DEFF72800128C3C /* Embed Foundation Extensions */,
|
||||||
|
);
|
||||||
|
buildRules = (
|
||||||
|
);
|
||||||
|
dependencies = (
|
||||||
|
1BDF21742DEFF72800128C3C /* PBXTargetDependency */,
|
||||||
|
1BDF21772DEFF72800128C3C /* PBXTargetDependency */,
|
||||||
|
1BDF217A2DEFF72D00128C3C /* PBXTargetDependency */,
|
||||||
|
1BDF217C2DEFF73000128C3C /* PBXTargetDependency */,
|
||||||
|
);
|
||||||
|
name = "GIFCollector App";
|
||||||
|
packageProductDependencies = (
|
||||||
|
);
|
||||||
|
productName = "GIFCollector App";
|
||||||
|
productReference = 1BDF21652DEFF71200128C3C /* GIFCollector App.app */;
|
||||||
|
productType = "com.apple.product-type.application";
|
||||||
|
};
|
||||||
/* End PBXNativeTarget section */
|
/* End PBXNativeTarget section */
|
||||||
|
|
||||||
/* Begin PBXProject section */
|
/* Begin PBXProject section */
|
||||||
@@ -169,6 +301,12 @@
|
|||||||
1B3192802DEDCF86007850B9 = {
|
1B3192802DEDCF86007850B9 = {
|
||||||
CreatedOnToolsVersion = 16.4;
|
CreatedOnToolsVersion = 16.4;
|
||||||
};
|
};
|
||||||
|
1BDF21452DEFE9A500128C3C = {
|
||||||
|
CreatedOnToolsVersion = 16.4;
|
||||||
|
};
|
||||||
|
1BDF21642DEFF71200128C3C = {
|
||||||
|
CreatedOnToolsVersion = 16.4;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
buildConfigurationList = 1B3192752DEDCF83007850B9 /* Build configuration list for PBXProject "GIFCollector" */;
|
buildConfigurationList = 1B3192752DEDCF83007850B9 /* Build configuration list for PBXProject "GIFCollector" */;
|
||||||
@@ -187,6 +325,8 @@
|
|||||||
targets = (
|
targets = (
|
||||||
1B3192772DEDCF83007850B9 /* GIFCollector */,
|
1B3192772DEDCF83007850B9 /* GIFCollector */,
|
||||||
1B3192802DEDCF86007850B9 /* GIFCollector MessagesExtension */,
|
1B3192802DEDCF86007850B9 /* GIFCollector MessagesExtension */,
|
||||||
|
1BDF21452DEFE9A500128C3C /* GIFCollector ShareExtension */,
|
||||||
|
1BDF21642DEFF71200128C3C /* GIFCollector App */,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
/* End PBXProject section */
|
/* End PBXProject section */
|
||||||
@@ -206,6 +346,20 @@
|
|||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
1BDF21442DEFE9A500128C3C /* Resources */ = {
|
||||||
|
isa = PBXResourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
1BDF21632DEFF71200128C3C /* Resources */ = {
|
||||||
|
isa = PBXResourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
/* End PBXResourcesBuildPhase section */
|
/* End PBXResourcesBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXSourcesBuildPhase section */
|
/* Begin PBXSourcesBuildPhase section */
|
||||||
@@ -216,6 +370,20 @@
|
|||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
1BDF21422DEFE9A500128C3C /* Sources */ = {
|
||||||
|
isa = PBXSourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
1BDF21612DEFF71200128C3C /* Sources */ = {
|
||||||
|
isa = PBXSourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
/* End PBXSourcesBuildPhase section */
|
/* End PBXSourcesBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXTargetDependency section */
|
/* Begin PBXTargetDependency section */
|
||||||
@@ -224,6 +392,31 @@
|
|||||||
target = 1B3192802DEDCF86007850B9 /* GIFCollector MessagesExtension */;
|
target = 1B3192802DEDCF86007850B9 /* GIFCollector MessagesExtension */;
|
||||||
targetProxy = 1B3192832DEDCF86007850B9 /* PBXContainerItemProxy */;
|
targetProxy = 1B3192832DEDCF86007850B9 /* PBXContainerItemProxy */;
|
||||||
};
|
};
|
||||||
|
1BDF21572DEFEF6B00128C3C /* PBXTargetDependency */ = {
|
||||||
|
isa = PBXTargetDependency;
|
||||||
|
target = 1BDF21452DEFE9A500128C3C /* GIFCollector ShareExtension */;
|
||||||
|
targetProxy = 1BDF21562DEFEF6B00128C3C /* PBXContainerItemProxy */;
|
||||||
|
};
|
||||||
|
1BDF21742DEFF72800128C3C /* PBXTargetDependency */ = {
|
||||||
|
isa = PBXTargetDependency;
|
||||||
|
target = 1B3192802DEDCF86007850B9 /* GIFCollector MessagesExtension */;
|
||||||
|
targetProxy = 1BDF21732DEFF72800128C3C /* PBXContainerItemProxy */;
|
||||||
|
};
|
||||||
|
1BDF21772DEFF72800128C3C /* PBXTargetDependency */ = {
|
||||||
|
isa = PBXTargetDependency;
|
||||||
|
target = 1BDF21452DEFE9A500128C3C /* GIFCollector ShareExtension */;
|
||||||
|
targetProxy = 1BDF21762DEFF72800128C3C /* PBXContainerItemProxy */;
|
||||||
|
};
|
||||||
|
1BDF217A2DEFF72D00128C3C /* PBXTargetDependency */ = {
|
||||||
|
isa = PBXTargetDependency;
|
||||||
|
target = 1BDF21452DEFE9A500128C3C /* GIFCollector ShareExtension */;
|
||||||
|
targetProxy = 1BDF21792DEFF72D00128C3C /* PBXContainerItemProxy */;
|
||||||
|
};
|
||||||
|
1BDF217C2DEFF73000128C3C /* PBXTargetDependency */ = {
|
||||||
|
isa = PBXTargetDependency;
|
||||||
|
target = 1B3192802DEDCF86007850B9 /* GIFCollector MessagesExtension */;
|
||||||
|
targetProxy = 1BDF217B2DEFF73000128C3C /* PBXContainerItemProxy */;
|
||||||
|
};
|
||||||
/* End PBXTargetDependency section */
|
/* End PBXTargetDependency section */
|
||||||
|
|
||||||
/* Begin XCBuildConfiguration section */
|
/* Begin XCBuildConfiguration section */
|
||||||
@@ -231,8 +424,9 @@
|
|||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = "iMessage App Icon";
|
ASSETCATALOG_COMPILER_APPICON_NAME = "iMessage App Icon";
|
||||||
|
CODE_SIGN_ENTITLEMENTS = "GIFCollector MessagesExtension/GIFCollector MessagesExtension.entitlements";
|
||||||
CODE_SIGN_IDENTITY = "";
|
CODE_SIGN_IDENTITY = "";
|
||||||
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO;
|
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = YES;
|
||||||
CODE_SIGN_STYLE = Manual;
|
CODE_SIGN_STYLE = Manual;
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
CURRENT_PROJECT_VERSION = 1;
|
||||||
DEVELOPMENT_TEAM = "";
|
DEVELOPMENT_TEAM = "";
|
||||||
@@ -245,7 +439,7 @@
|
|||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
"@executable_path/../../Frameworks",
|
"@executable_path/../../Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 1.0;
|
MARKETING_VERSION = 100.2.0;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.abunchofknowitalls.GIFCollector.MessagesExtension;
|
PRODUCT_BUNDLE_IDENTIFIER = com.abunchofknowitalls.GIFCollector.MessagesExtension;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||||
@@ -260,8 +454,9 @@
|
|||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = "iMessage App Icon";
|
ASSETCATALOG_COMPILER_APPICON_NAME = "iMessage App Icon";
|
||||||
|
CODE_SIGN_ENTITLEMENTS = "GIFCollector MessagesExtension/GIFCollector MessagesExtension.entitlements";
|
||||||
CODE_SIGN_IDENTITY = "";
|
CODE_SIGN_IDENTITY = "";
|
||||||
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO;
|
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = YES;
|
||||||
CODE_SIGN_STYLE = Manual;
|
CODE_SIGN_STYLE = Manual;
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
CURRENT_PROJECT_VERSION = 1;
|
||||||
DEVELOPMENT_TEAM = "";
|
DEVELOPMENT_TEAM = "";
|
||||||
@@ -274,7 +469,7 @@
|
|||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
"@executable_path/../../Frameworks",
|
"@executable_path/../../Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 1.0;
|
MARKETING_VERSION = 100.2.0;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.abunchofknowitalls.GIFCollector.MessagesExtension;
|
PRODUCT_BUNDLE_IDENTIFIER = com.abunchofknowitalls.GIFCollector.MessagesExtension;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||||
@@ -337,7 +532,7 @@
|
|||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 18.5;
|
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
|
||||||
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
|
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
|
||||||
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
||||||
MTL_FAST_MATH = YES;
|
MTL_FAST_MATH = YES;
|
||||||
@@ -394,7 +589,7 @@
|
|||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 18.5;
|
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
|
||||||
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
|
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
|
||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
MTL_FAST_MATH = YES;
|
MTL_FAST_MATH = YES;
|
||||||
@@ -409,7 +604,7 @@
|
|||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CODE_SIGN_IDENTITY = "";
|
CODE_SIGN_IDENTITY = "";
|
||||||
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO;
|
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = YES;
|
||||||
CODE_SIGN_STYLE = Manual;
|
CODE_SIGN_STYLE = Manual;
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
CURRENT_PROJECT_VERSION = 1;
|
||||||
DEVELOPMENT_TEAM = "";
|
DEVELOPMENT_TEAM = "";
|
||||||
@@ -418,7 +613,7 @@
|
|||||||
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
|
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
|
||||||
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
||||||
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
||||||
MARKETING_VERSION = 1.0;
|
MARKETING_VERSION = 100.2.0;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.abunchofknowitalls.GIFCollector;
|
PRODUCT_BUNDLE_IDENTIFIER = com.abunchofknowitalls.GIFCollector;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||||
@@ -432,7 +627,7 @@
|
|||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CODE_SIGN_IDENTITY = "";
|
CODE_SIGN_IDENTITY = "";
|
||||||
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO;
|
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = YES;
|
||||||
CODE_SIGN_STYLE = Manual;
|
CODE_SIGN_STYLE = Manual;
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
CURRENT_PROJECT_VERSION = 1;
|
||||||
DEVELOPMENT_TEAM = "";
|
DEVELOPMENT_TEAM = "";
|
||||||
@@ -441,7 +636,7 @@
|
|||||||
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
|
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
|
||||||
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
||||||
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
||||||
MARKETING_VERSION = 1.0;
|
MARKETING_VERSION = 100.2.0;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.abunchofknowitalls.GIFCollector;
|
PRODUCT_BUNDLE_IDENTIFIER = com.abunchofknowitalls.GIFCollector;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||||
@@ -450,6 +645,120 @@
|
|||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
|
1BDF21502DEFE9A500128C3C /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
CODE_SIGN_ENTITLEMENTS = "GIFCollector ShareExtension/GIFCollector ShareExtension.entitlements";
|
||||||
|
CODE_SIGN_IDENTITY = "";
|
||||||
|
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = YES;
|
||||||
|
CODE_SIGN_STYLE = Manual;
|
||||||
|
CURRENT_PROJECT_VERSION = 1;
|
||||||
|
DEVELOPMENT_TEAM = "";
|
||||||
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
|
INFOPLIST_FILE = "GIFCollector ShareExtension/Info.plist";
|
||||||
|
INFOPLIST_KEY_CFBundleDisplayName = "GIFCollector ShareExtension";
|
||||||
|
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"@executable_path/Frameworks",
|
||||||
|
"@executable_path/../../Frameworks",
|
||||||
|
);
|
||||||
|
MARKETING_VERSION = 100.2.0;
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = com.abunchofknowitalls.GIFCollector.ShareExtension;
|
||||||
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||||
|
SKIP_INSTALL = YES;
|
||||||
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||||
|
SWIFT_VERSION = 5.0;
|
||||||
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
1BDF21512DEFE9A500128C3C /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
CODE_SIGN_ENTITLEMENTS = "GIFCollector ShareExtension/GIFCollector ShareExtension.entitlements";
|
||||||
|
CODE_SIGN_IDENTITY = "";
|
||||||
|
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = YES;
|
||||||
|
CODE_SIGN_STYLE = Manual;
|
||||||
|
CURRENT_PROJECT_VERSION = 1;
|
||||||
|
DEVELOPMENT_TEAM = "";
|
||||||
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
|
INFOPLIST_FILE = "GIFCollector ShareExtension/Info.plist";
|
||||||
|
INFOPLIST_KEY_CFBundleDisplayName = "GIFCollector ShareExtension";
|
||||||
|
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"@executable_path/Frameworks",
|
||||||
|
"@executable_path/../../Frameworks",
|
||||||
|
);
|
||||||
|
MARKETING_VERSION = 100.2.0;
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = com.abunchofknowitalls.GIFCollector.ShareExtension;
|
||||||
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||||
|
SKIP_INSTALL = YES;
|
||||||
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||||
|
SWIFT_VERSION = 5.0;
|
||||||
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
1BDF21702DEFF71300128C3C /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
|
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||||
|
CODE_SIGN_STYLE = Automatic;
|
||||||
|
CURRENT_PROJECT_VERSION = 1;
|
||||||
|
ENABLE_PREVIEWS = YES;
|
||||||
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
|
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
|
||||||
|
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
||||||
|
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
||||||
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
||||||
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 18.5;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"@executable_path/Frameworks",
|
||||||
|
);
|
||||||
|
MARKETING_VERSION = 1.0;
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = "com.abunchofknowitalls.GIFCollector-App";
|
||||||
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||||
|
SWIFT_VERSION = 5.0;
|
||||||
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
1BDF21712DEFF71300128C3C /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
|
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||||
|
CODE_SIGN_STYLE = Automatic;
|
||||||
|
CURRENT_PROJECT_VERSION = 1;
|
||||||
|
ENABLE_PREVIEWS = YES;
|
||||||
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
|
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
|
||||||
|
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
||||||
|
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
||||||
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
||||||
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 18.5;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"@executable_path/Frameworks",
|
||||||
|
);
|
||||||
|
MARKETING_VERSION = 1.0;
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = "com.abunchofknowitalls.GIFCollector-App";
|
||||||
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||||
|
SWIFT_VERSION = 5.0;
|
||||||
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
/* End XCBuildConfiguration section */
|
/* End XCBuildConfiguration section */
|
||||||
|
|
||||||
/* Begin XCConfigurationList section */
|
/* Begin XCConfigurationList section */
|
||||||
@@ -480,6 +789,24 @@
|
|||||||
defaultConfigurationIsVisible = 0;
|
defaultConfigurationIsVisible = 0;
|
||||||
defaultConfigurationName = Release;
|
defaultConfigurationName = Release;
|
||||||
};
|
};
|
||||||
|
1BDF214F2DEFE9A500128C3C /* Build configuration list for PBXNativeTarget "GIFCollector ShareExtension" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
1BDF21502DEFE9A500128C3C /* Debug */,
|
||||||
|
1BDF21512DEFE9A500128C3C /* Release */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
|
1BDF216F2DEFF71300128C3C /* Build configuration list for PBXNativeTarget "GIFCollector App" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
1BDF21702DEFF71300128C3C /* Debug */,
|
||||||
|
1BDF21712DEFF71300128C3C /* Release */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
/* End XCConfigurationList section */
|
/* End XCConfigurationList section */
|
||||||
};
|
};
|
||||||
rootObject = 1B3192722DEDCF83007850B9 /* Project object */;
|
rootObject = 1B3192722DEDCF83007850B9 /* Project object */;
|
||||||
|
|||||||
@@ -0,0 +1,107 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Scheme
|
||||||
|
LastUpgradeVersion = "1640"
|
||||||
|
wasCreatedForAppExtension = "YES"
|
||||||
|
version = "2.0">
|
||||||
|
<BuildAction
|
||||||
|
parallelizeBuildables = "YES"
|
||||||
|
buildImplicitDependencies = "YES"
|
||||||
|
buildArchitectures = "Automatic">
|
||||||
|
<BuildActionEntries>
|
||||||
|
<BuildActionEntry
|
||||||
|
buildForTesting = "YES"
|
||||||
|
buildForRunning = "YES"
|
||||||
|
buildForProfiling = "YES"
|
||||||
|
buildForArchiving = "YES"
|
||||||
|
buildForAnalyzing = "YES">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "1B3192802DEDCF86007850B9"
|
||||||
|
BuildableName = "GIFCollector MessagesExtension.appex"
|
||||||
|
BlueprintName = "GIFCollector MessagesExtension"
|
||||||
|
ReferencedContainer = "container:GIFCollector.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildActionEntry>
|
||||||
|
<BuildActionEntry
|
||||||
|
buildForTesting = "YES"
|
||||||
|
buildForRunning = "YES"
|
||||||
|
buildForProfiling = "YES"
|
||||||
|
buildForArchiving = "YES"
|
||||||
|
buildForAnalyzing = "YES">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "1B3192772DEDCF83007850B9"
|
||||||
|
BuildableName = "GIFCollector.app"
|
||||||
|
BlueprintName = "GIFCollector"
|
||||||
|
ReferencedContainer = "container:GIFCollector.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildActionEntry>
|
||||||
|
</BuildActionEntries>
|
||||||
|
</BuildAction>
|
||||||
|
<TestAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
shouldAutocreateTestPlan = "YES">
|
||||||
|
</TestAction>
|
||||||
|
<LaunchAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = ""
|
||||||
|
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
|
||||||
|
launchStyle = "0"
|
||||||
|
askForAppToLaunch = "Yes"
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
ignoresPersistentStateOnLaunch = "NO"
|
||||||
|
debugDocumentVersioning = "YES"
|
||||||
|
debugServiceExtension = "internal"
|
||||||
|
allowLocationSimulation = "YES"
|
||||||
|
launchAutomaticallySubstyle = "2">
|
||||||
|
<RemoteRunnable
|
||||||
|
runnableDebuggingMode = "1"
|
||||||
|
BundleIdentifier = "com.apple.MobileSMS">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "1B3192802DEDCF86007850B9"
|
||||||
|
BuildableName = "GIFCollector MessagesExtension.appex"
|
||||||
|
BlueprintName = "GIFCollector MessagesExtension"
|
||||||
|
ReferencedContainer = "container:GIFCollector.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</RemoteRunnable>
|
||||||
|
<MacroExpansion>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "1B3192772DEDCF83007850B9"
|
||||||
|
BuildableName = "GIFCollector.app"
|
||||||
|
BlueprintName = "GIFCollector"
|
||||||
|
ReferencedContainer = "container:GIFCollector.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</MacroExpansion>
|
||||||
|
</LaunchAction>
|
||||||
|
<ProfileAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
savedToolIdentifier = ""
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
debugDocumentVersioning = "YES"
|
||||||
|
askForAppToLaunch = "Yes"
|
||||||
|
launchAutomaticallySubstyle = "2">
|
||||||
|
<BuildableProductRunnable
|
||||||
|
runnableDebuggingMode = "0">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "1B3192772DEDCF83007850B9"
|
||||||
|
BuildableName = "GIFCollector.app"
|
||||||
|
BlueprintName = "GIFCollector"
|
||||||
|
ReferencedContainer = "container:GIFCollector.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
</ProfileAction>
|
||||||
|
<AnalyzeAction
|
||||||
|
buildConfiguration = "Debug">
|
||||||
|
</AnalyzeAction>
|
||||||
|
<ArchiveAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
revealArchiveInOrganizer = "YES">
|
||||||
|
</ArchiveAction>
|
||||||
|
</Scheme>
|
||||||
@@ -0,0 +1,78 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Scheme
|
||||||
|
LastUpgradeVersion = "1640"
|
||||||
|
version = "1.7">
|
||||||
|
<BuildAction
|
||||||
|
parallelizeBuildables = "YES"
|
||||||
|
buildImplicitDependencies = "YES"
|
||||||
|
buildArchitectures = "Automatic">
|
||||||
|
<BuildActionEntries>
|
||||||
|
<BuildActionEntry
|
||||||
|
buildForTesting = "YES"
|
||||||
|
buildForRunning = "YES"
|
||||||
|
buildForProfiling = "YES"
|
||||||
|
buildForArchiving = "YES"
|
||||||
|
buildForAnalyzing = "YES">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "1B3192772DEDCF83007850B9"
|
||||||
|
BuildableName = "GIFCollector.app"
|
||||||
|
BlueprintName = "GIFCollector"
|
||||||
|
ReferencedContainer = "container:GIFCollector.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildActionEntry>
|
||||||
|
</BuildActionEntries>
|
||||||
|
</BuildAction>
|
||||||
|
<TestAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
shouldAutocreateTestPlan = "YES">
|
||||||
|
</TestAction>
|
||||||
|
<LaunchAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
launchStyle = "0"
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
ignoresPersistentStateOnLaunch = "NO"
|
||||||
|
debugDocumentVersioning = "YES"
|
||||||
|
debugServiceExtension = "internal"
|
||||||
|
allowLocationSimulation = "YES">
|
||||||
|
<BuildableProductRunnable
|
||||||
|
runnableDebuggingMode = "0">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "1B3192772DEDCF83007850B9"
|
||||||
|
BuildableName = "GIFCollector.app"
|
||||||
|
BlueprintName = "GIFCollector"
|
||||||
|
ReferencedContainer = "container:GIFCollector.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
</LaunchAction>
|
||||||
|
<ProfileAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
savedToolIdentifier = ""
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
debugDocumentVersioning = "YES">
|
||||||
|
<BuildableProductRunnable
|
||||||
|
runnableDebuggingMode = "0">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "1B3192772DEDCF83007850B9"
|
||||||
|
BuildableName = "GIFCollector.app"
|
||||||
|
BlueprintName = "GIFCollector"
|
||||||
|
ReferencedContainer = "container:GIFCollector.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
</ProfileAction>
|
||||||
|
<AnalyzeAction
|
||||||
|
buildConfiguration = "Debug">
|
||||||
|
</AnalyzeAction>
|
||||||
|
<ArchiveAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
revealArchiveInOrganizer = "YES">
|
||||||
|
</ArchiveAction>
|
||||||
|
</Scheme>
|
||||||
21
GIFCollector/AppDelegate.swift
Normal file
21
GIFCollector/AppDelegate.swift
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
import UIKit
|
||||||
|
|
||||||
|
@main
|
||||||
|
class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||||
|
|
||||||
|
var window: UIWindow?
|
||||||
|
|
||||||
|
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
||||||
|
// Create window
|
||||||
|
window = UIWindow(frame: UIScreen.main.bounds)
|
||||||
|
|
||||||
|
// Create and set the root view controller
|
||||||
|
let viewController = ViewController()
|
||||||
|
window?.rootViewController = viewController
|
||||||
|
|
||||||
|
// Make the window visible
|
||||||
|
window?.makeKeyAndVisible()
|
||||||
|
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
29
GIFCollector/ViewController.swift
Normal file
29
GIFCollector/ViewController.swift
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
import UIKit
|
||||||
|
|
||||||
|
class ViewController: UIViewController {
|
||||||
|
|
||||||
|
private let helloLabel: UILabel = {
|
||||||
|
let label = UILabel()
|
||||||
|
label.text = "Hello World!"
|
||||||
|
label.font = UIFont.systemFont(ofSize: 24, weight: .bold)
|
||||||
|
label.textAlignment = .center
|
||||||
|
label.translatesAutoresizingMaskIntoConstraints = false
|
||||||
|
return label
|
||||||
|
}()
|
||||||
|
|
||||||
|
override func viewDidLoad() {
|
||||||
|
super.viewDidLoad()
|
||||||
|
setupUI()
|
||||||
|
}
|
||||||
|
|
||||||
|
private func setupUI() {
|
||||||
|
view.backgroundColor = .white
|
||||||
|
|
||||||
|
view.addSubview(helloLabel)
|
||||||
|
|
||||||
|
NSLayoutConstraint.activate([
|
||||||
|
helloLabel.centerXAnchor.constraint(equalTo: view.centerXAnchor),
|
||||||
|
helloLabel.centerYAnchor.constraint(equalTo: view.centerYAnchor)
|
||||||
|
])
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user