Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
white49
Alamofire
提交
93bb408e
A
Alamofire
项目概览
white49
/
Alamofire
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
Alamofire
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
93bb408e
编写于
2月 09, 2015
作者:
M
Mattt Thompson
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #326 from kylef/universal-framework
Convert Alamofire to a universal framework
上级
410e866d
7f89ab96
变更
7
展开全部
隐藏空白更改
内联
并排
Showing
7 changed file
with
254 addition
and
497 deletion
+254
-497
.travis.yml
.travis.yml
+1
-1
Alamofire.xcodeproj/project.pbxproj
Alamofire.xcodeproj/project.pbxproj
+145
-372
Alamofire.xcodeproj/xcshareddata/xcschemes/Alamofire iOS.xcscheme
...e.xcodeproj/xcshareddata/xcschemes/Alamofire iOS.xcscheme
+0
-110
Alamofire.xcodeproj/xcshareddata/xcschemes/Alamofire.xcscheme
...ofire.xcodeproj/xcshareddata/xcschemes/Alamofire.xcscheme
+14
-14
Configurations/UniversalFramework_Base.xcconfig
Configurations/UniversalFramework_Base.xcconfig
+32
-0
Configurations/UniversalFramework_Framework.xcconfig
Configurations/UniversalFramework_Framework.xcconfig
+32
-0
Configurations/UniversalFramework_Test.xcconfig
Configurations/UniversalFramework_Test.xcconfig
+30
-0
未找到文件。
.travis.yml
浏览文件 @
93bb408e
...
...
@@ -4,5 +4,5 @@ before_install:
-
gem install xcpretty
script
:
-
set -o pipefail
-
xcodebuild -project Alamofire.xcodeproj -scheme
"Alamofire iOS"
test -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty -c
-
xcodebuild -project Alamofire.xcodeproj -scheme
Alamofire
test -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty -c
-
xcodebuild -project "iOS Example.xcodeproj" -scheme "iOS Example" build -sdk iphonesimulator ONLY_ACTIVE_ARCH=YES | xcpretty -c
Alamofire.xcodeproj/project.pbxproj
浏览文件 @
93bb408e
此差异已折叠。
点击以展开。
Alamofire.xcodeproj/xcshareddata/xcschemes/Alamofire iOS.xcscheme
已删除
100644 → 0
浏览文件 @
410e866d
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"0610"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
buildImplicitDependencies =
"YES"
>
<BuildActionEntries>
<BuildActionEntry
buildForTesting =
"YES"
buildForRunning =
"YES"
buildForProfiling =
"YES"
buildForArchiving =
"YES"
buildForAnalyzing =
"YES"
>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"F8111E3219A95C8B0040E7D1"
BuildableName =
"Alamofire.framework"
BlueprintName =
"Alamofire iOS"
ReferencedContainer =
"container:Alamofire.xcodeproj"
>
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting =
"YES"
buildForRunning =
"YES"
buildForProfiling =
"NO"
buildForArchiving =
"NO"
buildForAnalyzing =
"YES"
>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"F8111E3D19A95C8B0040E7D1"
BuildableName =
"Alamofire iOS Tests.xctest"
BlueprintName =
"Alamofire iOS Tests"
ReferencedContainer =
"container:Alamofire.xcodeproj"
>
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv =
"YES"
buildConfiguration =
"Debug"
>
<Testables>
<TestableReference
skipped =
"NO"
>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"F8111E3D19A95C8B0040E7D1"
BuildableName =
"Alamofire iOS Tests.xctest"
BlueprintName =
"Alamofire iOS Tests"
ReferencedContainer =
"container:Alamofire.xcodeproj"
>
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"F8111E3219A95C8B0040E7D1"
BuildableName =
"Alamofire.framework"
BlueprintName =
"Alamofire iOS"
ReferencedContainer =
"container:Alamofire.xcodeproj"
>
</BuildableReference>
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle =
"0"
useCustomWorkingDirectory =
"NO"
buildConfiguration =
"Debug"
ignoresPersistentStateOnLaunch =
"NO"
debugDocumentVersioning =
"YES"
allowLocationSimulation =
"YES"
>
<MacroExpansion>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"F8111E3219A95C8B0040E7D1"
BuildableName =
"Alamofire.framework"
BlueprintName =
"Alamofire iOS"
ReferencedContainer =
"container:Alamofire.xcodeproj"
>
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv =
"YES"
savedToolIdentifier =
""
useCustomWorkingDirectory =
"NO"
buildConfiguration =
"Release"
debugDocumentVersioning =
"YES"
>
<MacroExpansion>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"F8111E3219A95C8B0040E7D1"
BuildableName =
"Alamofire.framework"
BlueprintName =
"Alamofire iOS"
ReferencedContainer =
"container:Alamofire.xcodeproj"
>
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration =
"Debug"
>
</AnalyzeAction>
<ArchiveAction
buildConfiguration =
"Release"
revealArchiveInOrganizer =
"YES"
>
</ArchiveAction>
</Scheme>
Alamofire.xcodeproj/xcshareddata/xcschemes/Alamofire
OSX
.xcscheme
→
Alamofire.xcodeproj/xcshareddata/xcschemes/Alamofire.xcscheme
浏览文件 @
93bb408e
...
...
@@ -14,9 +14,9 @@
buildForAnalyzing =
"YES"
>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"
4DD67C0A1A5C55C900ED2280
"
BlueprintIdentifier =
"
27AB60061A7FAFBF0069F786
"
BuildableName =
"Alamofire.framework"
BlueprintName =
"Alamofire
OSX
"
BlueprintName =
"Alamofire"
ReferencedContainer =
"container:Alamofire.xcodeproj"
>
</BuildableReference>
</BuildActionEntry>
...
...
@@ -28,9 +28,9 @@
buildForAnalyzing =
"YES"
>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"
F829C6B11A7A94F100A2CD59
"
BuildableName =
"Alamofire
OSX
Tests.xctest"
BlueprintName =
"Alamofire
OSX
Tests"
BlueprintIdentifier =
"
27AB60111A7FAFBF0069F786
"
BuildableName =
"AlamofireTests.xctest"
BlueprintName =
"AlamofireTests"
ReferencedContainer =
"container:Alamofire.xcodeproj"
>
</BuildableReference>
</BuildActionEntry>
...
...
@@ -46,9 +46,9 @@
skipped =
"NO"
>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"
F829C6B11A7A94F100A2CD59
"
BuildableName =
"Alamofire
OSX
Tests.xctest"
BlueprintName =
"Alamofire
OSX
Tests"
BlueprintIdentifier =
"
27AB60111A7FAFBF0069F786
"
BuildableName =
"AlamofireTests.xctest"
BlueprintName =
"AlamofireTests"
ReferencedContainer =
"container:Alamofire.xcodeproj"
>
</BuildableReference>
</TestableReference>
...
...
@@ -56,9 +56,9 @@
<MacroExpansion>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"
4DD67C0A1A5C55C900ED2280
"
BlueprintIdentifier =
"
27AB60061A7FAFBF0069F786
"
BuildableName =
"Alamofire.framework"
BlueprintName =
"Alamofire
OSX
"
BlueprintName =
"Alamofire"
ReferencedContainer =
"container:Alamofire.xcodeproj"
>
</BuildableReference>
</MacroExpansion>
...
...
@@ -75,9 +75,9 @@
<MacroExpansion>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"
4DD67C0A1A5C55C900ED2280
"
BlueprintIdentifier =
"
27AB60061A7FAFBF0069F786
"
BuildableName =
"Alamofire.framework"
BlueprintName =
"Alamofire
OSX
"
BlueprintName =
"Alamofire"
ReferencedContainer =
"container:Alamofire.xcodeproj"
>
</BuildableReference>
</MacroExpansion>
...
...
@@ -93,9 +93,9 @@
<MacroExpansion>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"
4DD67C0A1A5C55C900ED2280
"
BlueprintIdentifier =
"
27AB60061A7FAFBF0069F786
"
BuildableName =
"Alamofire.framework"
BlueprintName =
"Alamofire
OSX
"
BlueprintName =
"Alamofire"
ReferencedContainer =
"container:Alamofire.xcodeproj"
>
</BuildableReference>
</MacroExpansion>
...
...
Configurations/UniversalFramework_Base.xcconfig
0 → 100644
浏览文件 @
93bb408e
// Alamofire.swift
//
// Copyright (c) 2014–2015 Alamofire (http://alamofire.org)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// Make it universal
SUPPORTED_PLATFORMS = iphonesimulator iphoneos macosx
VALID_ARCHS[sdk=iphoneos*] = arm64 armv7 armv7s
VALID_ARCHS[sdk=iphonesimulator*] = arm64 armv7 armv7s
VALID_ARCHS[sdk=macosx*] = i386 x86_64
// Dynamic linking uses different default copy paths
LD_RUNPATH_SEARCH_PATHS[sdk=iphoneos*] = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
LD_RUNPATH_SEARCH_PATHS[sdk=iphonesimulator*] = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
LD_RUNPATH_SEARCH_PATHS[sdk=macosx*] = $(inherited) '@executable_path/../Frameworks' '@loader_path/Frameworks'
Configurations/UniversalFramework_Framework.xcconfig
0 → 100644
浏览文件 @
93bb408e
// Alamofire.swift
//
// Copyright (c) 2014–2015 Alamofire (http://alamofire.org)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#include "UniversalFramework_Base.xcconfig"
// iOS-specific default settings
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer
TARGETED_DEVICE_FAMILY[sdk=iphonesimulator*] = 1,2
TARGETED_DEVICE_FAMILY[sdk=iphone*] = 1,2
// OSX-specific default settings
FRAMEWORK_VERSION[sdk=macosx*] = A
COMBINE_HIDPI_IMAGES[sdk=macosx*] = YES
Configurations/UniversalFramework_Test.xcconfig
0 → 100644
浏览文件 @
93bb408e
// Alamofire.swift
//
// Copyright (c) 2014–2015 Alamofire (http://alamofire.org)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#include "UniversalFramework_Base.xcconfig"
FRAMEWORK_SEARCH_PATHS[sdk=iphoneos*] = $(inherited) '$(SDKROOT)/Developer/Library/Frameworks'
FRAMEWORK_SEARCH_PATHS[sdk=iphonesimulator*] = $(inherited) '$(SDKROOT)/Developer/Library/Frameworks'
FRAMEWORK_SEARCH_PATHS[sdk=macosx*] = $(inherited) '$(DEVELOPER_FRAMEWORKS_DIR)'
// Yep.
LD_RUNPATH_SEARCH_PATHS[sdk=macosx*] = $(inherited) '@executable_path/../Frameworks' '@loader_path/../Frameworks'
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录