Browse Source

Merge pull request #25 from norio-nomura/add-podspec

Add podspec
Norio Nomura 8 năm trước cách đây
mục cha
commit
c060b18cb0
4 tập tin đã thay đổi với 19 bổ sung0 xóa
  1. 1 0
      .swift-version
  2. 1 0
      .travis.yml
  3. 15 0
      Base32.podspec
  4. 2 0
      Base32.xcodeproj/project.pbxproj

+ 1 - 0
.swift-version

@@ -0,0 +1 @@
+3.0

+ 1 - 0
.travis.yml

@@ -8,6 +8,7 @@ matrix:
     - xcodebuild -scheme Base32 test -destination "name=Apple TV 1080p" | xcpretty
     - xcodebuild -scheme Base32 build -destination "name=Apple Watch - 38mm" | xcpretty
     - swift test
+    - pod lib lint
     env: JOB=macOS
     os: osx
     osx_image: xcode8.2

+ 15 - 0
Base32.podspec

@@ -0,0 +1,15 @@
+Pod::Spec.new do |s|
+  s.name                      = 'Base32'
+  s.version                   = '0.5.1'
+  s.summary                   = 'Base32 implementation for Swift.'
+  s.homepage                  = 'https://github.com/norio-nomura/Base32'
+  s.source                    = { :git => s.homepage + '.git', :tag => s.version }
+  s.license                   = { :type => 'MIT', :file => 'LICENSE' }
+  s.author                    = { 'Norio Nomura' => 'norio.nomura@gmail.com' }
+  s.source_files              = 'Sources/**/*.{h,c,swift}'
+  s.pod_target_xcconfig       = { 'APPLICATION_EXTENSION_API_ONLY' => 'YES' }
+  s.ios.deployment_target     = '8.0'
+  s.osx.deployment_target     = '10.9'
+  s.tvos.deployment_target    = '9.0'
+  s.watchos.deployment_target = '2.0'
+end

+ 2 - 0
Base32.xcodeproj/project.pbxproj

@@ -287,6 +287,7 @@
 		_ReleaseConf_Base32 /* Release */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
+				APPLICATION_EXTENSION_API_ONLY = YES;
 				INFOPLIST_FILE = Base32.xcodeproj/Base32_Info.plist;
 				OTHER_LDFLAGS = "$(inherited)";
 				OTHER_SWIFT_FLAGS = "$(inherited)";
@@ -324,6 +325,7 @@
 		"___DebugConf_Base32" /* Debug */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
+				APPLICATION_EXTENSION_API_ONLY = YES;
 				INFOPLIST_FILE = Base32.xcodeproj/Base32_Info.plist;
 				OTHER_LDFLAGS = "$(inherited)";
 				OTHER_SWIFT_FLAGS = "$(inherited)";