Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc2e69440c | ||
|
|
794d5a2d86 | ||
|
|
c5beca03f7 | ||
|
|
7ee4cfa0fd | ||
|
|
4dc34e956a | ||
|
|
584e357f0e | ||
|
|
243ee49fc1 | ||
|
|
5f53dbe6b5 | ||
|
|
97ceb32d29 |
+43
@@ -0,0 +1,43 @@
|
|||||||
|
# Mac OS X
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
# Xcode
|
||||||
|
|
||||||
|
## Build generated
|
||||||
|
build/
|
||||||
|
DerivedData
|
||||||
|
|
||||||
|
## Various settings
|
||||||
|
*.pbxuser
|
||||||
|
!default.pbxuser
|
||||||
|
*.mode1v3
|
||||||
|
!default.mode1v3
|
||||||
|
*.mode2v3
|
||||||
|
!default.mode2v3
|
||||||
|
*.perspectivev3
|
||||||
|
!default.perspectivev3
|
||||||
|
xcuserdata
|
||||||
|
|
||||||
|
## Other
|
||||||
|
*.xccheckout
|
||||||
|
*.moved-aside
|
||||||
|
*.xcuserstate
|
||||||
|
*.xcscmblueprint
|
||||||
|
|
||||||
|
## Obj-C/Swift specific
|
||||||
|
*.hmap
|
||||||
|
*.ipa
|
||||||
|
|
||||||
|
## Playgrounds
|
||||||
|
timeline.xctimeline
|
||||||
|
playground.xcworkspace
|
||||||
|
|
||||||
|
# Swift Package Manager
|
||||||
|
.build/
|
||||||
|
|
||||||
|
# Carthage
|
||||||
|
Carthage/
|
||||||
|
|
||||||
|
# Cocoapods
|
||||||
|
Pods/
|
||||||
|
|
||||||
@@ -1,5 +1,12 @@
|
|||||||
Changelog
|
Changelog
|
||||||
==========
|
==========
|
||||||
|
### 2.1.1
|
||||||
|
|
||||||
|
- Hide close button when push the controller
|
||||||
|
|
||||||
|
### 2.1.0
|
||||||
|
|
||||||
|
- Add push transition with `pushOpenSourceController(from: self)`
|
||||||
|
|
||||||
### 2.0.1
|
### 2.0.1
|
||||||
|
|
||||||
|
|||||||
Carthage/Build/iOS/OpenSourceController.framework.dSYM/Contents/Resources/DWARF/OpenSourceController
Generated
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -1,11 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
|
||||||
<device id="retina4_7" orientation="portrait">
|
<device id="retina4_7" orientation="portrait">
|
||||||
<adaptation id="fullscreen"/>
|
<adaptation id="fullscreen"/>
|
||||||
</device>
|
</device>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="iOS"/>
|
<deployment identifier="iOS"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13173"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
|
||||||
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
|
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
|
||||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
@@ -37,10 +37,11 @@
|
|||||||
<constraint firstItem="LI4-fC-2Ry" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="wVV-oT-zRH"/>
|
<constraint firstItem="LI4-fC-2Ry" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="wVV-oT-zRH"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
</view>
|
</view>
|
||||||
|
<navigationItem key="navigationItem" id="0ga-4U-IeA"/>
|
||||||
</viewController>
|
</viewController>
|
||||||
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
|
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
|
||||||
</objects>
|
</objects>
|
||||||
<point key="canvasLocation" x="136.80000000000001" y="138.98050974512745"/>
|
<point key="canvasLocation" x="815.20000000000005" y="138.98050974512745"/>
|
||||||
</scene>
|
</scene>
|
||||||
</scenes>
|
</scenes>
|
||||||
</document>
|
</document>
|
||||||
|
|||||||
Binary file not shown.
@@ -1,12 +1,12 @@
|
|||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = 'OpenSourceController'
|
s.name = 'OpenSourceController'
|
||||||
s.version = '2.0.1'
|
s.version = '2.1.1'
|
||||||
s.summary = 'Display all the librarys licence used in your application. Enjoy !'
|
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.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.homepage = 'https://github.com/floriangbh/OpenSourceController'
|
||||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||||
s.author = { 'Florian Gabach' => 'contact@floriangabach.fr' }
|
s.author = { 'Florian Gabach' => 'florian.gabach@gmail.com' }
|
||||||
s.source = { :git => 'https://github.com/terflogag/OpenSourceController.git', :tag => s.version.to_s }
|
s.source = { :git => 'https://github.com/floriangbh/OpenSourceController.git', :tag => s.version.to_s }
|
||||||
s.ios.deployment_target = '9.0'
|
s.ios.deployment_target = '9.0'
|
||||||
s.source_files = 'Sources/**/*'
|
s.source_files = 'Sources/**/*'
|
||||||
end
|
end
|
||||||
|
|||||||
BIN
Binary file not shown.
@@ -81,6 +81,9 @@ url: "https://raw.githubusercontent.com/jessesquires/JSQMessagesViewController/d
|
|||||||
|
|
||||||
// Present controller
|
// Present controller
|
||||||
openSourceVC.presentOpenSourceController(from: self)
|
openSourceVC.presentOpenSourceController(from: self)
|
||||||
|
|
||||||
|
// OR push the controller if the source controller is embeded in navigation controller
|
||||||
|
openSourceVC.pushOpenSourceController(from: self)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Customisation
|
## Customisation
|
||||||
|
|||||||
@@ -33,4 +33,26 @@ public class OpenSourceController: NSObject {
|
|||||||
// Present controller
|
// Present controller
|
||||||
from.present(navController, animated: true)
|
from.present(navController, animated: true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Push OpenSourceViewController from navigation controller
|
||||||
|
///
|
||||||
|
/// - Parameter from: the source controller
|
||||||
|
open func pushOpenSourceController(from: UIViewController) {
|
||||||
|
// Create open source controller
|
||||||
|
let licenceController = OpenSourceViewController()
|
||||||
|
licenceController.showCloseButton = false // Don't show close button
|
||||||
|
|
||||||
|
// Init licence
|
||||||
|
licenceController.licences = self.licences
|
||||||
|
|
||||||
|
// Init config
|
||||||
|
licenceController.config = self.config
|
||||||
|
|
||||||
|
// Push controller
|
||||||
|
guard let navigationController = from.navigationController else {
|
||||||
|
print("Source controller isn't embeded in navigation controller. Can't push.")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
navigationController.pushViewController(licenceController, animated: true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,9 +29,12 @@ class OpenSourceViewController: UITableViewController {
|
|||||||
/// Contains all licence object before downloaded
|
/// Contains all licence object before downloaded
|
||||||
internal var licences: [LicenceFile]?
|
internal var licences: [LicenceFile]?
|
||||||
|
|
||||||
// Controller configuration for customization
|
/// Controller configuration for customization
|
||||||
internal var config = OpenSourceControllerConfig()
|
internal var config = OpenSourceControllerConfig()
|
||||||
|
|
||||||
|
/// Do we need to show the close button ? (disable if push the controller)
|
||||||
|
internal var showCloseButton: Bool = true
|
||||||
|
|
||||||
/// Contains all licences object after downloaded
|
/// Contains all licences object after downloaded
|
||||||
fileprivate var downloadedLicence: [LicenceFile]? {
|
fileprivate var downloadedLicence: [LicenceFile]? {
|
||||||
didSet {
|
didSet {
|
||||||
@@ -58,7 +61,11 @@ class OpenSourceViewController: UITableViewController {
|
|||||||
fileprivate func prepare() {
|
fileprivate func prepare() {
|
||||||
self.prepareTableView()
|
self.prepareTableView()
|
||||||
self.prepareActivityIndicator()
|
self.prepareActivityIndicator()
|
||||||
self.prepareCloseButton()
|
|
||||||
|
if showCloseButton {
|
||||||
|
self.prepareCloseButton()
|
||||||
|
}
|
||||||
|
|
||||||
self.prepareStyle()
|
self.prepareStyle()
|
||||||
self.prepareLicences()
|
self.prepareLicences()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user