mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 13:05:18 +00:00
Xcode Configuration files: .xcconfigs + Remove xcodegen (#608)
* Create configs files with basic settings populated * Add Configs and set the global Debug/Release settings * Update build settings to be read from the configs * Remove `xcodegen`’s `project.yml` * Configurable and dynamic bundle and group ids * Simplified local development with custom Team IDs
This commit is contained in:
@@ -12,6 +12,9 @@ import UniformTypeIdentifiers
|
||||
/// Modern share extension using UIKit + UTTypes.
|
||||
/// Avoids deprecated Social framework and SLComposeServiceViewController.
|
||||
final class ShareViewController: UIViewController {
|
||||
// Bundle.main.bundleIdentifier would get the extension's bundleID
|
||||
private static let groupID = "group.chat.bitchat"
|
||||
|
||||
private let statusLabel: UILabel = {
|
||||
let l = UILabel()
|
||||
l.translatesAutoresizingMaskIntoConstraints = false
|
||||
@@ -149,7 +152,7 @@ final class ShareViewController: UIViewController {
|
||||
}
|
||||
|
||||
private func saveToSharedDefaults(content: String, type: String) {
|
||||
guard let userDefaults = UserDefaults(suiteName: "group.chat.bitchat") else { return }
|
||||
guard let userDefaults = UserDefaults(suiteName: Self.groupID) else { return }
|
||||
userDefaults.set(content, forKey: "sharedContent")
|
||||
userDefaults.set(type, forKey: "sharedContentType")
|
||||
userDefaults.set(Date(), forKey: "sharedContentDate")
|
||||
|
||||
Reference in New Issue
Block a user