From d2f22dc0664be6178fd14209aa7f54368cefa33f Mon Sep 17 00:00:00 2001 From: fmodf Date: Wed, 18 Dec 2024 04:51:41 +0100 Subject: [PATCH] wip --- AnotherXMPP/Info.plist | 22 +++++++++++++++++++ .../xmpp => AnotherXMPP}/XMPPClient.swift | 0 .../xmpp => AnotherXMPP}/XMPPStorage.swift | 0 .../xmpp => AnotherXMPP}/models/JID.swift | 0 .../xmpp => AnotherXMPP}/models/Roster.swift | 0 .../models/SRVRecord.swift | 0 .../xmpp => AnotherXMPP}/models/Stanza.swift | 0 .../models/UserAgent.swift | 0 .../models/XMLElement.swift | 0 .../modules/XmppModule.swift | 0 .../auth/AuthorizationMechanisms.swift | 0 .../modules/auth/AuthorizationModule.swift | 0 .../modules/connection/ConnectionModule.swift | 0 .../modules/connection/DirectTLSSocket.swift | 0 .../modules/connection/StartTLSSocket.swift | 0 .../modules/disco/DiscoveryModule.swift | 0 .../modules/dns/SRVResolverModule.swift | 0 .../modules/parsing/ParserModule.swift | 0 .../modules/parsing/XMLParser.swift | 0 .../modules/roster/RosterModule.swift | 0 .../modules/session/Logger.swift | 0 .../modules/session/SessionModule.swift | 0 .../modules/stanza/StanzaModule.swift | 0 .../utils/Data+Crypto.swift | 0 .../utils/MemBridge.swift | 0 .../utils/String+Base64.swift | 0 .../utils/String+XML.swift | 0 project.yml | 22 +++++++++++++++++++ 28 files changed, 44 insertions(+) create mode 100644 AnotherXMPP/Info.plist rename {AnotherIM/xmpp => AnotherXMPP}/XMPPClient.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/XMPPStorage.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/models/JID.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/models/Roster.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/models/SRVRecord.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/models/Stanza.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/models/UserAgent.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/models/XMLElement.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/modules/XmppModule.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/modules/auth/AuthorizationMechanisms.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/modules/auth/AuthorizationModule.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/modules/connection/ConnectionModule.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/modules/connection/DirectTLSSocket.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/modules/connection/StartTLSSocket.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/modules/disco/DiscoveryModule.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/modules/dns/SRVResolverModule.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/modules/parsing/ParserModule.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/modules/parsing/XMLParser.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/modules/roster/RosterModule.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/modules/session/Logger.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/modules/session/SessionModule.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/modules/stanza/StanzaModule.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/utils/Data+Crypto.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/utils/MemBridge.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/utils/String+Base64.swift (100%) rename {AnotherIM/xmpp => AnotherXMPP}/utils/String+XML.swift (100%) diff --git a/AnotherXMPP/Info.plist b/AnotherXMPP/Info.plist new file mode 100644 index 0000000..64d65ca --- /dev/null +++ b/AnotherXMPP/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/AnotherIM/xmpp/XMPPClient.swift b/AnotherXMPP/XMPPClient.swift similarity index 100% rename from AnotherIM/xmpp/XMPPClient.swift rename to AnotherXMPP/XMPPClient.swift diff --git a/AnotherIM/xmpp/XMPPStorage.swift b/AnotherXMPP/XMPPStorage.swift similarity index 100% rename from AnotherIM/xmpp/XMPPStorage.swift rename to AnotherXMPP/XMPPStorage.swift diff --git a/AnotherIM/xmpp/models/JID.swift b/AnotherXMPP/models/JID.swift similarity index 100% rename from AnotherIM/xmpp/models/JID.swift rename to AnotherXMPP/models/JID.swift diff --git a/AnotherIM/xmpp/models/Roster.swift b/AnotherXMPP/models/Roster.swift similarity index 100% rename from AnotherIM/xmpp/models/Roster.swift rename to AnotherXMPP/models/Roster.swift diff --git a/AnotherIM/xmpp/models/SRVRecord.swift b/AnotherXMPP/models/SRVRecord.swift similarity index 100% rename from AnotherIM/xmpp/models/SRVRecord.swift rename to AnotherXMPP/models/SRVRecord.swift diff --git a/AnotherIM/xmpp/models/Stanza.swift b/AnotherXMPP/models/Stanza.swift similarity index 100% rename from AnotherIM/xmpp/models/Stanza.swift rename to AnotherXMPP/models/Stanza.swift diff --git a/AnotherIM/xmpp/models/UserAgent.swift b/AnotherXMPP/models/UserAgent.swift similarity index 100% rename from AnotherIM/xmpp/models/UserAgent.swift rename to AnotherXMPP/models/UserAgent.swift diff --git a/AnotherIM/xmpp/models/XMLElement.swift b/AnotherXMPP/models/XMLElement.swift similarity index 100% rename from AnotherIM/xmpp/models/XMLElement.swift rename to AnotherXMPP/models/XMLElement.swift diff --git a/AnotherIM/xmpp/modules/XmppModule.swift b/AnotherXMPP/modules/XmppModule.swift similarity index 100% rename from AnotherIM/xmpp/modules/XmppModule.swift rename to AnotherXMPP/modules/XmppModule.swift diff --git a/AnotherIM/xmpp/modules/auth/AuthorizationMechanisms.swift b/AnotherXMPP/modules/auth/AuthorizationMechanisms.swift similarity index 100% rename from AnotherIM/xmpp/modules/auth/AuthorizationMechanisms.swift rename to AnotherXMPP/modules/auth/AuthorizationMechanisms.swift diff --git a/AnotherIM/xmpp/modules/auth/AuthorizationModule.swift b/AnotherXMPP/modules/auth/AuthorizationModule.swift similarity index 100% rename from AnotherIM/xmpp/modules/auth/AuthorizationModule.swift rename to AnotherXMPP/modules/auth/AuthorizationModule.swift diff --git a/AnotherIM/xmpp/modules/connection/ConnectionModule.swift b/AnotherXMPP/modules/connection/ConnectionModule.swift similarity index 100% rename from AnotherIM/xmpp/modules/connection/ConnectionModule.swift rename to AnotherXMPP/modules/connection/ConnectionModule.swift diff --git a/AnotherIM/xmpp/modules/connection/DirectTLSSocket.swift b/AnotherXMPP/modules/connection/DirectTLSSocket.swift similarity index 100% rename from AnotherIM/xmpp/modules/connection/DirectTLSSocket.swift rename to AnotherXMPP/modules/connection/DirectTLSSocket.swift diff --git a/AnotherIM/xmpp/modules/connection/StartTLSSocket.swift b/AnotherXMPP/modules/connection/StartTLSSocket.swift similarity index 100% rename from AnotherIM/xmpp/modules/connection/StartTLSSocket.swift rename to AnotherXMPP/modules/connection/StartTLSSocket.swift diff --git a/AnotherIM/xmpp/modules/disco/DiscoveryModule.swift b/AnotherXMPP/modules/disco/DiscoveryModule.swift similarity index 100% rename from AnotherIM/xmpp/modules/disco/DiscoveryModule.swift rename to AnotherXMPP/modules/disco/DiscoveryModule.swift diff --git a/AnotherIM/xmpp/modules/dns/SRVResolverModule.swift b/AnotherXMPP/modules/dns/SRVResolverModule.swift similarity index 100% rename from AnotherIM/xmpp/modules/dns/SRVResolverModule.swift rename to AnotherXMPP/modules/dns/SRVResolverModule.swift diff --git a/AnotherIM/xmpp/modules/parsing/ParserModule.swift b/AnotherXMPP/modules/parsing/ParserModule.swift similarity index 100% rename from AnotherIM/xmpp/modules/parsing/ParserModule.swift rename to AnotherXMPP/modules/parsing/ParserModule.swift diff --git a/AnotherIM/xmpp/modules/parsing/XMLParser.swift b/AnotherXMPP/modules/parsing/XMLParser.swift similarity index 100% rename from AnotherIM/xmpp/modules/parsing/XMLParser.swift rename to AnotherXMPP/modules/parsing/XMLParser.swift diff --git a/AnotherIM/xmpp/modules/roster/RosterModule.swift b/AnotherXMPP/modules/roster/RosterModule.swift similarity index 100% rename from AnotherIM/xmpp/modules/roster/RosterModule.swift rename to AnotherXMPP/modules/roster/RosterModule.swift diff --git a/AnotherIM/xmpp/modules/session/Logger.swift b/AnotherXMPP/modules/session/Logger.swift similarity index 100% rename from AnotherIM/xmpp/modules/session/Logger.swift rename to AnotherXMPP/modules/session/Logger.swift diff --git a/AnotherIM/xmpp/modules/session/SessionModule.swift b/AnotherXMPP/modules/session/SessionModule.swift similarity index 100% rename from AnotherIM/xmpp/modules/session/SessionModule.swift rename to AnotherXMPP/modules/session/SessionModule.swift diff --git a/AnotherIM/xmpp/modules/stanza/StanzaModule.swift b/AnotherXMPP/modules/stanza/StanzaModule.swift similarity index 100% rename from AnotherIM/xmpp/modules/stanza/StanzaModule.swift rename to AnotherXMPP/modules/stanza/StanzaModule.swift diff --git a/AnotherIM/xmpp/utils/Data+Crypto.swift b/AnotherXMPP/utils/Data+Crypto.swift similarity index 100% rename from AnotherIM/xmpp/utils/Data+Crypto.swift rename to AnotherXMPP/utils/Data+Crypto.swift diff --git a/AnotherIM/xmpp/utils/MemBridge.swift b/AnotherXMPP/utils/MemBridge.swift similarity index 100% rename from AnotherIM/xmpp/utils/MemBridge.swift rename to AnotherXMPP/utils/MemBridge.swift diff --git a/AnotherIM/xmpp/utils/String+Base64.swift b/AnotherXMPP/utils/String+Base64.swift similarity index 100% rename from AnotherIM/xmpp/utils/String+Base64.swift rename to AnotherXMPP/utils/String+Base64.swift diff --git a/AnotherIM/xmpp/utils/String+XML.swift b/AnotherXMPP/utils/String+XML.swift similarity index 100% rename from AnotherIM/xmpp/utils/String+XML.swift rename to AnotherXMPP/utils/String+XML.swift diff --git a/project.yml b/project.yml index a2b4e53..aeb8a4b 100644 --- a/project.yml +++ b/project.yml @@ -25,6 +25,27 @@ targets: # Sharing service here... # + # xmpp framework + AnotherXMPP: + type: framework + platform: iOS + deploymentTarget: 16.0 + scheme: {} + sources: + - path: AnotherXMPP + info: + path: ./AnotherXMPP/Info.plist + properties: + CFBundlePackageType: $(PRODUCT_BUNDLE_PACKAGE_TYPE) + settings: + DEBUG_INFORMATION_FORMAT: dwarf-with-dsym + PRODUCT_BUNDLE_IDENTIFIER: im.narayana.anotherxmpp.lib + DEAD_CODE_STRIPPING: true + dependencies: + - sdk: libxml2.tbd + - sdk: Security.framework + # - framework: Lib/WebRTC.xcframework + # iOS App AnotherIM: type: application @@ -63,6 +84,7 @@ targets: dependencies: - sdk: Security.framework - sdk: CryptoKit.framework + - target: AnotherXMPP - package: SwiftfulRouting link: true - package: KeychainAccess