Skip to content

Commit 2072762

Browse files
committed
Fixing CocoaPods Bug
1 parent 7dfd020 commit 2072762

9 files changed

+289
-36
lines changed

Example/SwiftyRadio.xcodeproj/project.pbxproj

+36-4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
/* Begin PBXBuildFile section */
1010
06F947FF5EEBF633A1F28B56 /* Pods_SwiftyRadio_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 718C91A92B9B0B60497BD05E /* Pods_SwiftyRadio_Example.framework */; };
11+
0FFBDCAA2483406000B2900E /* SwiftyRadio+Delegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0FFBDCA62483405F00B2900E /* SwiftyRadio+Delegate.swift */; };
12+
0FFBDCAB2483406000B2900E /* SwiftyRadio+Config.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0FFBDCA72483405F00B2900E /* SwiftyRadio+Config.swift */; };
13+
0FFBDCAC2483406000B2900E /* SwiftyRadio+ButtonView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0FFBDCA82483406000B2900E /* SwiftyRadio+ButtonView.swift */; };
14+
0FFBDCAD2483406000B2900E /* SwiftyRadio.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0FFBDCA92483406000B2900E /* SwiftyRadio.swift */; };
1115
607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; };
1216
607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; };
1317
607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; };
@@ -16,6 +20,10 @@
1620

1721
/* Begin PBXFileReference section */
1822
091591722BBB091F3E542D7D /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; };
23+
0FFBDCA62483405F00B2900E /* SwiftyRadio+Delegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "SwiftyRadio+Delegate.swift"; sourceTree = "<group>"; };
24+
0FFBDCA72483405F00B2900E /* SwiftyRadio+Config.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "SwiftyRadio+Config.swift"; sourceTree = "<group>"; };
25+
0FFBDCA82483406000B2900E /* SwiftyRadio+ButtonView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "SwiftyRadio+ButtonView.swift"; sourceTree = "<group>"; };
26+
0FFBDCA92483406000B2900E /* SwiftyRadio.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SwiftyRadio.swift; sourceTree = "<group>"; };
1927
1006F37BE2AFF3178F8C502C /* Pods-SwiftyRadio_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwiftyRadio_Example.debug.xcconfig"; path = "Target Support Files/Pods-SwiftyRadio_Example/Pods-SwiftyRadio_Example.debug.xcconfig"; sourceTree = "<group>"; };
2028
607FACD01AFB9204008FA782 /* SwiftyRadio_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftyRadio_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
2129
607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
@@ -44,6 +52,17 @@
4452
/* End PBXFrameworksBuildPhase section */
4553

