Skip to content

Commit

Permalink
Create initial project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
defagos committed Aug 16, 2018
0 parents commit 3686dd6
Show file tree
Hide file tree
Showing 15 changed files with 667 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Carthage
xcuserdata
.DS_Store
report.xml
test_output
24 changes: 24 additions & 0 deletions Framework/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
20 changes: 20 additions & 0 deletions Framework/Sources/Helpers/NSBundle+SRGDiagnostics.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// Copyright (c) SRG SSR. All rights reserved.
//
// License information is available from the LICENSE file.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSBundle (SRGDiagnostics)

/**
* The SRGDiagnostics resource bundle.
*/
+ (NSBundle *)srg_diagnosticsBundle;

@end

NS_ASSUME_NONNULL_END
25 changes: 25 additions & 0 deletions Framework/Sources/Helpers/NSBundle+SRGDiagnostics.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// Copyright (c) SRG SSR. All rights reserved.
//
// License information is available from the LICENSE file.
//

#import "NSBundle+SRGDiagnostics.h"

#import "SRGDiagnosticsService.h"

@implementation NSBundle (SRGDiagnostics)

#pragma mark Class methods

+ (instancetype)srg_diagnosticsBundle
{
static NSBundle *s_bundle;
static dispatch_once_t s_onceToken;
dispatch_once(&s_onceToken, ^{
s_bundle = [NSBundle bundleForClass:[SRGDiagnosticsService class]];
});
return s_bundle;
}

@end
15 changes: 15 additions & 0 deletions Framework/Sources/Player/SRGDiagnosticsService.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// Copyright (c) SRG SSR. All rights reserved.
//
// License information is available from the LICENSE file.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface SRGDiagnosticsService : NSObject

@end

NS_ASSUME_NONNULL_END
11 changes: 11 additions & 0 deletions Framework/Sources/Player/SRGDiagnosticsService.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//
// Copyright (c) SRG SSR. All rights reserved.
//
// License information is available from the LICENSE file.
//

#import "SRGDiagnosticsService.h"

@implementation SRGDiagnosticsService

@end
10 changes: 10 additions & 0 deletions Framework/Sources/SRGDiagnostics.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//
// Copyright (c) SRG SSR. All rights reserved.
//
// License information is available from the LICENSE file.
//

#import <UIKit/UIKit.h>

// Official version number.
FOUNDATION_EXPORT NSString *SRGDiagnosticsMarketingVersion(void);
14 changes: 14 additions & 0 deletions Framework/Sources/SRGDiagnostics.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// Copyright (c) SRG SSR. All rights reserved.
//
// License information is available from the LICENSE file.
//

#import "SRGDiagnostics.h"

#import "NSBundle+SRGDiagnostics.h"

NSString *SRGDiagnosticsMarketingVersion(void)
{
return [NSBundle srg_diagnosticsBundle].infoDictionary[@"CFBundleShortVersionString"];
}
3 changes: 3 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(c) SRG SSR, all rights reserved.

This library can not be copied and/or distributed without express permission.
Loading

0 comments on commit 3686dd6

Please sign in to comment.