Skip to content

Commit

Permalink
Reorganized project structure, added carthage & cocoapods support
Browse files Browse the repository at this point in the history
  • Loading branch information
scihant committed Feb 21, 2017
1 parent f54d433 commit cbb8ee0
Show file tree
Hide file tree
Showing 30 changed files with 1,208 additions and 300 deletions.
54 changes: 42 additions & 12 deletions .gitignore
@@ -1,3 +1,41 @@
build/
DerivedData

*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xcuserstate

*.xcodeproj/xcuserdata/
*.xcodeproj/project.xcworkspace/
*.xcodeproj/project.xcworkspace/xcuserdata/
*.xccheckout
*.moved-aside
*.xcuserstate
*.xcscmblueprint

*.hmap
*.ipa
*.pdf
*.patch
.DS_Store

CocoaPods
Pods/
Podfile.lock


# Created by https://www.gitignore.io/api/obje,objective-c

#!! ERROR: obje is undefined. Use list command to see defined gitignore types !!#

### Objective-C ###
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
Expand Down Expand Up @@ -27,16 +65,6 @@ xcuserdata/
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
Expand All @@ -50,11 +78,11 @@ playground.xcworkspace
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build
# Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
Expand All @@ -63,3 +91,5 @@ fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output


1 change: 1 addition & 0 deletions .swift-version
@@ -0,0 +1 @@
3.0
36 changes: 36 additions & 0 deletions .travis.yml
@@ -0,0 +1,36 @@
language: objective-c
osx_image: xcode8.2
cache: bundler
env:
global:
- FRAMEWORK_PROJECT=CTPanoramaView.xcodeproj
- FRAMEWORK_SCHEME=CTPanoramaView
- EXAMPLE_PROJECT="Example/Example.xcodeproj"
- EXAMPLE_SCHEME=Example
- SDK=iphonesimulator
matrix:
- DESTINATION="OS=10.1,name=iPhone 7" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="YES"
- DESTINATION="OS=9.3,name=iPhone 6" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
- DESTINATION="OS=8.4,name=iPhone 4S" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
before_install:
- gem install cocoapods --pre --no-rdoc --no-ri --no-document --quiet
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks

# Build Framework and Run Testsif specified
- if [ $RUN_TESTS == "YES" ]; then
xcodebuild -project "$FRAMEWORK_PROJECT" -scheme "$FRAMEWORK_SCHEME" -sdk "$SDK" -destination "$DESTINATION", ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty;
fi

# Build Example if specified
- if [ $BUILD_EXAMPLE == "YES" ]; then
xcodebuild -project "$EXAMPLE_PROJECT" -scheme "$EXAMPLE_SCHEME" -sdk "$SDK" -destination "$DESTINATION", ONLY_ACTIVE_ARCH=NO | xcpretty;
fi

# Run `pod lib lint` if specified
- if [ $POD_LINT == "YES" ]; then
pod lib lint;
fi
16 changes: 16 additions & 0 deletions CTPanoramaView.podspec
@@ -0,0 +1,16 @@
Pod::Spec.new do |s|
s.name = "CTPanoramaView"
s.version = "1.0"
s.summary = "Displays spherical 360 photos or panoramic images."
s.homepage = "https://github.com/scihant/CTPanoramaView"
s.screenshots = "https://s3.amazonaws.com/tek-files/static.png", "https://s3.amazonaws.com/tek-files/dynamic_rect.gif", "https://s3.amazonaws.com/tek-files/dynamic_circle.gif"
s.license = "MIT"
s.author = { "scihant" => "cihantek@gmail.com" }
s.source = { :git => "https://github.com/scihant/CTPanoramaView.git", :tag => s.version.to_s }

s.platform = :ios, '8.0'
s.requires_arc = true

s.source_files = 'Source/*.{swift}'
s.frameworks = 'UIKit'
end

0 comments on commit cbb8ee0

Please sign in to comment.