-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate
AllIPAddresses
and IPAddress
in favor of `networkInterf…
…aces`. Closes #1
- Loading branch information
1 parent
3d9127a
commit 898069b
Showing
17 changed files
with
886 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
CSSystemInfoHelper.xcodeproj/xcshareddata/xcschemes/CSSystemInfoHelper.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1250" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "AD3BFDE5267AA56600FF8076" | ||
BuildableName = "CSSystemInfoHelper.framework" | ||
BlueprintName = "CSSystemInfoHelper" | ||
ReferencedContainer = "container:CSSystemInfoHelper.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
<TestableReference | ||
skipped = "NO"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "AD3BFDEE267AA56600FF8076" | ||
BuildableName = "CSSystemInfoHelperTests.xctest" | ||
BlueprintName = "CSSystemInfoHelperTests" | ||
ReferencedContainer = "container:CSSystemInfoHelper.xcodeproj"> | ||
</BuildableReference> | ||
</TestableReference> | ||
</Testables> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "AD3BFDE5267AA56600FF8076" | ||
BuildableName = "CSSystemInfoHelper.framework" | ||
BlueprintName = "CSSystemInfoHelper" | ||
ReferencedContainer = "container:CSSystemInfoHelper.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
26 changes: 26 additions & 0 deletions
26
CSSystemInfoHelper/Headers/CSSystemInfoHelper/CSNetworkInterface.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// CSInterfaceAddress.h | ||
// CSSystemInfoHelper | ||
// | ||
// Created by Cătălin Stan on 17/06/2021. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <sys/socket.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface CSNetworkInterface : NSObject | ||
|
||
@property (nonatomic, readonly, strong) NSString *name; | ||
@property (nonatomic, readonly, strong) NSString *address; | ||
|
||
@property (nonatomic, readonly) sa_family_t family; | ||
@property (nonatomic, readonly, strong) NSString *familyName; | ||
|
||
+ (instancetype)new NS_UNAVAILABLE; | ||
- (instancetype)init NS_UNAVAILABLE; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// CSInterfaceAddress+Internal.h | ||
// CSSystemInfoHelper | ||
// | ||
// Created by Cătălin Stan on 17/06/2021. | ||
// | ||
|
||
#import <CSSystemInfoHelper/CSNetworkInterface.h> | ||
|
||
#import <sys/socket.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface CSNetworkInterface () | ||
|
||
- (instancetype)initWithName:(NSString *)name | ||
address:(NSString *)address | ||
family:(sa_family_t)family | ||
NS_DESIGNATED_INITIALIZER; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
Oops, something went wrong.