-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
99 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
AllCops: | ||
NewCops: enable | ||
|
||
Naming/FileName: | ||
Exclude: | ||
- Kanvas.podspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://cdn.cocoapods.org/' | ||
|
||
use_modular_headers! | ||
platform :ios, '13.0' | ||
|
||
project "KanvasExample.xcodeproj" | ||
project 'KanvasExample.xcodeproj' | ||
|
||
target 'KanvasExample' do | ||
pod 'Kanvas', :path => '../' | ||
target 'KanvasExampleTests' do | ||
inherit! :search_paths | ||
use_frameworks! | ||
pod 'iOSSnapshotTestCase', '8.0.0' | ||
end | ||
pod 'Kanvas', path: '../' | ||
|
||
target 'KanvasExampleTests' do | ||
inherit! :search_paths | ||
use_frameworks! | ||
pod 'iOSSnapshotTestCase', '8.0.0' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
gem 'cocoapods', '1.11.3' | ||
gem 'fastlane', '~> 2.206' | ||
gem 'rubocop', '~> 1.31' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
# frozen_string_literal: true | ||
|
||
Pod::Spec.new do |spec| | ||
spec.name = "Kanvas" | ||
spec.version = "1.4.2" | ||
spec.summary = "A custom camera built for iOS." | ||
spec.homepage = "https://github.com/tumblr/kanvas-ios" | ||
spec.license = "MPLv2" | ||
spec.source = { :git => "https://github.com/tumblr/kanvas-ios.git", | ||
:tag => "#{spec.version}" } | ||
spec.authors = { "Jimmy Schementi" => "[email protected]", | ||
"Tony Cheng" => "[email protected]" } | ||
spec.platform = :ios, "13.0" | ||
spec.swift_version = "4.2" | ||
spec.name = 'Kanvas' | ||
spec.version = '1.4.2' | ||
spec.summary = 'A custom camera built for iOS.' | ||
spec.homepage = 'https://github.com/tumblr/kanvas-ios' | ||
spec.license = 'MPLv2' | ||
spec.source = { git: 'https://github.com/tumblr/kanvas-ios.git', | ||
tag: spec.version.to_s } | ||
spec.authors = { 'Jimmy Schementi' => '[email protected]', | ||
'Tony Cheng' => '[email protected]' } | ||
spec.platform = :ios, '13.0' | ||
spec.swift_version = '4.2' | ||
spec.requires_arc = true | ||
spec.frameworks = "Foundation", "GLKit", "OpenGLES", "UIKit" | ||
spec.source_files = "Classes/**/*.{h,m,swift,vsh,glsl}" | ||
spec.resource_bundles = { "Kanvas" => "Resources/*" } | ||
spec.user_target_xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "GLES_SILENCE_DEPRECATION=1" } | ||
spec.pod_target_xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "GLES_SILENCE_DEPRECATION=1" } | ||
spec.frameworks = 'Foundation', 'GLKit', 'OpenGLES', 'UIKit' | ||
spec.source_files = 'Classes/**/*.{h,m,swift,vsh,glsl}' | ||
spec.resource_bundles = { 'Kanvas' => 'Resources/*' } | ||
spec.user_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'GLES_SILENCE_DEPRECATION=1' } | ||
spec.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'GLES_SILENCE_DEPRECATION=1' } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,33 @@ | ||
# frozen_string_literal: true | ||
|
||
default_platform(:ios) | ||
|
||
PROJECT_ROOT = File.dirname(__dir__) | ||
EXAMPLE_PROJECT_ROOT = File.join(PROJECT_ROOT, 'Example') | ||
ARTIFACTS_PATH = File.join(PROJECT_ROOT, 'artifacts') | ||
|
||
platform :ios do | ||
desc "Build and Test the Pod" | ||
desc 'Build and Test the Pod' | ||
lane :test do | ||
run_tests( | ||
workspace: File.join(EXAMPLE_PROJECT_ROOT, 'KanvasExample.xcworkspace'), | ||
scheme: 'KanvasExample', | ||
devices: ['iPhone 8'], | ||
deployment_target_version: '14.0' | ||
) | ||
end | ||
end | ||
|
||
# Create the artifacts path if needed | ||
FileUtils.mkdir_p(ARTIFACTS_PATH) | ||
error do |_lane, _exception| | ||
# Create the artifacts path if needed | ||
FileUtils.mkdir_p(ARTIFACTS_PATH) | ||
|
||
begin | ||
run_tests( | ||
workspace: File.join(EXAMPLE_PROJECT_ROOT, 'KanvasExample.xcworkspace'), | ||
scheme: 'KanvasExample', | ||
devices: ['iPhone 8'], | ||
deployment_target_version: '14.0' | ||
) | ||
ensure | ||
zip( | ||
path: File.join(EXAMPLE_PROJECT_ROOT, 'KanvasExampleTests', 'FailureDiffs'), | ||
output_path: File.join(ARTIFACTS_PATH, 'FailureDiffs.zip') | ||
) | ||
end | ||
end | ||
diffs_path = File.join(EXAMPLE_PROJECT_ROOT, 'KanvasExampleTests', 'FailureDiffs') | ||
|
||
return unless File.directory? diffs_path | ||
|
||
zip( | ||
path: diffs_path, | ||
output_path: File.join(ARTIFACTS_PATH, 'FailureDiffs.zip') | ||
) | ||
end |