4654
/* Begin PBXGroup section */
55+
0FFBDCA52483402F00B2900E /* Sources */ = {
56+
isa = PBXGroup;
57+
children = (
58+
0FFBDCA92483406000B2900E /* SwiftyRadio.swift */,
59+
0FFBDCA82483406000B2900E /* SwiftyRadio+ButtonView.swift */,
60+
0FFBDCA72483405F00B2900E /* SwiftyRadio+Config.swift */,
61+
0FFBDCA62483405F00B2900E /* SwiftyRadio+Delegate.swift */,
62+
);
63+
name = Sources;
64+
sourceTree = "<group>";
65+
};
4766
607FACC71AFB9204008FA782 = {
4867
isa = PBXGroup;
4968
children = (
@@ -66,6 +85,7 @@
6685
607FACD21AFB9204008FA782 /* Example for SwiftyRadio */ = {
6786
isa = PBXGroup;
6887
children = (
88+
0FFBDCA52483402F00B2900E /* Sources */,
6989
607FACD51AFB9204008FA782 /* AppDelegate.swift */,
7090
607FACD71AFB9204008FA782 /* ViewController.swift */,
7191
607FACD31AFB9204008FA782 /* Supporting Files */,
@@ -143,21 +163,21 @@
143163
isa = PBXProject;
144164
attributes = {
145165
LastSwiftUpdateCheck = 0830;
146-
LastUpgradeCheck = 0830;
166+
LastUpgradeCheck = 1150;
147167
ORGANIZATIONNAME = CocoaPods;
148168
TargetAttributes = {
149169
607FACCF1AFB9204008FA782 = {
150170
CreatedOnToolsVersion = 6.3.1;
151-
LastSwiftMigration = 0900;
171+
DevelopmentTeam = 75NLR6VU5Z;
172+
LastSwiftMigration = 1150;
152173
};
153174
};
154175
};
155176
buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "SwiftyRadio" */;
156177
compatibilityVersion = "Xcode 3.2";
157-
developmentRegion = English;
178+
developmentRegion = en;
158179
hasScannedForEncodings = 0;
159180
knownRegions = (
160-
English,
161181
en,
162182
Base,
163183
);
@@ -232,7 +252,11 @@
232252
buildActionMask = 2147483647;
233253
files = (
234254
607FACD81AFB9204008FA782 /* ViewController.swift in Sources */,
255+
0FFBDCAB2483406000B2900E /* SwiftyRadio+Config.swift in Sources */,
235256
607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */,
257+
0FFBDCAD2483406000B2900E /* SwiftyRadio.swift in Sources */,
258+
0FFBDCAC2483406000B2900E /* SwiftyRadio+ButtonView.swift in Sources */,
259+
0FFBDCAA2483406000B2900E /* SwiftyRadio+Delegate.swift in Sources */,
236260
);
237261
runOnlyForDeploymentPostprocessing = 0;
238262
};
@@ -254,6 +278,7 @@
254278
isa = XCBuildConfiguration;
255279
buildSettings = {
256280
ALWAYS_SEARCH_USER_PATHS = NO;
281+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
257282
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
258283
CLANG_CXX_LIBRARY = "libc++";
259284
CLANG_ENABLE_MODULES = YES;
@@ -262,12 +287,14 @@
262287
CLANG_WARN_BOOL_CONVERSION = YES;
263288
CLANG_WARN_COMMA = YES;
264289
CLANG_WARN_CONSTANT_CONVERSION = YES;
290+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
265291
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
266292
CLANG_WARN_EMPTY_BODY = YES;
267293
CLANG_WARN_ENUM_CONVERSION = YES;
268294
CLANG_WARN_INFINITE_RECURSION = YES;
269295
CLANG_WARN_INT_CONVERSION = YES;
270296
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
297+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
271298
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
272299
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
273300
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -307,6 +334,7 @@
307334
isa = XCBuildConfiguration;
308335
buildSettings = {
309336
ALWAYS_SEARCH_USER_PATHS = NO;
337+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
310338
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
311339
CLANG_CXX_LIBRARY = "libc++";
312340
CLANG_ENABLE_MODULES = YES;
@@ -315,12 +343,14 @@
315343
CLANG_WARN_BOOL_CONVERSION = YES;
316344
CLANG_WARN_COMMA = YES;
317345
CLANG_WARN_CONSTANT_CONVERSION = YES;
346+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
318347
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
319348
CLANG_WARN_EMPTY_BODY = YES;
320349
CLANG_WARN_ENUM_CONVERSION = YES;
321350
CLANG_WARN_INFINITE_RECURSION = YES;
322351
CLANG_WARN_INT_CONVERSION = YES;
323352
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
353+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
324354
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
325355
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
326356
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -354,6 +384,7 @@
354384
baseConfigurationReference = 1006F37BE2AFF3178F8C502C /* Pods-SwiftyRadio_Example.debug.xcconfig */;
355385
buildSettings = {
356386
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
387+
DEVELOPMENT_TEAM = 75NLR6VU5Z;
357388
INFOPLIST_FILE = SwiftyRadio/Info.plist;
358389
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
359390
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
@@ -371,6 +402,7 @@
371402
baseConfigurationReference = DF48343DB32BA69792C65F3C /* Pods-SwiftyRadio_Example.release.xcconfig */;
372403
buildSettings = {
373404
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
405+
DEVELOPMENT_TEAM = 75NLR6VU5Z;
374406
INFOPLIST_FILE = SwiftyRadio/Info.plist;
375407
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
376408
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";

Example/SwiftyRadio.xcodeproj/xcshareddata/xcschemes/SwiftyRadio-Example.xcscheme

+10-16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0900"
3+
LastUpgradeVersion = "1150"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -40,8 +40,16 @@
4040
buildConfiguration = "Debug"
4141
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4242
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43-
language = ""
4443
shouldUseLaunchSchemeArgsEnv = "YES">
44+
<MacroExpansion>
45+
<BuildableReference
46+
BuildableIdentifier = "primary"
47+
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
48+
BuildableName = "SwiftyRadio_Example.app"
49+
BlueprintName = "SwiftyRadio_Example"
50+
ReferencedContainer = "container:SwiftyRadio.xcodeproj">
51+
</BuildableReference>
52+
</MacroExpansion>
4553
<Testables>
4654
<TestableReference
4755
skipped = "NO">
@@ -54,23 +62,11 @@
5462
</BuildableReference>
5563
</TestableReference>
5664
</Testables>
57-
<MacroExpansion>
58-
<BuildableReference
59-
BuildableIdentifier = "primary"
60-
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
61-
BuildableName = "SwiftyRadio_Example.app"
62-
BlueprintName = "SwiftyRadio_Example"
63-
ReferencedContainer = "container:SwiftyRadio.xcodeproj">
64-
</BuildableReference>
65-
</MacroExpansion>
66-
<AdditionalOptions>
67-
</AdditionalOptions>
6865
</TestAction>
6966
<LaunchAction
7067
buildConfiguration = "Debug"
7168
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
7269
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
73-
language = ""
7470
launchStyle = "0"
7571
useCustomWorkingDirectory = "NO"
7672
ignoresPersistentStateOnLaunch = "NO"
@@ -87,8 +83,6 @@
8783
ReferencedContainer = "container:SwiftyRadio.xcodeproj">
8884
</BuildableReference>
8985
</BuildableProductRunnable>
90-
<AdditionalOptions>
91-
</AdditionalOptions>
9286
</LaunchAction>
9387
<ProfileAction
9488
buildConfiguration = "Release"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//
2+
// SwiftyRadio+ButtonView.swift
3+
// SwiftyRadio
4+
//
5+
// Created by Ibrahim F on 31/05/2020.
6+
//
7+
8+
import UIKit
9+
10+
class SwiftyRadioButtonView: UILabel {
11+
var isButtonActive: Bool = false
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
//
2+
// SwiftyRadio+Config.swift
3+
// SwiftyRadio
4+
//
5+
// Created by Ibrahim F on 31/05/2020.
6+
//
7+
8+
import UIKit
9+
10+
class SwiftyRadioConfig {
11+
// MARK: - Config variables section
12+
/// Set buttons corner raduis
13+
public var cornerRaduis: CGFloat = 5.0
14+
/// Set buttons border color
15+
public var borderColor: UIColor = UIApplication.shared.windows.first?.tintColor ?? .systemBlue
16+
/// Set buttons border width
17+
public var borderWidth: CGFloat = 2
18+
/// Set buttons background color
19+
public var buttonsBackgroundColor: UIColor = .systemBackground
20+
/// Set buttons text color
21+
public var textColor: UIColor = UIApplication.shared.windows.first?.tintColor ?? .systemBlue
22+
/// Set selected buttons text color
23+
public var selectedTextColor: UIColor = .systemBackground
24+
/// Set buttons flow direction: horizontal or vertical
25+
public var flowDirection: NSLayoutConstraint.Axis = .horizontal
26+
/// Set spacing between buttons
27+
public var spacing: CGFloat = 10
28+
/// Set Buttons text array
29+
public var options: [String] = []
30+
/// Set if buttons are equal width or narrow
31+
public var isNarrow: Bool = false
32+
/// Set if user can select muliple buttons
33+
public var isMuliple: Bool = false
34+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//
2+
// SwiftyRadio+Delegate.swift
3+
// SwiftyRadio
4+
//
5+
// Created by Ibrahim F on 31/05/2020.
6+
//
7+
8+
import Foundation
9+
10+
protocol SwiftyRadioDelegate{
11+
func didSelectRadio(index: Int, text: String)
12+
func didDeSelectRadio(index: Int, text: String)
13+
}

0 commit comments

Comments
 (0)