Skip to content

Commit

Permalink
refactor: refuse to adding CocoaPods
Browse files Browse the repository at this point in the history
  • Loading branch information
htmlprogrammist committed Jul 19, 2022
1 parent 282bb96 commit 59711c0
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 66 deletions.
17 changes: 0 additions & 17 deletions EmojiPicker.podspec

This file was deleted.

4 changes: 2 additions & 2 deletions Example App/AppImport/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import PackageDescription

let package = Package(
name: "AppImport",
platforms: [.iOS(.v12)],
platforms: [.iOS("11.1")],
products: [
.library(
name: "AppImport",
targets: ["AppImport"]),
],
dependencies: [
.package(url: "https://github.com/htmlprogrammist/EmojiPicker", .upToNextMajor(from: "1.0.2"))
.package(url: "https://github.com/htmlprogrammist/EmojiPicker", .upToNextMajor(from: "1.0.3"))
],
targets: [
.target(
Expand Down
8 changes: 4 additions & 4 deletions Example App/iOS Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.1;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -269,7 +269,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.1;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
Expand All @@ -293,7 +293,7 @@
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.1;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -321,7 +321,7 @@
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.1;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
Binary file not shown.
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ let package = Package(
name: "EmojiPicker",
dependencies: [],
resources: [.process("Resources")])
]
],
swiftLanguageVersions: [.v4_2]
)
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ Emoji picker for iOS like on macOS
</p>

## Installation
Ready for use on iOS 12+
Ready for use with Swift 4.2+ on iOS 11.1+

### Swift Package Manager
The [Swift Package Manager](https://www.swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.

Once you have your Swift package set up, adding as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.
```swift
dependencies: [
.package(url: "https://github.com/izzyumkin/EmojiPicker", .upToNextMajor(from: "1.0.2"))
.package(url: "https://github.com/izzyumkin/EmojiPicker", .upToNextMajor(from: "1.0.4"))
]
```

Expand Down
32 changes: 0 additions & 32 deletions Sources/EmojiPicker/Common/Foundation/Bundle.swift

This file was deleted.

16 changes: 8 additions & 8 deletions Sources/EmojiPicker/Services/UnicodeManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,21 @@ final class UnicodeManager: UnicodeManagerProtocol {
public func getEmojiCategoryTitle(for type: EmojiCategoryType) -> String {
switch type {
case .people:
return NSLocalizedString("emotionsAndPeople", bundle: Bundle.sdkResources, comment: "")
return NSLocalizedString("emotionsAndPeople", bundle: .module, comment: "")
case .nature:
return NSLocalizedString("animalsAndNature", bundle: Bundle.sdkResources, comment: "")
return NSLocalizedString("animalsAndNature", bundle: .module, comment: "")
case .foodAndDrink:
return NSLocalizedString("foodAndDrinks", bundle: Bundle.sdkResources, comment: "")
return NSLocalizedString("foodAndDrinks", bundle: .module, comment: "")
case .activity:
return NSLocalizedString("activities", bundle: Bundle.sdkResources, comment: "")
return NSLocalizedString("activities", bundle: .module, comment: "")
case .travelAndPlaces:
return NSLocalizedString("travellingAndPlaces", bundle: Bundle.sdkResources, comment: "")
return NSLocalizedString("travellingAndPlaces", bundle: .module, comment: "")
case .objects:
return NSLocalizedString("objects", bundle: Bundle.sdkResources, comment: "")
return NSLocalizedString("objects", bundle: .module, comment: "")
case .symbols:
return NSLocalizedString("symbols", bundle: Bundle.sdkResources, comment: "")
return NSLocalizedString("symbols", bundle: .module, comment: "")
case .flags:
return NSLocalizedString("flags", bundle: Bundle.sdkResources, comment: "")
return NSLocalizedString("flags", bundle: .module, comment: "")
}
}
}

0 comments on commit 59711c0

Please sign in to comment.