diff --git a/BLTNBoard.xcodeproj/project.pbxproj b/BLTNBoard.xcodeproj/project.pbxproj index 936666b..c2645e8 100644 --- a/BLTNBoard.xcodeproj/project.pbxproj +++ b/BLTNBoard.xcodeproj/project.pbxproj @@ -21,13 +21,9 @@ 558D808B218DC5B6000ADAFD /* BLTNBoard.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 52D6D97C1BEFF229002C0205 /* BLTNBoard.framework */; }; 558D8093218DCA81000ADAFD /* FBSnapshotTestCase.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 558D8092218DCA81000ADAFD /* FBSnapshotTestCase.framework */; }; 558D8095218DCA98000ADAFD /* FBSnapshotTestCase.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 558D8092218DCA81000ADAFD /* FBSnapshotTestCase.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 5590C04B20B852150045C315 /* CloseGlyph.png in Resources */ = {isa = PBXBuildFile; fileRef = 5590C04820B852150045C315 /* CloseGlyph.png */; }; - 5590C04C20B852150045C315 /* CloseGlyph@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5590C04920B852150045C315 /* CloseGlyph@2x.png */; }; - 5590C04D20B852150045C315 /* CloseGlyph@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5590C04A20B852150045C315 /* CloseGlyph@3x.png */; }; 5590C04F20B85BCE0045C315 /* BLTNTitleLabelContainer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5590C04E20B85BCE0045C315 /* BLTNTitleLabelContainer.swift */; }; 5590C05120B934230045C315 /* Highlighter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5590C05020B934230045C315 /* Highlighter.swift */; }; 5590C05320B93B350045C315 /* UIColor+Luminance.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5590C05220B93B350045C315 /* UIColor+Luminance.swift */; }; - 5590C05420B93F3A0045C315 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 5590C05620B93F3A0045C315 /* Localizable.strings */; }; 559F8E95204DB9BA00322949 /* BLTNItem.h in Headers */ = {isa = PBXBuildFile; fileRef = 559F8E94204DB9BA00322949 /* BLTNItem.h */; settings = {ATTRIBUTES = (Public, ); }; }; 559F8EA3204DC42D00322949 /* UIView+RoundedView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 559F8EA2204DC42D00322949 /* UIView+RoundedView.swift */; }; 55B3D1CF1FDADA8E00737791 /* AnimationChain.swift in Sources */ = {isa = PBXBuildFile; fileRef = 55B3D1CE1FDADA8E00737791 /* AnimationChain.swift */; }; @@ -90,46 +86,9 @@ 558D8088218DC5B6000ADAFD /* BLTNBoardTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BLTNBoardTests.swift; sourceTree = ""; }; 558D808A218DC5B6000ADAFD /* BLTNBoardTests.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = BLTNBoardTests.plist; sourceTree = ""; }; 558D8092218DCA81000ADAFD /* FBSnapshotTestCase.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FBSnapshotTestCase.framework; path = Carthage/Build/iOS/FBSnapshotTestCase.framework; sourceTree = ""; }; - 5590C04820B852150045C315 /* CloseGlyph.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = CloseGlyph.png; sourceTree = ""; }; - 5590C04920B852150045C315 /* CloseGlyph@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "CloseGlyph@2x.png"; sourceTree = ""; }; - 5590C04A20B852150045C315 /* CloseGlyph@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "CloseGlyph@3x.png"; sourceTree = ""; }; 5590C04E20B85BCE0045C315 /* BLTNTitleLabelContainer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BLTNTitleLabelContainer.swift; sourceTree = ""; }; 5590C05020B934230045C315 /* Highlighter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Highlighter.swift; sourceTree = ""; }; 5590C05220B93B350045C315 /* UIColor+Luminance.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIColor+Luminance.swift"; sourceTree = ""; }; - 5590C05520B93F3A0045C315 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = ""; }; - 5590C05820B93F750045C315 /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/Localizable.strings; sourceTree = ""; }; - 5590C05920B93F790045C315 /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/Localizable.strings; sourceTree = ""; }; - 5590C05A20B93FFC0045C315 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = ""; }; - 5590C05B20B940190045C315 /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/Localizable.strings; sourceTree = ""; }; - 5590C05C20B940310045C315 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/Localizable.strings; sourceTree = ""; }; - 5590C05D20B940420045C315 /* da */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = da; path = da.lproj/Localizable.strings; sourceTree = ""; }; - 5590C05E20B940590045C315 /* nl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nl; path = nl.lproj/Localizable.strings; sourceTree = ""; }; - 5590C05F20B9406C0045C315 /* hr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = hr; path = hr.lproj/Localizable.strings; sourceTree = ""; }; - 5590C06020B9407A0045C315 /* el */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = el; path = el.lproj/Localizable.strings; sourceTree = ""; }; - 5590C06120B940930045C315 /* he */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = he; path = he.lproj/Localizable.strings; sourceTree = ""; }; - 5590C06220B940AA0045C315 /* ar */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ar; path = ar.lproj/Localizable.strings; sourceTree = ""; }; - 5590C06320B940B80045C315 /* cs */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = cs; path = cs.lproj/Localizable.strings; sourceTree = ""; }; - 5590C06420B940E50045C315 /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/Localizable.strings; sourceTree = ""; }; - 5590C06520B940F90045C315 /* ko */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ko; path = ko.lproj/Localizable.strings; sourceTree = ""; }; - 5590C06620B9410C0045C315 /* th */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = th; path = th.lproj/Localizable.strings; sourceTree = ""; }; - 5590C06720B941150045C315 /* uk */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = uk; path = uk.lproj/Localizable.strings; sourceTree = ""; }; - 5590C06820B9412B0045C315 /* ms */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ms; path = ms.lproj/Localizable.strings; sourceTree = ""; }; - 5590C06920B941390045C315 /* vi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = vi; path = vi.lproj/Localizable.strings; sourceTree = ""; }; - 5590C06A20B941440045C315 /* sk */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sk; path = sk.lproj/Localizable.strings; sourceTree = ""; }; - 5590C06B20B941540045C315 /* ru */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ru; path = ru.lproj/Localizable.strings; sourceTree = ""; }; - 5590C06C20B9415D0045C315 /* ro */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ro; path = ro.lproj/Localizable.strings; sourceTree = ""; }; - 5590C06D20B941750045C315 /* ca */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ca; path = ca.lproj/Localizable.strings; sourceTree = ""; }; - 5590C06E20B941860045C315 /* fi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fi; path = fi.lproj/Localizable.strings; sourceTree = ""; }; - 5590C06F20B941990045C315 /* hu */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = hu; path = hu.lproj/Localizable.strings; sourceTree = ""; }; - 5590C07020B941A90045C315 /* id */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = id; path = id.lproj/Localizable.strings; sourceTree = ""; }; - 5590C07120B941BC0045C315 /* nb */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nb; path = nb.lproj/Localizable.strings; sourceTree = ""; }; - 5590C07220B941CD0045C315 /* pl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pl; path = pl.lproj/Localizable.strings; sourceTree = ""; }; - 5590C07320B941DC0045C315 /* pt-BR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "pt-BR"; path = "pt-BR.lproj/Localizable.strings"; sourceTree = ""; }; - 5590C07420B941E60045C315 /* pt-PT */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "pt-PT"; path = "pt-PT.lproj/Localizable.strings"; sourceTree = ""; }; - 5590C07520B942060045C315 /* sv */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sv; path = sv.lproj/Localizable.strings; sourceTree = ""; }; - 5590C07620B942170045C315 /* tr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = tr; path = tr.lproj/Localizable.strings; sourceTree = ""; }; - 5590C07720B942620045C315 /* hi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = hi; path = hi.lproj/Localizable.strings; sourceTree = ""; }; - 5590C07820B943210045C315 /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/Localizable.strings"; sourceTree = ""; }; 559F8E94204DB9BA00322949 /* BLTNItem.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BLTNItem.h; sourceTree = ""; }; 559F8EA2204DC42D00322949 /* UIView+RoundedView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIView+RoundedView.swift"; sourceTree = ""; }; 55B3D1CE1FDADA8E00737791 /* AnimationChain.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnimationChain.swift; sourceTree = ""; }; @@ -178,7 +137,6 @@ isa = PBXGroup; children = ( 5E9D32682108FB9A0032FB06 /* BulletinBoard.podspec */, - 55E8621C20B84DE500584EAC /* Resources */, 8933C7811EB5B7E0000D00A4 /* Sources */, 52D6D99C1BEFF38C002C0205 /* Configs */, 558D8087218DC5B6000ADAFD /* BLTNBoardTests */, @@ -221,14 +179,6 @@ name = Frameworks; sourceTree = ""; }; - 5590C05720B93F610045C315 /* Strings */ = { - isa = PBXGroup; - children = ( - 5590C05620B93F3A0045C315 /* Localizable.strings */, - ); - path = Strings; - sourceTree = ""; - }; 55B3D1D01FDD643B00737791 /* Appearance */ = { isa = PBXGroup; children = ( @@ -328,17 +278,6 @@ path = ContinuousCorners; sourceTree = ""; }; - 55E8621C20B84DE500584EAC /* Resources */ = { - isa = PBXGroup; - children = ( - 5590C05720B93F610045C315 /* Strings */, - 5590C04820B852150045C315 /* CloseGlyph.png */, - 5590C04920B852150045C315 /* CloseGlyph@2x.png */, - 5590C04A20B852150045C315 /* CloseGlyph@3x.png */, - ); - path = Resources; - sourceTree = ""; - }; 8933C7811EB5B7E0000D00A4 /* Sources */ = { isa = PBXGroup; children = ( @@ -485,10 +424,6 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 5590C04D20B852150045C315 /* CloseGlyph@3x.png in Resources */, - 5590C04B20B852150045C315 /* CloseGlyph.png in Resources */, - 5590C05420B93F3A0045C315 /* Localizable.strings in Resources */, - 5590C04C20B852150045C315 /* CloseGlyph@2x.png in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -555,50 +490,6 @@ }; /* End PBXTargetDependency section */ -/* Begin PBXVariantGroup section */ - 5590C05620B93F3A0045C315 /* Localizable.strings */ = { - isa = PBXVariantGroup; - children = ( - 5590C05520B93F3A0045C315 /* en */, - 5590C05820B93F750045C315 /* fr */, - 5590C05920B93F790045C315 /* de */, - 5590C05A20B93FFC0045C315 /* zh-Hans */, - 5590C05B20B940190045C315 /* es */, - 5590C05C20B940310045C315 /* it */, - 5590C05D20B940420045C315 /* da */, - 5590C05E20B940590045C315 /* nl */, - 5590C05F20B9406C0045C315 /* hr */, - 5590C06020B9407A0045C315 /* el */, - 5590C06120B940930045C315 /* he */, - 5590C06220B940AA0045C315 /* ar */, - 5590C06320B940B80045C315 /* cs */, - 5590C06420B940E50045C315 /* ja */, - 5590C06520B940F90045C315 /* ko */, - 5590C06620B9410C0045C315 /* th */, - 5590C06720B941150045C315 /* uk */, - 5590C06820B9412B0045C315 /* ms */, - 5590C06920B941390045C315 /* vi */, - 5590C06A20B941440045C315 /* sk */, - 5590C06B20B941540045C315 /* ru */, - 5590C06C20B9415D0045C315 /* ro */, - 5590C06D20B941750045C315 /* ca */, - 5590C06E20B941860045C315 /* fi */, - 5590C06F20B941990045C315 /* hu */, - 5590C07020B941A90045C315 /* id */, - 5590C07120B941BC0045C315 /* nb */, - 5590C07220B941CD0045C315 /* pl */, - 5590C07320B941DC0045C315 /* pt-BR */, - 5590C07420B941E60045C315 /* pt-PT */, - 5590C07520B942060045C315 /* sv */, - 5590C07620B942170045C315 /* tr */, - 5590C07720B942620045C315 /* hi */, - 5590C07820B943210045C315 /* zh-Hant */, - ); - name = Localizable.strings; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - /* Begin XCBuildConfiguration section */ 52D6D98E1BEFF229002C0205 /* Debug */ = { isa = XCBuildConfiguration; diff --git a/BLTNBoardTests/BLTNBoardTests.swift b/BLTNBoardTests/BLTNBoardTests.swift deleted file mode 100644 index 3966087..0000000 --- a/BLTNBoardTests/BLTNBoardTests.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// BLTNBoardTests.swift -// BLTNBoardTests -// -// Created by Alexis AUBRY on 11/3/18. -// Copyright © 2018 Bulletin. All rights reserved. -// - -import XCTest - -class BLTNBoardTests: XCTestCase { - - override func setUp() { - // Put setup code here. This method is called before the invocation of each test method in the class. - } - - override func tearDown() { - // Put teardown code here. This method is called after the invocation of each test method in the class. - } - - func testExample() { - // This is an example of a functional test case. - // Use XCTAssert and related functions to verify your tests produce the correct results. - } - - func testPerformanceExample() { - // This is an example of a performance test case. - self.measure { - // Put the code you want to measure the time of here. - } - } - -} diff --git a/BulletinBoard.podspec b/BulletinBoard.podspec index aecbc3a..1652043 100644 --- a/BulletinBoard.podspec +++ b/BulletinBoard.podspec @@ -18,6 +18,5 @@ Pod::Spec.new do |s| s.frameworks = "UIKit" s.documentation_url = "https://alexaubry.github.io/BulletinBoard" s.module_name = "BLTNBoard" - s.resources = "Resources/**/*.{lproj,png}" s.swift_version = "5.0" end diff --git a/Resources/CloseGlyph.png b/Resources/CloseGlyph.png deleted file mode 100644 index b2d49b0..0000000 Binary files a/Resources/CloseGlyph.png and /dev/null differ diff --git a/Resources/CloseGlyph@2x.png b/Resources/CloseGlyph@2x.png deleted file mode 100644 index c82f736..0000000 Binary files a/Resources/CloseGlyph@2x.png and /dev/null differ diff --git a/Resources/CloseGlyph@3x.png b/Resources/CloseGlyph@3x.png deleted file mode 100644 index 6b26190..0000000 Binary files a/Resources/CloseGlyph@3x.png and /dev/null differ diff --git a/Resources/Strings/ar.lproj/Localizable.strings b/Resources/Strings/ar.lproj/Localizable.strings deleted file mode 100644 index 5b920b7..0000000 --- a/Resources/Strings/ar.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "إغلاق"; diff --git a/Resources/Strings/ca.lproj/Localizable.strings b/Resources/Strings/ca.lproj/Localizable.strings deleted file mode 100644 index 8af6cef..0000000 --- a/Resources/Strings/ca.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Tancar"; diff --git a/Resources/Strings/cs.lproj/Localizable.strings b/Resources/Strings/cs.lproj/Localizable.strings deleted file mode 100644 index 4df7849..0000000 --- a/Resources/Strings/cs.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Zavřít"; diff --git a/Resources/Strings/da.lproj/Localizable.strings b/Resources/Strings/da.lproj/Localizable.strings deleted file mode 100644 index 08068bf..0000000 --- a/Resources/Strings/da.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Luk"; diff --git a/Resources/Strings/de.lproj/Localizable.strings b/Resources/Strings/de.lproj/Localizable.strings deleted file mode 100644 index e5c54f8..0000000 --- a/Resources/Strings/de.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Schließen"; diff --git a/Resources/Strings/el.lproj/Localizable.strings b/Resources/Strings/el.lproj/Localizable.strings deleted file mode 100644 index 1ece50c..0000000 --- a/Resources/Strings/el.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Κλείσιμο"; diff --git a/Resources/Strings/en.lproj/Localizable.strings b/Resources/Strings/en.lproj/Localizable.strings deleted file mode 100644 index 65d0940..0000000 --- a/Resources/Strings/en.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Close"; diff --git a/Resources/Strings/es.lproj/Localizable.strings b/Resources/Strings/es.lproj/Localizable.strings deleted file mode 100644 index ba2a98a..0000000 --- a/Resources/Strings/es.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Cerrar"; diff --git a/Resources/Strings/fi.lproj/Localizable.strings b/Resources/Strings/fi.lproj/Localizable.strings deleted file mode 100644 index fc2aa51..0000000 --- a/Resources/Strings/fi.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Sulje"; diff --git a/Resources/Strings/fr.lproj/Localizable.strings b/Resources/Strings/fr.lproj/Localizable.strings deleted file mode 100644 index 1542301..0000000 --- a/Resources/Strings/fr.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Fermer"; diff --git a/Resources/Strings/he.lproj/Localizable.strings b/Resources/Strings/he.lproj/Localizable.strings deleted file mode 100644 index bef3c6f..0000000 --- a/Resources/Strings/he.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "סגור"; diff --git a/Resources/Strings/hi.lproj/Localizable.strings b/Resources/Strings/hi.lproj/Localizable.strings deleted file mode 100644 index 3a0a930..0000000 --- a/Resources/Strings/hi.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "बंद करें"; diff --git a/Resources/Strings/hr.lproj/Localizable.strings b/Resources/Strings/hr.lproj/Localizable.strings deleted file mode 100644 index d57a19c..0000000 --- a/Resources/Strings/hr.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Zatvori"; diff --git a/Resources/Strings/hu.lproj/Localizable.strings b/Resources/Strings/hu.lproj/Localizable.strings deleted file mode 100644 index c6dac63..0000000 --- a/Resources/Strings/hu.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Bezárás"; diff --git a/Resources/Strings/id.lproj/Localizable.strings b/Resources/Strings/id.lproj/Localizable.strings deleted file mode 100644 index 575045f..0000000 --- a/Resources/Strings/id.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Tutup"; diff --git a/Resources/Strings/it.lproj/Localizable.strings b/Resources/Strings/it.lproj/Localizable.strings deleted file mode 100644 index c3285b5..0000000 --- a/Resources/Strings/it.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Chiudi"; diff --git a/Resources/Strings/ja.lproj/Localizable.strings b/Resources/Strings/ja.lproj/Localizable.strings deleted file mode 100644 index 20bc395..0000000 --- a/Resources/Strings/ja.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "閉じる"; diff --git a/Resources/Strings/ko.lproj/Localizable.strings b/Resources/Strings/ko.lproj/Localizable.strings deleted file mode 100644 index e7c1a8a..0000000 --- a/Resources/Strings/ko.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "닫기"; diff --git a/Resources/Strings/ms.lproj/Localizable.strings b/Resources/Strings/ms.lproj/Localizable.strings deleted file mode 100644 index 575045f..0000000 --- a/Resources/Strings/ms.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Tutup"; diff --git a/Resources/Strings/nb.lproj/Localizable.strings b/Resources/Strings/nb.lproj/Localizable.strings deleted file mode 100644 index c4cc01b..0000000 --- a/Resources/Strings/nb.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Lukk"; diff --git a/Resources/Strings/nl.lproj/Localizable.strings b/Resources/Strings/nl.lproj/Localizable.strings deleted file mode 100644 index f48263c..0000000 --- a/Resources/Strings/nl.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Sluit"; diff --git a/Resources/Strings/pl.lproj/Localizable.strings b/Resources/Strings/pl.lproj/Localizable.strings deleted file mode 100644 index 8a44a88..0000000 --- a/Resources/Strings/pl.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Zamknij"; diff --git a/Resources/Strings/pt-BR.lproj/Localizable.strings b/Resources/Strings/pt-BR.lproj/Localizable.strings deleted file mode 100644 index 0ae2f36..0000000 --- a/Resources/Strings/pt-BR.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Fechar"; diff --git a/Resources/Strings/pt-PT.lproj/Localizable.strings b/Resources/Strings/pt-PT.lproj/Localizable.strings deleted file mode 100644 index 0ae2f36..0000000 --- a/Resources/Strings/pt-PT.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Fechar"; diff --git a/Resources/Strings/ro.lproj/Localizable.strings b/Resources/Strings/ro.lproj/Localizable.strings deleted file mode 100644 index bdc7fb4..0000000 --- a/Resources/Strings/ro.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Închideți"; diff --git a/Resources/Strings/ru.lproj/Localizable.strings b/Resources/Strings/ru.lproj/Localizable.strings deleted file mode 100644 index 1a7ae5c..0000000 --- a/Resources/Strings/ru.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Закрыть"; diff --git a/Resources/Strings/sk.lproj/Localizable.strings b/Resources/Strings/sk.lproj/Localizable.strings deleted file mode 100644 index 5883f21..0000000 --- a/Resources/Strings/sk.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Zatvoriť"; diff --git a/Resources/Strings/sv.lproj/Localizable.strings b/Resources/Strings/sv.lproj/Localizable.strings deleted file mode 100644 index c0ed97c..0000000 --- a/Resources/Strings/sv.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Stäng"; diff --git a/Resources/Strings/th.lproj/Localizable.strings b/Resources/Strings/th.lproj/Localizable.strings deleted file mode 100644 index d4f0961..0000000 --- a/Resources/Strings/th.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "ปิด"; diff --git a/Resources/Strings/tr.lproj/Localizable.strings b/Resources/Strings/tr.lproj/Localizable.strings deleted file mode 100644 index 70c1d97..0000000 --- a/Resources/Strings/tr.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Kapat"; diff --git a/Resources/Strings/uk.lproj/Localizable.strings b/Resources/Strings/uk.lproj/Localizable.strings deleted file mode 100644 index b05e603..0000000 --- a/Resources/Strings/uk.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Закрити"; diff --git a/Resources/Strings/vi.lproj/Localizable.strings b/Resources/Strings/vi.lproj/Localizable.strings deleted file mode 100644 index ddb087d..0000000 --- a/Resources/Strings/vi.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "Đóng"; diff --git a/Resources/Strings/zh-Hans.lproj/Localizable.strings b/Resources/Strings/zh-Hans.lproj/Localizable.strings deleted file mode 100644 index bf36ecb..0000000 --- a/Resources/Strings/zh-Hans.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "关闭"; diff --git a/Resources/Strings/zh-Hant.lproj/Localizable.strings b/Resources/Strings/zh-Hant.lproj/Localizable.strings deleted file mode 100644 index 2f1491d..0000000 --- a/Resources/Strings/zh-Hant.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -/** - * BulletinBoard - * Copyright (c) 2017 - present Alexis Aubry. Licensed under the MIT license. - */ - -"Close" = "關閉"; diff --git a/Sources/Support/Views/Internal/BulletinCloseButton.swift b/Sources/Support/Views/Internal/BulletinCloseButton.swift index 1e53f21..afb4afb 100644 --- a/Sources/Support/Views/Internal/BulletinCloseButton.swift +++ b/Sources/Support/Views/Internal/BulletinCloseButton.swift @@ -37,18 +37,16 @@ class BulletinCloseButton: UIControl, HighlighterTarget { // Content isAccessibilityElement = true - accessibilityLabel = NSLocalizedString("Close", tableName: "Localizable", - bundle: Bundle(for: BulletinCloseButton.self), comment: "") - + accessibilityLabel = Bundle.UIKitCore.localizedString(forKey: "Close", value: "Close", table: nil) + // Layout - addSubview(backgroundContainer) addSubview(closeGlyph) backgroundContainer.layer.cornerRadius = 14 - - let glyph = UIImage(named: "CloseGlyph", in: Bundle(for: BulletinCloseButton.self), compatibleWith: nil)! - closeGlyph.image = glyph.withRenderingMode(.alwaysTemplate) + + closeGlyph.image = UIImage.closeButton.withRenderingMode(.alwaysTemplate) + closeGlyph.contentMode = .scaleAspectFit closeGlyph.clipsToBounds = true backgroundContainer.isUserInteractionEnabled = false @@ -120,3 +118,45 @@ class BulletinCloseButton: UIControl, HighlighterTarget { } } + +extension Bundle { + fileprivate static var UIKitCore: Bundle { + return Bundle(identifier: "com.apple.UIKitCore")! + } +} + +extension UIImage { + fileprivate static var closeButton: UIImage { + let shape = UIBezierPath() + shape.move(to: CGPoint(x: 0.93, y: 30.21)) + shape.addCurve(to: CGPoint(x: 0.97, y: 35.02), controlPoint1: CGPoint(x: -0.28, y: 31.44), controlPoint2: CGPoint(x: -0.35, y: 33.72)) + shape.addCurve(to: CGPoint(x: 5.78, y: 35.06), controlPoint1: CGPoint(x: 2.29, y: 36.34), controlPoint2: CGPoint(x: 4.55, y: 36.3)) + shape.addLine(to: CGPoint(x: 18.01, y: 22.84)) + shape.addLine(to: CGPoint(x: 30.21, y: 35.04)) + shape.addCurve(to: CGPoint(x: 35, y: 34.99), controlPoint1: CGPoint(x: 31.49, y: 36.34), controlPoint2: CGPoint(x: 33.7, y: 36.32)) + shape.addCurve(to: CGPoint(x: 35.05, y: 30.21), controlPoint1: CGPoint(x: 36.33, y: 33.69), controlPoint2: CGPoint(x: 36.33, y: 31.48)) + shape.addLine(to: CGPoint(x: 22.84, y: 18.01)) + shape.addLine(to: CGPoint(x: 35.05, y: 5.79)) + shape.addCurve(to: CGPoint(x: 35, y: 1), controlPoint1: CGPoint(x: 36.33, y: 4.51), controlPoint2: CGPoint(x: 36.33, y: 2.3)) + shape.addCurve(to: CGPoint(x: 30.21, y: 0.95), controlPoint1: CGPoint(x: 33.7, y: -0.32), controlPoint2: CGPoint(x: 31.49, y: -0.32)) + shape.addLine(to: CGPoint(x: 18.01, y: 13.15)) + shape.addLine(to: CGPoint(x: 5.78, y: 0.93)) + shape.addCurve(to: CGPoint(x: 0.97, y: 0.98), controlPoint1: CGPoint(x: 4.55, y: -0.28), controlPoint2: CGPoint(x: 2.27, y: -0.35)) + shape.addCurve(to: CGPoint(x: 0.93, y: 5.79), controlPoint1: CGPoint(x: -0.33, y: 2.3), controlPoint2: CGPoint(x: -0.28, y: 4.55)) + shape.addLine(to: CGPoint(x: 13.15, y: 18.01)) + shape.addLine(to: CGPoint(x: 0.93, y: 30.21)) + shape.close() + + let size = CGSize(width: 36, height: 36) + UIGraphicsBeginImageContext(size) + + defer { + UIGraphicsEndImageContext() + } + + UIColor.black.setFill() + shape.fill() + + return UIGraphicsGetImageFromCurrentImageContext()! + } +} diff --git a/test/BLTNBoard-BLTNBoard.log b/test/BLTNBoard-BLTNBoard.log deleted file mode 100644 index 28d0326..0000000 --- a/test/BLTNBoard-BLTNBoard.log +++ /dev/null @@ -1,10 +0,0 @@ -User defaults from command line: - IDEDerivedDataPathOverride = /Users/aleks/Developer/OSS/BulletinBoard/DerivedData - -Testing started on 'iPhone 7' - - -*** If you believe this error represents a bug, please attach the result bundle at /Users/aleks/Developer/OSS/BulletinBoard/DerivedData/Logs/Test/Test-BLTNBoard-2018.11.03_13-05-47-+0100.xcresult - -Generating coverage data... -Generated coverage report: /Users/aleks/Developer/OSS/BulletinBoard/DerivedData/Logs/Test/Test-BLTNBoard-2018.11.03_13-05-47-+0100.xcresult/1_Test/action.xccovreport diff --git a/test/report.junit b/test/report.junit deleted file mode 100644 index 1e19aa8..0000000 --- a/test/report.junit +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file