Skip to content

Commit 95546bd

Browse files
committed
tvOS support enabled
1 parent 6ae429f commit 95546bd

File tree

7 files changed

+8
-10
lines changed

7 files changed

+8
-10
lines changed

AKLanguageManager.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Pod::Spec.new do |s|
22

3-
s.platform = :ios
43
s.ios.deployment_target = '13.0'
4+
s.tvos.deployment_target = '13.0'
55
s.name = "AKLanguageManager"
6-
s.summary = "AKLanguageManager is a language manager for iOS applications."
6+
s.summary = "AKLanguageManager is a language manager for iOS and tvOS applications."
77
s.requires_arc = true
88

9-
s.version = "1.0.0"
9+
s.version = "1.0.1"
1010
s.license = { :type => "MIT", :file => "LICENSE" }
1111
s.author = { "Amr Koritem" => "amr.koritem92@gmail.com" }
1212
s.homepage = "https://github.com/AmrKoritem/AKLanguageManager"

Example/Example.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@
130130
isa = PBXGroup;
131131
children = (
132132
1D43ECBD28EA8048000259A3 /* SupportFiles */,
133-
1D4EE5D328EB63C600EC3885 /* FirstViewController.swift */,
134133
1D4EE5D028EB63C600EC3885 /* Routing+Extension.swift */,
134+
1D4EE5D328EB63C600EC3885 /* FirstViewController.swift */,
135135
1D4EE5D228EB63C600EC3885 /* SecondViewController.swift */,
136136
1D4EE5D128EB63C600EC3885 /* SettingsViewController.swift */,
137137
1D43EC9328EA7FF4000259A3 /* Main.storyboard */,

Example/Example/Base.lproj/Main.storyboard

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="20037" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="NgE-GT-uAM">
33
<device id="retina6_1" orientation="portrait" appearance="light"/>
44
<dependencies>
5+
<deployment identifier="iOS"/>
56
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="20020"/>
67
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
78
<capability name="System colors in document resources" minToolsVersion="11.0"/>

Example/Example/SupportFiles/AppDelegate.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import AKLanguageManager
1111
@main
1212
class AppDelegate: UIResponder, UIApplicationDelegate {
1313
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
14-
// Override point for customization after application launch.
1514
AKLanguageManager.shared.configureWith(defaultLanguage: .en)
1615
return true
1716
}

Package.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ let package = Package(
77
name: "AKLanguageManager",
88
defaultLocalization: "en",
99
platforms: [
10-
.iOS(.v13)
10+
.iOS(.v13),
11+
.tvOS(.v13)
1112
],
1213
products: [
1314
.library(

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ All contributions are welcome. Please check the [Known issues](https://github.co
182182

183183
This library was inspired by [Abedalkareem's LanguageManager-iOS](https://github.com/Abedalkareem/LanguageManager-iOS) library. Please check his work and give him the credit he deserves 🚀
184184

185-
## Follow me
185+
## Find me
186186

187187
[LinkedIn](https://www.linkedin.com/in/amr-koritem-976bb0125/)
188188

Sources/AKLanguageManager/Extensions/UITabBar+Localizable.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,21 +85,18 @@ extension UITabBarItem: Localizable {
8585
guard shouldLocalizeImageDirection else { return }
8686
image = image?.directionLocalized
8787
selectedImage = selectedImage?.directionLocalized
88-
landscapeImagePhone = landscapeImagePhone?.directionLocalized
8988
}
9089

9190
/// Reverts the image direction.
9291
public func revertImageHorizontalDirection() {
9392
image = image?.horizontalDirectionReverted
9493
selectedImage = selectedImage?.horizontalDirectionReverted
95-
landscapeImagePhone = landscapeImagePhone?.horizontalDirectionReverted
9694
}
9795

9896
/// Resets the image direction.
9997
public func resetImageHorizontalDirection() {
10098
image = image?.horizontalDirectionChanged(to: .leftToRight)
10199
selectedImage = selectedImage?.horizontalDirectionChanged(to: .leftToRight)
102-
landscapeImagePhone = landscapeImagePhone?.horizontalDirectionChanged(to: .leftToRight)
103100
}
104101
}
105102

0 commit comments

Comments
 (0)