Migrate demo apps from CocoaPods to SPM#1
Open
chante-gobel wants to merge 1 commit into
Open
Conversation
- Remove Podfile and Podfile.lock - Add CMPComapiFoundation and SnapKit as SPM dependencies in project.pbxproj - Replace JWT/Base64 CocoaPods with native CommonCrypto JWT implementation in both ObjC and Swift auth managers - Remove CocoaPods bridging header imports (JWT, Base64) from Swift bridging header - Add missing UIKit, CMPComapiFoundation, SnapKit imports across Swift demo app files - Fix Info.plist credentials for both apps (SERVER_SCHEME/SERVER_HOST were swapped) - Update Package.resolved with SnapKit 5.7.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrates both demo apps (
ComapiFoundationSampleObjC andComapiFoundationSample-Swift) from CocoaPods to Swift Package Manager.Changes
Dependencies
PodfileandPodfile.lockCMPComapiFoundation(local SPM package) andSnapKit 5.7.1(remote SPM) inproject.pbxproj[CP] Check Pods Manifest.lock,[CP] Embed Pods Frameworks)Authentication
JWT+Base64CocoaPods with a nativeCommonCrypto-based HS256 JWT implementation in both:CMPAuthenticationManager.m(ObjC)AuthenticationManager.swift(Swift)JWTandBase64imports from Swift bridging headerImport fixes
import UIKit,import CMPComapiFoundation,import SnapKitacross Swift demo files:AppConfigurator.swiftChatViewModel.swiftChatTextMessageCell.swiftMessageStatusView.swiftCreateConversationViewModel.swiftConversationViewModel.swiftTesting