Skip to content

Commit

Permalink
Merge pull request #10 from JamitLabs/work/1000-frameworks
Browse files Browse the repository at this point in the history
Ensure popular Swift Frameworks on GitHub build fine
  • Loading branch information
Jeehut authored Apr 25, 2019
2 parents d0858b6 + 23b4549 commit 746ba2a
Show file tree
Hide file tree
Showing 48 changed files with 880 additions and 10 deletions.
24 changes: 24 additions & 0 deletions Demo/Demo-ShareExtension/Base.lproj/MainInterface.storyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="j1y-V4-xli">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Share View Controller-->
<scene sceneID="ceB-am-kn3">
<objects>
<viewController id="j1y-V4-xli" customClass="ShareViewController" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" opaque="NO" contentMode="scaleToFill" id="wbc-yd-nQP">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
<viewLayoutGuide key="safeArea" id="1Xd-am-t49"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="CEy-Cv-SGf" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
</scene>
</scenes>
</document>
36 changes: 36 additions & 0 deletions Demo/Demo-ShareExtension/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Demo-ShareExtension</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>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
<dict>
<key>NSExtensionActivationRule</key>
<string>TRUEPREDICATE</string>
</dict>
<key>NSExtensionMainStoryboard</key>
<string>MainInterface</string>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.share-services</string>
</dict>
</dict>
</plist>
31 changes: 31 additions & 0 deletions Demo/Demo-ShareExtension/ShareViewController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
//
// ShareViewController.swift
// Demo-ShareExtension
//
// Created by Cihat Gündüz on 18.04.19.
// Copyright © 2019 Jamit Labs GmbH. All rights reserved.
//

import UIKit
import Social

class ShareViewController: SLComposeServiceViewController {

override func isContentValid() -> Bool {
// Do validation of contentText and/or NSExtensionContext attachments here
return true
}

override func didSelectPost() {
// This is called after the user selects Post. Do the upload of contentText and/or NSExtensionContext attachments.

// Inform the host that we're done, so it un-blocks its UI. Note: Alternatively you could call super's -didSelectPost, which will similarly complete the extension context.
self.extensionContext!.completeRequest(returningItems: [], completionHandler: nil)
}

override func configurationItems() -> [Any]! {
// To add configuration options via table cells at the bottom of the sheet, return an array of SLComposeSheetConfigurationItem here.
return []
}

}
430 changes: 430 additions & 0 deletions Demo/Demo.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

