Skip to content

Commit

Permalink
Remove SwiftyJSON and set minimum deployment target to 12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangtaiki committed Nov 21, 2023
1 parent 09dafe3 commit f3471aa
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 32 deletions.
4 changes: 2 additions & 2 deletions ChatViewController.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -464,7 +464,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
Expand Down
11 changes: 9 additions & 2 deletions Example/Podfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
platform :ios, '10.0'
platform :ios, '12.0'

target 'iOS Example' do
use_frameworks!

pod 'ChatViewController', :path => ".."
pod 'Kingfisher'
pod 'SwiftyJSON'
end

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
end
end
end
22 changes: 11 additions & 11 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
PODS:
- ChatViewController (1.1.0):
- ChatViewController (1.2.0):
- PlaceholderUITextView
- Kingfisher (5.3.1)
- Kingfisher (7.10.0)
- PlaceholderUITextView (1.2.0)
- SwiftyJSON (4.3.0)
- SwiftLint (0.54.0)

DEPENDENCIES:
- ChatViewController (from `..`)
- Kingfisher
- SwiftyJSON
- SwiftLint

SPEC REPOS:
https://github.com/cocoapods/specs.git:
trunk:
- Kingfisher
- PlaceholderUITextView
- SwiftyJSON
- SwiftLint

EXTERNAL SOURCES:
ChatViewController:
:path: ".."

SPEC CHECKSUMS:
ChatViewController: e2ab18e0a4910cce0544773239ba1549a9afe4b9
Kingfisher: d9e7e0b209b59b8f9873aa2f37654e81a7beea51
ChatViewController: b8b4b16c9a50c4b1ec4146a0349aa7725c87c8ec
Kingfisher: a18f05d3b6d37d8650ee4a3e61d57a28fc6207f6
PlaceholderUITextView: a2158e51dc0a3217ecca2d879bbe59372292d391
SwiftyJSON: 6faa0040f8b59dead0ee07436cbf76b73c08fd08
SwiftLint: c1de071d9d08c8aba837545f6254315bc900e211

PODFILE CHECKSUM: dca9be4f0f56343a982263e8bd7d779297a35449
PODFILE CHECKSUM: f9efcf20ed351e0f7798c7364948b1892c9c3c75

COCOAPODS: 1.6.0
COCOAPODS: 1.14.3
2 changes: 2 additions & 0 deletions Example/Source/FileInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ enum FileType: Int, Decodable {

struct FileInfo: Decodable {



let id: String
let type: FileType
let originalURL: URL?
Expand Down
1 change: 0 additions & 1 deletion Example/Source/MessageViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
//

import UIKit
import SwiftyJSON

enum BubbleStyle {
case facebook
Expand Down
19 changes: 5 additions & 14 deletions Example/iOS Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -323,22 +323,11 @@
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-iOS Example/Pods-iOS Example-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/ChatViewController/ChatViewController.framework",
"${BUILT_PRODUCTS_DIR}/Kingfisher/Kingfisher.framework",
"${BUILT_PRODUCTS_DIR}/PlaceholderUITextView/PlaceholderUITextView.framework",
"${BUILT_PRODUCTS_DIR}/SwiftyJSON/SwiftyJSON.framework",
"${PODS_ROOT}/Target Support Files/Pods-iOS Example/Pods-iOS Example-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
);
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ChatViewController.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Kingfisher.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/PlaceholderUITextView.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftyJSON.framework",
"${PODS_ROOT}/Target Support Files/Pods-iOS Example/Pods-iOS Example-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
Expand Down Expand Up @@ -522,6 +511,7 @@
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = "$(SRCROOT)/Resources/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -543,6 +533,7 @@
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = "$(SRCROOT)/Resources/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/ChatViewController+Subviews.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ extension ChatViewController {
/// Show keyboard from nothing
// Handle keyboard show/hide notification to animation show ChatBarView
func animateKeyboard(notification: Notification, isShowing: Bool) {
var userInfo = notification.userInfo!
let userInfo = notification.userInfo!
let keyboardRect = (userInfo[UIResponder.keyboardFrameEndUserInfoKey]! as AnyObject).cgRectValue
let curve = (userInfo[UIResponder.keyboardAnimationCurveUserInfoKey]! as AnyObject).uint32Value

Expand Down
2 changes: 1 addition & 1 deletion Source/ImagePicker/PhotoDataManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import UIKit
import Photos

/// PhotoDataManagerDelegate
public protocol PhotoDataManagerDelegate: class {
public protocol PhotoDataManagerDelegate: AnyObject {
// Trigger whenever PhotoDataManager update
func photoDataManagerDidUpdate()
// Image size need export
Expand Down

0 comments on commit f3471aa

Please sign in to comment.