Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4960d608b4 | ||
|
|
3b25741375 | ||
|
|
e3d7e76f14 | ||
|
|
2ae380ced9 | ||
|
|
43b76c064c | ||
|
|
242b6ae368 | ||
|
|
6ba3bf7309 | ||
|
|
d95b8e9225 | ||
|
|
bd9563a7d0 | ||
|
|
3551efffa5 | ||
|
|
02c58efb18 | ||
|
|
ea56245297 | ||
|
|
8d6f674260 | ||
|
|
94c2ca5a4e | ||
|
|
df1a100a71 | ||
|
|
c5e24d503d | ||
|
|
ee213ef426 | ||
|
|
e365d5ff2e | ||
|
|
ccb27d7d97 | ||
|
|
e05dd8699e | ||
|
|
599de6b72a | ||
|
|
5acb789a62 | ||
|
|
fe8d28cfcb | ||
|
|
25d3bee5c1 | ||
|
|
bc80c351fb | ||
|
|
c2ddafb489 | ||
|
|
f0eda60afa | ||
|
|
b566e460ad | ||
|
|
c39454be01 | ||
|
|
ddca5365fc | ||
|
|
797b669aa1 | ||
|
|
ec4d296b9f | ||
|
|
37fa7e98e4 | ||
|
|
7916776680 | ||
|
|
cdbdd930e6 | ||
|
|
e087efe1cb | ||
|
|
8746135531 | ||
|
|
94602ea642 | ||
|
|
0e39df021c | ||
|
|
b4c935c6c5 | ||
|
|
c83354c959 | ||
|
|
9b7b96a359 | ||
|
|
0d0c610678 | ||
|
|
c32927f2bd | ||
|
|
f041e631c8 | ||
|
|
e1b2e3a0b3 | ||
|
|
3f1dad13dc | ||
|
|
d3d3a65776 | ||
|
|
58daf0f708 | ||
|
|
7ae1949d9c | ||
|
|
32a24c31dc | ||
|
|
88b67d62cc | ||
|
|
3c85e3a413 | ||
|
|
8ee9fdbbc2 | ||
|
|
f201595937 | ||
|
|
b3ef99250e | ||
|
|
73b530f1ad | ||
|
|
90f8ff46fc | ||
|
|
9762f2c871 | ||
|
|
02e2641995 | ||
|
|
ec2fe2d21d | ||
|
|
991dcdb89a | ||
|
|
3f041ea96b | ||
|
|
7f82b42868 | ||
|
|
444f723498 | ||
|
|
3ebf6141d5 | ||
|
|
8b00fa9540 | ||
|
|
ab1fb2fee3 |
@@ -0,0 +1 @@
|
|||||||
|
4.0
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
Changelog
|
||||||
|
==========
|
||||||
|
|
||||||
|
### 2.0
|
||||||
|
|
||||||
|
- Swift 4 version
|
||||||
|
|
||||||
|
### 1.0.8
|
||||||
|
|
||||||
|
- Fix architecture
|
||||||
|
- Add Carthage support
|
||||||
|
|
||||||
|
### 1.0.5
|
||||||
|
|
||||||
|
- Fix default customisation
|
||||||
|
|
||||||
|
### 1.0.4
|
||||||
|
|
||||||
|
- Add customisation way
|
||||||
|
|
||||||
|
### 1.0.3
|
||||||
|
|
||||||
|
- Remove public extension
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
Contributing 🚀
|
||||||
|
===============
|
||||||
|
|
||||||
|
For fixes, improvements or ideas, fork the repository and issue a pull request.
|
||||||
|
|
||||||
|
To get a pull request accepted, please adhere to these rules:
|
||||||
|
- Work from the latest `master` branch.
|
||||||
|
- Respect current code style and respect the [SwiftLint](https://github.com/realm/SwiftLint) rules (see swiftlint's file).
|
||||||
|
- If this is about new features, please make sure to add enable/disable configuration.
|
||||||
|
|
||||||
|
Ideally, only work on one feature at a time.
|
||||||
|
If you've done work on the code (i.e. not just fixes to the README), add yourself to the top of [`CONTRIBUTORS.md`](./CONTRIBUTORS.md).
|
||||||
|
|
||||||
|
Thank you, and happy coding ! 😘
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
Contributors
|
||||||
|
============
|
||||||
|
|
||||||
|
Contributors to the codebase :
|
||||||
|
|
||||||
|
| Name | Github handle | Mail |
|
||||||
|
| ------------- |------------- | ----- |
|
||||||
|
| David Lari | DavidLari | / |
|
||||||
|
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
<?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>en</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>1.0</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>$(CURRENT_PROJECT_VERSION)</string>
|
||||||
|
<key>NSHumanReadableCopyright</key>
|
||||||
|
<string>Copyright © 2017 Florian Gabach. All rights reserved.</string>
|
||||||
|
<key>NSPrincipalClass</key>
|
||||||
|
<string></string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
@@ -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>en</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>BNDL</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>1.0</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>1</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
@@ -0,0 +1,365 @@
|
|||||||
|
// !$*UTF8*$!
|
||||||
|
{
|
||||||
|
archiveVersion = 1;
|
||||||
|
classes = {
|
||||||
|
};
|
||||||
|
objectVersion = 46;
|
||||||
|
objects = {
|
||||||
|
|
||||||
|
/* Begin PBXBuildFile section */
|
||||||
|
76EAA8651E93F2CC009A41DA /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76EAA8641E93F2CC009A41DA /* AppDelegate.swift */; };
|
||||||
|
76EAA8671E93F2CC009A41DA /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76EAA8661E93F2CC009A41DA /* ViewController.swift */; };
|
||||||
|
76EAA86A1E93F2CC009A41DA /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 76EAA8681E93F2CC009A41DA /* Main.storyboard */; };
|
||||||
|
76EAA86C1E93F2CC009A41DA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 76EAA86B1E93F2CC009A41DA /* Assets.xcassets */; };
|
||||||
|
76EAA86F1E93F2CC009A41DA /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 76EAA86D1E93F2CC009A41DA /* LaunchScreen.storyboard */; };
|
||||||
|
76EAA8881E93F666009A41DA /* OpenSourceTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76EAA8871E93F666009A41DA /* OpenSourceTableViewCell.swift */; };
|
||||||
|
76EAA88D1E93F675009A41DA /* LicenceDownloader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76EAA88A1E93F675009A41DA /* LicenceDownloader.swift */; };
|
||||||
|
76EAA88E1E93F675009A41DA /* LicenceFile.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76EAA88B1E93F675009A41DA /* LicenceFile.swift */; };
|
||||||
|
76EAA88F1E93F675009A41DA /* OpenSourceControllerConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76EAA88C1E93F675009A41DA /* OpenSourceControllerConfig.swift */; };
|
||||||
|
76EAA8911E93F67B009A41DA /* Array+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76EAA8901E93F67B009A41DA /* Array+Extensions.swift */; };
|
||||||
|
76EAA8941E93F681009A41DA /* OpenSourceController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76EAA8921E93F681009A41DA /* OpenSourceController.swift */; };
|
||||||
|
76EAA8951E93F681009A41DA /* OpenSourceViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76EAA8931E93F681009A41DA /* OpenSourceViewController.swift */; };
|
||||||
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
|
/* Begin PBXFileReference section */
|
||||||
|
76EAA8611E93F2CC009A41DA /* OpenSourceControllerDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OpenSourceControllerDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
|
76EAA8641E93F2CC009A41DA /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
||||||
|
76EAA8661E93F2CC009A41DA /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
|
||||||
|
76EAA8691E93F2CC009A41DA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
||||||
|
76EAA86B1E93F2CC009A41DA /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||||
|
76EAA86E1E93F2CC009A41DA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||||
|
76EAA8701E93F2CC009A41DA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||||
|
76EAA8871E93F666009A41DA /* OpenSourceTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = OpenSourceTableViewCell.swift; path = ../../Sources/View/OpenSourceTableViewCell.swift; sourceTree = "<group>"; };
|
||||||
|
76EAA88A1E93F675009A41DA /* LicenceDownloader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = LicenceDownloader.swift; path = ../../Sources/Model/LicenceDownloader.swift; sourceTree = "<group>"; };
|
||||||
|
76EAA88B1E93F675009A41DA /* LicenceFile.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = LicenceFile.swift; path = ../../Sources/Model/LicenceFile.swift; sourceTree = "<group>"; };
|
||||||
|
76EAA88C1E93F675009A41DA /* OpenSourceControllerConfig.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = OpenSourceControllerConfig.swift; path = ../../Sources/Model/OpenSourceControllerConfig.swift; sourceTree = "<group>"; };
|
||||||
|
76EAA8901E93F67B009A41DA /* Array+Extensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "Array+Extensions.swift"; path = "../../Sources/Extensions/Array+Extensions.swift"; sourceTree = "<group>"; };
|
||||||
|
76EAA8921E93F681009A41DA /* OpenSourceController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = OpenSourceController.swift; path = ../../Sources/Controller/OpenSourceController.swift; sourceTree = "<group>"; };
|
||||||
|
76EAA8931E93F681009A41DA /* OpenSourceViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = OpenSourceViewController.swift; path = ../../Sources/Controller/OpenSourceViewController.swift; sourceTree = "<group>"; };
|
||||||
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
|
/* Begin PBXFrameworksBuildPhase section */
|
||||||
|
76EAA85E1E93F2CC009A41DA /* Frameworks */ = {
|
||||||
|
isa = PBXFrameworksBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXFrameworksBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXGroup section */
|
||||||
|
76EAA8581E93F2CC009A41DA = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
76EAA8631E93F2CC009A41DA /* OpenSourceControllerDemo */,
|
||||||
|
76EAA8621E93F2CC009A41DA /* Products */,
|
||||||
|
);
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
76EAA8621E93F2CC009A41DA /* Products */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
76EAA8611E93F2CC009A41DA /* OpenSourceControllerDemo.app */,
|
||||||
|
);
|
||||||
|
name = Products;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
76EAA8631E93F2CC009A41DA /* OpenSourceControllerDemo */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
76EAA8641E93F2CC009A41DA /* AppDelegate.swift */,
|
||||||
|
76EAA8661E93F2CC009A41DA /* ViewController.swift */,
|
||||||
|
76EAA8891E93F66A009A41DA /* Sources */,
|
||||||
|
76EAA8681E93F2CC009A41DA /* Main.storyboard */,
|
||||||
|
76EAA86D1E93F2CC009A41DA /* LaunchScreen.storyboard */,
|
||||||
|
76EAA86B1E93F2CC009A41DA /* Assets.xcassets */,
|
||||||
|
76EAA8701E93F2CC009A41DA /* Info.plist */,
|
||||||
|
);
|
||||||
|
path = OpenSourceControllerDemo;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
76EAA8891E93F66A009A41DA /* Sources */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
76EAA8921E93F681009A41DA /* OpenSourceController.swift */,
|
||||||
|
76EAA8931E93F681009A41DA /* OpenSourceViewController.swift */,
|
||||||
|
76EAA8901E93F67B009A41DA /* Array+Extensions.swift */,
|
||||||
|
76EAA88A1E93F675009A41DA /* LicenceDownloader.swift */,
|
||||||
|
76EAA88B1E93F675009A41DA /* LicenceFile.swift */,
|
||||||
|
76EAA88C1E93F675009A41DA /* OpenSourceControllerConfig.swift */,
|
||||||
|
76EAA8871E93F666009A41DA /* OpenSourceTableViewCell.swift */,
|
||||||
|
);
|
||||||
|
name = Sources;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
/* End PBXGroup section */
|
||||||
|
|
||||||
|
/* Begin PBXNativeTarget section */
|
||||||
|
76EAA8601E93F2CC009A41DA /* OpenSourceControllerDemo */ = {
|
||||||
|
isa = PBXNativeTarget;
|
||||||
|
buildConfigurationList = 76EAA87E1E93F2CC009A41DA /* Build configuration list for PBXNativeTarget "OpenSourceControllerDemo" */;
|
||||||
|
buildPhases = (
|
||||||
|
76EAA85D1E93F2CC009A41DA /* Sources */,
|
||||||
|
76EAA85E1E93F2CC009A41DA /* Frameworks */,
|
||||||
|
76EAA85F1E93F2CC009A41DA /* Resources */,
|
||||||
|
);
|
||||||
|
buildRules = (
|
||||||
|
);
|
||||||
|
dependencies = (
|
||||||
|
);
|
||||||
|
name = OpenSourceControllerDemo;
|
||||||
|
productName = OpenSourceControllerDemo;
|
||||||
|
productReference = 76EAA8611E93F2CC009A41DA /* OpenSourceControllerDemo.app */;
|
||||||
|
productType = "com.apple.product-type.application";
|
||||||
|
};
|
||||||
|
/* End PBXNativeTarget section */
|
||||||
|
|
||||||
|
/* Begin PBXProject section */
|
||||||
|
76EAA8591E93F2CC009A41DA /* Project object */ = {
|
||||||
|
isa = PBXProject;
|
||||||
|
attributes = {
|
||||||
|
LastSwiftUpdateCheck = 0830;
|
||||||
|
LastUpgradeCheck = 0900;
|
||||||
|
ORGANIZATIONNAME = OpenSourceController;
|
||||||
|
TargetAttributes = {
|
||||||
|
76EAA8601E93F2CC009A41DA = {
|
||||||
|
CreatedOnToolsVersion = 8.3;
|
||||||
|
DevelopmentTeam = 62PP362QNQ;
|
||||||
|
LastSwiftMigration = 0900;
|
||||||
|
ProvisioningStyle = Automatic;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
buildConfigurationList = 76EAA85C1E93F2CC009A41DA /* Build configuration list for PBXProject "OpenSourceControllerDemo" */;
|
||||||
|
compatibilityVersion = "Xcode 3.2";
|
||||||
|
developmentRegion = English;
|
||||||
|
hasScannedForEncodings = 0;
|
||||||
|
knownRegions = (
|
||||||
|
en,
|
||||||
|
Base,
|
||||||
|
);
|
||||||
|
mainGroup = 76EAA8581E93F2CC009A41DA;
|
||||||
|
productRefGroup = 76EAA8621E93F2CC009A41DA /* Products */;
|
||||||
|
projectDirPath = "";
|
||||||
|
projectRoot = "";
|
||||||
|
targets = (
|
||||||
|
76EAA8601E93F2CC009A41DA /* OpenSourceControllerDemo */,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
/* End PBXProject section */
|
||||||
|
|
||||||
|
/* Begin PBXResourcesBuildPhase section */
|
||||||
|
76EAA85F1E93F2CC009A41DA /* Resources */ = {
|
||||||
|
isa = PBXResourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
76EAA86F1E93F2CC009A41DA /* LaunchScreen.storyboard in Resources */,
|
||||||
|
76EAA86C1E93F2CC009A41DA /* Assets.xcassets in Resources */,
|
||||||
|
76EAA86A1E93F2CC009A41DA /* Main.storyboard in Resources */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXResourcesBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXSourcesBuildPhase section */
|
||||||
|
76EAA85D1E93F2CC009A41DA /* Sources */ = {
|
||||||
|
isa = PBXSourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
76EAA88D1E93F675009A41DA /* LicenceDownloader.swift in Sources */,
|
||||||
|
76EAA88E1E93F675009A41DA /* LicenceFile.swift in Sources */,
|
||||||
|
76EAA8951E93F681009A41DA /* OpenSourceViewController.swift in Sources */,
|
||||||
|
76EAA8881E93F666009A41DA /* OpenSourceTableViewCell.swift in Sources */,
|
||||||
|
76EAA8911E93F67B009A41DA /* Array+Extensions.swift in Sources */,
|
||||||
|
76EAA8941E93F681009A41DA /* OpenSourceController.swift in Sources */,
|
||||||
|
76EAA8671E93F2CC009A41DA /* ViewController.swift in Sources */,
|
||||||
|
76EAA88F1E93F675009A41DA /* OpenSourceControllerConfig.swift in Sources */,
|
||||||
|
76EAA8651E93F2CC009A41DA /* AppDelegate.swift in Sources */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXSourcesBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXVariantGroup section */
|
||||||
|
76EAA8681E93F2CC009A41DA /* Main.storyboard */ = {
|
||||||
|
isa = PBXVariantGroup;
|
||||||
|
children = (
|
||||||
|
76EAA8691E93F2CC009A41DA /* Base */,
|
||||||
|
);
|
||||||
|
name = Main.storyboard;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
76EAA86D1E93F2CC009A41DA /* LaunchScreen.storyboard */ = {
|
||||||
|
isa = PBXVariantGroup;
|
||||||
|
children = (
|
||||||
|
76EAA86E1E93F2CC009A41DA /* Base */,
|
||||||
|
);
|
||||||
|
name = LaunchScreen.storyboard;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
/* End PBXVariantGroup section */
|
||||||
|
|
||||||
|
/* Begin XCBuildConfiguration section */
|
||||||
|
76EAA87C1E93F2CC009A41DA /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
CLANG_ANALYZER_NONNULL = YES;
|
||||||
|
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||||
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||||
|
CLANG_CXX_LIBRARY = "libc++";
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
|
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||||
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_COMMA = YES;
|
||||||
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||||
|
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
||||||
|
CLANG_WARN_EMPTY_BODY = YES;
|
||||||
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||||
|
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||||
|
CLANG_WARN_INT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||||
|
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||||
|
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||||
|
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||||
|
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||||
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
|
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||||
|
COPY_PHASE_STRIP = NO;
|
||||||
|
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||||
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||||
|
ENABLE_TESTABILITY = YES;
|
||||||
|
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||||
|
GCC_DYNAMIC_NO_PIC = NO;
|
||||||
|
GCC_NO_COMMON_BLOCKS = YES;
|
||||||
|
GCC_OPTIMIZATION_LEVEL = 0;
|
||||||
|
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||||
|
"DEBUG=1",
|
||||||
|
"$(inherited)",
|
||||||
|
);
|
||||||
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||||
|
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||||
|
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||||
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 10.3;
|
||||||
|
MTL_ENABLE_DEBUG_INFO = YES;
|
||||||
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
|
SDKROOT = iphoneos;
|
||||||
|
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
||||||
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||||
|
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
|
||||||
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
76EAA87D1E93F2CC009A41DA /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
CLANG_ANALYZER_NONNULL = YES;
|
||||||
|
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||||
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||||
|
CLANG_CXX_LIBRARY = "libc++";
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
|
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||||
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_COMMA = YES;
|
||||||
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||||
|
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
||||||
|
CLANG_WARN_EMPTY_BODY = YES;
|
||||||
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||||
|
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||||
|
CLANG_WARN_INT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||||
|
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||||
|
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||||
|
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||||
|
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||||
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
|
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||||
|
COPY_PHASE_STRIP = NO;
|
||||||
|
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||||
|
ENABLE_NS_ASSERTIONS = NO;
|
||||||
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||||
|
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||||
|
GCC_NO_COMMON_BLOCKS = YES;
|
||||||
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||||
|
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||||
|
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||||
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 10.3;
|
||||||
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
|
SDKROOT = iphoneos;
|
||||||
|
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
||||||
|
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
|
||||||
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
|
VALIDATE_PRODUCT = YES;
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
76EAA87F1E93F2CC009A41DA /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
|
DEVELOPMENT_TEAM = 62PP362QNQ;
|
||||||
|
INFOPLIST_FILE = OpenSourceControllerDemo/Info.plist;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = com.fg.OpenSourceControllerDemo;
|
||||||
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
|
||||||
|
SWIFT_VERSION = 4.0;
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
76EAA8801E93F2CC009A41DA /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
|
DEVELOPMENT_TEAM = 62PP362QNQ;
|
||||||
|
INFOPLIST_FILE = OpenSourceControllerDemo/Info.plist;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = com.fg.OpenSourceControllerDemo;
|
||||||
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
|
||||||
|
SWIFT_VERSION = 4.0;
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
/* End XCBuildConfiguration section */
|
||||||
|
|
||||||
|
/* Begin XCConfigurationList section */
|
||||||
|
76EAA85C1E93F2CC009A41DA /* Build configuration list for PBXProject "OpenSourceControllerDemo" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
76EAA87C1E93F2CC009A41DA /* Debug */,
|
||||||
|
76EAA87D1E93F2CC009A41DA /* Release */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
|
76EAA87E1E93F2CC009A41DA /* Build configuration list for PBXNativeTarget "OpenSourceControllerDemo" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
76EAA87F1E93F2CC009A41DA /* Debug */,
|
||||||
|
76EAA8801E93F2CC009A41DA /* Release */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
|
/* End XCConfigurationList section */
|
||||||
|
};
|
||||||
|
rootObject = 76EAA8591E93F2CC009A41DA /* Project object */;
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Workspace
|
||||||
|
version = "1.0">
|
||||||
|
<FileRef
|
||||||
|
location = "self:OpenSourceControllerDemo.xcodeproj">
|
||||||
|
</FileRef>
|
||||||
|
</Workspace>
|
||||||
@@ -0,0 +1,103 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Scheme
|
||||||
|
LastUpgradeVersion = "0900"
|
||||||
|
version = "1.3">
|
||||||
|
<BuildAction
|
||||||
|
parallelizeBuildables = "YES"
|
||||||
|
buildImplicitDependencies = "YES">
|
||||||
|
<BuildActionEntries>
|
||||||
|
<BuildActionEntry
|
||||||
|
buildForTesting = "YES"
|
||||||
|
buildForRunning = "YES"
|
||||||
|
buildForProfiling = "YES"
|
||||||
|
buildForArchiving = "YES"
|
||||||
|
buildForAnalyzing = "YES">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "76EAA8601E93F2CC009A41DA"
|
||||||
|
BuildableName = "OpenSourceControllerDemo.app"
|
||||||
|
BlueprintName = "OpenSourceControllerDemo"
|
||||||
|
ReferencedContainer = "container:OpenSourceControllerDemo.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildActionEntry>
|
||||||
|
</BuildActionEntries>
|
||||||
|
</BuildAction>
|
||||||
|
<TestAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
language = ""
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||||
|
<Testables>
|
||||||
|
<TestableReference
|
||||||
|
skipped = "NO">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "76EAA8741E93F2CC009A41DA"
|
||||||
|
BuildableName = "OpenSourceControllerDemoUITests.xctest"
|
||||||
|
BlueprintName = "OpenSourceControllerDemoUITests"
|
||||||
|
ReferencedContainer = "container:OpenSourceControllerDemo.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</TestableReference>
|
||||||
|
</Testables>
|
||||||
|
<MacroExpansion>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "76EAA8601E93F2CC009A41DA"
|
||||||
|
BuildableName = "OpenSourceControllerDemo.app"
|
||||||
|
BlueprintName = "OpenSourceControllerDemo"
|
||||||
|
ReferencedContainer = "container:OpenSourceControllerDemo.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</MacroExpansion>
|
||||||
|
<AdditionalOptions>
|
||||||
|
</AdditionalOptions>
|
||||||
|
</TestAction>
|
||||||
|
<LaunchAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
language = ""
|
||||||
|
launchStyle = "0"
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
ignoresPersistentStateOnLaunch = "NO"
|
||||||
|
debugDocumentVersioning = "YES"
|
||||||
|
debugServiceExtension = "internal"
|
||||||
|
allowLocationSimulation = "YES">
|
||||||
|
<BuildableProductRunnable
|
||||||
|
runnableDebuggingMode = "0">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "76EAA8601E93F2CC009A41DA"
|
||||||
|
BuildableName = "OpenSourceControllerDemo.app"
|
||||||
|
BlueprintName = "OpenSourceControllerDemo"
|
||||||
|
ReferencedContainer = "container:OpenSourceControllerDemo.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
<AdditionalOptions>
|
||||||
|
</AdditionalOptions>
|
||||||
|
</LaunchAction>
|
||||||
|
<ProfileAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
savedToolIdentifier = ""
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
debugDocumentVersioning = "YES">
|
||||||
|
<BuildableProductRunnable
|
||||||
|
runnableDebuggingMode = "0">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "76EAA8601E93F2CC009A41DA"
|
||||||
|
BuildableName = "OpenSourceControllerDemo.app"
|
||||||
|
BlueprintName = "OpenSourceControllerDemo"
|
||||||
|
ReferencedContainer = "container:OpenSourceControllerDemo.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
</ProfileAction>
|
||||||
|
<AnalyzeAction
|
||||||
|
buildConfiguration = "Debug">
|
||||||
|
</AnalyzeAction>
|
||||||
|
<ArchiveAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
revealArchiveInOrganizer = "YES">
|
||||||
|
</ArchiveAction>
|
||||||
|
</Scheme>
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
<?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>SchemeUserState</key>
|
||||||
|
<dict>
|
||||||
|
<key>OpenSourceControllerDemo.xcscheme</key>
|
||||||
|
<dict>
|
||||||
|
<key>orderHint</key>
|
||||||
|
<integer>0</integer>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
<key>SuppressBuildableAutocreation</key>
|
||||||
|
<dict>
|
||||||
|
<key>76EAA8601E93F2CC009A41DA</key>
|
||||||
|
<dict>
|
||||||
|
<key>primary</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>76EAA8741E93F2CC009A41DA</key>
|
||||||
|
<dict>
|
||||||
|
<key>primary</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
//
|
||||||
|
// AppDelegate.swift
|
||||||
|
// OpenSourceControllerDemo
|
||||||
|
//
|
||||||
|
// Created by Florian Gabach on 04/04/2017.
|
||||||
|
// Copyright © 2017 OpenSourceController. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
import UIKit
|
||||||
|
|
||||||
|
@UIApplicationMain
|
||||||
|
class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||||
|
|
||||||
|
var window: UIWindow?
|
||||||
|
|
||||||
|
|
||||||
|
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
|
||||||
|
// Override point for customization after application launch.
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
func applicationWillResignActive(_ application: UIApplication) {
|
||||||
|
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
|
||||||
|
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
|
||||||
|
}
|
||||||
|
|
||||||
|
func applicationDidEnterBackground(_ application: UIApplication) {
|
||||||
|
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
|
||||||
|
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
|
||||||
|
}
|
||||||
|
|
||||||
|
func applicationWillEnterForeground(_ application: UIApplication) {
|
||||||
|
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
|
||||||
|
}
|
||||||
|
|
||||||
|
func applicationDidBecomeActive(_ application: UIApplication) {
|
||||||
|
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
|
||||||
|
}
|
||||||
|
|
||||||
|
func applicationWillTerminate(_ application: UIApplication) {
|
||||||
|
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,115 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"size" : "20x20",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "logo 8-1.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "20x20",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "logo 8.png",
|
||||||
|
"scale" : "3x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "29x29",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "logo 9-1.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "29x29",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "logo 9.png",
|
||||||
|
"scale" : "3x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "40x40",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "logo 10-3.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "40x40",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "logo 10-2.png",
|
||||||
|
"scale" : "3x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "60x60",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "logo 10-1.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "60x60",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "logo 10.png",
|
||||||
|
"scale" : "3x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "20x20",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "logo 4-1.png",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "20x20",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "logo 4.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "29x29",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "logo 5-1.png",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "29x29",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "logo 5.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "40x40",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "logo 6-1.png",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "40x40",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "logo 6.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "76x76",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "logo 7-2.png",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "76x76",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "logo 7-1.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "83.5x83.5",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "logo 7.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "ios-marketing",
|
||||||
|
"size" : "1024x1024",
|
||||||
|
"scale" : "1x"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"version" : 1,
|
||||||
|
"author" : "xcode"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 8.2 KiB |
|
After Width: | Height: | Size: 8.2 KiB |
|
After Width: | Height: | Size: 5.7 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 6.0 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
@@ -0,0 +1,27 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11134" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
||||||
|
<dependencies>
|
||||||
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11106"/>
|
||||||
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
|
</dependencies>
|
||||||
|
<scenes>
|
||||||
|
<!--View Controller-->
|
||||||
|
<scene sceneID="EHf-IW-A2E">
|
||||||
|
<objects>
|
||||||
|
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
||||||
|
<layoutGuides>
|
||||||
|
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
|
||||||
|
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
|
||||||
|
</layoutGuides>
|
||||||
|
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
|
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
|
</view>
|
||||||
|
</viewController>
|
||||||
|
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||||
|
</objects>
|
||||||
|
<point key="canvasLocation" x="53" y="375"/>
|
||||||
|
</scene>
|
||||||
|
</scenes>
|
||||||
|
</document>
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13196" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
|
||||||
|
<device id="retina4_7" orientation="portrait">
|
||||||
|
<adaptation id="fullscreen"/>
|
||||||
|
</device>
|
||||||
|
<dependencies>
|
||||||
|
<deployment identifier="iOS"/>
|
||||||
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13173"/>
|
||||||
|
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
|
||||||
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
|
</dependencies>
|
||||||
|
<scenes>
|
||||||
|
<!--View Controller-->
|
||||||
|
<scene sceneID="tne-QT-ifu">
|
||||||
|
<objects>
|
||||||
|
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="OpenSourceControllerDemo" customModuleProvider="target" sceneMemberID="viewController">
|
||||||
|
<layoutGuides>
|
||||||
|
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
|
||||||
|
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
|
||||||
|
</layoutGuides>
|
||||||
|
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
|
<subviews>
|
||||||
|
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="LI4-fC-2Ry">
|
||||||
|
<rect key="frame" x="23" y="318" width="328" height="30"/>
|
||||||
|
<state key="normal" title="Show me"/>
|
||||||
|
<connections>
|
||||||
|
<action selector="showOpenSource:" destination="BYZ-38-t0r" eventType="touchUpInside" id="vmT-jj-Xvr"/>
|
||||||
|
</connections>
|
||||||
|
</button>
|
||||||
|
</subviews>
|
||||||
|
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstItem="LI4-fC-2Ry" firstAttribute="centerY" secondItem="8bC-Xf-vdC" secondAttribute="centerY" id="jXk-ZK-0PF"/>
|
||||||
|
<constraint firstItem="LI4-fC-2Ry" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" constant="7" id="q0g-Cs-CVt"/>
|
||||||
|
<constraint firstItem="LI4-fC-2Ry" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="wVV-oT-zRH"/>
|
||||||
|
</constraints>
|
||||||
|
</view>
|
||||||
|
</viewController>
|
||||||
|
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
|
||||||
|
</objects>
|
||||||
|
<point key="canvasLocation" x="136.80000000000001" y="138.98050974512745"/>
|
||||||
|
</scene>
|
||||||
|
</scenes>
|
||||||
|
</document>
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
<?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>en</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>APPL</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>1.0</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>1</string>
|
||||||
|
<key>LSRequiresIPhoneOS</key>
|
||||||
|
<true/>
|
||||||
|
<key>UILaunchStoryboardName</key>
|
||||||
|
<string>LaunchScreen</string>
|
||||||
|
<key>UIMainStoryboardFile</key>
|
||||||
|
<string>Main</string>
|
||||||
|
<key>UIRequiredDeviceCapabilities</key>
|
||||||
|
<array>
|
||||||
|
<string>armv7</string>
|
||||||
|
</array>
|
||||||
|
<key>UISupportedInterfaceOrientations</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
|
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
@@ -0,0 +1,82 @@
|
|||||||
|
//
|
||||||
|
// ViewController.swift
|
||||||
|
// OpenSourceControllerDemo
|
||||||
|
//
|
||||||
|
// Created by Florian Gabach on 04/04/2017.
|
||||||
|
// Copyright © 2017 OpenSourceController. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
import UIKit
|
||||||
|
|
||||||
|
class ViewController: UIViewController {
|
||||||
|
|
||||||
|
// MARK: - Lifecycle
|
||||||
|
|
||||||
|
override func viewDidLoad() {
|
||||||
|
super.viewDidLoad()
|
||||||
|
// Do any additional setup after loading the view, typically from a nib
|
||||||
|
}
|
||||||
|
|
||||||
|
override func didReceiveMemoryWarning() {
|
||||||
|
super.didReceiveMemoryWarning()
|
||||||
|
// Dispose of any resources that can be recreated.
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: - Action
|
||||||
|
|
||||||
|
/// Handle button click & show the controller with licences
|
||||||
|
@IBAction func showOpenSource(_ sender: Any) {
|
||||||
|
// Create controller
|
||||||
|
let openSourceVC = OpenSourceController()
|
||||||
|
|
||||||
|
// Apply some customisation if you want
|
||||||
|
//self.controllerCustomUI(openSourceVC: openSourceVC)
|
||||||
|
|
||||||
|
// Init with LicenceFile object
|
||||||
|
openSourceVC.licences = [LicenceFile(title: "FacebookImagePicker",
|
||||||
|
url: "https://raw.githubusercontent.com/terflogag/FacebookImagePicker/master/LICENSE"),
|
||||||
|
LicenceFile(title: "JSQMessagesViewController",
|
||||||
|
url: "https://raw.githubusercontent.com/jessesquires/JSQMessagesViewController/develop/LICENSE"),
|
||||||
|
LicenceFile(title: "OpenSourceController",
|
||||||
|
url: "https://raw.githubusercontent.com/terflogag/OpenSourceController/master/LICENSE"),
|
||||||
|
LicenceFile(title: "PermissionScope",
|
||||||
|
url: "https://raw.githubusercontent.com/nickoneill/PermissionScope/master/LICENSE"),
|
||||||
|
LicenceFile(title: "EasyTipView",
|
||||||
|
url: "https://raw.githubusercontent.com/teodorpatras/EasyTipView/master/LICENSE"),
|
||||||
|
LicenceFile(title: "ReachabilitySwift",
|
||||||
|
url: "https://raw.githubusercontent.com/ashleymills/Reachability.swift/master/LICENSE"),
|
||||||
|
LicenceFile(title: "KeychainAccess",
|
||||||
|
url: "https://raw.githubusercontent.com/kishikawakatsumi/KeychainAccess/master/LICENSE")]
|
||||||
|
|
||||||
|
// Present controller
|
||||||
|
openSourceVC.presentOpenSourceController(from: self)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Customization
|
||||||
|
|
||||||
|
fileprivate func controllerCustomUI(openSourceVC: OpenSourceController) {
|
||||||
|
// Navigation bar title
|
||||||
|
openSourceVC.config.title = "MyCustomTitle"
|
||||||
|
|
||||||
|
// Navigation bar tint color
|
||||||
|
openSourceVC.config.uiConfig.barTintColor = UIColor.red
|
||||||
|
|
||||||
|
// Close button color
|
||||||
|
openSourceVC.config.uiConfig.closeButtonColor = UIColor.white
|
||||||
|
|
||||||
|
// BackgroundColor
|
||||||
|
openSourceVC.config.uiConfig.backgroundColor = UIColor.red.withAlphaComponent(0.6)
|
||||||
|
|
||||||
|
// Licence text color
|
||||||
|
openSourceVC.config.uiConfig.licenceTextColor = UIColor.white
|
||||||
|
|
||||||
|
// Navigation bar title color
|
||||||
|
openSourceVC.config.uiConfig.titleColor = UIColor.white
|
||||||
|
|
||||||
|
// Licence cell background color
|
||||||
|
openSourceVC.config.uiConfig.licenceBackgroundColor = UIColor.red
|
||||||
|
|
||||||
|
// Verbose mode
|
||||||
|
openSourceVC.config.verbose = true
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2017 Florian Gabach
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
Pod::Spec.new do |s|
|
||||||
|
s.name = 'OpenSourceController'
|
||||||
|
s.version = '2.0'
|
||||||
|
s.summary = 'Display all the librarys licence used in your application. Enjoy !'
|
||||||
|
s.description = 'Display a screen with all licence used in your apply can be painful to maintain. OpenSourceController was built to respond to this problem. OpenSourceController is a simple parser to display the licences which are used in your application.'
|
||||||
|
s.homepage = 'https://github.com/terflogag/OpenSourceController'
|
||||||
|
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||||
|
s.author = { 'Florian Gabach' => 'contact@floriangabach.fr' }
|
||||||
|
s.source = { :git => 'https://github.com/terflogag/OpenSourceController.git', :tag => s.version.to_s }
|
||||||
|
s.ios.deployment_target = '9.0'
|
||||||
|
s.source_files = 'Sources/**/*'
|
||||||
|
end
|
||||||
@@ -3,162 +3,248 @@
|
|||||||
archiveVersion = 1;
|
archiveVersion = 1;
|
||||||
classes = {
|
classes = {
|
||||||
};
|
};
|
||||||
objectVersion = 46;
|
objectVersion = 47;
|
||||||
objects = {
|
objects = {
|
||||||
|
|
||||||
/* Begin PBXBuildFile section */
|
/* Begin PBXBuildFile section */
|
||||||
7608FF731E6485A700656BA2 /* OpenSourceController.h in Headers */ = {isa = PBXBuildFile; fileRef = 7608FF711E6485A700656BA2 /* OpenSourceController.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
52D6D9871BEFF229002C0205 /* OpenSourceController.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 52D6D97C1BEFF229002C0205 /* OpenSourceController.framework */; };
|
||||||
7608FF7E1E6485D000656BA2 /* LicenceDownloader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7608FF7C1E6485D000656BA2 /* LicenceDownloader.swift */; };
|
76EAA8441E93EDA5009A41DA /* OpenSourceController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76EAA8421E93EDA5009A41DA /* OpenSourceController.swift */; };
|
||||||
7608FF7F1E6485D000656BA2 /* LicenceFile.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7608FF7D1E6485D000656BA2 /* LicenceFile.swift */; };
|
76EAA8451E93EDA5009A41DA /* OpenSourceViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76EAA8431E93EDA5009A41DA /* OpenSourceViewController.swift */; };
|
||||||
7608FF811E6485D600656BA2 /* OpenSourceTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7608FF801E6485D600656BA2 /* OpenSourceTableViewCell.swift */; };
|
76EAA8481E93EDB3009A41DA /* Array+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76EAA8471E93EDB3009A41DA /* Array+Extensions.swift */; };
|
||||||
7608FF841E6485DE00656BA2 /* OpenSourceController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7608FF821E6485DE00656BA2 /* OpenSourceController.swift */; };
|
76EAA84E1E93EDCD009A41DA /* LicenceDownloader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76EAA84B1E93EDCD009A41DA /* LicenceDownloader.swift */; };
|
||||||
7608FF851E6485DE00656BA2 /* OpenSourceViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7608FF831E6485DE00656BA2 /* OpenSourceViewController.swift */; };
|
76EAA84F1E93EDCD009A41DA /* LicenceFile.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76EAA84C1E93EDCD009A41DA /* LicenceFile.swift */; };
|
||||||
|
76EAA8501E93EDCD009A41DA /* OpenSourceControllerConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76EAA84D1E93EDCD009A41DA /* OpenSourceControllerConfig.swift */; };
|
||||||
|
76EAA8531E93EDF0009A41DA /* OpenSourceTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76EAA8521E93EDF0009A41DA /* OpenSourceTableViewCell.swift */; };
|
||||||
/* End PBXBuildFile section */
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
|
/* Begin PBXContainerItemProxy section */
|
||||||
|
52D6D9881BEFF229002C0205 /* PBXContainerItemProxy */ = {
|
||||||
|
isa = PBXContainerItemProxy;
|
||||||
|
containerPortal = 52D6D9731BEFF229002C0205 /* Project object */;
|
||||||
|
proxyType = 1;
|
||||||
|
remoteGlobalIDString = 52D6D97B1BEFF229002C0205;
|
||||||
|
remoteInfo = OpenSourceController;
|
||||||
|
};
|
||||||
|
/* End PBXContainerItemProxy section */
|
||||||
|
|
||||||
/* Begin PBXFileReference section */
|
/* Begin PBXFileReference section */
|
||||||
7608FF6E1E6485A700656BA2 /* OpenSourceController.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = OpenSourceController.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
52D6D97C1BEFF229002C0205 /* OpenSourceController.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = OpenSourceController.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
7608FF711E6485A700656BA2 /* OpenSourceController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OpenSourceController.h; sourceTree = "<group>"; };
|
52D6D9861BEFF229002C0205 /* OpenSourceController-iOS Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "OpenSourceController-iOS Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
7608FF721E6485A700656BA2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
76EAA8421E93EDA5009A41DA /* OpenSourceController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = OpenSourceController.swift; path = Sources/Controller/OpenSourceController.swift; sourceTree = "<group>"; };
|
||||||
7608FF7C1E6485D000656BA2 /* LicenceDownloader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = LicenceDownloader.swift; path = Source/Model/LicenceDownloader.swift; sourceTree = SOURCE_ROOT; };
|
76EAA8431E93EDA5009A41DA /* OpenSourceViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = OpenSourceViewController.swift; path = Sources/Controller/OpenSourceViewController.swift; sourceTree = "<group>"; };
|
||||||
7608FF7D1E6485D000656BA2 /* LicenceFile.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = LicenceFile.swift; path = Source/Model/LicenceFile.swift; sourceTree = SOURCE_ROOT; };
|
76EAA8471E93EDB3009A41DA /* Array+Extensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "Array+Extensions.swift"; path = "Sources/Extensions/Array+Extensions.swift"; sourceTree = "<group>"; };
|
||||||
7608FF801E6485D600656BA2 /* OpenSourceTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = OpenSourceTableViewCell.swift; path = Source/View/OpenSourceTableViewCell.swift; sourceTree = SOURCE_ROOT; };
|
76EAA84B1E93EDCD009A41DA /* LicenceDownloader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = LicenceDownloader.swift; path = Sources/Model/LicenceDownloader.swift; sourceTree = "<group>"; };
|
||||||
7608FF821E6485DE00656BA2 /* OpenSourceController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = OpenSourceController.swift; path = Source/Controller/OpenSourceController.swift; sourceTree = SOURCE_ROOT; };
|
76EAA84C1E93EDCD009A41DA /* LicenceFile.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = LicenceFile.swift; path = Sources/Model/LicenceFile.swift; sourceTree = "<group>"; };
|
||||||
7608FF831E6485DE00656BA2 /* OpenSourceViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = OpenSourceViewController.swift; path = Source/Controller/OpenSourceViewController.swift; sourceTree = SOURCE_ROOT; };
|
76EAA84D1E93EDCD009A41DA /* OpenSourceControllerConfig.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = OpenSourceControllerConfig.swift; path = Sources/Model/OpenSourceControllerConfig.swift; sourceTree = "<group>"; };
|
||||||
|
76EAA8521E93EDF0009A41DA /* OpenSourceTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = OpenSourceTableViewCell.swift; path = Sources/View/OpenSourceTableViewCell.swift; sourceTree = "<group>"; };
|
||||||
|
AD2FAA261CD0B6D800659CF4 /* OpenSourceController.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = OpenSourceController.plist; sourceTree = "<group>"; };
|
||||||
|
AD2FAA281CD0B6E100659CF4 /* OpenSourceControllerTests.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = OpenSourceControllerTests.plist; sourceTree = "<group>"; };
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
/* Begin PBXFrameworksBuildPhase section */
|
/* Begin PBXFrameworksBuildPhase section */
|
||||||
7608FF6A1E6485A700656BA2 /* Frameworks */ = {
|
52D6D9781BEFF229002C0205 /* Frameworks */ = {
|
||||||
isa = PBXFrameworksBuildPhase;
|
isa = PBXFrameworksBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
52D6D9831BEFF229002C0205 /* Frameworks */ = {
|
||||||
|
isa = PBXFrameworksBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
52D6D9871BEFF229002C0205 /* OpenSourceController.framework in Frameworks */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
/* End PBXFrameworksBuildPhase section */
|
/* End PBXFrameworksBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXGroup section */
|
/* Begin PBXGroup section */
|
||||||
7608FF641E6485A700656BA2 = {
|
52D6D9721BEFF229002C0205 = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
7608FF701E6485A700656BA2 /* OpenSourceController */,
|
76EAA84A1E93EDC0009A41DA /* Sources */,
|
||||||
7608FF6F1E6485A700656BA2 /* Products */,
|
52D6D99C1BEFF38C002C0205 /* Configs */,
|
||||||
|
52D6D97D1BEFF229002C0205 /* Products */,
|
||||||
);
|
);
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
7608FF6F1E6485A700656BA2 /* Products */ = {
|
52D6D97D1BEFF229002C0205 /* Products */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
7608FF6E1E6485A700656BA2 /* OpenSourceController.framework */,
|
52D6D97C1BEFF229002C0205 /* OpenSourceController.framework */,
|
||||||
|
52D6D9861BEFF229002C0205 /* OpenSourceController-iOS Tests.xctest */,
|
||||||
);
|
);
|
||||||
name = Products;
|
name = Products;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
7608FF701E6485A700656BA2 /* OpenSourceController */ = {
|
52D6D99C1BEFF38C002C0205 /* Configs */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
7608FF7B1E6485C400656BA2 /* Controller */,
|
DD7502721C68FC1B006590AF /* Frameworks */,
|
||||||
7608FF7A1E6485BE00656BA2 /* View */,
|
DD7502731C68FC20006590AF /* Tests */,
|
||||||
7608FF791E6485BA00656BA2 /* Model */,
|
|
||||||
7608FF711E6485A700656BA2 /* OpenSourceController.h */,
|
|
||||||
7608FF721E6485A700656BA2 /* Info.plist */,
|
|
||||||
);
|
);
|
||||||
path = OpenSourceController;
|
path = Configs;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
7608FF791E6485BA00656BA2 /* Model */ = {
|
76EAA8461E93EDA9009A41DA /* Controller */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
7608FF7C1E6485D000656BA2 /* LicenceDownloader.swift */,
|
76EAA8421E93EDA5009A41DA /* OpenSourceController.swift */,
|
||||||
7608FF7D1E6485D000656BA2 /* LicenceFile.swift */,
|
76EAA8431E93EDA5009A41DA /* OpenSourceViewController.swift */,
|
||||||
|
);
|
||||||
|
name = Controller;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
76EAA8491E93EDBB009A41DA /* Extensions */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
76EAA8471E93EDB3009A41DA /* Array+Extensions.swift */,
|
||||||
|
);
|
||||||
|
name = Extensions;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
76EAA84A1E93EDC0009A41DA /* Sources */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
76EAA8511E93EDD2009A41DA /* Model */,
|
||||||
|
76EAA8541E93EDF3009A41DA /* View */,
|
||||||
|
76EAA8461E93EDA9009A41DA /* Controller */,
|
||||||
|
76EAA8491E93EDBB009A41DA /* Extensions */,
|
||||||
|
);
|
||||||
|
name = Sources;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
76EAA8511E93EDD2009A41DA /* Model */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
76EAA84B1E93EDCD009A41DA /* LicenceDownloader.swift */,
|
||||||
|
76EAA84C1E93EDCD009A41DA /* LicenceFile.swift */,
|
||||||
|
76EAA84D1E93EDCD009A41DA /* OpenSourceControllerConfig.swift */,
|
||||||
);
|
);
|
||||||
name = Model;
|
name = Model;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
7608FF7A1E6485BE00656BA2 /* View */ = {
|
76EAA8541E93EDF3009A41DA /* View */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
7608FF801E6485D600656BA2 /* OpenSourceTableViewCell.swift */,
|
76EAA8521E93EDF0009A41DA /* OpenSourceTableViewCell.swift */,
|
||||||
);
|
);
|
||||||
name = View;
|
name = View;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
7608FF7B1E6485C400656BA2 /* Controller */ = {
|
DD7502721C68FC1B006590AF /* Frameworks */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
7608FF821E6485DE00656BA2 /* OpenSourceController.swift */,
|
AD2FAA261CD0B6D800659CF4 /* OpenSourceController.plist */,
|
||||||
7608FF831E6485DE00656BA2 /* OpenSourceViewController.swift */,
|
|
||||||
);
|
);
|
||||||
name = Controller;
|
name = Frameworks;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
DD7502731C68FC20006590AF /* Tests */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
AD2FAA281CD0B6E100659CF4 /* OpenSourceControllerTests.plist */,
|
||||||
|
);
|
||||||
|
name = Tests;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
/* End PBXGroup section */
|
/* End PBXGroup section */
|
||||||
|
|
||||||
/* Begin PBXHeadersBuildPhase section */
|
/* Begin PBXHeadersBuildPhase section */
|
||||||
7608FF6B1E6485A700656BA2 /* Headers */ = {
|
52D6D9791BEFF229002C0205 /* Headers */ = {
|
||||||
isa = PBXHeadersBuildPhase;
|
isa = PBXHeadersBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
7608FF731E6485A700656BA2 /* OpenSourceController.h in Headers */,
|
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
/* End PBXHeadersBuildPhase section */
|
/* End PBXHeadersBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXNativeTarget section */
|
/* Begin PBXNativeTarget section */
|
||||||
7608FF6D1E6485A700656BA2 /* OpenSourceController */ = {
|
52D6D97B1BEFF229002C0205 /* OpenSourceController-iOS */ = {
|
||||||
isa = PBXNativeTarget;
|
isa = PBXNativeTarget;
|
||||||
buildConfigurationList = 7608FF761E6485A700656BA2 /* Build configuration list for PBXNativeTarget "OpenSourceController" */;
|
buildConfigurationList = 52D6D9901BEFF229002C0205 /* Build configuration list for PBXNativeTarget "OpenSourceController-iOS" */;
|
||||||
buildPhases = (
|
buildPhases = (
|
||||||
7608FF691E6485A700656BA2 /* Sources */,
|
52D6D9771BEFF229002C0205 /* Sources */,
|
||||||
7608FF6A1E6485A700656BA2 /* Frameworks */,
|
52D6D9781BEFF229002C0205 /* Frameworks */,
|
||||||
7608FF6B1E6485A700656BA2 /* Headers */,
|
52D6D9791BEFF229002C0205 /* Headers */,
|
||||||
7608FF6C1E6485A700656BA2 /* Resources */,
|
52D6D97A1BEFF229002C0205 /* Resources */,
|
||||||
);
|
);
|
||||||
buildRules = (
|
buildRules = (
|
||||||
);
|
);
|
||||||
dependencies = (
|
dependencies = (
|
||||||
);
|
);
|
||||||
name = OpenSourceController;
|
name = "OpenSourceController-iOS";
|
||||||
productName = OpenSourceController;
|
productName = OpenSourceController;
|
||||||
productReference = 7608FF6E1E6485A700656BA2 /* OpenSourceController.framework */;
|
productReference = 52D6D97C1BEFF229002C0205 /* OpenSourceController.framework */;
|
||||||
productType = "com.apple.product-type.framework";
|
productType = "com.apple.product-type.framework";
|
||||||
};
|
};
|
||||||
|
52D6D9851BEFF229002C0205 /* OpenSourceController-iOS Tests */ = {
|
||||||
|
isa = PBXNativeTarget;
|
||||||
|
buildConfigurationList = 52D6D9931BEFF229002C0205 /* Build configuration list for PBXNativeTarget "OpenSourceController-iOS Tests" */;
|
||||||
|
buildPhases = (
|
||||||
|
52D6D9821BEFF229002C0205 /* Sources */,
|
||||||
|
52D6D9831BEFF229002C0205 /* Frameworks */,
|
||||||
|
52D6D9841BEFF229002C0205 /* Resources */,
|
||||||
|
);
|
||||||
|
buildRules = (
|
||||||
|
);
|
||||||
|
dependencies = (
|
||||||
|
52D6D9891BEFF229002C0205 /* PBXTargetDependency */,
|
||||||
|
);
|
||||||
|
name = "OpenSourceController-iOS Tests";
|
||||||
|
productName = OpenSourceControllerTests;
|
||||||
|
productReference = 52D6D9861BEFF229002C0205 /* OpenSourceController-iOS Tests.xctest */;
|
||||||
|
productType = "com.apple.product-type.bundle.unit-test";
|
||||||
|
};
|
||||||
/* End PBXNativeTarget section */
|
/* End PBXNativeTarget section */
|
||||||
|
|
||||||
/* Begin PBXProject section */
|
/* Begin PBXProject section */
|
||||||
7608FF651E6485A700656BA2 /* Project object */ = {
|
52D6D9731BEFF229002C0205 /* Project object */ = {
|
||||||
isa = PBXProject;
|
isa = PBXProject;
|
||||||
attributes = {
|
attributes = {
|
||||||
LastUpgradeCheck = 0820;
|
LastSwiftUpdateCheck = 0720;
|
||||||
ORGANIZATIONNAME = "Florian Gabach";
|
LastUpgradeCheck = 0900;
|
||||||
|
ORGANIZATIONNAME = OpenSourceController;
|
||||||
TargetAttributes = {
|
TargetAttributes = {
|
||||||
7608FF6D1E6485A700656BA2 = {
|
52D6D97B1BEFF229002C0205 = {
|
||||||
CreatedOnToolsVersion = 8.2.1;
|
CreatedOnToolsVersion = 7.1;
|
||||||
DevelopmentTeam = 62PP362QNQ;
|
LastSwiftMigration = 0830;
|
||||||
LastSwiftMigration = 0820;
|
};
|
||||||
ProvisioningStyle = Automatic;
|
52D6D9851BEFF229002C0205 = {
|
||||||
|
CreatedOnToolsVersion = 7.1;
|
||||||
|
LastSwiftMigration = "";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
buildConfigurationList = 7608FF681E6485A700656BA2 /* Build configuration list for PBXProject "OpenSourceController" */;
|
buildConfigurationList = 52D6D9761BEFF229002C0205 /* Build configuration list for PBXProject "OpenSourceController" */;
|
||||||
compatibilityVersion = "Xcode 3.2";
|
compatibilityVersion = "Xcode 6.3";
|
||||||
developmentRegion = English;
|
developmentRegion = English;
|
||||||
hasScannedForEncodings = 0;
|
hasScannedForEncodings = 0;
|
||||||
knownRegions = (
|
knownRegions = (
|
||||||
en,
|
en,
|
||||||
);
|
);
|
||||||
mainGroup = 7608FF641E6485A700656BA2;
|
mainGroup = 52D6D9721BEFF229002C0205;
|
||||||
productRefGroup = 7608FF6F1E6485A700656BA2 /* Products */;
|
productRefGroup = 52D6D97D1BEFF229002C0205 /* Products */;
|
||||||
projectDirPath = "";
|
projectDirPath = "";
|
||||||
projectRoot = "";
|
projectRoot = "";
|
||||||
targets = (
|
targets = (
|
||||||
7608FF6D1E6485A700656BA2 /* OpenSourceController */,
|
52D6D97B1BEFF229002C0205 /* OpenSourceController-iOS */,
|
||||||
|
52D6D9851BEFF229002C0205 /* OpenSourceController-iOS Tests */,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
/* End PBXProject section */
|
/* End PBXProject section */
|
||||||
|
|
||||||
/* Begin PBXResourcesBuildPhase section */
|
/* Begin PBXResourcesBuildPhase section */
|
||||||
7608FF6C1E6485A700656BA2 /* Resources */ = {
|
52D6D97A1BEFF229002C0205 /* Resources */ = {
|
||||||
|
isa = PBXResourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
52D6D9841BEFF229002C0205 /* Resources */ = {
|
||||||
isa = PBXResourcesBuildPhase;
|
isa = PBXResourcesBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
@@ -168,39 +254,60 @@
|
|||||||
/* End PBXResourcesBuildPhase section */
|
/* End PBXResourcesBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXSourcesBuildPhase section */
|
/* Begin PBXSourcesBuildPhase section */
|
||||||
7608FF691E6485A700656BA2 /* Sources */ = {
|
52D6D9771BEFF229002C0205 /* Sources */ = {
|
||||||
|
isa = PBXSourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
76EAA84E1E93EDCD009A41DA /* LicenceDownloader.swift in Sources */,
|
||||||
|
76EAA84F1E93EDCD009A41DA /* LicenceFile.swift in Sources */,
|
||||||
|
76EAA8441E93EDA5009A41DA /* OpenSourceController.swift in Sources */,
|
||||||
|
76EAA8481E93EDB3009A41DA /* Array+Extensions.swift in Sources */,
|
||||||
|
76EAA8531E93EDF0009A41DA /* OpenSourceTableViewCell.swift in Sources */,
|
||||||
|
76EAA8501E93EDCD009A41DA /* OpenSourceControllerConfig.swift in Sources */,
|
||||||
|
76EAA8451E93EDA5009A41DA /* OpenSourceViewController.swift in Sources */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
52D6D9821BEFF229002C0205 /* Sources */ = {
|
||||||
isa = PBXSourcesBuildPhase;
|
isa = PBXSourcesBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
7608FF851E6485DE00656BA2 /* OpenSourceViewController.swift in Sources */,
|
|
||||||
7608FF841E6485DE00656BA2 /* OpenSourceController.swift in Sources */,
|
|
||||||
7608FF811E6485D600656BA2 /* OpenSourceTableViewCell.swift in Sources */,
|
|
||||||
7608FF7E1E6485D000656BA2 /* LicenceDownloader.swift in Sources */,
|
|
||||||
7608FF7F1E6485D000656BA2 /* LicenceFile.swift in Sources */,
|
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
/* End PBXSourcesBuildPhase section */
|
/* End PBXSourcesBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXTargetDependency section */
|
||||||
|
52D6D9891BEFF229002C0205 /* PBXTargetDependency */ = {
|
||||||
|
isa = PBXTargetDependency;
|
||||||
|
target = 52D6D97B1BEFF229002C0205 /* OpenSourceController-iOS */;
|
||||||
|
targetProxy = 52D6D9881BEFF229002C0205 /* PBXContainerItemProxy */;
|
||||||
|
};
|
||||||
|
/* End PBXTargetDependency section */
|
||||||
|
|
||||||
/* Begin XCBuildConfiguration section */
|
/* Begin XCBuildConfiguration section */
|
||||||
7608FF741E6485A700656BA2 /* Debug */ = {
|
52D6D98E1BEFF229002C0205 /* Debug */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
CLANG_ANALYZER_NONNULL = YES;
|
|
||||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||||
CLANG_CXX_LIBRARY = "libc++";
|
CLANG_CXX_LIBRARY = "libc++";
|
||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CLANG_ENABLE_OBJC_ARC = YES;
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
|
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_COMMA = YES;
|
||||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
|
||||||
CLANG_WARN_EMPTY_BODY = YES;
|
CLANG_WARN_EMPTY_BODY = YES;
|
||||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||||
CLANG_WARN_INT_CONVERSION = YES;
|
CLANG_WARN_INT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||||
|
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||||
|
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
@@ -224,36 +331,40 @@
|
|||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 10.2;
|
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = YES;
|
MTL_ENABLE_DEBUG_INFO = YES;
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
|
||||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||||
|
SWIFT_VERSION = 4.0;
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
VERSIONING_SYSTEM = "apple-generic";
|
VERSIONING_SYSTEM = "apple-generic";
|
||||||
VERSION_INFO_PREFIX = "";
|
VERSION_INFO_PREFIX = "";
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
7608FF751E6485A700656BA2 /* Release */ = {
|
52D6D98F1BEFF229002C0205 /* Release */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
CLANG_ANALYZER_NONNULL = YES;
|
|
||||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||||
CLANG_CXX_LIBRARY = "libc++";
|
CLANG_CXX_LIBRARY = "libc++";
|
||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CLANG_ENABLE_OBJC_ARC = YES;
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
|
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_COMMA = YES;
|
||||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
|
||||||
CLANG_WARN_EMPTY_BODY = YES;
|
CLANG_WARN_EMPTY_BODY = YES;
|
||||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||||
CLANG_WARN_INT_CONVERSION = YES;
|
CLANG_WARN_INT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||||
|
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||||
|
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
@@ -271,10 +382,10 @@
|
|||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 10.2;
|
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
SWIFT_VERSION = 4.0;
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
VALIDATE_PRODUCT = YES;
|
VALIDATE_PRODUCT = YES;
|
||||||
VERSIONING_SYSTEM = "apple-generic";
|
VERSIONING_SYSTEM = "apple-generic";
|
||||||
@@ -282,43 +393,75 @@
|
|||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
7608FF771E6485A700656BA2 /* Debug */ = {
|
52D6D9911BEFF229002C0205 /* Debug */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
|
APPLICATION_EXTENSION_API_ONLY = YES;
|
||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CODE_SIGN_IDENTITY = "";
|
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
|
||||||
DEFINES_MODULE = YES;
|
DEFINES_MODULE = YES;
|
||||||
DEVELOPMENT_TEAM = 62PP362QNQ;
|
|
||||||
DYLIB_COMPATIBILITY_VERSION = 1;
|
DYLIB_COMPATIBILITY_VERSION = 1;
|
||||||
DYLIB_CURRENT_VERSION = 1;
|
DYLIB_CURRENT_VERSION = 1;
|
||||||
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
||||||
INFOPLIST_FILE = OpenSourceController/Info.plist;
|
INFOPLIST_FILE = Configs/OpenSourceController.plist;
|
||||||
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.fg.OpenSourceController;
|
ONLY_ACTIVE_ARCH = NO;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_BUNDLE_IDENTIFIER = "com.OpenSourceController.OpenSourceController-iOS";
|
||||||
|
PRODUCT_NAME = OpenSourceController;
|
||||||
SKIP_INSTALL = YES;
|
SKIP_INSTALL = YES;
|
||||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||||
|
SWIFT_VERSION = 4.0;
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
52D6D9921BEFF229002C0205 /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
APPLICATION_EXTENSION_API_ONLY = YES;
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
|
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
|
||||||
|
DEFINES_MODULE = YES;
|
||||||
|
DYLIB_COMPATIBILITY_VERSION = 1;
|
||||||
|
DYLIB_CURRENT_VERSION = 1;
|
||||||
|
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
||||||
|
INFOPLIST_FILE = Configs/OpenSourceController.plist;
|
||||||
|
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = "com.OpenSourceController.OpenSourceController-iOS";
|
||||||
|
PRODUCT_NAME = OpenSourceController;
|
||||||
|
SKIP_INSTALL = YES;
|
||||||
|
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
||||||
|
SWIFT_VERSION = 4.0;
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
52D6D9941BEFF229002C0205 /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
|
INFOPLIST_FILE = Configs/OpenSourceControllerTests.plist;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = "com.OpenSourceController.OpenSourceController-iOS-Tests";
|
||||||
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||||
SWIFT_VERSION = 3.0;
|
SWIFT_VERSION = 3.0;
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
7608FF781E6485A700656BA2 /* Release */ = {
|
52D6D9951BEFF229002C0205 /* Release */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
|
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CODE_SIGN_IDENTITY = "";
|
INFOPLIST_FILE = Configs/OpenSourceControllerTests.plist;
|
||||||
DEFINES_MODULE = YES;
|
|
||||||
DEVELOPMENT_TEAM = 62PP362QNQ;
|
|
||||||
DYLIB_COMPATIBILITY_VERSION = 1;
|
|
||||||
DYLIB_CURRENT_VERSION = 1;
|
|
||||||
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
|
||||||
INFOPLIST_FILE = OpenSourceController/Info.plist;
|
|
||||||
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
|
||||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.fg.OpenSourceController;
|
PRODUCT_BUNDLE_IDENTIFIER = "com.OpenSourceController.OpenSourceController-iOS-Tests";
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SKIP_INSTALL = YES;
|
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
||||||
SWIFT_VERSION = 3.0;
|
SWIFT_VERSION = 3.0;
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
@@ -326,24 +469,34 @@
|
|||||||
/* End XCBuildConfiguration section */
|
/* End XCBuildConfiguration section */
|
||||||
|
|
||||||
/* Begin XCConfigurationList section */
|
/* Begin XCConfigurationList section */
|
||||||
7608FF681E6485A700656BA2 /* Build configuration list for PBXProject "OpenSourceController" */ = {
|
52D6D9761BEFF229002C0205 /* Build configuration list for PBXProject "OpenSourceController" */ = {
|
||||||
isa = XCConfigurationList;
|
isa = XCConfigurationList;
|
||||||
buildConfigurations = (
|
buildConfigurations = (
|
||||||
7608FF741E6485A700656BA2 /* Debug */,
|
52D6D98E1BEFF229002C0205 /* Debug */,
|
||||||
7608FF751E6485A700656BA2 /* Release */,
|
52D6D98F1BEFF229002C0205 /* Release */,
|
||||||
);
|
);
|
||||||
defaultConfigurationIsVisible = 0;
|
defaultConfigurationIsVisible = 0;
|
||||||
defaultConfigurationName = Release;
|
defaultConfigurationName = Release;
|
||||||
};
|
};
|
||||||
7608FF761E6485A700656BA2 /* Build configuration list for PBXNativeTarget "OpenSourceController" */ = {
|
52D6D9901BEFF229002C0205 /* Build configuration list for PBXNativeTarget "OpenSourceController-iOS" */ = {
|
||||||
isa = XCConfigurationList;
|
isa = XCConfigurationList;
|
||||||
buildConfigurations = (
|
buildConfigurations = (
|
||||||
7608FF771E6485A700656BA2 /* Debug */,
|
52D6D9911BEFF229002C0205 /* Debug */,
|
||||||
7608FF781E6485A700656BA2 /* Release */,
|
52D6D9921BEFF229002C0205 /* Release */,
|
||||||
);
|
);
|
||||||
defaultConfigurationIsVisible = 0;
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
|
52D6D9931BEFF229002C0205 /* Build configuration list for PBXNativeTarget "OpenSourceController-iOS Tests" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
52D6D9941BEFF229002C0205 /* Debug */,
|
||||||
|
52D6D9951BEFF229002C0205 /* Release */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
};
|
};
|
||||||
/* End XCConfigurationList section */
|
/* End XCConfigurationList section */
|
||||||
};
|
};
|
||||||
rootObject = 7608FF651E6485A700656BA2 /* Project object */;
|
rootObject = 52D6D9731BEFF229002C0205 /* Project object */;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
<Workspace
|
<Workspace
|
||||||
version = "1.0">
|
version = "1.0">
|
||||||
<FileRef
|
<FileRef
|
||||||
location = "self:OpenSourceController.xcodeproj">
|
location = "self:">
|
||||||
</FileRef>
|
</FileRef>
|
||||||
</Workspace>
|
</Workspace>
|
||||||
|
|||||||
@@ -0,0 +1,102 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Scheme
|
||||||
|
LastUpgradeVersion = "0900"
|
||||||
|
version = "1.3">
|
||||||
|
<BuildAction
|
||||||
|
parallelizeBuildables = "YES"
|
||||||
|
buildImplicitDependencies = "YES">
|
||||||
|
<BuildActionEntries>
|
||||||
|
<BuildActionEntry
|
||||||
|
buildForTesting = "YES"
|
||||||
|
buildForRunning = "YES"
|
||||||
|
buildForProfiling = "YES"
|
||||||
|
buildForArchiving = "YES"
|
||||||
|
buildForAnalyzing = "YES">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "52D6D97B1BEFF229002C0205"
|
||||||
|
BuildableName = "OpenSourceController.framework"
|
||||||
|
BlueprintName = "OpenSourceController-iOS"
|
||||||
|
ReferencedContainer = "container:OpenSourceController.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildActionEntry>
|
||||||
|
</BuildActionEntries>
|
||||||
|
</BuildAction>
|
||||||
|
<TestAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
language = ""
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
codeCoverageEnabled = "YES">
|
||||||
|
<Testables>
|
||||||
|
<TestableReference
|
||||||
|
skipped = "NO">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "52D6D9851BEFF229002C0205"
|
||||||
|
BuildableName = "OpenSourceController-iOS Tests.xctest"
|
||||||
|
BlueprintName = "OpenSourceController-iOS Tests"
|
||||||
|
ReferencedContainer = "container:OpenSourceController.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</TestableReference>
|
||||||
|
</Testables>
|
||||||
|
<MacroExpansion>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "52D6D97B1BEFF229002C0205"
|
||||||
|
BuildableName = "OpenSourceController.framework"
|
||||||
|
BlueprintName = "OpenSourceController-iOS"
|
||||||
|
ReferencedContainer = "container:OpenSourceController.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</MacroExpansion>
|
||||||
|
<AdditionalOptions>
|
||||||
|
</AdditionalOptions>
|
||||||
|
</TestAction>
|
||||||
|
<LaunchAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
language = ""
|
||||||
|
launchStyle = "0"
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
ignoresPersistentStateOnLaunch = "NO"
|
||||||
|
debugDocumentVersioning = "YES"
|
||||||
|
debugServiceExtension = "internal"
|
||||||
|
allowLocationSimulation = "YES">
|
||||||
|
<MacroExpansion>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "52D6D97B1BEFF229002C0205"
|
||||||
|
BuildableName = "OpenSourceController.framework"
|
||||||
|
BlueprintName = "OpenSourceController-iOS"
|
||||||
|
ReferencedContainer = "container:OpenSourceController.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</MacroExpansion>
|
||||||
|
<AdditionalOptions>
|
||||||
|
</AdditionalOptions>
|
||||||
|
</LaunchAction>
|
||||||
|
<ProfileAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
savedToolIdentifier = ""
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
debugDocumentVersioning = "YES">
|
||||||
|
<MacroExpansion>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "52D6D97B1BEFF229002C0205"
|
||||||
|
BuildableName = "OpenSourceController.framework"
|
||||||
|
BlueprintName = "OpenSourceController-iOS"
|
||||||
|
ReferencedContainer = "container:OpenSourceController.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</MacroExpansion>
|
||||||
|
</ProfileAction>
|
||||||
|
<AnalyzeAction
|
||||||
|
buildConfiguration = "Debug">
|
||||||
|
</AnalyzeAction>
|
||||||
|
<ArchiveAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
revealArchiveInOrganizer = "YES">
|
||||||
|
</ArchiveAction>
|
||||||
|
</Scheme>
|
||||||
@@ -0,0 +1,102 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Scheme
|
||||||
|
LastUpgradeVersion = "0900"
|
||||||
|
version = "1.3">
|
||||||
|
<BuildAction
|
||||||
|
parallelizeBuildables = "YES"
|
||||||
|
buildImplicitDependencies = "YES">
|
||||||
|
<BuildActionEntries>
|
||||||
|
<BuildActionEntry
|
||||||
|
buildForTesting = "YES"
|
||||||
|
buildForRunning = "YES"
|
||||||
|
buildForProfiling = "YES"
|
||||||
|
buildForArchiving = "YES"
|
||||||
|
buildForAnalyzing = "YES">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "52D6DA0E1BF000BD002C0205"
|
||||||
|
BuildableName = "OpenSourceController.framework"
|
||||||
|
BlueprintName = "OpenSourceController-macOS"
|
||||||
|
ReferencedContainer = "container:OpenSourceController.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildActionEntry>
|
||||||
|
</BuildActionEntries>
|
||||||
|
</BuildAction>
|
||||||
|
<TestAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
language = ""
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
codeCoverageEnabled = "YES">
|
||||||
|
<Testables>
|
||||||
|
<TestableReference
|
||||||
|
skipped = "NO">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "DD7502791C68FCFC006590AF"
|
||||||
|
BuildableName = "OpenSourceController-macOS Tests.xctest"
|
||||||
|
BlueprintName = "OpenSourceController-macOS Tests"
|
||||||
|
ReferencedContainer = "container:OpenSourceController.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</TestableReference>
|
||||||
|
</Testables>
|
||||||
|
<MacroExpansion>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "52D6DA0E1BF000BD002C0205"
|
||||||
|
BuildableName = "OpenSourceController.framework"
|
||||||
|
BlueprintName = "OpenSourceController-macOS"
|
||||||
|
ReferencedContainer = "container:OpenSourceController.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</MacroExpansion>
|
||||||
|
<AdditionalOptions>
|
||||||
|
</AdditionalOptions>
|
||||||
|
</TestAction>
|
||||||
|
<LaunchAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
language = ""
|
||||||
|
launchStyle = "0"
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
ignoresPersistentStateOnLaunch = "NO"
|
||||||
|
debugDocumentVersioning = "YES"
|
||||||
|
debugServiceExtension = "internal"
|
||||||
|
allowLocationSimulation = "YES">
|
||||||
|
<MacroExpansion>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "52D6DA0E1BF000BD002C0205"
|
||||||
|
BuildableName = "OpenSourceController.framework"
|
||||||
|
BlueprintName = "OpenSourceController-macOS"
|
||||||
|
ReferencedContainer = "container:OpenSourceController.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</MacroExpansion>
|
||||||
|
<AdditionalOptions>
|
||||||
|
</AdditionalOptions>
|
||||||
|
</LaunchAction>
|
||||||
|
<ProfileAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
savedToolIdentifier = ""
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
debugDocumentVersioning = "YES">
|
||||||
|
<MacroExpansion>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "52D6DA0E1BF000BD002C0205"
|
||||||
|
BuildableName = "OpenSourceController.framework"
|
||||||
|
BlueprintName = "OpenSourceController-macOS"
|
||||||
|
ReferencedContainer = "container:OpenSourceController.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</MacroExpansion>
|
||||||
|
</ProfileAction>
|
||||||
|
<AnalyzeAction
|
||||||
|
buildConfiguration = "Debug">
|
||||||
|
</AnalyzeAction>
|
||||||
|
<ArchiveAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
revealArchiveInOrganizer = "YES">
|
||||||
|
</ArchiveAction>
|
||||||
|
</Scheme>
|
||||||
@@ -0,0 +1,102 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Scheme
|
||||||
|
LastUpgradeVersion = "0900"
|
||||||
|
version = "1.3">
|
||||||
|
<BuildAction
|
||||||
|
parallelizeBuildables = "YES"
|
||||||
|
buildImplicitDependencies = "YES">
|
||||||
|
<BuildActionEntries>
|
||||||
|
<BuildActionEntry
|
||||||
|
buildForTesting = "YES"
|
||||||
|
buildForRunning = "YES"
|
||||||
|
buildForProfiling = "YES"
|
||||||
|
buildForArchiving = "YES"
|
||||||
|
buildForAnalyzing = "YES">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "52D6D9EF1BEFFFBE002C0205"
|
||||||
|
BuildableName = "OpenSourceController.framework"
|
||||||
|
BlueprintName = "OpenSourceController-tvOS"
|
||||||
|
ReferencedContainer = "container:OpenSourceController.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildActionEntry>
|
||||||
|
</BuildActionEntries>
|
||||||
|
</BuildAction>
|
||||||
|
<TestAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
language = ""
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
codeCoverageEnabled = "YES">
|
||||||
|
<Testables>
|
||||||
|
<TestableReference
|
||||||
|
skipped = "NO">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "DD75028C1C690C7A006590AF"
|
||||||
|
BuildableName = "OpenSourceController-tvOS Tests.xctest"
|
||||||
|
BlueprintName = "OpenSourceController-tvOS Tests"
|
||||||
|
ReferencedContainer = "container:OpenSourceController.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</TestableReference>
|
||||||
|
</Testables>
|
||||||
|
<MacroExpansion>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "52D6D9EF1BEFFFBE002C0205"
|
||||||
|
BuildableName = "OpenSourceController.framework"
|
||||||
|
BlueprintName = "OpenSourceController-tvOS"
|
||||||
|
ReferencedContainer = "container:OpenSourceController.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</MacroExpansion>
|
||||||
|
<AdditionalOptions>
|
||||||
|
</AdditionalOptions>
|
||||||
|
</TestAction>
|
||||||
|
<LaunchAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
language = ""
|
||||||
|
launchStyle = "0"
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
ignoresPersistentStateOnLaunch = "NO"
|
||||||
|
debugDocumentVersioning = "YES"
|
||||||
|
debugServiceExtension = "internal"
|
||||||
|
allowLocationSimulation = "YES">
|
||||||
|
<MacroExpansion>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "52D6D9EF1BEFFFBE002C0205"
|
||||||
|
BuildableName = "OpenSourceController.framework"
|
||||||
|
BlueprintName = "OpenSourceController-tvOS"
|
||||||
|
ReferencedContainer = "container:OpenSourceController.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</MacroExpansion>
|
||||||
|
<AdditionalOptions>
|
||||||
|
</AdditionalOptions>
|
||||||
|
</LaunchAction>
|
||||||
|
<ProfileAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
savedToolIdentifier = ""
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
debugDocumentVersioning = "YES">
|
||||||
|
<MacroExpansion>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "52D6D9EF1BEFFFBE002C0205"
|
||||||
|
BuildableName = "OpenSourceController.framework"
|
||||||
|
BlueprintName = "OpenSourceController-tvOS"
|
||||||
|
ReferencedContainer = "container:OpenSourceController.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</MacroExpansion>
|
||||||
|
</ProfileAction>
|
||||||
|
<AnalyzeAction
|
||||||
|
buildConfiguration = "Debug">
|
||||||
|
</AnalyzeAction>
|
||||||
|
<ArchiveAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
revealArchiveInOrganizer = "YES">
|
||||||
|
</ArchiveAction>
|
||||||
|
</Scheme>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Scheme
|
<Scheme
|
||||||
LastUpgradeVersion = "0820"
|
LastUpgradeVersion = "0900"
|
||||||
version = "1.3">
|
version = "1.3">
|
||||||
<BuildAction
|
<BuildAction
|
||||||
parallelizeBuildables = "YES"
|
parallelizeBuildables = "YES"
|
||||||
@@ -14,9 +14,9 @@
|
|||||||
buildForAnalyzing = "YES">
|
buildForAnalyzing = "YES">
|
||||||
<BuildableReference
|
<BuildableReference
|
||||||
BuildableIdentifier = "primary"
|
BuildableIdentifier = "primary"
|
||||||
BlueprintIdentifier = "7608FF6D1E6485A700656BA2"
|
BlueprintIdentifier = "52D6D9E11BEFFF6E002C0205"
|
||||||
BuildableName = "OpenSourceController.framework"
|
BuildableName = "OpenSourceController.framework"
|
||||||
BlueprintName = "OpenSourceController"
|
BlueprintName = "OpenSourceController-watchOS"
|
||||||
ReferencedContainer = "container:OpenSourceController.xcodeproj">
|
ReferencedContainer = "container:OpenSourceController.xcodeproj">
|
||||||
</BuildableReference>
|
</BuildableReference>
|
||||||
</BuildActionEntry>
|
</BuildActionEntry>
|
||||||
@@ -26,7 +26,9 @@
|
|||||||
buildConfiguration = "Debug"
|
buildConfiguration = "Debug"
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
language = ""
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
codeCoverageEnabled = "YES">
|
||||||
<Testables>
|
<Testables>
|
||||||
</Testables>
|
</Testables>
|
||||||
<AdditionalOptions>
|
<AdditionalOptions>
|
||||||
@@ -36,6 +38,7 @@
|
|||||||
buildConfiguration = "Debug"
|
buildConfiguration = "Debug"
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
language = ""
|
||||||
launchStyle = "0"
|
launchStyle = "0"
|
||||||
useCustomWorkingDirectory = "NO"
|
useCustomWorkingDirectory = "NO"
|
||||||
ignoresPersistentStateOnLaunch = "NO"
|
ignoresPersistentStateOnLaunch = "NO"
|
||||||
@@ -45,9 +48,9 @@
|
|||||||
<MacroExpansion>
|
<MacroExpansion>
|
||||||
<BuildableReference
|
<BuildableReference
|
||||||
BuildableIdentifier = "primary"
|
BuildableIdentifier = "primary"
|
||||||
BlueprintIdentifier = "7608FF6D1E6485A700656BA2"
|
BlueprintIdentifier = "52D6D9E11BEFFF6E002C0205"
|
||||||
BuildableName = "OpenSourceController.framework"
|
BuildableName = "OpenSourceController.framework"
|
||||||
BlueprintName = "OpenSourceController"
|
BlueprintName = "OpenSourceController-watchOS"
|
||||||
ReferencedContainer = "container:OpenSourceController.xcodeproj">
|
ReferencedContainer = "container:OpenSourceController.xcodeproj">
|
||||||
</BuildableReference>
|
</BuildableReference>
|
||||||
</MacroExpansion>
|
</MacroExpansion>
|
||||||
@@ -63,9 +66,9 @@
|
|||||||
<MacroExpansion>
|
<MacroExpansion>
|
||||||
<BuildableReference
|
<BuildableReference
|
||||||
BuildableIdentifier = "primary"
|
BuildableIdentifier = "primary"
|
||||||
BlueprintIdentifier = "7608FF6D1E6485A700656BA2"
|
BlueprintIdentifier = "52D6D9E11BEFFF6E002C0205"
|
||||||
BuildableName = "OpenSourceController.framework"
|
BuildableName = "OpenSourceController.framework"
|
||||||
BlueprintName = "OpenSourceController"
|
BlueprintName = "OpenSourceController-watchOS"
|
||||||
ReferencedContainer = "container:OpenSourceController.xcodeproj">
|
ReferencedContainer = "container:OpenSourceController.xcodeproj">
|
||||||
</BuildableReference>
|
</BuildableReference>
|
||||||
</MacroExpansion>
|
</MacroExpansion>
|
||||||
@@ -2,17 +2,39 @@
|
|||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>SchemeUserState</key>
|
|
||||||
<dict>
|
|
||||||
<key>OpenSourceController.xcscheme_^#shared#^_</key>
|
|
||||||
<dict>
|
|
||||||
<key>orderHint</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<key>SuppressBuildableAutocreation</key>
|
<key>SuppressBuildableAutocreation</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>7608FF6D1E6485A700656BA2</key>
|
<key>52D6D97B1BEFF229002C0205</key>
|
||||||
|
<dict>
|
||||||
|
<key>primary</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>52D6D9851BEFF229002C0205</key>
|
||||||
|
<dict>
|
||||||
|
<key>primary</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>52D6D9E11BEFFF6E002C0205</key>
|
||||||
|
<dict>
|
||||||
|
<key>primary</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>52D6D9EF1BEFFFBE002C0205</key>
|
||||||
|
<dict>
|
||||||
|
<key>primary</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>52D6DA0E1BF000BD002C0205</key>
|
||||||
|
<dict>
|
||||||
|
<key>primary</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>DD7502791C68FCFC006590AF</key>
|
||||||
|
<dict>
|
||||||
|
<key>primary</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>DD75028C1C690C7A006590AF</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>primary</key>
|
<key>primary</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
//
|
|
||||||
// OpenSourceController.h
|
|
||||||
// OpenSourceController
|
|
||||||
//
|
|
||||||
// Created by Florian Gabach on 27/02/2017.
|
|
||||||
// Copyright © 2017 Florian Gabach. All rights reserved.
|
|
||||||
//
|
|
||||||
|
|
||||||
#import <UIKit/UIKit.h>
|
|
||||||
|
|
||||||
//! Project version number for OpenSourceController.
|
|
||||||
FOUNDATION_EXPORT double OpenSourceControllerVersionNumber;
|
|
||||||
|
|
||||||
//! Project version string for OpenSourceController.
|
|
||||||
FOUNDATION_EXPORT const unsigned char OpenSourceControllerVersionString[];
|
|
||||||
|
|
||||||
// In this header, you should import all the public headers of your framework using statements like #import <OpenSourceController/PublicHeader.h>
|
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,138 @@
|
|||||||
|
<p align="center">
|
||||||
|
<img src="https://github.com/terflogag/OpenSourceController/blob/master/Ressources/welcome_img.png" alt="OpenSourceController" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://cocoapods.org/pods/OpenSourceController" target="_blank"><img src="https://img.shields.io/cocoapods/v/OpenSourceController.svg?style=flat" alt="Cocoapods version" /></a>
|
||||||
|
<a href="http://cocoapods.org/pods/OpenSourceController" target="_blank"><img src="https://img.shields.io/cocoapods/p/OpenSourceController.svg?style=flat" alt="Cocoapods plateform" /></a>
|
||||||
|
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="Prs welcome" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="#features">Features</a>
|
||||||
|
• <a href="#installation">Installation</a>
|
||||||
|
• <a href="#usage">Usage</a>
|
||||||
|
• <a href="#translation">Translation</a>
|
||||||
|
• <a href="#customisation">Customisation</a>
|
||||||
|
• <a href="#license">License</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
Display a screen with all licences used in your application can be painful to maintain. OpenSourceController was built to respond to this problem. OpenSourceController is a simple parser to display the licences which are used in your application.
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="https://github.com/terflogag/OpenSourceController/blob/master/Ressources/demo.gif" alt="OpenSourceController" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- [x] Display tableView with licences used in your app
|
||||||
|
- [x] Download licence from an URL
|
||||||
|
|
||||||
|
## Todo (feel free to make PR)
|
||||||
|
|
||||||
|
- [ ] Download licence from Podfile (https://github.com/terflogag/OpenSourceController/issues/1)
|
||||||
|
- [ ] Download licence from Cartfile (https://github.com/terflogag/OpenSourceController/issues/2)
|
||||||
|
- [ ] Download licence from local file
|
||||||
|
- [ ] Unit & UI Test
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
* Xcode 9
|
||||||
|
* iOS 9.0+ target deployment
|
||||||
|
* Swift 3 or Swift 4 project
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
- To integrate OpenSourceController into your Xcode project using [CocoaPods](http://cocoapods.org), specify it in your Podfile :
|
||||||
|
|
||||||
|
```ruby
|
||||||
|
pod "OpenSourceController", '~> 2.0'
|
||||||
|
|
||||||
|
pod "OpenSourceController", '~> 1.0.8' # Swift 3.1 version
|
||||||
|
```
|
||||||
|
|
||||||
|
- To integrate OpenSourceController into your Xcode project using [Carthage](https://github.com/Carthage/Carthage), specify it in your Cartfile :
|
||||||
|
|
||||||
|
```ruby
|
||||||
|
github "terflogag/OpenSourceController" ~> 2.0
|
||||||
|
|
||||||
|
github "terflogag/OpenSourceController" ~> 1.0.8 # Swift 3.1 version
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
- Import the library :
|
||||||
|
|
||||||
|
```swift
|
||||||
|
import OpenSourceController
|
||||||
|
```
|
||||||
|
|
||||||
|
- Display the controller :
|
||||||
|
|
||||||
|
```swift
|
||||||
|
// Create controller
|
||||||
|
let openSourceVC = OpenSourceController()
|
||||||
|
|
||||||
|
// Init with LicenceFile object
|
||||||
|
openSourceVC.licences = [LicenceFile(title: "FacebookImagePicker",
|
||||||
|
url: "https://raw.githubusercontent.com/terflogag/FacebookImagePicker/master/LICENSE"),
|
||||||
|
LicenceFile(title: "JSQMessagesViewController",
|
||||||
|
url: "https://raw.githubusercontent.com/jessesquires/JSQMessagesViewController/develop/LICENSE")]
|
||||||
|
|
||||||
|
// Present controller
|
||||||
|
openSourceVC.presentOpenSourceController(from: self)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Customisation
|
||||||
|
|
||||||
|
You can apply some customisation. To do it you can use the OpenSourceControllerConfig structure like this :
|
||||||
|
|
||||||
|
```swift
|
||||||
|
// Navigation bar title
|
||||||
|
openSourceVC.config.title = "MyCustomTitle"
|
||||||
|
|
||||||
|
// Navigation bar tint color
|
||||||
|
openSourceVC.config.uiConfig.barTintColor = UIColor.red
|
||||||
|
|
||||||
|
// Close button color
|
||||||
|
openSourceVC.config.uiConfig.closeButtonColor = UIColor.white
|
||||||
|
|
||||||
|
// BackgroundColor
|
||||||
|
openSourceVC.config.uiConfig.backgroundColor = UIColor.red.withAlphaComponent(0.6)
|
||||||
|
|
||||||
|
// Licence text color
|
||||||
|
openSourceVC.config.uiConfig.licenceTextColor = UIColor.white
|
||||||
|
|
||||||
|
// Navigation bar title color
|
||||||
|
openSourceVC.config.uiConfig.titleColor = UIColor.white
|
||||||
|
|
||||||
|
// Licence cell background color
|
||||||
|
openSourceVC.config.uiConfig.licenceBackgroundColor = UIColor.red
|
||||||
|
|
||||||
|
// Verbose mode
|
||||||
|
openSourceVC.config.verbose = true
|
||||||
|
```
|
||||||
|
|
||||||
|
## Translation
|
||||||
|
|
||||||
|
OpenSourceController is currently write in english. If you need translation for the permission popup (or whatever thing), just add this line in your localized file :
|
||||||
|
|
||||||
|
```
|
||||||
|
"Unable to load this licence." = "<your_translation>";
|
||||||
|
```
|
||||||
|
|
||||||
|
## Applications
|
||||||
|
|
||||||
|
Some applications already use this controller like :
|
||||||
|
- [Troll Generator](https://itunes.apple.com/fr/app/troll-generator/id1038097542?mt=8)
|
||||||
|
- [Giraf](https://itunes.apple.com/fr/app/giraf/id1136592561?mt=8)
|
||||||
|
|
||||||
|
What about yours ? If your application also use this library, feel free to contact me or make pull request on the README 😁
|
||||||
|
|
||||||
|
## Author
|
||||||
|
|
||||||
|
Florian Gabach, contact@floriangabach.fr
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
OpenSourceController is available under the [MIT license](LICENSE).
|
||||||
|
After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 38 KiB |
@@ -1,63 +0,0 @@
|
|||||||
//
|
|
||||||
// OpenSourceTableViewCell.swift
|
|
||||||
// Pods
|
|
||||||
//
|
|
||||||
// Created by Florian Gabach on 05/02/2017.
|
|
||||||
//
|
|
||||||
//
|
|
||||||
|
|
||||||
import UIKit
|
|
||||||
|
|
||||||
class OpenSourceTableViewCell: UITableViewCell {
|
|
||||||
|
|
||||||
// MARK: IBOutlet
|
|
||||||
|
|
||||||
@IBOutlet var licenceTitle: UILabel!
|
|
||||||
@IBOutlet var licenceDesc: UILabel!
|
|
||||||
|
|
||||||
// MARK: - Lifecycle
|
|
||||||
|
|
||||||
override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
|
|
||||||
super.init(style: .default,
|
|
||||||
reuseIdentifier: reuseIdentifier)
|
|
||||||
|
|
||||||
self.prepareCellComponent()
|
|
||||||
}
|
|
||||||
|
|
||||||
required init?(coder aDecoder: NSCoder) {
|
|
||||||
super.init(coder: aDecoder)
|
|
||||||
}
|
|
||||||
|
|
||||||
override func setSelected(_ selected: Bool, animated: Bool) {
|
|
||||||
super.setSelected(selected, animated: animated)
|
|
||||||
}
|
|
||||||
|
|
||||||
override func layoutSubviews() {
|
|
||||||
super.layoutSubviews()
|
|
||||||
}
|
|
||||||
|
|
||||||
// MARK: - Prepare
|
|
||||||
|
|
||||||
func prepareCellComponent() {
|
|
||||||
// Text
|
|
||||||
self.textLabel?.numberOfLines = 0
|
|
||||||
|
|
||||||
// Common init
|
|
||||||
self.accessoryType = .none
|
|
||||||
self.selectionStyle = .none
|
|
||||||
}
|
|
||||||
|
|
||||||
// MARK: - Configure
|
|
||||||
|
|
||||||
/// Initialize the cell content with Licence model
|
|
||||||
///
|
|
||||||
/// - Parameter licence: the licence model
|
|
||||||
func configure(licence: LicenceFile) {
|
|
||||||
|
|
||||||
// Library's name
|
|
||||||
self.licenceTitle.text = licence.title
|
|
||||||
|
|
||||||
// Library licence's detail
|
|
||||||
self.licenceDesc.text = licence.detail
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -3,26 +3,30 @@
|
|||||||
// Pods
|
// Pods
|
||||||
//
|
//
|
||||||
// Created by Florian Gabach on 05/02/2017.
|
// Created by Florian Gabach on 05/02/2017.
|
||||||
//
|
|
||||||
//
|
|
||||||
|
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
public class OpenSourceController: NSObject {
|
public class OpenSourceController: NSObject {
|
||||||
|
|
||||||
// Contains list of licence object
|
// Contains list of licence object
|
||||||
public var licences: [LicenceFile]?
|
open var licences: [LicenceFile]?
|
||||||
|
|
||||||
|
// Configuration
|
||||||
|
open var config = OpenSourceControllerConfig()
|
||||||
|
|
||||||
/// Present OpenSourceViewController embbeded in navigation controller
|
/// Present OpenSourceViewController embbeded in navigation controller
|
||||||
///
|
///
|
||||||
/// - Parameter from: the source controller
|
/// - Parameter from: the source controller
|
||||||
public final func presentOpenSourceController(from: UIViewController) {
|
open func presentOpenSourceController(from: UIViewController) {
|
||||||
// Create open source controller
|
// Create open source controller
|
||||||
let licenceController = OpenSourceViewController()
|
let licenceController = OpenSourceViewController()
|
||||||
|
|
||||||
// Init licence
|
// Init licence
|
||||||
licenceController.licences = self.licences
|
licenceController.licences = self.licences
|
||||||
|
|
||||||
|
// Init config
|
||||||
|
licenceController.config = self.config
|
||||||
|
|
||||||
// Embed in navigation controller
|
// Embed in navigation controller
|
||||||
let navController = UINavigationController(rootViewController: licenceController)
|
let navController = UINavigationController(rootViewController: licenceController)
|
||||||
|
|
||||||
@@ -3,8 +3,6 @@
|
|||||||
// Pods
|
// Pods
|
||||||
//
|
//
|
||||||
// Created by Florian Gabach on 05/02/2017.
|
// Created by Florian Gabach on 05/02/2017.
|
||||||
//
|
|
||||||
//
|
|
||||||
|
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
@@ -19,15 +17,18 @@ class OpenSourceViewController: UITableViewController {
|
|||||||
private let reuseIdentifier = "openSourceCell"
|
private let reuseIdentifier = "openSourceCell"
|
||||||
|
|
||||||
/// Contains all licence object before downloaded
|
/// Contains all licence object before downloaded
|
||||||
var licences: [LicenceFile]?
|
internal var licences: [LicenceFile]?
|
||||||
|
|
||||||
|
// Controller configuration for customization
|
||||||
|
internal var config = OpenSourceControllerConfig()
|
||||||
|
|
||||||
/// Contains all licences object after downloaded
|
/// Contains all licences object after downloaded
|
||||||
fileprivate var downloadedLicence: [LicenceFile]? {
|
fileprivate var downloadedLicence: [LicenceFile]? {
|
||||||
didSet {
|
didSet {
|
||||||
// Update UI
|
// Update UI
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async { [weak self] in
|
||||||
self.stopLoading()
|
self?.stopLoading()
|
||||||
self.tableView.reloadData()
|
self?.tableView.reloadData()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -54,7 +55,8 @@ class OpenSourceViewController: UITableViewController {
|
|||||||
fileprivate func prepareLicences() {
|
fileprivate func prepareLicences() {
|
||||||
if let licences = self.licences {
|
if let licences = self.licences {
|
||||||
self.startLoading()
|
self.startLoading()
|
||||||
LicenceDownloader.downloadLicences(licences: licences) { () in
|
LicenceDownloader.downloadLicences(licences: licences,
|
||||||
|
config: self.config) { () in
|
||||||
// Update licences
|
// Update licences
|
||||||
self.downloadedLicence = self.licences
|
self.downloadedLicence = self.licences
|
||||||
}
|
}
|
||||||
@@ -65,16 +67,31 @@ class OpenSourceViewController: UITableViewController {
|
|||||||
fileprivate func prepareTableView() {
|
fileprivate func prepareTableView() {
|
||||||
// Common init
|
// Common init
|
||||||
self.tableView.tableFooterView = UIView()
|
self.tableView.tableFooterView = UIView()
|
||||||
self.title = NSLocalizedString("Tiers library", comment: "")
|
|
||||||
self.tableView.register(OpenSourceTableViewCell.self, forCellReuseIdentifier: self.reuseIdentifier)
|
self.tableView.register(OpenSourceTableViewCell.self, forCellReuseIdentifier: self.reuseIdentifier)
|
||||||
|
self.title = self.config.title
|
||||||
|
self.tableView.register(OpenSourceTableViewCell.self,
|
||||||
|
forCellReuseIdentifier: self.reuseIdentifier)
|
||||||
self.tableView.dataSource = self
|
self.tableView.dataSource = self
|
||||||
self.tableView.delegate = self
|
self.tableView.delegate = self
|
||||||
self.tableView.separatorStyle = .singleLine
|
self.tableView.separatorStyle = .singleLine
|
||||||
|
if let backgroundColor = self.config.uiConfig.backgroundColor {
|
||||||
|
self.tableView.backgroundColor = backgroundColor
|
||||||
|
}
|
||||||
|
|
||||||
|
// Navigation bar
|
||||||
|
if let tintColor = self.config.uiConfig.barTintColor {
|
||||||
|
self.navigationController?.navigationBar.barTintColor = tintColor
|
||||||
|
}
|
||||||
|
if let textColor = self.config.uiConfig.titleColor {
|
||||||
|
let attribut = [NSAttributedStringKey.foregroundColor: textColor]
|
||||||
|
self.navigationController?.navigationBar.titleTextAttributes = attribut
|
||||||
|
}
|
||||||
|
|
||||||
// Close button (on the right corner of navigation bar)
|
// Close button (on the right corner of navigation bar)
|
||||||
let closeButton = UIBarButtonItem(barButtonSystemItem: .stop,
|
let closeButton = UIBarButtonItem(barButtonSystemItem: .stop,
|
||||||
target: self,
|
target: self,
|
||||||
action: #selector(self.closePicker))
|
action: #selector(self.closePicker))
|
||||||
|
closeButton.tintColor = config.uiConfig.closeButtonColor ?? UIColor.black
|
||||||
self.navigationItem.rightBarButtonItem = closeButton
|
self.navigationItem.rightBarButtonItem = closeButton
|
||||||
|
|
||||||
// Loading indicator
|
// Loading indicator
|
||||||
@@ -85,25 +102,34 @@ class OpenSourceViewController: UITableViewController {
|
|||||||
|
|
||||||
/// Prepare UIActivityIndicatorView and display it at the center of the view
|
/// Prepare UIActivityIndicatorView and display it at the center of the view
|
||||||
fileprivate func prepareActivityIndicator() {
|
fileprivate func prepareActivityIndicator() {
|
||||||
self.indicator = UIActivityIndicatorView(frame:CGRect(x: 0, y: 0, width: 40, height: 40) )
|
self.indicator = UIActivityIndicatorView(frame:CGRect(x: 0,
|
||||||
|
y: 0,
|
||||||
|
width: 40,
|
||||||
|
height: 40) )
|
||||||
self.indicator.activityIndicatorViewStyle = UIActivityIndicatorViewStyle.gray
|
self.indicator.activityIndicatorViewStyle = UIActivityIndicatorViewStyle.gray
|
||||||
self.indicator.center = self.view.center
|
self.indicator.center = self.view.center
|
||||||
|
self.indicator.hidesWhenStopped = true
|
||||||
|
self.indicator.backgroundColor = UIColor.clear
|
||||||
|
self.indicator.color = UIColor.black
|
||||||
self.view.addSubview(indicator)
|
self.view.addSubview(indicator)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Start loading : start the loader animation
|
/// Start loading : start the loader animation
|
||||||
fileprivate func startLoading() {
|
fileprivate func startLoading() {
|
||||||
self.indicator.startAnimating()
|
self.indicator.startAnimating()
|
||||||
self.indicator.backgroundColor = UIColor.clear
|
|
||||||
self.indicator.color = UIColor.black
|
|
||||||
self.indicator.isHidden = false
|
self.indicator.isHidden = false
|
||||||
|
|
||||||
|
// Disable scroll
|
||||||
|
self.tableView.isScrollEnabled = false
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Stop loading : stop and hide the loader
|
/// Stop loading : stop and hide the loader
|
||||||
fileprivate func stopLoading() {
|
fileprivate func stopLoading() {
|
||||||
self.indicator.hidesWhenStopped = true
|
|
||||||
self.indicator.stopAnimating()
|
self.indicator.stopAnimating()
|
||||||
self.indicator.isHidden = true
|
self.indicator.isHidden = true
|
||||||
|
|
||||||
|
// Enable scroll
|
||||||
|
self.tableView.isScrollEnabled = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Table View Data Source
|
// MARK: - Table View Data Source
|
||||||
@@ -119,24 +145,22 @@ class OpenSourceViewController: UITableViewController {
|
|||||||
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
||||||
var cell = tableView.dequeueReusableCell(withIdentifier: self.reuseIdentifier,
|
var cell = tableView.dequeueReusableCell(withIdentifier: self.reuseIdentifier,
|
||||||
for: indexPath) as? OpenSourceTableViewCell
|
for: indexPath) as? OpenSourceTableViewCell
|
||||||
|
// Init cell
|
||||||
if cell == nil {
|
if cell == nil {
|
||||||
cell = OpenSourceTableViewCell(style: UITableViewCellStyle.default,
|
cell = OpenSourceTableViewCell(style: UITableViewCellStyle.default,
|
||||||
reuseIdentifier: self.reuseIdentifier)
|
reuseIdentifier: self.reuseIdentifier)
|
||||||
}
|
}
|
||||||
|
|
||||||
let libraryTitleAttribut = [NSFontAttributeName: UIFont.boldSystemFont(ofSize: UIFont.systemFontSize + 2)]
|
// Configure the cell with licence
|
||||||
let libraryLicenceAttribut = [NSFontAttributeName: UIFont.systemFont(ofSize: UIFont.systemFontSize)]
|
if let licence = self.downloadedLicence?.get(at: indexPath.row) {
|
||||||
let libraryTitle = NSMutableAttributedString(string: self.downloadedLicence?[indexPath.row].title ?? "",
|
cell?.configure(licence: licence, config: self.config)
|
||||||
attributes: libraryTitleAttribut)
|
}
|
||||||
libraryTitle.append(NSAttributedString(string: "\n\n"))
|
|
||||||
libraryTitle.append(NSAttributedString(string: self.downloadedLicence?[indexPath.row].detail ?? "",
|
|
||||||
attributes: libraryLicenceAttribut))
|
|
||||||
cell?.textLabel?.attributedText = libraryTitle
|
|
||||||
|
|
||||||
return cell!
|
return cell!
|
||||||
}
|
}
|
||||||
|
|
||||||
override func tableView(_ tableView: UITableView, estimatedHeightForRowAt indexPath: IndexPath) -> CGFloat {
|
override func tableView(_ tableView: UITableView, estimatedHeightForRowAt indexPath: IndexPath) -> CGFloat {
|
||||||
|
// Automatic dimension
|
||||||
return UITableViewAutomaticDimension
|
return UITableViewAutomaticDimension
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -151,8 +175,8 @@ class OpenSourceViewController: UITableViewController {
|
|||||||
|
|
||||||
/// Dismiss the OpenSourceController
|
/// Dismiss the OpenSourceController
|
||||||
func dismissController() {
|
func dismissController() {
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async { [weak self] in
|
||||||
self.dismiss(animated: true, completion: nil)
|
self?.dismiss(animated: true, completion: nil)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
//
|
||||||
|
// Array+Extensions.swift
|
||||||
|
// Pods
|
||||||
|
//
|
||||||
|
// Created by Florian Gabach on 03/03/2017.
|
||||||
|
|
||||||
|
import Foundation
|
||||||
|
|
||||||
|
extension Array {
|
||||||
|
|
||||||
|
/// Get an index safely
|
||||||
|
func get(at index: Int) -> Element? {
|
||||||
|
guard index >= 0
|
||||||
|
&& index < count else {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
return self[index]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -3,8 +3,6 @@
|
|||||||
// Pods
|
// Pods
|
||||||
//
|
//
|
||||||
// Created by Florian Gabach on 21/02/2017.
|
// Created by Florian Gabach on 21/02/2017.
|
||||||
//
|
|
||||||
//
|
|
||||||
|
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
@@ -16,6 +14,7 @@ class LicenceDownloader: NSObject {
|
|||||||
/// - licences: array which contains licence model model
|
/// - licences: array which contains licence model model
|
||||||
/// - completion: end downloading completion
|
/// - completion: end downloading completion
|
||||||
class func downloadLicences(licences: [LicenceFile],
|
class func downloadLicences(licences: [LicenceFile],
|
||||||
|
config: OpenSourceControllerConfig,
|
||||||
completion: @escaping () -> Void) {
|
completion: @escaping () -> Void) {
|
||||||
// Number of licences
|
// Number of licences
|
||||||
let licenceCount = licences.count
|
let licenceCount = licences.count
|
||||||
@@ -25,7 +24,7 @@ class LicenceDownloader: NSObject {
|
|||||||
|
|
||||||
// Download licence's detail for every lience
|
// Download licence's detail for every lience
|
||||||
for licence in licences {
|
for licence in licences {
|
||||||
licence.downloadLicenceDetail(completion: { () in
|
licence.downloadLicenceDetail(config: config, completion: { () in
|
||||||
alreadyDownloaded += 1
|
alreadyDownloaded += 1
|
||||||
|
|
||||||
// If this is the last licence, perfom completion
|
// If this is the last licence, perfom completion
|
||||||
@@ -3,8 +3,6 @@
|
|||||||
// Pods
|
// Pods
|
||||||
//
|
//
|
||||||
// Created by Florian Gabach on 05/02/2017.
|
// Created by Florian Gabach on 05/02/2017.
|
||||||
//
|
|
||||||
//
|
|
||||||
|
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
@@ -31,12 +29,15 @@ public class LicenceFile: NSObject {
|
|||||||
public init(title: String, url: String) {
|
public init(title: String, url: String) {
|
||||||
self.title = title
|
self.title = title
|
||||||
self.url = url
|
self.url = url
|
||||||
|
self.detail = NSLocalizedString("Unable to load this licence file.",
|
||||||
|
comment: "")
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Download licence detail
|
/// Download licence detail
|
||||||
///
|
///
|
||||||
/// - Parameter completion: end of download handler
|
/// - Parameter completion: end of download handler
|
||||||
func downloadLicenceDetail(completion: @escaping (Void) -> Void) {
|
func downloadLicenceDetail(config: OpenSourceControllerConfig,
|
||||||
|
completion: @escaping () -> Void) {
|
||||||
if let url = URL(string: self.url) {
|
if let url = URL(string: self.url) {
|
||||||
let task = URLSession.shared.dataTask(with: url) { (data, _, _) in
|
let task = URLSession.shared.dataTask(with: url) { (data, _, _) in
|
||||||
if let data = data,
|
if let data = data,
|
||||||
@@ -46,7 +47,9 @@ public class LicenceFile: NSObject {
|
|||||||
self.detail = html
|
self.detail = html
|
||||||
|
|
||||||
// Log
|
// Log
|
||||||
print("Licence for \(self.title ?? "") downloaded with success.")
|
if config.verbose {
|
||||||
|
print("Licence for \(self.title ?? "") downloaded with success.")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
completion()
|
completion()
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
//
|
||||||
|
// OpenSourceControllerConfig.swift
|
||||||
|
// Pods
|
||||||
|
//
|
||||||
|
// Created by Florian Gabach on 08/03/2017.
|
||||||
|
|
||||||
|
import UIKit
|
||||||
|
|
||||||
|
/// Simple struct to hold settings
|
||||||
|
public struct OpenSourceControllerConfig {
|
||||||
|
|
||||||
|
/// Sub-stuct holding configuration relevant to UI presentation !
|
||||||
|
public struct UIConfig {
|
||||||
|
/// Will be applied to the navigation bar
|
||||||
|
public var barTintColor: UIColor?
|
||||||
|
|
||||||
|
/// Will be applied to the navigation bar
|
||||||
|
public var backgroundColor: UIColor?
|
||||||
|
|
||||||
|
/// Will be applied to licence text
|
||||||
|
public var licenceBackgroundColor: UIColor?
|
||||||
|
|
||||||
|
/// Will be applied to the navigation bar
|
||||||
|
public var closeButtonColor: UIColor?
|
||||||
|
|
||||||
|
/// Will be applied to licence text
|
||||||
|
public var licenceTextColor: UIColor?
|
||||||
|
|
||||||
|
/// Will be applied to licence text
|
||||||
|
public var titleColor: UIColor?
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Will be applied to the navigation bar title
|
||||||
|
public var title: String = "Tiers library"
|
||||||
|
|
||||||
|
// Verbose mode for print log when licence are downloaded
|
||||||
|
public var verbose: Bool = false
|
||||||
|
|
||||||
|
/// UI-specific configuration.
|
||||||
|
public var uiConfig = UIConfig()
|
||||||
|
}
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
//
|
||||||
|
// OpenSourceTableViewCell.swift
|
||||||
|
// Pods
|
||||||
|
//
|
||||||
|
// Created by Florian Gabach on 05/02/2017.
|
||||||
|
|
||||||
|
import UIKit
|
||||||
|
|
||||||
|
class OpenSourceTableViewCell: UITableViewCell {
|
||||||
|
|
||||||
|
// MARK: - Lifecycle
|
||||||
|
|
||||||
|
override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
|
||||||
|
super.init(style: .default,
|
||||||
|
reuseIdentifier: reuseIdentifier)
|
||||||
|
|
||||||
|
// Prepare cell
|
||||||
|
self.prepareCellComponent()
|
||||||
|
}
|
||||||
|
|
||||||
|
required init?(coder aDecoder: NSCoder) {
|
||||||
|
super.init(coder: aDecoder)
|
||||||
|
}
|
||||||
|
|
||||||
|
override func setSelected(_ selected: Bool, animated: Bool) {
|
||||||
|
super.setSelected(selected, animated: animated)
|
||||||
|
}
|
||||||
|
|
||||||
|
override func layoutSubviews() {
|
||||||
|
super.layoutSubviews()
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: - Prepare
|
||||||
|
|
||||||
|
func prepareCellComponent() {
|
||||||
|
// Text
|
||||||
|
self.textLabel?.numberOfLines = 0
|
||||||
|
|
||||||
|
// Common init
|
||||||
|
self.accessoryType = .none
|
||||||
|
self.selectionStyle = .none
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: - Configure
|
||||||
|
|
||||||
|
/// Initialize the cell content with Licence model
|
||||||
|
///
|
||||||
|
/// - Parameter licence: the licence model
|
||||||
|
func configure(licence: LicenceFile, config: OpenSourceControllerConfig) {
|
||||||
|
|
||||||
|
// Build attributed text
|
||||||
|
let libraryTitleAttribut = [NSAttributedStringKey.font: UIFont.boldSystemFont(ofSize: UIFont.systemFontSize + 2)]
|
||||||
|
let libraryLicenceAttribut = [NSAttributedStringKey.font: UIFont.systemFont(ofSize: UIFont.systemFontSize)]
|
||||||
|
let libraryTitle = NSMutableAttributedString(string: licence.title ?? "",
|
||||||
|
attributes: libraryTitleAttribut)
|
||||||
|
libraryTitle.append(NSAttributedString(string: "\n\n"))
|
||||||
|
libraryTitle.append(NSAttributedString(string: licence.detail ?? "",
|
||||||
|
attributes: libraryLicenceAttribut))
|
||||||
|
|
||||||
|
// Set text
|
||||||
|
self.textLabel?.attributedText = libraryTitle
|
||||||
|
self.textLabel?.textColor = config.uiConfig.licenceTextColor
|
||||||
|
|
||||||
|
// Background
|
||||||
|
if let backgroundColor = config.uiConfig.licenceBackgroundColor {
|
||||||
|
self.backgroundColor = backgroundColor
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
import XCTest
|
||||||
|
@testable import OpenSourceControllerTests
|
||||||
|
|
||||||
|
XCTMain([
|
||||||
|
testCase(OpenSourceControllerTests.allTests),
|
||||||
|
])
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
//
|
||||||
|
// OpenSourceControllerTests.swift
|
||||||
|
// OpenSourceController
|
||||||
|
//
|
||||||
|
// Created by Florian Gabach on {TODAY}.
|
||||||
|
// Copyright © 2017 OpenSourceController. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
import Foundation
|
||||||
|
import XCTest
|
||||||
|
import OpenSourceController
|
||||||
|
|
||||||
|
class OpenSourceControllerTests: XCTestCase {
|
||||||
|
func testExample() {
|
||||||
|
// This is an example of a functional test case.
|
||||||
|
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
||||||
|
//// XCTAssertEqual(OpenSourceController().text, "Hello, World!")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#if os(Linux)
|
||||||
|
extension OpenSourceControllerTests {
|
||||||
|
static var allTests : [(String, (OpenSourceControllerTests) -> () throws -> Void)] {
|
||||||
|
return [
|
||||||
|
("testExample", testExample),
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||