178 changes: 174 additions & 4 deletions Demo/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,47 +5,217 @@ let package = Package(
name: "Demo",
products: [],
dependencies: [
.package(url: "https://github.com/AccioSupport/Moya.git", .upToNextMajor(from: "13.0.0-beta.1")),
.package(url: "https://github.com/AccioSupport/AFNetworking.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/Alamofire.git", .upToNextMajor(from: "4.8.2")),
.package(url: "https://github.com/AccioSupport/animated-tab-bar.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/Bagel.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/Bond.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/Cartography.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/Chatto.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/CocoaAsyncSocket.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/CryptoSwift.git", .upToNextMajor(from: "0.15.0")),
.package(url: "https://github.com/AccioSupport/Eureka.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/folding-cell.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/HanekeSwift.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/Hero.git", .upToNextMajor(from: "1.4.0")),
.package(url: "https://github.com/AccioSupport/JGProgressHUD.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/Kingfisher.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/LayoutKit.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/lottie-ios.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/LTMorphingLabel.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/Material.git", .revision("ddc8e15166e2e201912c11036d90c2a4eaf9b41b")),
.package(url: "https://github.com/AccioSupport/MBProgressHUD.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/Moya.git", .branch("development")),
.package(url: "https://github.com/AccioSupport/Nimble.git", .upToNextMajor(from: "8.0.1")),
.package(url: "https://github.com/AccioSupport/NVActivityIndicatorView.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/PromiseKit.git", .upToNextMajor(from: "6.8.4")),
.package(url: "https://github.com/AccioSupport/Quick.git", .upToNextMajor(from: "2.0.0")),
.package(url: "https://github.com/AccioSupport/realm-cocoa.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/ReSwift.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/RxSwift.git", .upToNextMajor(from: "4.4.2")),
.package(url: "https://github.com/AccioSupport/Siren.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/SkeletonView.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/socket.io-client-swift.git", .upToNextMajor(from: "15.0.0")),
.package(url: "https://github.com/AccioSupport/Spring.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/SQLite.swift.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/Starscream.git", .upToNextMajor(from: "3.1.0")),
.package(url: "https://github.com/AccioSupport/SwiftDate.git", .upToNextMajor(from: "6.0.1")),
.package(url: "https://github.com/AccioSupport/SwifterSwift.git", .upToNextMajor(from: "4.6.0")),
.package(url: "https://github.com/AccioSupport/SwiftMessages.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/SwiftyStoreKit.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/SwiftyUserDefaults.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/XCDYouTubeKit.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/XLActionController.git", .branch("master")),
.package(url: "https://github.com/AccioSupport/XLPagerTabStrip.git", .branch("master")),
],
targets: [
.target(
name: "Demo-iOS",
dependencies: [
"AFNetworking",
"Alamofire",
"Bagel",
"Bond",
"Cartography",
"Chatto",
"ChattoAdditions",
"CocoaAsyncSocket",
"CryptoSwift",
"Eureka",
"FoldingCell",
"Haneke",
"Hero",
"JGProgressHUD",
"Kingfisher",
"LayoutKit",
"Lottie",
"LTMorphingLabel",
"Material",
"MBProgressHUD",
"Moya",
"NVActivityIndicatorView",
"PromiseKit",
"RAMAnimatedTabBarController",
"Realm",
"RealmSwift",
"ReSwift",
"RxSwift",
"Siren",
"SkeletonView",
"SocketIO",
"Spring",
"SQLite",
"Starscream",
"SwiftDate",
"SwifterSwift",
"SwiftMessages",
"SwiftyStoreKit",
"SwiftyUserDefaults",
"XCDYouTubeKit",
"XLActionController",
"XLPagerTabStrip",
],
path: "Demo-iOS"
),
.target(
.testTarget(
name: "Demo-iOSTests",
dependencies: [
"Nimble",
"Quick",
],
path: "Demo-iOSTests"
),
.target(
name: "Demo-tvOS",
dependencies: [
"AFNetworking",
"Alamofire",
"Bond",
"Cartography",
"CocoaAsyncSocket",
"CryptoSwift",
"Haneke",
"Hero",
"JGProgressHUD",
"Kingfisher",
"LayoutKit",
"Lottie",
"LTMorphingLabel",
"Moya",
"MBProgressHUD",
"NVActivityIndicatorView",
"PromiseKit",
"Realm",
"RealmSwift",
"ReSwift",
"RxSwift",
"SkeletonView",
"SocketIO",
"SQLite",
"Starscream",
"SwiftDate",
"SwifterSwift",
"SwiftyStoreKit",
"SwiftyUserDefaults",
"XCDYouTubeKit",
],
path: "Demo-tvOS"
),
.target(
.testTarget(
name: "Demo-tvOSTests",
dependencies: [
"Nimble",
"Quick",
],
path: "Demo-tvOSTests"
),
.target(
name: "Demo-macOS",
dependencies: [
"AFNetworking",
"Alamofire",
"Bond",
"Cartography",
"CocoaAsyncSocket",
"CryptoSwift",
"Kingfisher",
"LayoutKit",
"Lottie",
"Moya",
"PromiseKit",
"Realm",
"RealmSwift",
"ReSwift",
"RxSwift",
"SocketIO",
"SQLite",
"Starscream",
"SwiftDate",
"SwifterSwift",
"SwiftyStoreKit",
"SwiftyUserDefaults",
"XCDYouTubeKit",
],
path: "Demo-macOS"
),
.target(
.testTarget(
name: "Demo-macOSTests",
dependencies: [
"Nimble",
"Quick",
],
path: "Demo-macOSTests"
),
.target(
name: "Demo-ShareExtension",
dependencies: [
"AFNetworking",
"Alamofire",
"Bagel",
"Bond",
"Cartography",
"CocoaAsyncSocket",
"CryptoSwift",
"Eureka",
"Haneke",
"Kingfisher",
"LayoutKit",
"LTMorphingLabel",
"MBProgressHUD",
"Moya",
"PromiseKit",
"Realm",
"RealmSwift",
"ReSwift",
"RxSwift",
"SkeletonView",
"SQLite",
"Starscream",
"SwiftDate",
"SwiftyStoreKit",
"SwiftyUserDefaults",
],
path: "Demo-ShareExtension"
)
]
)
4 changes: 4 additions & 0 deletions Demo/Shared/AppDependencies/AFNetworking.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import AFNetworking

// Ensure that framework was correctly integrated by using public API:
let afNetworkingAFURLSessionManagerType = AFNetworking.AFURLSessionManager.self
4 changes: 4 additions & 0 deletions Demo/Shared/AppDependencies/Alamofire.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Alamofire

// Ensure that framework was correctly integrated by using public API:
let alamofireRequestType = Alamofire.Request.self
4 changes: 4 additions & 0 deletions Demo/Shared/AppDependencies/Bagel.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Bagel

// Ensure that framework was correctly integrated by using public API:
let bagelType = Bagel.self
4 changes: 4 additions & 0 deletions Demo/Shared/AppDependencies/Bond.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Bond

// Ensure that framework was correctly integrated by using public API:
let bondIntType = Bond<Int>.self
4 changes: 4 additions & 0 deletions Demo/Shared/AppDependencies/Cartography.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Cartography

// Ensure that framework was correctly integrated by using public API:
let cartographyEdgeType = Cartography.Edge.self
6 changes: 6 additions & 0 deletions Demo/Shared/AppDependencies/Chatto.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import Chatto
import ChattoAdditions

// Ensure that framework was correctly integrated by using public API:
let chattoBaseChatViewControllerType = Chatto.BaseChatViewController.self
let chattoAdditionsHorizontalAlignmentType = ChattoAdditions.HorizontalAlignment.self
4 changes: 4 additions & 0 deletions Demo/Shared/AppDependencies/CocoaAsyncSocket.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import CocoaAsyncSocket

// Ensure that framework was correctly integrated by using public API:
let cocoaAsyncSocketGCDAsyncSocketType = CocoaAsyncSocket.GCDAsyncSocket.self
4 changes: 4 additions & 0 deletions Demo/Shared/AppDependencies/CryptoSwift.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import CryptoSwift

// Ensure that framework was correctly integrated by using public API:
let cryptoSwiftAESType = CryptoSwift.AES.self
4 changes: 4 additions & 0 deletions Demo/Shared/AppDependencies/Eureka.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Eureka

// Ensure that framework was correctly integrated by using public API:
let eurekaFormViewControllerType = Eureka.FormViewController.self
4 changes: 4 additions & 0 deletions Demo/Shared/AppDependencies/FoldingCell.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import FoldingCell

// Ensure that framework was correctly integrated by using public API:
let foldingCellType = FoldingCell.self
4 changes: 4 additions & 0 deletions Demo/Shared/AppDependencies/Haneke.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Haneke

// Ensure that framework was correctly integrated by using public API:
let hanekeCacheType = Haneke.Cache<String>.self
4 changes: 4 additions & 0 deletions Demo/Shared/AppDependencies/Hero.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Hero

// Ensure that framework was correctly integrated by using public API:
let heroAnimatorType = HeroAnimator.self
4 changes: 4 additions & 0 deletions Demo/Shared/AppDependencies/JGProgressHUD.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import JGProgressHUD

// Ensure that framework was correctly integrated by using public API:
let jgProgressHUDType = JGProgressHUD.self
4 changes: 4 additions & 0 deletions Demo/Shared/AppDependencies/Kingfisher.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Kingfisher

// Ensure that framework was correctly integrated by using public API:
let kingfisherKingfisherCompatibleType = Kingfisher.KingfisherCompatible.self
4 changes: 4 additions & 0 deletions Demo/Shared/AppDependencies/LTMorphingLabel.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import LTMorphingLabel

// Ensure that framework was correctly integrated by using public API:
let ltMorphingLabelType = LTMorphingLabel.self
4 changes: 4 additions & 0 deletions Demo/Shared/AppDependencies/LayoutKit.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import LayoutKit

// Ensure that framework was correctly integrated by using public API:
let layoutKitType = LayoutKit.Layout.self
Loading

0 comments on commit 746ba2a

Please sign in to comment.