├── .gitignore ├── .travis.yml ├── AFWebViewController.podspec ├── AFWebViewController.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcshareddata │ └── xcschemes │ └── AFWebViewController.xcscheme ├── AFWebViewController.xcworkspace └── contents.xcworkspacedata ├── AFWebViewController ├── AFModalWebViewController.h ├── AFModalWebViewController.m ├── AFWebViewController.bundle │ ├── Back.png │ ├── Back@2x.png │ ├── Back@3x.png │ ├── Forward.png │ ├── Forward@2x.png │ └── Forward@3x.png ├── AFWebViewController.h └── AFWebViewController.m ├── Demo ├── AppDelegate.h ├── AppDelegate.m ├── Info.plist ├── Launch Screen.xib ├── Main.storyboard ├── ViewController.h ├── ViewController.m └── main.m ├── LICENSE ├── Podfile ├── Podfile.lock ├── Pods ├── ARChromeActivity │ ├── ARChromeActivity │ │ ├── ARChromeActivity.h │ │ ├── ARChromeActivity.m │ │ ├── ARChromeActivity.png │ │ ├── ARChromeActivity@2x.png │ │ ├── ARChromeActivity@2x~ipad.png │ │ ├── ARChromeActivity@3x.png │ │ ├── ARChromeActivity@3x~ipad.png │ │ └── ARChromeActivity~ipad.png │ ├── LICENSE │ └── readme.md ├── Headers │ ├── Private │ │ ├── ARChromeActivity │ │ │ └── ARChromeActivity.h │ │ └── TUSafariActivity │ │ │ └── TUSafariActivity.h │ └── Public │ │ ├── ARChromeActivity │ │ └── ARChromeActivity.h │ │ └── TUSafariActivity │ │ └── TUSafariActivity.h ├── Manifest.lock ├── Pods.xcodeproj │ └── project.pbxproj ├── TUSafariActivity │ ├── LICENSE.md │ ├── Pod │ │ ├── Assets │ │ │ ├── cs.lproj │ │ │ │ └── TUSafariActivity.strings │ │ │ ├── de.lproj │ │ │ │ └── TUSafariActivity.strings │ │ │ ├── en.lproj │ │ │ │ └── TUSafariActivity.strings │ │ │ ├── es.lproj │ │ │ │ └── TUSafariActivity.strings │ │ │ ├── eu.lproj │ │ │ │ └── TUSafariActivity.strings │ │ │ ├── fi.lproj │ │ │ │ └── TUSafariActivity.strings │ │ │ ├── fr.lproj │ │ │ │ └── TUSafariActivity.strings │ │ │ ├── it.lproj │ │ │ │ └── TUSafariActivity.strings │ │ │ ├── ja.lproj │ │ │ │ └── TUSafariActivity.strings │ │ │ ├── ko.lproj │ │ │ │ └── TUSafariActivity.strings │ │ │ ├── nl.lproj │ │ │ │ └── TUSafariActivity.strings │ │ │ ├── no.lproj │ │ │ │ └── TUSafariActivity.strings │ │ │ ├── pl.lproj │ │ │ │ └── TUSafariActivity.strings │ │ │ ├── pt.lproj │ │ │ │ └── TUSafariActivity.strings │ │ │ ├── ru.lproj │ │ │ │ └── TUSafariActivity.strings │ │ │ ├── safari-7.png │ │ │ ├── safari-7@2x.png │ │ │ ├── safari-7@3x.png │ │ │ ├── safari-7~iPad.png │ │ │ ├── safari-7~iPad@2x.png │ │ │ ├── safari.png │ │ │ ├── safari@2x.png │ │ │ ├── safari@3x.png │ │ │ ├── safari~iPad.png │ │ │ ├── safari~iPad@2x.png │ │ │ ├── sk.lproj │ │ │ │ └── TUSafariActivity.strings │ │ │ ├── sv.lproj │ │ │ │ └── TUSafariActivity.strings │ │ │ ├── vi.lproj │ │ │ │ └── TUSafariActivity.strings │ │ │ └── zh_CN.lproj │ │ │ │ └── TUSafariActivity.strings │ │ └── Classes │ │ │ ├── TUSafariActivity.h │ │ │ └── TUSafariActivity.m │ └── README.md └── Target Support Files │ ├── ARChromeActivity │ ├── ARChromeActivity-dummy.m │ ├── ARChromeActivity-prefix.pch │ └── ARChromeActivity.xcconfig │ ├── Pods-AFWebViewController │ ├── Pods-AFWebViewController-acknowledgements.markdown │ ├── Pods-AFWebViewController-acknowledgements.plist │ ├── Pods-AFWebViewController-dummy.m │ ├── Pods-AFWebViewController-frameworks.sh │ ├── Pods-AFWebViewController-resources.sh │ ├── Pods-AFWebViewController.debug.xcconfig │ └── Pods-AFWebViewController.release.xcconfig │ └── TUSafariActivity │ ├── ResourceBundle-TUSafariActivity-Info.plist │ ├── TUSafariActivity-dummy.m │ ├── TUSafariActivity-prefix.pch │ └── TUSafariActivity.xcconfig └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | build/ 3 | *.pbxuser 4 | !default.pbxuser 5 | *.mode1v3 6 | !default.mode1v3 7 | *.mode2v3 8 | !default.mode2v3 9 | *.perspectivev3 10 | !default.perspectivev3 11 | xcuserdata 12 | profile 13 | *.moved-aside 14 | DerivedData 15 | .idea/ 16 | *.hmap 17 | *.xccheckout 18 | 19 | # OS X 20 | .DS_Store 21 | .AppleDouble 22 | .LSOverride 23 | *.swp 24 | 25 | # Files that might appear on external disk 26 | .Spotlight-V100 27 | .Trashes -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: objective-c 2 | osx_image: xcode8 3 | 4 | before_install: 5 | - gem install cocoapods --no-rdoc --no-ri --no-document --quiet 6 | 7 | script: 8 | - pod lib lint 9 | - xcodebuild -workspace AFWebViewController.xcworkspace -scheme 'AFWebViewController' -sdk iphonesimulator build 10 | -------------------------------------------------------------------------------- /AFWebViewController.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'AFWebViewController' 3 | s.version = '1.3' 4 | s.summary = 'In-app browser that uses WKWebView' 5 | s.homepage = 'https://github.com/Fogh/AFWebViewController' 6 | s.license = 'MIT' 7 | s.author = { 'Anders Fogh Eriksen' => 'andfogh@gmail.com' } 8 | s.source = { :git => 'https://github.com/Fogh/AFWebViewController.git', :tag => s.version.to_s } 9 | s.platform = :ios, '8.0' 10 | s.weak_framework = 'WebKit' 11 | s.source_files = 'AFWebViewController/*.{h,m}' 12 | s.resources = 'AFWebViewController/AFWebViewController.bundle' 13 | s.requires_arc = true 14 | s.social_media_url = 'https://twitter.com/f0gh' 15 | 16 | s.dependency 'TUSafariActivity', '~> 1.0.4' 17 | s.dependency 'ARChromeActivity', '~> 1.0.4' 18 | end 19 | -------------------------------------------------------------------------------- /AFWebViewController.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 36630F8C36F2852CF3AC548A /* libPods-AFWebViewController.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EC2A01DE6355E7884E831119 /* libPods-AFWebViewController.a */; }; 11 | 5F73E4021A127487005B2317 /* AFWebViewController.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 5F73E4011A127487005B2317 /* AFWebViewController.bundle */; }; 12 | 5F8F07EC1A0FC918002D45B8 /* AFWebViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5F8F07EB1A0FC918002D45B8 /* AFWebViewController.m */; }; 13 | 5F8F07F11A0FDA4D002D45B8 /* AFModalWebViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5F8F07F01A0FDA4D002D45B8 /* AFModalWebViewController.m */; }; 14 | 5F8F07FD1A113F35002D45B8 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5F8F07F61A113F35002D45B8 /* AppDelegate.m */; }; 15 | 5F8F07FF1A113F35002D45B8 /* Launch Screen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5F8F07F81A113F35002D45B8 /* Launch Screen.xib */; }; 16 | 5F8F08001A113F35002D45B8 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 5F8F07F91A113F35002D45B8 /* main.m */; }; 17 | 5F8F08011A113F35002D45B8 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5F8F07FA1A113F35002D45B8 /* Main.storyboard */; }; 18 | 5F8F08021A113F35002D45B8 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5F8F07FC1A113F35002D45B8 /* ViewController.m */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXContainerItemProxy section */ 22 | 5F8F07DB1A0FC86F002D45B8 /* PBXContainerItemProxy */ = { 23 | isa = PBXContainerItemProxy; 24 | containerPortal = 5F8F07B91A0FC86E002D45B8 /* Project object */; 25 | proxyType = 1; 26 | remoteGlobalIDString = 5F8F07C01A0FC86E002D45B8; 27 | remoteInfo = AFWebViewController; 28 | }; 29 | /* End PBXContainerItemProxy section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 412B5FCD47B4FDF04F5D6AA2 /* Pods-AFWebViewController.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AFWebViewController.release.xcconfig"; path = "Pods/Target Support Files/Pods-AFWebViewController/Pods-AFWebViewController.release.xcconfig"; sourceTree = ""; }; 33 | 5F73E4011A127487005B2317 /* AFWebViewController.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = AFWebViewController.bundle; sourceTree = ""; }; 34 | 5F8F07C11A0FC86F002D45B8 /* AFWebViewController.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AFWebViewController.app; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | 5F8F07DA1A0FC86F002D45B8 /* AFWebViewControllerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AFWebViewControllerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 36 | 5F8F07EA1A0FC918002D45B8 /* AFWebViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFWebViewController.h; sourceTree = ""; }; 37 | 5F8F07EB1A0FC918002D45B8 /* AFWebViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFWebViewController.m; sourceTree = ""; }; 38 | 5F8F07EF1A0FDA4D002D45B8 /* AFModalWebViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFModalWebViewController.h; sourceTree = ""; }; 39 | 5F8F07F01A0FDA4D002D45B8 /* AFModalWebViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFModalWebViewController.m; sourceTree = ""; }; 40 | 5F8F07F51A113F35002D45B8 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = Demo/AppDelegate.h; sourceTree = SOURCE_ROOT; }; 41 | 5F8F07F61A113F35002D45B8 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = Demo/AppDelegate.m; sourceTree = SOURCE_ROOT; }; 42 | 5F8F07F71A113F35002D45B8 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = Demo/Info.plist; sourceTree = SOURCE_ROOT; }; 43 | 5F8F07F81A113F35002D45B8 /* Launch Screen.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = "Launch Screen.xib"; path = "Demo/Launch Screen.xib"; sourceTree = SOURCE_ROOT; }; 44 | 5F8F07F91A113F35002D45B8 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = Demo/main.m; sourceTree = SOURCE_ROOT; }; 45 | 5F8F07FA1A113F35002D45B8 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Demo/Main.storyboard; sourceTree = SOURCE_ROOT; }; 46 | 5F8F07FB1A113F35002D45B8 /* ViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ViewController.h; path = Demo/ViewController.h; sourceTree = SOURCE_ROOT; }; 47 | 5F8F07FC1A113F35002D45B8 /* ViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ViewController.m; path = Demo/ViewController.m; sourceTree = SOURCE_ROOT; }; 48 | 73F259D6CFA06F47D61D1822 /* Pods-AFWebViewController.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AFWebViewController.debug.xcconfig"; path = "Pods/Target Support Files/Pods-AFWebViewController/Pods-AFWebViewController.debug.xcconfig"; sourceTree = ""; }; 49 | EC2A01DE6355E7884E831119 /* libPods-AFWebViewController.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-AFWebViewController.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 5F8F07BE1A0FC86E002D45B8 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 36630F8C36F2852CF3AC548A /* libPods-AFWebViewController.a in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 5F8F07D71A0FC86F002D45B8 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | /* End PBXFrameworksBuildPhase section */ 69 | 70 | /* Begin PBXGroup section */ 71 | 3D6F2326C1927D790F38D654 /* Pods */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | 73F259D6CFA06F47D61D1822 /* Pods-AFWebViewController.debug.xcconfig */, 75 | 412B5FCD47B4FDF04F5D6AA2 /* Pods-AFWebViewController.release.xcconfig */, 76 | ); 77 | name = Pods; 78 | sourceTree = ""; 79 | }; 80 | 5F8F07B81A0FC86E002D45B8 = { 81 | isa = PBXGroup; 82 | children = ( 83 | 5F8F07C31A0FC86F002D45B8 /* AFWebViewController */, 84 | 5F8F07C21A0FC86F002D45B8 /* Products */, 85 | 3D6F2326C1927D790F38D654 /* Pods */, 86 | 68EA6D3B0BFCCE8717F700C4 /* Frameworks */, 87 | ); 88 | sourceTree = ""; 89 | }; 90 | 5F8F07C21A0FC86F002D45B8 /* Products */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | 5F8F07C11A0FC86F002D45B8 /* AFWebViewController.app */, 94 | 5F8F07DA1A0FC86F002D45B8 /* AFWebViewControllerTests.xctest */, 95 | ); 96 | name = Products; 97 | sourceTree = ""; 98 | }; 99 | 5F8F07C31A0FC86F002D45B8 /* AFWebViewController */ = { 100 | isa = PBXGroup; 101 | children = ( 102 | 5F8F07F41A113D7E002D45B8 /* AFWebViewController */, 103 | 5F8F07F51A113F35002D45B8 /* AppDelegate.h */, 104 | 5F8F07F61A113F35002D45B8 /* AppDelegate.m */, 105 | 5F8F07F81A113F35002D45B8 /* Launch Screen.xib */, 106 | 5F8F07FA1A113F35002D45B8 /* Main.storyboard */, 107 | 5F8F07FB1A113F35002D45B8 /* ViewController.h */, 108 | 5F8F07FC1A113F35002D45B8 /* ViewController.m */, 109 | 5F8F07C41A0FC86F002D45B8 /* Supporting Files */, 110 | ); 111 | path = AFWebViewController; 112 | sourceTree = ""; 113 | }; 114 | 5F8F07C41A0FC86F002D45B8 /* Supporting Files */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | 5F73E4011A127487005B2317 /* AFWebViewController.bundle */, 118 | 5F8F07F71A113F35002D45B8 /* Info.plist */, 119 | 5F8F07F91A113F35002D45B8 /* main.m */, 120 | ); 121 | name = "Supporting Files"; 122 | sourceTree = ""; 123 | }; 124 | 5F8F07F41A113D7E002D45B8 /* AFWebViewController */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 5F8F07EA1A0FC918002D45B8 /* AFWebViewController.h */, 128 | 5F8F07EB1A0FC918002D45B8 /* AFWebViewController.m */, 129 | 5F8F07EF1A0FDA4D002D45B8 /* AFModalWebViewController.h */, 130 | 5F8F07F01A0FDA4D002D45B8 /* AFModalWebViewController.m */, 131 | ); 132 | name = AFWebViewController; 133 | sourceTree = ""; 134 | }; 135 | 68EA6D3B0BFCCE8717F700C4 /* Frameworks */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | EC2A01DE6355E7884E831119 /* libPods-AFWebViewController.a */, 139 | ); 140 | name = Frameworks; 141 | sourceTree = ""; 142 | }; 143 | /* End PBXGroup section */ 144 | 145 | /* Begin PBXNativeTarget section */ 146 | 5F8F07C01A0FC86E002D45B8 /* AFWebViewController */ = { 147 | isa = PBXNativeTarget; 148 | buildConfigurationList = 5F8F07E41A0FC86F002D45B8 /* Build configuration list for PBXNativeTarget "AFWebViewController" */; 149 | buildPhases = ( 150 | CF171136F46B8375B10036D3 /* [CP] Check Pods Manifest.lock */, 151 | 5F8F07BD1A0FC86E002D45B8 /* Sources */, 152 | 5F8F07BE1A0FC86E002D45B8 /* Frameworks */, 153 | 5F8F07BF1A0FC86E002D45B8 /* Resources */, 154 | 214645D947767270AA67AA0E /* [CP] Embed Pods Frameworks */, 155 | 09B86950658FD396088EE057 /* [CP] Copy Pods Resources */, 156 | ); 157 | buildRules = ( 158 | ); 159 | dependencies = ( 160 | ); 161 | name = AFWebViewController; 162 | productName = AFWebViewController; 163 | productReference = 5F8F07C11A0FC86F002D45B8 /* AFWebViewController.app */; 164 | productType = "com.apple.product-type.application"; 165 | }; 166 | 5F8F07D91A0FC86F002D45B8 /* AFWebViewControllerTests */ = { 167 | isa = PBXNativeTarget; 168 | buildConfigurationList = 5F8F07E71A0FC86F002D45B8 /* Build configuration list for PBXNativeTarget "AFWebViewControllerTests" */; 169 | buildPhases = ( 170 | 5F8F07D61A0FC86F002D45B8 /* Sources */, 171 | 5F8F07D71A0FC86F002D45B8 /* Frameworks */, 172 | 5F8F07D81A0FC86F002D45B8 /* Resources */, 173 | ); 174 | buildRules = ( 175 | ); 176 | dependencies = ( 177 | 5F8F07DC1A0FC86F002D45B8 /* PBXTargetDependency */, 178 | ); 179 | name = AFWebViewControllerTests; 180 | productName = AFWebViewControllerTests; 181 | productReference = 5F8F07DA1A0FC86F002D45B8 /* AFWebViewControllerTests.xctest */; 182 | productType = "com.apple.product-type.bundle.unit-test"; 183 | }; 184 | /* End PBXNativeTarget section */ 185 | 186 | /* Begin PBXProject section */ 187 | 5F8F07B91A0FC86E002D45B8 /* Project object */ = { 188 | isa = PBXProject; 189 | attributes = { 190 | LastUpgradeCheck = 0810; 191 | ORGANIZATIONNAME = "Fogh Development"; 192 | TargetAttributes = { 193 | 5F8F07C01A0FC86E002D45B8 = { 194 | CreatedOnToolsVersion = 6.1; 195 | }; 196 | 5F8F07D91A0FC86F002D45B8 = { 197 | CreatedOnToolsVersion = 6.1; 198 | TestTargetID = 5F8F07C01A0FC86E002D45B8; 199 | }; 200 | }; 201 | }; 202 | buildConfigurationList = 5F8F07BC1A0FC86E002D45B8 /* Build configuration list for PBXProject "AFWebViewController" */; 203 | compatibilityVersion = "Xcode 3.2"; 204 | developmentRegion = English; 205 | hasScannedForEncodings = 0; 206 | knownRegions = ( 207 | en, 208 | Base, 209 | ); 210 | mainGroup = 5F8F07B81A0FC86E002D45B8; 211 | productRefGroup = 5F8F07C21A0FC86F002D45B8 /* Products */; 212 | projectDirPath = ""; 213 | projectRoot = ""; 214 | targets = ( 215 | 5F8F07C01A0FC86E002D45B8 /* AFWebViewController */, 216 | 5F8F07D91A0FC86F002D45B8 /* AFWebViewControllerTests */, 217 | ); 218 | }; 219 | /* End PBXProject section */ 220 | 221 | /* Begin PBXResourcesBuildPhase section */ 222 | 5F8F07BF1A0FC86E002D45B8 /* Resources */ = { 223 | isa = PBXResourcesBuildPhase; 224 | buildActionMask = 2147483647; 225 | files = ( 226 | 5F73E4021A127487005B2317 /* AFWebViewController.bundle in Resources */, 227 | 5F8F08011A113F35002D45B8 /* Main.storyboard in Resources */, 228 | 5F8F07FF1A113F35002D45B8 /* Launch Screen.xib in Resources */, 229 | ); 230 | runOnlyForDeploymentPostprocessing = 0; 231 | }; 232 | 5F8F07D81A0FC86F002D45B8 /* Resources */ = { 233 | isa = PBXResourcesBuildPhase; 234 | buildActionMask = 2147483647; 235 | files = ( 236 | ); 237 | runOnlyForDeploymentPostprocessing = 0; 238 | }; 239 | /* End PBXResourcesBuildPhase section */ 240 | 241 | /* Begin PBXShellScriptBuildPhase section */ 242 | 09B86950658FD396088EE057 /* [CP] Copy Pods Resources */ = { 243 | isa = PBXShellScriptBuildPhase; 244 | buildActionMask = 2147483647; 245 | files = ( 246 | ); 247 | inputPaths = ( 248 | ); 249 | name = "[CP] Copy Pods Resources"; 250 | outputPaths = ( 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | shellPath = /bin/sh; 254 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AFWebViewController/Pods-AFWebViewController-resources.sh\"\n"; 255 | showEnvVarsInLog = 0; 256 | }; 257 | 214645D947767270AA67AA0E /* [CP] Embed Pods Frameworks */ = { 258 | isa = PBXShellScriptBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | ); 262 | inputPaths = ( 263 | ); 264 | name = "[CP] Embed Pods Frameworks"; 265 | outputPaths = ( 266 | ); 267 | runOnlyForDeploymentPostprocessing = 0; 268 | shellPath = /bin/sh; 269 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AFWebViewController/Pods-AFWebViewController-frameworks.sh\"\n"; 270 | showEnvVarsInLog = 0; 271 | }; 272 | CF171136F46B8375B10036D3 /* [CP] Check Pods Manifest.lock */ = { 273 | isa = PBXShellScriptBuildPhase; 274 | buildActionMask = 2147483647; 275 | files = ( 276 | ); 277 | inputPaths = ( 278 | ); 279 | name = "[CP] Check Pods Manifest.lock"; 280 | outputPaths = ( 281 | ); 282 | runOnlyForDeploymentPostprocessing = 0; 283 | shellPath = /bin/sh; 284 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; 285 | showEnvVarsInLog = 0; 286 | }; 287 | /* End PBXShellScriptBuildPhase section */ 288 | 289 | /* Begin PBXSourcesBuildPhase section */ 290 | 5F8F07BD1A0FC86E002D45B8 /* Sources */ = { 291 | isa = PBXSourcesBuildPhase; 292 | buildActionMask = 2147483647; 293 | files = ( 294 | 5F8F07EC1A0FC918002D45B8 /* AFWebViewController.m in Sources */, 295 | 5F8F08021A113F35002D45B8 /* ViewController.m in Sources */, 296 | 5F8F07FD1A113F35002D45B8 /* AppDelegate.m in Sources */, 297 | 5F8F07F11A0FDA4D002D45B8 /* AFModalWebViewController.m in Sources */, 298 | 5F8F08001A113F35002D45B8 /* main.m in Sources */, 299 | ); 300 | runOnlyForDeploymentPostprocessing = 0; 301 | }; 302 | 5F8F07D61A0FC86F002D45B8 /* Sources */ = { 303 | isa = PBXSourcesBuildPhase; 304 | buildActionMask = 2147483647; 305 | files = ( 306 | ); 307 | runOnlyForDeploymentPostprocessing = 0; 308 | }; 309 | /* End PBXSourcesBuildPhase section */ 310 | 311 | /* Begin PBXTargetDependency section */ 312 | 5F8F07DC1A0FC86F002D45B8 /* PBXTargetDependency */ = { 313 | isa = PBXTargetDependency; 314 | target = 5F8F07C01A0FC86E002D45B8 /* AFWebViewController */; 315 | targetProxy = 5F8F07DB1A0FC86F002D45B8 /* PBXContainerItemProxy */; 316 | }; 317 | /* End PBXTargetDependency section */ 318 | 319 | /* Begin XCBuildConfiguration section */ 320 | 5F8F07E21A0FC86F002D45B8 /* Debug */ = { 321 | isa = XCBuildConfiguration; 322 | buildSettings = { 323 | ALWAYS_SEARCH_USER_PATHS = NO; 324 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 325 | CLANG_CXX_LIBRARY = "libc++"; 326 | CLANG_ENABLE_MODULES = YES; 327 | CLANG_ENABLE_OBJC_ARC = YES; 328 | CLANG_WARN_BOOL_CONVERSION = YES; 329 | CLANG_WARN_CONSTANT_CONVERSION = YES; 330 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 331 | CLANG_WARN_EMPTY_BODY = YES; 332 | CLANG_WARN_ENUM_CONVERSION = YES; 333 | CLANG_WARN_INFINITE_RECURSION = YES; 334 | CLANG_WARN_INT_CONVERSION = YES; 335 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 336 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 337 | CLANG_WARN_UNREACHABLE_CODE = YES; 338 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 339 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 340 | COPY_PHASE_STRIP = NO; 341 | ENABLE_STRICT_OBJC_MSGSEND = YES; 342 | ENABLE_TESTABILITY = YES; 343 | GCC_C_LANGUAGE_STANDARD = gnu99; 344 | GCC_DYNAMIC_NO_PIC = NO; 345 | GCC_NO_COMMON_BLOCKS = YES; 346 | GCC_OPTIMIZATION_LEVEL = 0; 347 | GCC_PREPROCESSOR_DEFINITIONS = ( 348 | "DEBUG=1", 349 | "$(inherited)", 350 | ); 351 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 352 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 353 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 354 | GCC_WARN_UNDECLARED_SELECTOR = YES; 355 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 356 | GCC_WARN_UNUSED_FUNCTION = YES; 357 | GCC_WARN_UNUSED_VARIABLE = YES; 358 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 359 | MTL_ENABLE_DEBUG_INFO = YES; 360 | ONLY_ACTIVE_ARCH = YES; 361 | SDKROOT = iphoneos; 362 | TARGETED_DEVICE_FAMILY = "1,2"; 363 | }; 364 | name = Debug; 365 | }; 366 | 5F8F07E31A0FC86F002D45B8 /* Release */ = { 367 | isa = XCBuildConfiguration; 368 | buildSettings = { 369 | ALWAYS_SEARCH_USER_PATHS = NO; 370 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 371 | CLANG_CXX_LIBRARY = "libc++"; 372 | CLANG_ENABLE_MODULES = YES; 373 | CLANG_ENABLE_OBJC_ARC = YES; 374 | CLANG_WARN_BOOL_CONVERSION = YES; 375 | CLANG_WARN_CONSTANT_CONVERSION = YES; 376 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 377 | CLANG_WARN_EMPTY_BODY = YES; 378 | CLANG_WARN_ENUM_CONVERSION = YES; 379 | CLANG_WARN_INFINITE_RECURSION = YES; 380 | CLANG_WARN_INT_CONVERSION = YES; 381 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 382 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 383 | CLANG_WARN_UNREACHABLE_CODE = YES; 384 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 386 | COPY_PHASE_STRIP = YES; 387 | ENABLE_NS_ASSERTIONS = NO; 388 | ENABLE_STRICT_OBJC_MSGSEND = YES; 389 | GCC_C_LANGUAGE_STANDARD = gnu99; 390 | GCC_NO_COMMON_BLOCKS = YES; 391 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 392 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 393 | GCC_WARN_UNDECLARED_SELECTOR = YES; 394 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 395 | GCC_WARN_UNUSED_FUNCTION = YES; 396 | GCC_WARN_UNUSED_VARIABLE = YES; 397 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 398 | MTL_ENABLE_DEBUG_INFO = NO; 399 | SDKROOT = iphoneos; 400 | TARGETED_DEVICE_FAMILY = "1,2"; 401 | VALIDATE_PRODUCT = YES; 402 | }; 403 | name = Release; 404 | }; 405 | 5F8F07E51A0FC86F002D45B8 /* Debug */ = { 406 | isa = XCBuildConfiguration; 407 | baseConfigurationReference = 73F259D6CFA06F47D61D1822 /* Pods-AFWebViewController.debug.xcconfig */; 408 | buildSettings = { 409 | ASSETCATALOG_COMPILER_APPICON_NAME = ""; 410 | INFOPLIST_FILE = "$(SRCROOT)/Demo/Info.plist"; 411 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 412 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 413 | PRODUCT_BUNDLE_IDENTIFIER = "dk.foghdev.$(PRODUCT_NAME:rfc1034identifier)"; 414 | PRODUCT_NAME = "$(TARGET_NAME)"; 415 | }; 416 | name = Debug; 417 | }; 418 | 5F8F07E61A0FC86F002D45B8 /* Release */ = { 419 | isa = XCBuildConfiguration; 420 | baseConfigurationReference = 412B5FCD47B4FDF04F5D6AA2 /* Pods-AFWebViewController.release.xcconfig */; 421 | buildSettings = { 422 | ASSETCATALOG_COMPILER_APPICON_NAME = ""; 423 | INFOPLIST_FILE = "$(SRCROOT)/Demo/Info.plist"; 424 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 425 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 426 | PRODUCT_BUNDLE_IDENTIFIER = "dk.foghdev.$(PRODUCT_NAME:rfc1034identifier)"; 427 | PRODUCT_NAME = "$(TARGET_NAME)"; 428 | }; 429 | name = Release; 430 | }; 431 | 5F8F07E81A0FC86F002D45B8 /* Debug */ = { 432 | isa = XCBuildConfiguration; 433 | buildSettings = { 434 | BUNDLE_LOADER = "$(TEST_HOST)"; 435 | FRAMEWORK_SEARCH_PATHS = ( 436 | "$(SDKROOT)/Developer/Library/Frameworks", 437 | "$(inherited)", 438 | ); 439 | GCC_PREPROCESSOR_DEFINITIONS = ( 440 | "DEBUG=1", 441 | "$(inherited)", 442 | ); 443 | INFOPLIST_FILE = AFWebViewControllerTests/Info.plist; 444 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 445 | PRODUCT_NAME = "$(TARGET_NAME)"; 446 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AFWebViewController.app/AFWebViewController"; 447 | }; 448 | name = Debug; 449 | }; 450 | 5F8F07E91A0FC86F002D45B8 /* Release */ = { 451 | isa = XCBuildConfiguration; 452 | buildSettings = { 453 | BUNDLE_LOADER = "$(TEST_HOST)"; 454 | FRAMEWORK_SEARCH_PATHS = ( 455 | "$(SDKROOT)/Developer/Library/Frameworks", 456 | "$(inherited)", 457 | ); 458 | INFOPLIST_FILE = AFWebViewControllerTests/Info.plist; 459 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 460 | PRODUCT_NAME = "$(TARGET_NAME)"; 461 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AFWebViewController.app/AFWebViewController"; 462 | }; 463 | name = Release; 464 | }; 465 | /* End XCBuildConfiguration section */ 466 | 467 | /* Begin XCConfigurationList section */ 468 | 5F8F07BC1A0FC86E002D45B8 /* Build configuration list for PBXProject "AFWebViewController" */ = { 469 | isa = XCConfigurationList; 470 | buildConfigurations = ( 471 | 5F8F07E21A0FC86F002D45B8 /* Debug */, 472 | 5F8F07E31A0FC86F002D45B8 /* Release */, 473 | ); 474 | defaultConfigurationIsVisible = 0; 475 | defaultConfigurationName = Release; 476 | }; 477 | 5F8F07E41A0FC86F002D45B8 /* Build configuration list for PBXNativeTarget "AFWebViewController" */ = { 478 | isa = XCConfigurationList; 479 | buildConfigurations = ( 480 | 5F8F07E51A0FC86F002D45B8 /* Debug */, 481 | 5F8F07E61A0FC86F002D45B8 /* Release */, 482 | ); 483 | defaultConfigurationIsVisible = 0; 484 | defaultConfigurationName = Release; 485 | }; 486 | 5F8F07E71A0FC86F002D45B8 /* Build configuration list for PBXNativeTarget "AFWebViewControllerTests" */ = { 487 | isa = XCConfigurationList; 488 | buildConfigurations = ( 489 | 5F8F07E81A0FC86F002D45B8 /* Debug */, 490 | 5F8F07E91A0FC86F002D45B8 /* Release */, 491 | ); 492 | defaultConfigurationIsVisible = 0; 493 | defaultConfigurationName = Release; 494 | }; 495 | /* End XCConfigurationList section */ 496 | }; 497 | rootObject = 5F8F07B91A0FC86E002D45B8 /* Project object */; 498 | } 499 | -------------------------------------------------------------------------------- /AFWebViewController.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /AFWebViewController.xcodeproj/xcshareddata/xcschemes/AFWebViewController.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 53 | 54 | 64 | 66 | 72 | 73 | 74 | 75 | 76 | 77 | 83 | 85 | 91 | 92 | 93 | 94 | 96 | 97 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /AFWebViewController.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /AFWebViewController/AFModalWebViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // AFModalWebViewController.h 3 | // AFWebViewController 4 | // 5 | // Created by Anders Eriksen on 09/11/14. 6 | // Copyright (c) 2014-2015 Fogh Development. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | @class WKWebViewConfiguration; 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface AFModalWebViewController : UINavigationController 15 | 16 | /** 17 | * Instantiate a modal WebViewController with URL address string. 18 | * 19 | * @param urlString String with URL to show in web view. 20 | * 21 | * @return Instance of `AFModalWebViewController`. 22 | */ 23 | + (instancetype)webViewControllerWithAddress:(NSString *)urlString; 24 | 25 | /** 26 | * Instantiate a modal WebViewController with URL. 27 | * 28 | * @param URL URL with address to show in web view. 29 | * 30 | * @return Instance of `AFModalWebViewController`. 31 | */ 32 | + (instancetype)webViewControllerWithURL:(NSURL *)URL; 33 | 34 | /** 35 | * Instantiate a modal WebViewController with URL request. 36 | * 37 | * @param request NSURLRequest to show in web view. 38 | * 39 | * @return Instance of `AFModalWebViewController`. 40 | */ 41 | + (instancetype)webViewControllerWithURLRequest:(NSURLRequest *)request; 42 | 43 | /** 44 | * Instantiate a modal WebViewController with HTML string and base URL. 45 | * 46 | * @param HTMLString HTML string to show in web view. 47 | * @param baseURL Base URL containing local files like stylesheets etc. 48 | * 49 | * @return Instance of `AFModalWebViewController`. 50 | */ 51 | + (instancetype)webViewControllerWithHTMLString:(NSString *)HTMLString andBaseURL:(NSURL *)baseURL; 52 | 53 | /** 54 | * Instantiate a modal WebViewController with URL address string. 55 | * 56 | * @param urlString String with URL to show in web view. 57 | * 58 | * @return Instance of `AFModalWebViewController`. 59 | */ 60 | - (instancetype)initWithAddress:(NSString *)urlString; 61 | 62 | /** 63 | * Instantiate a modal WebViewController with URL. 64 | * 65 | * @param URL URL with address to show in web view. 66 | * 67 | * @return Instance of `AFModalWebViewController`. 68 | */ 69 | - (instancetype)initWithURL:(NSURL *)URL; 70 | 71 | /** 72 | * Instantiate a modal WebViewController with URL request. 73 | * 74 | * @param request NSURLRequest to show in web view. 75 | * 76 | * @return Instance of `AFModalWebViewController`. 77 | */ 78 | - (instancetype)initWithURLRequest:(NSURLRequest *)request; 79 | 80 | /** 81 | * Instantiate a modal WebViewController with URL request. 82 | * 83 | * @param request NSURLRequest to show in web view. 84 | * @param configuration a collection of properties used to initialize a web view. 85 | * 86 | * @return Instance of `AFModalWebViewController`. 87 | */ 88 | - (instancetype)initWithURLRequest:(NSURLRequest *)request configuration:(nullable WKWebViewConfiguration *)configuration; 89 | 90 | /** 91 | * Instantiate a modal WebViewController with HTML string and base URL. 92 | * 93 | * @param HTMLString HTML string to show in web view. 94 | * @param baseURL Base URL containing local files like stylesheets etc. 95 | * 96 | * @return Instance of `AFModalWebViewController`. 97 | */ 98 | - (instancetype)initWithHTMLString:(NSString *)HTMLString andBaseURL:(NSURL *)baseURL; 99 | 100 | /** 101 | * Tint color for navigation bar. 102 | */ 103 | @property (nonatomic, strong) UIColor *barsTintColor; 104 | 105 | /** 106 | * Tint color for tool bar. 107 | */ 108 | @property (nonatomic, strong) UIColor *toolbarTintColor; 109 | 110 | @end 111 | 112 | NS_ASSUME_NONNULL_END 113 | -------------------------------------------------------------------------------- /AFWebViewController/AFModalWebViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // AFModalWebViewController.m 3 | // AFWebViewController 4 | // 5 | // Created by Anders Eriksen on 09/11/14. 6 | // Copyright (c) 2014-2015 Fogh Development. All rights reserved. 7 | // 8 | 9 | #import "AFModalWebViewController.h" 10 | #import "AFWebViewController.h" 11 | 12 | @interface AFModalWebViewController () 13 | @property (nonatomic, strong) AFWebViewController *webViewController; 14 | @end 15 | 16 | @interface AFWebViewController (DoneButton) 17 | 18 | - (void)doneButtonTapped:(id)sender; 19 | 20 | @end 21 | 22 | @implementation AFModalWebViewController 23 | 24 | #pragma mark - Initialization 25 | 26 | + (instancetype)webViewControllerWithAddress:(NSString *)urlString { 27 | return [[self alloc] initWithAddress:urlString]; 28 | } 29 | 30 | + (instancetype)webViewControllerWithURL:(NSURL *)URL { 31 | return [[self alloc] initWithURL:URL]; 32 | } 33 | 34 | + (instancetype)webViewControllerWithURLRequest:(NSURLRequest *)request { 35 | return [[self alloc] initWithURLRequest:request]; 36 | } 37 | 38 | + (instancetype)webViewControllerWithHTMLString:(NSString *)HTMLString andBaseURL:(NSURL *)baseURL { 39 | return [[self alloc] initWithHTMLString:HTMLString andBaseURL:baseURL]; 40 | } 41 | 42 | - (instancetype)initWithAddress:(NSString *)urlString { 43 | return [self initWithURL:[NSURL URLWithString:urlString]]; 44 | } 45 | 46 | - (instancetype)initWithURL:(NSURL *)URL { 47 | return [self initWithURLRequest:[NSURLRequest requestWithURL:URL]]; 48 | } 49 | 50 | - (instancetype)initWithURLRequest:(NSURLRequest *)request { 51 | return [self initWithURLRequest:request configuration:nil]; 52 | } 53 | 54 | - (instancetype)initWithURLRequest:(NSURLRequest *)request 55 | configuration:(WKWebViewConfiguration *)configuration 56 | { 57 | self.webViewController = [[AFWebViewController alloc] initWithURLRequest:request configuration:configuration]; 58 | if (self = [super initWithRootViewController:self.webViewController]) { 59 | UIBarButtonItem *doneButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self.webViewController action:@selector(doneButtonTapped:)]; 60 | 61 | if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { 62 | self.webViewController.navigationItem.leftBarButtonItem = doneButton; 63 | } 64 | else { 65 | self.webViewController.navigationItem.rightBarButtonItem = doneButton; 66 | } 67 | } 68 | return self; 69 | } 70 | 71 | - (instancetype)initWithHTMLString:(NSString *)HTMLString andBaseURL:(NSURL *)baseURL { 72 | self.webViewController = [[AFWebViewController alloc] initWithHTMLString:HTMLString andBaseURL:baseURL]; 73 | if (self = [super initWithRootViewController:self.webViewController]) { 74 | UIBarButtonItem *doneButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self.webViewController action:@selector(doneButtonTapped:)]; 75 | 76 | if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { 77 | self.webViewController.navigationItem.leftBarButtonItem = doneButton; 78 | } 79 | else { 80 | self.webViewController.navigationItem.rightBarButtonItem = doneButton; 81 | } 82 | } 83 | return self; 84 | } 85 | 86 | - (void)viewWillAppear:(BOOL)animated { 87 | [super viewWillAppear:animated]; 88 | 89 | self.webViewController.title = self.title; 90 | self.navigationBar.tintColor = self.barsTintColor; 91 | } 92 | 93 | - (void)setToolbarTintColor:(UIColor *)color { 94 | _toolbarTintColor = color; 95 | self.webViewController.toolbarTintColor = _toolbarTintColor; 96 | } 97 | 98 | @end 99 | -------------------------------------------------------------------------------- /AFWebViewController/AFWebViewController.bundle/Back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/AFWebViewController/AFWebViewController.bundle/Back.png -------------------------------------------------------------------------------- /AFWebViewController/AFWebViewController.bundle/Back@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/AFWebViewController/AFWebViewController.bundle/Back@2x.png -------------------------------------------------------------------------------- /AFWebViewController/AFWebViewController.bundle/Back@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/AFWebViewController/AFWebViewController.bundle/Back@3x.png -------------------------------------------------------------------------------- /AFWebViewController/AFWebViewController.bundle/Forward.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/AFWebViewController/AFWebViewController.bundle/Forward.png -------------------------------------------------------------------------------- /AFWebViewController/AFWebViewController.bundle/Forward@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/AFWebViewController/AFWebViewController.bundle/Forward@2x.png -------------------------------------------------------------------------------- /AFWebViewController/AFWebViewController.bundle/Forward@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/AFWebViewController/AFWebViewController.bundle/Forward@3x.png -------------------------------------------------------------------------------- /AFWebViewController/AFWebViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // AFWebViewController.h 3 | // AFWebViewController 4 | // 5 | // Created by Anders Eriksen on 09/11/14. 6 | // Copyright (c) 2014-2015 Fogh Development. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | @class WKWebView; 11 | @class WKWebViewConfiguration; 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface AFWebViewController : UIViewController 16 | 17 | @property (nonatomic, strong, readonly) WKWebView *webView; 18 | 19 | /** 20 | * Instantiate WebViewController with URL address string. 21 | * 22 | * @param urlString String with URL to show in web view. 23 | * 24 | * @return Instance of `AFWebViewController`. 25 | */ 26 | + (instancetype)webViewControllerWithAddress:(NSString *)urlString; 27 | 28 | /** 29 | * Instantiate WebViewController with URL. 30 | * 31 | * @param URL URL with address to show in web view. 32 | * 33 | * @return Instance of `AFWebViewController`. 34 | */ 35 | + (instancetype)webViewControllerWithURL:(NSURL *)URL; 36 | 37 | /** 38 | * Instantiate WebViewController with URL request. 39 | * 40 | * @param request NSURLRequest to show in web view. 41 | * 42 | * @return Instance of `AFWebViewController`. 43 | */ 44 | + (instancetype)webViewControllerWithURLRequest:(NSURLRequest *)request; 45 | 46 | /** 47 | * Instantiate WebViewController with HTML string and base URL. 48 | * 49 | * @param HTMLString HTML string to show in web view. 50 | * @param baseURL Base URL containing local files like stylesheets etc. 51 | * 52 | * @return Instance of `AFWebViewController`. 53 | */ 54 | + (instancetype)webViewControllerWithHTMLString:(NSString *)HTMLString andBaseURL:(NSURL *)baseURL; 55 | 56 | /** 57 | * Instantiate WebViewController with URL address string. 58 | * 59 | * @param urlString String with URL to show in web view. 60 | * 61 | * @return Instance of `AFWebViewController`. 62 | */ 63 | - (instancetype)initWithAddress:(NSString *)urlString; 64 | 65 | /** 66 | * Instantiate WebViewController with URL. 67 | * 68 | * @param URL URL with address to show in web view. 69 | * 70 | * @return Instance of `AFWebViewController`. 71 | */ 72 | - (instancetype)initWithURL:(NSURL *)URL; 73 | 74 | /** 75 | * Instantiate WebViewController with URL request. 76 | * 77 | * @param request NSURLRequest to show in web view. 78 | * 79 | * @return Instance of `AFWebViewController`. 80 | */ 81 | - (instancetype)initWithURLRequest:(NSURLRequest *)request; 82 | 83 | /** 84 | * Instantiate WebViewController with URL request. 85 | * 86 | * @param request NSURLRequest to show in web view. 87 | * @param configuration a collection of properties used to initialize a web view. 88 | * 89 | * @return Instance of `AFWebViewController`. 90 | */ 91 | - (instancetype)initWithURLRequest:(NSURLRequest *)request configuration:(nullable WKWebViewConfiguration *)configuration NS_DESIGNATED_INITIALIZER; 92 | 93 | /** 94 | * Instantiate WebViewController with HTML string and base URL. 95 | * 96 | * @param HTMLString HTML string to show in web view. 97 | * @param baseURL Base URL containing local files like stylesheets etc. 98 | * 99 | * @return Instance of `AFWebViewController`. 100 | */ 101 | - (instancetype)initWithHTMLString:(NSString *)HTMLString andBaseURL:(NSURL *)baseURL NS_DESIGNATED_INITIALIZER; 102 | 103 | - (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE; 104 | 105 | - (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil NS_UNAVAILABLE; 106 | 107 | /** 108 | * Tint color for tool bar. 109 | */ 110 | @property (nonatomic, strong) UIColor *toolbarTintColor; 111 | 112 | @end 113 | 114 | NS_ASSUME_NONNULL_END 115 | 116 | -------------------------------------------------------------------------------- /AFWebViewController/AFWebViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // AFWebViewController.m 3 | // AFWebViewController 4 | // 5 | // Created by Anders Eriksen on 09/11/14. 6 | // Copyright (c) 2014-2015 Fogh Development. All rights reserved. 7 | // 8 | 9 | #import "AFWebViewController.h" 10 | #import "TUSafariActivity.h" 11 | #import "ARChromeActivity.h" 12 | 13 | @import WebKit; 14 | 15 | @interface AFWebViewController () 16 | 17 | // Bar buttons 18 | @property (nonatomic, strong) UIBarButtonItem *backBarButtonItem, *forwardBarButtonItem, *refreshBarButtonItem, *stopBarButtonItem, *actionBarButtonItem; 19 | @property (nonatomic, strong) NSURLRequest *request; 20 | @property (nonatomic, strong, nullable) WKWebViewConfiguration *configuration; 21 | @property (nonatomic, strong) UIProgressView *progressView; 22 | @end 23 | 24 | @implementation AFWebViewController 25 | 26 | @synthesize webView = _webView; 27 | 28 | #pragma mark - Initialization 29 | 30 | + (instancetype)webViewControllerWithAddress:(NSString *)urlString { 31 | return [[self alloc] initWithAddress:urlString]; 32 | } 33 | 34 | + (instancetype)webViewControllerWithURL:(NSURL *)URL { 35 | return [[self alloc] initWithURL:URL]; 36 | } 37 | 38 | + (instancetype)webViewControllerWithURLRequest:(NSURLRequest *)request { 39 | return [[self alloc] initWithURLRequest:request]; 40 | } 41 | 42 | + (instancetype)webViewControllerWithHTMLString:(NSString *)HTMLString andBaseURL:(NSURL *)baseURL { 43 | return [[self alloc] initWithHTMLString:HTMLString andBaseURL:baseURL]; 44 | } 45 | 46 | - (instancetype)initWithAddress:(NSString *)urlString { 47 | return [self initWithURL:[NSURL URLWithString:urlString]]; 48 | } 49 | 50 | - (instancetype)initWithURL:(NSURL *)URL { 51 | return [self initWithURLRequest:[NSURLRequest requestWithURL:URL]]; 52 | } 53 | 54 | - (instancetype)initWithURLRequest:(NSURLRequest *)request { 55 | return [self initWithURLRequest:request configuration:nil]; 56 | } 57 | 58 | - (instancetype)initWithURLRequest:(NSURLRequest *)request 59 | configuration:(nullable WKWebViewConfiguration *)configuration 60 | { 61 | if (self = [super initWithNibName:nil bundle:nil]) { 62 | self.request = request; 63 | self.configuration = configuration; 64 | } 65 | return self; 66 | } 67 | 68 | - (instancetype)initWithHTMLString:(NSString *)HTMLString andBaseURL:(NSURL *)baseURL { 69 | 70 | if (self = [super initWithNibName:nil bundle:nil]) { 71 | [self.webView loadHTMLString:HTMLString baseURL:baseURL]; 72 | } 73 | return self; 74 | } 75 | 76 | - (void)loadRequest:(NSURLRequest *)request { 77 | [self.webView loadRequest:request]; 78 | } 79 | 80 | #pragma mark - View lifecycle 81 | 82 | - (void)dealloc 83 | { 84 | self.webView.navigationDelegate = nil; 85 | [self.webView removeObserver:self forKeyPath:@"estimatedProgress"]; 86 | } 87 | 88 | - (void)loadView { 89 | self.view = self.webView; 90 | [self loadRequest:self.request]; 91 | } 92 | 93 | - (void)viewDidLoad { 94 | [super viewDidLoad]; 95 | 96 | if (!self.toolbarTintColor) { 97 | self.toolbarTintColor = self.navigationController.navigationBar.tintColor; 98 | } 99 | 100 | [self updateToolbarItems]; 101 | [self appendProgressView]; 102 | } 103 | 104 | - (void)viewWillAppear:(BOOL)animated { 105 | NSAssert(self.navigationController, @"AFWebViewController needs to be contained in a UINavigationController. Use AFModalWebViewController for modal presentation."); 106 | 107 | [super viewWillAppear:animated]; 108 | 109 | if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { 110 | [self.navigationController setToolbarHidden:NO animated:animated]; 111 | } 112 | else if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { 113 | [self.navigationController setToolbarHidden:YES animated:animated]; 114 | } 115 | } 116 | 117 | - (void)viewWillDisappear:(BOOL)animated { 118 | [super viewWillDisappear:animated]; 119 | 120 | if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { 121 | [self.navigationController setToolbarHidden:YES animated:animated]; 122 | } 123 | } 124 | 125 | - (void)viewDidDisappear:(BOOL)animated { 126 | [super viewDidDisappear:animated]; 127 | [UIApplication sharedApplication].networkActivityIndicatorVisible = NO; 128 | } 129 | 130 | - (void)viewDidLayoutSubviews { 131 | [super viewDidLayoutSubviews]; 132 | self.progressView.frame = CGRectMake(0, self.topLayoutGuide.length, self.view.frame.size.width, 0.5); 133 | } 134 | 135 | - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation { 136 | if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) 137 | return YES; 138 | 139 | return toInterfaceOrientation != UIInterfaceOrientationPortraitUpsideDown; 140 | } 141 | 142 | #pragma mark - Getters 143 | 144 | - (WKWebView *)webView { 145 | if (!_webView) { 146 | if (_configuration) { 147 | _webView = [[WKWebView alloc] initWithFrame:[UIScreen mainScreen].bounds configuration:_configuration]; 148 | } else { 149 | _webView = [[WKWebView alloc] initWithFrame:[UIScreen mainScreen].bounds]; 150 | } 151 | _webView.navigationDelegate = self; 152 | } 153 | return _webView; 154 | } 155 | 156 | - (UIImage *)frameworkBundleImage:(NSString *)imageName { 157 | NSBundle *frameworkBundle = [NSBundle bundleForClass:[self class]]; 158 | return [UIImage imageNamed:imageName inBundle:frameworkBundle compatibleWithTraitCollection:nil]; 159 | } 160 | 161 | - (UIBarButtonItem *)backBarButtonItem { 162 | if (!_backBarButtonItem) { 163 | _backBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[self frameworkBundleImage:@"AFWebViewController.bundle/Back"] style:UIBarButtonItemStylePlain target:self action:@selector(goBackTapped:)]; 164 | } 165 | return _backBarButtonItem; 166 | } 167 | 168 | - (UIBarButtonItem *)forwardBarButtonItem { 169 | if (!_forwardBarButtonItem) { 170 | _forwardBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[self frameworkBundleImage:@"AFWebViewController.bundle/Forward"] style:UIBarButtonItemStylePlain target:self action:@selector(goForwardTapped:)]; 171 | } 172 | return _forwardBarButtonItem; 173 | } 174 | 175 | - (UIBarButtonItem *)refreshBarButtonItem { 176 | if (!_refreshBarButtonItem) { 177 | _refreshBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:self action:@selector(reloadTapped:)]; 178 | } 179 | return _refreshBarButtonItem; 180 | } 181 | 182 | - (UIBarButtonItem *)stopBarButtonItem { 183 | if (!_stopBarButtonItem) { 184 | _stopBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemStop target:self action:@selector(stopTapped:)]; 185 | } 186 | return _stopBarButtonItem; 187 | } 188 | 189 | - (UIBarButtonItem *)actionBarButtonItem { 190 | if (!_actionBarButtonItem) { 191 | _actionBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(actionButtonTapped:)]; 192 | } 193 | return _actionBarButtonItem; 194 | } 195 | 196 | - (UIProgressView *)progressView { 197 | if (!_progressView) { 198 | _progressView = [[UIProgressView alloc] initWithProgressViewStyle:UIProgressViewStyleDefault]; 199 | } 200 | return _progressView; 201 | } 202 | 203 | #pragma mark - Toolbar 204 | 205 | - (void)updateToolbarItems { 206 | self.backBarButtonItem.enabled = self.webView.canGoBack; 207 | self.forwardBarButtonItem.enabled = self.webView.canGoForward; 208 | 209 | UIBarButtonItem *refreshStopBarButtonItem = self.webView.isLoading ? self.stopBarButtonItem : self.refreshBarButtonItem; 210 | UIBarButtonItem *fixedSpace = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil]; 211 | UIBarButtonItem *flexibleSpace = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil]; 212 | 213 | if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { 214 | fixedSpace.width = 35; 215 | 216 | NSArray *items = @[fixedSpace, 217 | refreshStopBarButtonItem, 218 | fixedSpace, 219 | self.backBarButtonItem, 220 | fixedSpace, 221 | self.forwardBarButtonItem, 222 | fixedSpace, 223 | self.actionBarButtonItem]; 224 | 225 | self.navigationItem.rightBarButtonItems = items.reverseObjectEnumerator.allObjects; 226 | } 227 | else { 228 | NSArray *items = @[fixedSpace, 229 | self.backBarButtonItem, 230 | flexibleSpace, 231 | self.forwardBarButtonItem, 232 | flexibleSpace, 233 | refreshStopBarButtonItem, 234 | flexibleSpace, 235 | self.actionBarButtonItem, 236 | fixedSpace]; 237 | 238 | self.navigationController.toolbar.barStyle = self.navigationController.navigationBar.barStyle; 239 | self.navigationController.toolbar.tintColor = self.toolbarTintColor; 240 | self.toolbarItems = items; 241 | } 242 | } 243 | 244 | #pragma mark - Target actions 245 | 246 | - (void)doneButtonTapped:(id)sender { 247 | [self dismissViewControllerAnimated:YES completion:NULL]; 248 | } 249 | 250 | - (void)goBackTapped:(UIBarButtonItem *)sender { 251 | [self.webView goBack]; 252 | } 253 | 254 | - (void)goForwardTapped:(UIBarButtonItem *)sender { 255 | [self.webView goForward]; 256 | } 257 | 258 | - (void)reloadTapped:(UIBarButtonItem *)sender { 259 | [self.webView reload]; 260 | } 261 | 262 | - (void)stopTapped:(UIBarButtonItem *)sender { 263 | [self.webView stopLoading]; 264 | [self updateToolbarItems]; 265 | } 266 | 267 | - (void)actionButtonTapped:(id)sender { 268 | NSURL *url = self.webView.URL ?: self.request.URL; 269 | if (url) { 270 | // More activities should be added in the future 271 | NSArray *activities = @[[TUSafariActivity new], [ARChromeActivity new]]; 272 | if ([[url absoluteString] hasPrefix:@"file:///"]) { 273 | UIDocumentInteractionController *documentController = [UIDocumentInteractionController interactionControllerWithURL:url]; 274 | [documentController presentOptionsMenuFromRect:self.view.bounds inView:self.view animated:YES]; 275 | } 276 | else { 277 | UIActivityViewController *activityController = [[UIActivityViewController alloc] initWithActivityItems:@[url] applicationActivities:activities]; 278 | 279 | if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { 280 | UIPopoverPresentationController *popover = activityController.popoverPresentationController; 281 | popover.sourceView = self.view; 282 | popover.barButtonItem = sender; 283 | } 284 | 285 | [self presentViewController:activityController animated:YES completion:NULL]; 286 | } 287 | } 288 | } 289 | 290 | #pragma mark - ProgressView 291 | 292 | - (void)appendProgressView { 293 | [self.view addSubview:self.progressView]; 294 | [self.webView addObserver:self forKeyPath:@"estimatedProgress" options:NSKeyValueObservingOptionNew context:nil]; 295 | } 296 | 297 | - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { 298 | if ([keyPath isEqualToString:@"estimatedProgress"]) { 299 | self.progressView.hidden = self.webView.estimatedProgress == 1; 300 | float progress = self.progressView.hidden ? 0 : self.webView.estimatedProgress; 301 | [self.progressView setProgress:progress animated:YES]; 302 | } 303 | } 304 | 305 | #pragma mark - WKNavigation delegate 306 | 307 | - (void)webView:(WKWebView *)webView didCommitNavigation:(WKNavigation *)navigation { 308 | [UIApplication sharedApplication].networkActivityIndicatorVisible = YES; 309 | [self updateToolbarItems]; 310 | } 311 | 312 | - (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation { 313 | [UIApplication sharedApplication].networkActivityIndicatorVisible = NO; 314 | 315 | if (!self.navigationItem.title) { 316 | self.navigationItem.title = webView.title; 317 | } 318 | 319 | [self updateToolbarItems]; 320 | } 321 | 322 | - (void)webView:(WKWebView *)webView didFailNavigation:(WKNavigation *)navigation withError:(NSError *)error { 323 | [UIApplication sharedApplication].networkActivityIndicatorVisible = NO; 324 | [self updateToolbarItems]; 325 | } 326 | 327 | @end 328 | -------------------------------------------------------------------------------- /Demo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // AFWebViewController 4 | // 5 | // Created by Anders Eriksen on 09/11/14. 6 | // Copyright (c) 2014-2015 Fogh Development. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | 17 | -------------------------------------------------------------------------------- /Demo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // AFWebViewController 4 | // 5 | // Created by Anders Eriksen on 09/11/14. 6 | // Copyright (c) 2014-2015 Fogh Development. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @implementation AppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 14 | return YES; 15 | } 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Demo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | Launch Screen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | UIInterfaceOrientationPortraitUpsideDown 39 | 40 | UISupportedInterfaceOrientations~ipad 41 | 42 | UIInterfaceOrientationPortrait 43 | UIInterfaceOrientationPortraitUpsideDown 44 | UIInterfaceOrientationLandscapeLeft 45 | UIInterfaceOrientationLandscapeRight 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /Demo/Launch Screen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Demo/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 31 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /Demo/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // AFWebViewController 4 | // 5 | // Created by Anders Eriksen on 09/11/14. 6 | // Copyright (c) 2014-2015 Fogh Development. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface ViewController : UIViewController 12 | @end 13 | 14 | -------------------------------------------------------------------------------- /Demo/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // AFWebViewController 4 | // 5 | // Created by Anders Eriksen on 09/11/14. 6 | // Copyright (c) 2014-2015 Fogh Development. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "AFWebViewController.h" 11 | #import "AFModalWebViewController.h" 12 | 13 | @implementation ViewController 14 | 15 | - (IBAction)openWebView:(id)sender { 16 | AFWebViewController *webViewController = [AFWebViewController webViewControllerWithAddress:@"https://google.com"]; 17 | [self.navigationController pushViewController:webViewController animated:YES]; 18 | } 19 | 20 | - (IBAction)openWebViewModal:(id)sender { 21 | AFModalWebViewController *webViewController = [AFModalWebViewController webViewControllerWithAddress:@"https://google.com"]; 22 | [self presentViewController:webViewController animated:YES completion:NULL]; 23 | } 24 | @end 25 | -------------------------------------------------------------------------------- /Demo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // AFWebViewController 4 | // 5 | // Created by Anders Eriksen on 09/11/14. 6 | // Copyright (c) 2014-2015 Fogh Development. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014-2017 Anders Fogh Eriksen 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '8.0' 2 | inhibit_all_warnings! 3 | 4 | target 'AFWebViewController' do 5 | pod 'TUSafariActivity', '~> 1.0.4' 6 | pod 'ARChromeActivity', '~> 1.0.4' 7 | end 8 | -------------------------------------------------------------------------------- /Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ARChromeActivity (1.0.6) 3 | - TUSafariActivity (1.0.4) 4 | 5 | DEPENDENCIES: 6 | - ARChromeActivity (~> 1.0.4) 7 | - TUSafariActivity (~> 1.0.4) 8 | 9 | SPEC CHECKSUMS: 10 | ARChromeActivity: 5dcf9b9f09323761f992aff3525cdd777f83609d 11 | TUSafariActivity: afc55a00965377939107ce4fdc7f951f62454546 12 | 13 | PODFILE CHECKSUM: bdc9da0d3f5548384638375cc975e23aeeb72dbc 14 | 15 | COCOAPODS: 1.1.1 16 | -------------------------------------------------------------------------------- /Pods/ARChromeActivity/ARChromeActivity/ARChromeActivity.h: -------------------------------------------------------------------------------- 1 | /* 2 | ARChromeActivity.h 3 | 4 | Copyright (c) 2012 Alex Robinson 5 | 6 | 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: 7 | 8 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 9 | 10 | 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. 11 | */ 12 | 13 | 14 | #import 15 | 16 | @interface ARChromeActivity : UIActivity 17 | 18 | /// Uses the "CFBundleName" from your Info.plist by default. 19 | @property (strong, nonatomic) NSString *callbackSource; 20 | 21 | /// The text beneath the icon. Defaults to "Chrome". 22 | @property (strong, nonatomic) NSString *activityTitle; 23 | 24 | /// Empty by default. Either set this in the initializer, or set this property. For iOS 9+, make sure you register the Chrome URL scheme in your Info.plist. See the demo project. 25 | @property (strong, nonatomic) NSURL *callbackURL; 26 | 27 | - (id)initWithCallbackURL:(NSURL *)callbackURL; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Pods/ARChromeActivity/ARChromeActivity/ARChromeActivity.m: -------------------------------------------------------------------------------- 1 | /* 2 | ARChromeActivity.m 3 | 4 | Copyright (c) 2012 Alex Robinson 5 | 6 | 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: 7 | 8 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 9 | 10 | 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. 11 | */ 12 | 13 | 14 | #import "ARChromeActivity.h" 15 | 16 | @implementation ARChromeActivity { 17 | NSURL *_activityURL; 18 | } 19 | 20 | @synthesize callbackURL = _callbackURL; 21 | @synthesize callbackSource = _callbackSource; 22 | @synthesize activityTitle = _activityTitle; 23 | 24 | static NSString *encodeByAddingPercentEscapes(NSString *input) { 25 | NSString *encodedValue = (NSString *)CFBridgingRelease(CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, (CFStringRef)input, NULL, (CFStringRef)@"!*'();:@&=+$,/?%#[]", kCFStringEncodingUTF8)); 26 | return encodedValue; 27 | } 28 | 29 | - (void)commonInit { 30 | _callbackSource = [[NSBundle mainBundle]objectForInfoDictionaryKey:@"CFBundleName"]; 31 | _activityTitle = @"Open in Chrome"; 32 | } 33 | 34 | - (id)init { 35 | self = [super init]; 36 | if (self) { 37 | [self commonInit]; 38 | } 39 | return self; 40 | } 41 | 42 | - (id)initWithCallbackURL:(NSURL *)callbackURL { 43 | self = [super init]; 44 | if (self) { 45 | [self commonInit]; 46 | _callbackURL = callbackURL; 47 | } 48 | return self; 49 | } 50 | 51 | - (UIImage *)activityImage { 52 | if ([[UIImage class] respondsToSelector:@selector(imageNamed:inBundle:compatibleWithTraitCollection:)]) { 53 | return [UIImage imageNamed:@"ARChromeActivity" inBundle:[NSBundle bundleForClass:self.class] compatibleWithTraitCollection:nil]; 54 | } else { 55 | return [UIImage imageNamed:@"ARChromeActivity"]; 56 | } 57 | } 58 | 59 | - (NSString *)activityType { 60 | return NSStringFromClass([self class]); 61 | } 62 | 63 | - (BOOL)canPerformWithActivityItems:(NSArray *)activityItems { 64 | if (_callbackURL && ![[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"googlechrome-x-callback://"]]) { 65 | return NO; 66 | } 67 | for (id item in activityItems){ 68 | if ([item isKindOfClass:NSURL.class]){ 69 | NSURL *url = (NSURL *)item; 70 | if ([url.scheme isEqualToString:@"http"] || [url.scheme isEqualToString:@"https"]) { 71 | return YES; 72 | } 73 | } 74 | } 75 | return NO; 76 | } 77 | 78 | - (void)prepareWithActivityItems:(NSArray *)activityItems { 79 | for (id item in activityItems) { 80 | if ([item isKindOfClass:NSURL.class]) { 81 | NSURL *url = (NSURL *)item; 82 | if ([url.scheme isEqualToString:@"http"] || [url.scheme isEqualToString:@"https"]) { 83 | _activityURL = (NSURL *)item; 84 | return; 85 | } 86 | 87 | } 88 | } 89 | } 90 | 91 | - (void)performActivity { 92 | NSString *openingURL = encodeByAddingPercentEscapes(_activityURL.absoluteString); 93 | NSString *callbackURL = encodeByAddingPercentEscapes(self.callbackURL.absoluteString); 94 | NSString *sourceName = encodeByAddingPercentEscapes(self.callbackSource); 95 | 96 | NSURL *activityURL = [NSURL URLWithString:[NSString stringWithFormat:@"googlechrome-x-callback://x-callback-url/open/?url=%@&x-success=%@&x-source=%@", openingURL, callbackURL, sourceName]]; 97 | [[UIApplication sharedApplication] openURL:activityURL]; 98 | [self activityDidFinish:YES]; 99 | } 100 | 101 | @end 102 | -------------------------------------------------------------------------------- /Pods/ARChromeActivity/ARChromeActivity/ARChromeActivity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/Pods/ARChromeActivity/ARChromeActivity/ARChromeActivity.png -------------------------------------------------------------------------------- /Pods/ARChromeActivity/ARChromeActivity/ARChromeActivity@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/Pods/ARChromeActivity/ARChromeActivity/ARChromeActivity@2x.png -------------------------------------------------------------------------------- /Pods/ARChromeActivity/ARChromeActivity/ARChromeActivity@2x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/Pods/ARChromeActivity/ARChromeActivity/ARChromeActivity@2x~ipad.png -------------------------------------------------------------------------------- /Pods/ARChromeActivity/ARChromeActivity/ARChromeActivity@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/Pods/ARChromeActivity/ARChromeActivity/ARChromeActivity@3x.png -------------------------------------------------------------------------------- /Pods/ARChromeActivity/ARChromeActivity/ARChromeActivity@3x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/Pods/ARChromeActivity/ARChromeActivity/ARChromeActivity@3x~ipad.png -------------------------------------------------------------------------------- /Pods/ARChromeActivity/ARChromeActivity/ARChromeActivity~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/Pods/ARChromeActivity/ARChromeActivity/ARChromeActivity~ipad.png -------------------------------------------------------------------------------- /Pods/ARChromeActivity/LICENSE: -------------------------------------------------------------------------------- 1 | ARChromeActivity 2 | Copyright (c) 2012 Alex Robinson 3 | 4 | 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: 5 | 6 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 7 | 8 | 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. 9 | -------------------------------------------------------------------------------- /Pods/ARChromeActivity/readme.md: -------------------------------------------------------------------------------- 1 | # ARChromeActivity 2 | 3 | #### A UIActivity subclass for opening URLs in Google Chrome. 4 | 5 | ## Usage 6 | 7 | Typical usage will look something like this: 8 | 9 | NSURL *urlToShare = [NSURL URLWithString:@"https://github.com/alextrob/ARChromeActivity"]; 10 | NSArray *activityItems = [NSArray arrayWithObject:urlToShare]; 11 | 12 | ARChromeActivity *chromeActivity = [[ARChromeActivity alloc] init]; 13 | NSArray *applicationActivities = [NSArray arrayWithObject:chromeActivity]; 14 | 15 | UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:applicationActivities]; 16 | 17 | [self presentViewController:activityVC animated:YES completion:nil]; 18 | 19 | It also supports `x-callback-url` by either initializing with `initWithCallbackURL:`, or setting the `callbackURL` property. Note that if you set a `callbackURL` under iOS 9, you will be required to add "googlechrome-x-callback" to your Info.plist under `LSApplicationQueriesSchemes`. 20 | 21 | Have a look at the demo app! 22 | 23 | ![Demo screenshot](https://raw.github.com/alextrob/ARChromeActivity/master/screenshot.png) 24 | -------------------------------------------------------------------------------- /Pods/Headers/Private/ARChromeActivity/ARChromeActivity.h: -------------------------------------------------------------------------------- 1 | ../../../ARChromeActivity/ARChromeActivity/ARChromeActivity.h -------------------------------------------------------------------------------- /Pods/Headers/Private/TUSafariActivity/TUSafariActivity.h: -------------------------------------------------------------------------------- 1 | ../../../TUSafariActivity/Pod/Classes/TUSafariActivity.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ARChromeActivity/ARChromeActivity.h: -------------------------------------------------------------------------------- 1 | ../../../ARChromeActivity/ARChromeActivity/ARChromeActivity.h -------------------------------------------------------------------------------- /Pods/Headers/Public/TUSafariActivity/TUSafariActivity.h: -------------------------------------------------------------------------------- 1 | ../../../TUSafariActivity/Pod/Classes/TUSafariActivity.h -------------------------------------------------------------------------------- /Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ARChromeActivity (1.0.6) 3 | - TUSafariActivity (1.0.4) 4 | 5 | DEPENDENCIES: 6 | - ARChromeActivity (~> 1.0.4) 7 | - TUSafariActivity (~> 1.0.4) 8 | 9 | SPEC CHECKSUMS: 10 | ARChromeActivity: 5dcf9b9f09323761f992aff3525cdd777f83609d 11 | TUSafariActivity: afc55a00965377939107ce4fdc7f951f62454546 12 | 13 | PODFILE CHECKSUM: bdc9da0d3f5548384638375cc975e23aeeb72dbc 14 | 15 | COCOAPODS: 1.1.1 16 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00FCA478846202BDCDDAD6B3993F85FB /* ja.lproj in Resources */ = {isa = PBXBuildFile; fileRef = 26295E8752E7D4639798230942EAB260 /* ja.lproj */; }; 11 | 03D6103100C0A0C04ACEE84C3ACA41F2 /* zh_CN.lproj in Resources */ = {isa = PBXBuildFile; fileRef = 6B1BFF5984FF1B34790E7F5BA3E4330C /* zh_CN.lproj */; }; 12 | 0C03986EA84D06348F1F0727B2B07765 /* pl.lproj in Resources */ = {isa = PBXBuildFile; fileRef = 95928D0FF7BC1EE9D45C7EA3D3BC4533 /* pl.lproj */; }; 13 | 0F8C1966CA2BD534D6D31E8713B563C9 /* vi.lproj in Resources */ = {isa = PBXBuildFile; fileRef = 361C9EED03F38396825EBCFA662A6739 /* vi.lproj */; }; 14 | 116640393E42828EDE59B03EBBF19547 /* ARChromeActivity-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 43DF7C1B1B05FC957D4DD0F8F7CC7E2F /* ARChromeActivity-dummy.m */; }; 15 | 12257F9FB94B296908B717D0C1612B2E /* fr.lproj in Resources */ = {isa = PBXBuildFile; fileRef = 120051BD58BDC9C1468D0A28AED513BC /* fr.lproj */; }; 16 | 124825B286BCD8887C038B99CBA29487 /* Pods-AFWebViewController-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 19D3F611C66736778C5FDD102A3B7BD8 /* Pods-AFWebViewController-dummy.m */; }; 17 | 1CF39189AB5D2C72E84966E8A80F072C /* it.lproj in Resources */ = {isa = PBXBuildFile; fileRef = 22970BDC434D6AC64B2E0C8A2750D04E /* it.lproj */; }; 18 | 1CFE873AE43A7F692698642689BDC370 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 19 | 2590D29A9287BF42ABE321D79759656E /* safari~iPad@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = CCDCC03F403827ACA2082BFB81F44E77 /* safari~iPad@2x.png */; }; 20 | 2993F8EE44EDA97ABF5940E4EC42681F /* nl.lproj in Resources */ = {isa = PBXBuildFile; fileRef = 6566178CE71E59418538B5D98596ED49 /* nl.lproj */; }; 21 | 2BF74BE8D9A32235258C2240380DC52B /* sk.lproj in Resources */ = {isa = PBXBuildFile; fileRef = C27FC7B91904887493E100D2F026D1CD /* sk.lproj */; }; 22 | 33051A192F0F4621E2E9AC406FB8E554 /* safari-7~iPad@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 3D25FCCB6D29D1B26304C6E396644603 /* safari-7~iPad@2x.png */; }; 23 | 3342B55562921D45300A874110D4498C /* TUSafariActivity.h in Headers */ = {isa = PBXBuildFile; fileRef = 129448662EA8054C6A63328AC5C32ACB /* TUSafariActivity.h */; settings = {ATTRIBUTES = (Public, ); }; }; 24 | 3B0CD33350998DBB3BB30D809D10EDCF /* ru.lproj in Resources */ = {isa = PBXBuildFile; fileRef = 4D5EBA6DFF9F1AEEA7B6E759637EF4D1 /* ru.lproj */; }; 25 | 3C2E45A2DB543ABCAEECC514666FD103 /* pt.lproj in Resources */ = {isa = PBXBuildFile; fileRef = FB8FD23C4B9562348E36D9EAE8E42B27 /* pt.lproj */; }; 26 | 4666AD684575FB84D87A6DAF8E35615B /* cs.lproj in Resources */ = {isa = PBXBuildFile; fileRef = C9418FD8B5C9B263E09DEDF9633220D0 /* cs.lproj */; }; 27 | 4673427074467DFD300946B42E7902D0 /* safari-7~iPad.png in Resources */ = {isa = PBXBuildFile; fileRef = 8C7B8553DF6A0C361B1BFF4BBAE580E6 /* safari-7~iPad.png */; }; 28 | 46F7E03F1DCCB8FC5B00AD7F21296CE0 /* de.lproj in Resources */ = {isa = PBXBuildFile; fileRef = 87C74229D9DAA5CF4248054C7ECC4F27 /* de.lproj */; }; 29 | 55F6A93A18A3AB3BEFEACA1E7B3B692F /* safari~iPad.png in Resources */ = {isa = PBXBuildFile; fileRef = AA1C5A23A6D190648CB60AA7915C9BB2 /* safari~iPad.png */; }; 30 | 649E3F2F38A2226D4C7044FC59DE7918 /* sv.lproj in Resources */ = {isa = PBXBuildFile; fileRef = A4C1E3A98836A70020D49642755077D1 /* sv.lproj */; }; 31 | 6526937957FCE2A26B9040754A33EFAF /* safari-7@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = E02B987065F8825E27057E73694F7F84 /* safari-7@3x.png */; }; 32 | 6549C91EAED7C0684907EC75046FB4DA /* safari.png in Resources */ = {isa = PBXBuildFile; fileRef = 59E040DEB1162A0C91C7CA126C9D8A56 /* safari.png */; }; 33 | 6B05BE7A659FF77A02A05AE59E50D0AB /* no.lproj in Resources */ = {isa = PBXBuildFile; fileRef = 914E9EF67E4408DC7DD2A700D2A571A8 /* no.lproj */; }; 34 | 72DE50A13BF4CCFB93603B911CBA458C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 35 | 788AE6E8A4654F8725619368287B4840 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 36 | 9AB2E9BFB6D6B9D94AAACC81C2C67783 /* safari-7.png in Resources */ = {isa = PBXBuildFile; fileRef = 6FB29BCE851A5B8CD1457DD5C590F716 /* safari-7.png */; }; 37 | A38C59E15F6A73BEAFE695AA99C07FAA /* en.lproj in Resources */ = {isa = PBXBuildFile; fileRef = 43C9C606D28FA8AED299A6550E24E118 /* en.lproj */; }; 38 | B0C63D365B25D4577D71493091A8BEEA /* TUSafariActivity.m in Sources */ = {isa = PBXBuildFile; fileRef = 74A666BDA99669721673C7B7F921E121 /* TUSafariActivity.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; 39 | C8521363A5F45FEF303B6FB3635FD06E /* ARChromeActivity.h in Headers */ = {isa = PBXBuildFile; fileRef = 4F7C6344C9CE5195975547833170897E /* ARChromeActivity.h */; settings = {ATTRIBUTES = (Public, ); }; }; 40 | D429FCBD0E6671552EEE1DAA90C8FA40 /* ko.lproj in Resources */ = {isa = PBXBuildFile; fileRef = 6F21647C1BE16AFE7A9E9F41ACFDC079 /* ko.lproj */; }; 41 | D523DB12003B56BF204A4094E33CF1B0 /* es.lproj in Resources */ = {isa = PBXBuildFile; fileRef = 7231EBED5ADBD0011C31F79DD395BEB1 /* es.lproj */; }; 42 | D94E5F41D535318FC3B3856B66D6341B /* TUSafariActivity-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = DA8A40D369EF30994F8742580E7D47B3 /* TUSafariActivity-dummy.m */; }; 43 | DA88BF24B780166863C41507940C41E5 /* safari@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 665C5B78CF078A1F53C2A3DC6EE8008E /* safari@3x.png */; }; 44 | DB76A477BDB19D8B64663DB595F3DEC7 /* ARChromeActivity.m in Sources */ = {isa = PBXBuildFile; fileRef = 790CDF7F535D9681385B15771EFF22DE /* ARChromeActivity.m */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0 -w -Xanalyzer -analyzer-disable-all-checks"; }; }; 45 | E00C8A0420B4574F180E5F37B733EDB0 /* fi.lproj in Resources */ = {isa = PBXBuildFile; fileRef = 65023A7DEBA00E7F139587966CC6E93F /* fi.lproj */; }; 46 | E01AF8FF26977BA1EC96A36EBED57D38 /* safari@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = F3FCA135CA116A72225DDE9B70CF5834 /* safari@2x.png */; }; 47 | F258993CD08B98F34A8981A11815AEE7 /* eu.lproj in Resources */ = {isa = PBXBuildFile; fileRef = 42DCD3B413AAC5E7C97113DE755E2D9B /* eu.lproj */; }; 48 | FF37BCDD777DC31FFB7FBFBC03640233 /* safari-7@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = D4A7C05C34A733AFB84D60376836E91C /* safari-7@2x.png */; }; 49 | /* End PBXBuildFile section */ 50 | 51 | /* Begin PBXContainerItemProxy section */ 52 | 7272EC698839FF7810EFC69B041D124E /* PBXContainerItemProxy */ = { 53 | isa = PBXContainerItemProxy; 54 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 55 | proxyType = 1; 56 | remoteGlobalIDString = 344B9D4E0D61825D02C791E133E04AA5; 57 | remoteInfo = ARChromeActivity; 58 | }; 59 | 8A8D42CB8C302659872CAA0E24D3A927 /* PBXContainerItemProxy */ = { 60 | isa = PBXContainerItemProxy; 61 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 62 | proxyType = 1; 63 | remoteGlobalIDString = EDCA3435B98B59D45BAB4427207E4848; 64 | remoteInfo = TUSafariActivity; 65 | }; 66 | B51AAFF745D7A46C86AB2F9EA70BA60C /* PBXContainerItemProxy */ = { 67 | isa = PBXContainerItemProxy; 68 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 69 | proxyType = 1; 70 | remoteGlobalIDString = FD56F78E388FBF698BB7695F1D1887A5; 71 | remoteInfo = "TUSafariActivity-TUSafariActivity"; 72 | }; 73 | /* End PBXContainerItemProxy section */ 74 | 75 | /* Begin PBXFileReference section */ 76 | 05EFFABA8B8C965865F2AF842B7C35A2 /* Pods-AFWebViewController.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AFWebViewController.debug.xcconfig"; sourceTree = ""; }; 77 | 0C89468A27E94D37E8B38E4FADE8DE4C /* ARChromeActivity@2x.png */ = {isa = PBXFileReference; includeInIndex = 1; name = "ARChromeActivity@2x.png"; path = "ARChromeActivity/ARChromeActivity@2x.png"; sourceTree = ""; }; 78 | 120051BD58BDC9C1468D0A28AED513BC /* fr.lproj */ = {isa = PBXFileReference; includeInIndex = 1; name = fr.lproj; path = Pod/Assets/fr.lproj; sourceTree = ""; }; 79 | 129448662EA8054C6A63328AC5C32ACB /* TUSafariActivity.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = TUSafariActivity.h; path = Pod/Classes/TUSafariActivity.h; sourceTree = ""; }; 80 | 18ADD641B11065A05638D2D2E679D108 /* Pods-AFWebViewController-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-AFWebViewController-acknowledgements.markdown"; sourceTree = ""; }; 81 | 19D3F611C66736778C5FDD102A3B7BD8 /* Pods-AFWebViewController-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-AFWebViewController-dummy.m"; sourceTree = ""; }; 82 | 1A096C5092E64C40194AF86B3F5535A6 /* TUSafariActivity-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "TUSafariActivity-prefix.pch"; sourceTree = ""; }; 83 | 22970BDC434D6AC64B2E0C8A2750D04E /* it.lproj */ = {isa = PBXFileReference; includeInIndex = 1; name = it.lproj; path = Pod/Assets/it.lproj; sourceTree = ""; }; 84 | 23117FFDE404E66A392BDBF905D55C71 /* TUSafariActivity.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = TUSafariActivity.xcconfig; sourceTree = ""; }; 85 | 26295E8752E7D4639798230942EAB260 /* ja.lproj */ = {isa = PBXFileReference; includeInIndex = 1; name = ja.lproj; path = Pod/Assets/ja.lproj; sourceTree = ""; }; 86 | 361C9EED03F38396825EBCFA662A6739 /* vi.lproj */ = {isa = PBXFileReference; includeInIndex = 1; name = vi.lproj; path = Pod/Assets/vi.lproj; sourceTree = ""; }; 87 | 3D25FCCB6D29D1B26304C6E396644603 /* safari-7~iPad@2x.png */ = {isa = PBXFileReference; includeInIndex = 1; name = "safari-7~iPad@2x.png"; path = "Pod/Assets/safari-7~iPad@2x.png"; sourceTree = ""; }; 88 | 42DCD3B413AAC5E7C97113DE755E2D9B /* eu.lproj */ = {isa = PBXFileReference; includeInIndex = 1; name = eu.lproj; path = Pod/Assets/eu.lproj; sourceTree = ""; }; 89 | 43C9C606D28FA8AED299A6550E24E118 /* en.lproj */ = {isa = PBXFileReference; includeInIndex = 1; name = en.lproj; path = Pod/Assets/en.lproj; sourceTree = ""; }; 90 | 43DF7C1B1B05FC957D4DD0F8F7CC7E2F /* ARChromeActivity-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "ARChromeActivity-dummy.m"; sourceTree = ""; }; 91 | 4D5EBA6DFF9F1AEEA7B6E759637EF4D1 /* ru.lproj */ = {isa = PBXFileReference; includeInIndex = 1; name = ru.lproj; path = Pod/Assets/ru.lproj; sourceTree = ""; }; 92 | 4F7C6344C9CE5195975547833170897E /* ARChromeActivity.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = ARChromeActivity.h; path = ARChromeActivity/ARChromeActivity.h; sourceTree = ""; }; 93 | 516EC720E678340FDFF96385B6DA7A21 /* ARChromeActivity-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ARChromeActivity-prefix.pch"; sourceTree = ""; }; 94 | 5463DC5CDB94DC533D3231B21DA6E1A2 /* TUSafariActivity.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; name = TUSafariActivity.bundle; path = TUSafariActivity.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; 95 | 59613C917DF103995AA346A12776C481 /* ARChromeActivity@3x~ipad.png */ = {isa = PBXFileReference; includeInIndex = 1; name = "ARChromeActivity@3x~ipad.png"; path = "ARChromeActivity/ARChromeActivity@3x~ipad.png"; sourceTree = ""; }; 96 | 59E040DEB1162A0C91C7CA126C9D8A56 /* safari.png */ = {isa = PBXFileReference; includeInIndex = 1; name = safari.png; path = Pod/Assets/safari.png; sourceTree = ""; }; 97 | 65023A7DEBA00E7F139587966CC6E93F /* fi.lproj */ = {isa = PBXFileReference; includeInIndex = 1; name = fi.lproj; path = Pod/Assets/fi.lproj; sourceTree = ""; }; 98 | 6504FFE7558B95AA7D9D814BB3CDD510 /* libARChromeActivity.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = libARChromeActivity.a; path = libARChromeActivity.a; sourceTree = BUILT_PRODUCTS_DIR; }; 99 | 6566178CE71E59418538B5D98596ED49 /* nl.lproj */ = {isa = PBXFileReference; includeInIndex = 1; name = nl.lproj; path = Pod/Assets/nl.lproj; sourceTree = ""; }; 100 | 665C5B78CF078A1F53C2A3DC6EE8008E /* safari@3x.png */ = {isa = PBXFileReference; includeInIndex = 1; name = "safari@3x.png"; path = "Pod/Assets/safari@3x.png"; sourceTree = ""; }; 101 | 69F380972A7BA59944E265D9E8871C99 /* libTUSafariActivity.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = libTUSafariActivity.a; path = libTUSafariActivity.a; sourceTree = BUILT_PRODUCTS_DIR; }; 102 | 6B1BFF5984FF1B34790E7F5BA3E4330C /* zh_CN.lproj */ = {isa = PBXFileReference; includeInIndex = 1; name = zh_CN.lproj; path = Pod/Assets/zh_CN.lproj; sourceTree = ""; }; 103 | 6F21647C1BE16AFE7A9E9F41ACFDC079 /* ko.lproj */ = {isa = PBXFileReference; includeInIndex = 1; name = ko.lproj; path = Pod/Assets/ko.lproj; sourceTree = ""; }; 104 | 6FB29BCE851A5B8CD1457DD5C590F716 /* safari-7.png */ = {isa = PBXFileReference; includeInIndex = 1; name = "safari-7.png"; path = "Pod/Assets/safari-7.png"; sourceTree = ""; }; 105 | 7231EBED5ADBD0011C31F79DD395BEB1 /* es.lproj */ = {isa = PBXFileReference; includeInIndex = 1; name = es.lproj; path = Pod/Assets/es.lproj; sourceTree = ""; }; 106 | 74A666BDA99669721673C7B7F921E121 /* TUSafariActivity.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = TUSafariActivity.m; path = Pod/Classes/TUSafariActivity.m; sourceTree = ""; }; 107 | 790CDF7F535D9681385B15771EFF22DE /* ARChromeActivity.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = ARChromeActivity.m; path = ARChromeActivity/ARChromeActivity.m; sourceTree = ""; }; 108 | 87C74229D9DAA5CF4248054C7ECC4F27 /* de.lproj */ = {isa = PBXFileReference; includeInIndex = 1; name = de.lproj; path = Pod/Assets/de.lproj; sourceTree = ""; }; 109 | 88116F603A257DD75A017247593A3128 /* ResourceBundle-TUSafariActivity-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ResourceBundle-TUSafariActivity-Info.plist"; sourceTree = ""; }; 110 | 8A99CCE4F910605DAF6977F6222F62AA /* Pods-AFWebViewController-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-AFWebViewController-acknowledgements.plist"; sourceTree = ""; }; 111 | 8C7B8553DF6A0C361B1BFF4BBAE580E6 /* safari-7~iPad.png */ = {isa = PBXFileReference; includeInIndex = 1; name = "safari-7~iPad.png"; path = "Pod/Assets/safari-7~iPad.png"; sourceTree = ""; }; 112 | 914E9EF67E4408DC7DD2A700D2A571A8 /* no.lproj */ = {isa = PBXFileReference; includeInIndex = 1; name = no.lproj; path = Pod/Assets/no.lproj; sourceTree = ""; }; 113 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 114 | 95928D0FF7BC1EE9D45C7EA3D3BC4533 /* pl.lproj */ = {isa = PBXFileReference; includeInIndex = 1; name = pl.lproj; path = Pod/Assets/pl.lproj; sourceTree = ""; }; 115 | 9CE498F0CB98BE753FD01E14FA0361C9 /* ARChromeActivity.png */ = {isa = PBXFileReference; includeInIndex = 1; name = ARChromeActivity.png; path = ARChromeActivity/ARChromeActivity.png; sourceTree = ""; }; 116 | A16CD9C417D211E93607B4EB5F24CB27 /* libPods-AFWebViewController.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = "libPods-AFWebViewController.a"; path = "libPods-AFWebViewController.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 117 | A4C1E3A98836A70020D49642755077D1 /* sv.lproj */ = {isa = PBXFileReference; includeInIndex = 1; name = sv.lproj; path = Pod/Assets/sv.lproj; sourceTree = ""; }; 118 | AA1C5A23A6D190648CB60AA7915C9BB2 /* safari~iPad.png */ = {isa = PBXFileReference; includeInIndex = 1; name = "safari~iPad.png"; path = "Pod/Assets/safari~iPad.png"; sourceTree = ""; }; 119 | AAA5A4534AC5350C0C71D1CD04824118 /* ARChromeActivity~ipad.png */ = {isa = PBXFileReference; includeInIndex = 1; name = "ARChromeActivity~ipad.png"; path = "ARChromeActivity/ARChromeActivity~ipad.png"; sourceTree = ""; }; 120 | AE5CA7BFE10EF1FB891EB5ED56382DAA /* Pods-AFWebViewController-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-AFWebViewController-frameworks.sh"; sourceTree = ""; }; 121 | AF5BDBE9F7F5E59C9C937CE29A967012 /* ARChromeActivity@3x.png */ = {isa = PBXFileReference; includeInIndex = 1; name = "ARChromeActivity@3x.png"; path = "ARChromeActivity/ARChromeActivity@3x.png"; sourceTree = ""; }; 122 | C27FC7B91904887493E100D2F026D1CD /* sk.lproj */ = {isa = PBXFileReference; includeInIndex = 1; name = sk.lproj; path = Pod/Assets/sk.lproj; sourceTree = ""; }; 123 | C33D05E431F80065A6240B802FF68CF6 /* Pods-AFWebViewController-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-AFWebViewController-resources.sh"; sourceTree = ""; }; 124 | C66520FF19707BB28DFCA9FCECEABEFD /* ARChromeActivity@2x~ipad.png */ = {isa = PBXFileReference; includeInIndex = 1; name = "ARChromeActivity@2x~ipad.png"; path = "ARChromeActivity/ARChromeActivity@2x~ipad.png"; sourceTree = ""; }; 125 | C9418FD8B5C9B263E09DEDF9633220D0 /* cs.lproj */ = {isa = PBXFileReference; includeInIndex = 1; name = cs.lproj; path = Pod/Assets/cs.lproj; sourceTree = ""; }; 126 | CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 127 | CCDCC03F403827ACA2082BFB81F44E77 /* safari~iPad@2x.png */ = {isa = PBXFileReference; includeInIndex = 1; name = "safari~iPad@2x.png"; path = "Pod/Assets/safari~iPad@2x.png"; sourceTree = ""; }; 128 | D4A7C05C34A733AFB84D60376836E91C /* safari-7@2x.png */ = {isa = PBXFileReference; includeInIndex = 1; name = "safari-7@2x.png"; path = "Pod/Assets/safari-7@2x.png"; sourceTree = ""; }; 129 | DA8A40D369EF30994F8742580E7D47B3 /* TUSafariActivity-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "TUSafariActivity-dummy.m"; sourceTree = ""; }; 130 | E02B987065F8825E27057E73694F7F84 /* safari-7@3x.png */ = {isa = PBXFileReference; includeInIndex = 1; name = "safari-7@3x.png"; path = "Pod/Assets/safari-7@3x.png"; sourceTree = ""; }; 131 | F3FCA135CA116A72225DDE9B70CF5834 /* safari@2x.png */ = {isa = PBXFileReference; includeInIndex = 1; name = "safari@2x.png"; path = "Pod/Assets/safari@2x.png"; sourceTree = ""; }; 132 | F9362FB5958784C27E820403757BB852 /* ARChromeActivity.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = ARChromeActivity.xcconfig; sourceTree = ""; }; 133 | FB8FD23C4B9562348E36D9EAE8E42B27 /* pt.lproj */ = {isa = PBXFileReference; includeInIndex = 1; name = pt.lproj; path = Pod/Assets/pt.lproj; sourceTree = ""; }; 134 | FDA189CCBAB1CF41E275F09836B48E61 /* Pods-AFWebViewController.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AFWebViewController.release.xcconfig"; sourceTree = ""; }; 135 | /* End PBXFileReference section */ 136 | 137 | /* Begin PBXFrameworksBuildPhase section */ 138 | 23660FA3960569A7C839546B598ACCCD /* Frameworks */ = { 139 | isa = PBXFrameworksBuildPhase; 140 | buildActionMask = 2147483647; 141 | files = ( 142 | 1CFE873AE43A7F692698642689BDC370 /* Foundation.framework in Frameworks */, 143 | ); 144 | runOnlyForDeploymentPostprocessing = 0; 145 | }; 146 | 791B8B45A4824A7673955A65AD5445C7 /* Frameworks */ = { 147 | isa = PBXFrameworksBuildPhase; 148 | buildActionMask = 2147483647; 149 | files = ( 150 | ); 151 | runOnlyForDeploymentPostprocessing = 0; 152 | }; 153 | DB89367B6AC61EB5FFBC279E148E7FD3 /* Frameworks */ = { 154 | isa = PBXFrameworksBuildPhase; 155 | buildActionMask = 2147483647; 156 | files = ( 157 | 788AE6E8A4654F8725619368287B4840 /* Foundation.framework in Frameworks */, 158 | ); 159 | runOnlyForDeploymentPostprocessing = 0; 160 | }; 161 | ED52E0A19379850A5CA66C911092AA69 /* Frameworks */ = { 162 | isa = PBXFrameworksBuildPhase; 163 | buildActionMask = 2147483647; 164 | files = ( 165 | 72DE50A13BF4CCFB93603B911CBA458C /* Foundation.framework in Frameworks */, 166 | ); 167 | runOnlyForDeploymentPostprocessing = 0; 168 | }; 169 | /* End PBXFrameworksBuildPhase section */ 170 | 171 | /* Begin PBXGroup section */ 172 | 3581421AD556BD84ACD246D33F6C020F /* Support Files */ = { 173 | isa = PBXGroup; 174 | children = ( 175 | 88116F603A257DD75A017247593A3128 /* ResourceBundle-TUSafariActivity-Info.plist */, 176 | 23117FFDE404E66A392BDBF905D55C71 /* TUSafariActivity.xcconfig */, 177 | DA8A40D369EF30994F8742580E7D47B3 /* TUSafariActivity-dummy.m */, 178 | 1A096C5092E64C40194AF86B3F5535A6 /* TUSafariActivity-prefix.pch */, 179 | ); 180 | name = "Support Files"; 181 | path = "../Target Support Files/TUSafariActivity"; 182 | sourceTree = ""; 183 | }; 184 | 403CDB51346AEE9EF4F3C06A6F016D70 /* Products */ = { 185 | isa = PBXGroup; 186 | children = ( 187 | 6504FFE7558B95AA7D9D814BB3CDD510 /* libARChromeActivity.a */, 188 | A16CD9C417D211E93607B4EB5F24CB27 /* libPods-AFWebViewController.a */, 189 | 69F380972A7BA59944E265D9E8871C99 /* libTUSafariActivity.a */, 190 | 5463DC5CDB94DC533D3231B21DA6E1A2 /* TUSafariActivity.bundle */, 191 | ); 192 | name = Products; 193 | sourceTree = ""; 194 | }; 195 | 5207D62EA02781F901646ADAB5ADD0EB /* Support Files */ = { 196 | isa = PBXGroup; 197 | children = ( 198 | F9362FB5958784C27E820403757BB852 /* ARChromeActivity.xcconfig */, 199 | 43DF7C1B1B05FC957D4DD0F8F7CC7E2F /* ARChromeActivity-dummy.m */, 200 | 516EC720E678340FDFF96385B6DA7A21 /* ARChromeActivity-prefix.pch */, 201 | ); 202 | name = "Support Files"; 203 | path = "../Target Support Files/ARChromeActivity"; 204 | sourceTree = ""; 205 | }; 206 | 5249D97A257D15C66C5F559B383973F8 /* TUSafariActivity */ = { 207 | isa = PBXGroup; 208 | children = ( 209 | 129448662EA8054C6A63328AC5C32ACB /* TUSafariActivity.h */, 210 | 74A666BDA99669721673C7B7F921E121 /* TUSafariActivity.m */, 211 | 975E7B18F71CF663C092849227BD2C56 /* Resources */, 212 | 3581421AD556BD84ACD246D33F6C020F /* Support Files */, 213 | ); 214 | name = TUSafariActivity; 215 | path = TUSafariActivity; 216 | sourceTree = ""; 217 | }; 218 | 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */ = { 219 | isa = PBXGroup; 220 | children = ( 221 | CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */, 222 | ); 223 | name = iOS; 224 | sourceTree = ""; 225 | }; 226 | 7AD41DBD1FB59F67AF80C5E77542B585 /* Pods-AFWebViewController */ = { 227 | isa = PBXGroup; 228 | children = ( 229 | 18ADD641B11065A05638D2D2E679D108 /* Pods-AFWebViewController-acknowledgements.markdown */, 230 | 8A99CCE4F910605DAF6977F6222F62AA /* Pods-AFWebViewController-acknowledgements.plist */, 231 | 19D3F611C66736778C5FDD102A3B7BD8 /* Pods-AFWebViewController-dummy.m */, 232 | AE5CA7BFE10EF1FB891EB5ED56382DAA /* Pods-AFWebViewController-frameworks.sh */, 233 | C33D05E431F80065A6240B802FF68CF6 /* Pods-AFWebViewController-resources.sh */, 234 | 05EFFABA8B8C965865F2AF842B7C35A2 /* Pods-AFWebViewController.debug.xcconfig */, 235 | FDA189CCBAB1CF41E275F09836B48E61 /* Pods-AFWebViewController.release.xcconfig */, 236 | ); 237 | name = "Pods-AFWebViewController"; 238 | path = "Target Support Files/Pods-AFWebViewController"; 239 | sourceTree = ""; 240 | }; 241 | 7DB346D0F39D3F0E887471402A8071AB = { 242 | isa = PBXGroup; 243 | children = ( 244 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 245 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 246 | BC5003D174C8E0D3D498CFB4A3BC658F /* Pods */, 247 | 403CDB51346AEE9EF4F3C06A6F016D70 /* Products */, 248 | B9DEA37EAFEA1660F589E1A8DCCA9831 /* Targets Support Files */, 249 | ); 250 | sourceTree = ""; 251 | }; 252 | 975E7B18F71CF663C092849227BD2C56 /* Resources */ = { 253 | isa = PBXGroup; 254 | children = ( 255 | C9418FD8B5C9B263E09DEDF9633220D0 /* cs.lproj */, 256 | 87C74229D9DAA5CF4248054C7ECC4F27 /* de.lproj */, 257 | 43C9C606D28FA8AED299A6550E24E118 /* en.lproj */, 258 | 7231EBED5ADBD0011C31F79DD395BEB1 /* es.lproj */, 259 | 42DCD3B413AAC5E7C97113DE755E2D9B /* eu.lproj */, 260 | 65023A7DEBA00E7F139587966CC6E93F /* fi.lproj */, 261 | 120051BD58BDC9C1468D0A28AED513BC /* fr.lproj */, 262 | 22970BDC434D6AC64B2E0C8A2750D04E /* it.lproj */, 263 | 26295E8752E7D4639798230942EAB260 /* ja.lproj */, 264 | 6F21647C1BE16AFE7A9E9F41ACFDC079 /* ko.lproj */, 265 | 6566178CE71E59418538B5D98596ED49 /* nl.lproj */, 266 | 914E9EF67E4408DC7DD2A700D2A571A8 /* no.lproj */, 267 | 95928D0FF7BC1EE9D45C7EA3D3BC4533 /* pl.lproj */, 268 | FB8FD23C4B9562348E36D9EAE8E42B27 /* pt.lproj */, 269 | 4D5EBA6DFF9F1AEEA7B6E759637EF4D1 /* ru.lproj */, 270 | 59E040DEB1162A0C91C7CA126C9D8A56 /* safari.png */, 271 | 6FB29BCE851A5B8CD1457DD5C590F716 /* safari-7.png */, 272 | D4A7C05C34A733AFB84D60376836E91C /* safari-7@2x.png */, 273 | E02B987065F8825E27057E73694F7F84 /* safari-7@3x.png */, 274 | 8C7B8553DF6A0C361B1BFF4BBAE580E6 /* safari-7~iPad.png */, 275 | 3D25FCCB6D29D1B26304C6E396644603 /* safari-7~iPad@2x.png */, 276 | F3FCA135CA116A72225DDE9B70CF5834 /* safari@2x.png */, 277 | 665C5B78CF078A1F53C2A3DC6EE8008E /* safari@3x.png */, 278 | AA1C5A23A6D190648CB60AA7915C9BB2 /* safari~iPad.png */, 279 | CCDCC03F403827ACA2082BFB81F44E77 /* safari~iPad@2x.png */, 280 | C27FC7B91904887493E100D2F026D1CD /* sk.lproj */, 281 | A4C1E3A98836A70020D49642755077D1 /* sv.lproj */, 282 | 361C9EED03F38396825EBCFA662A6739 /* vi.lproj */, 283 | 6B1BFF5984FF1B34790E7F5BA3E4330C /* zh_CN.lproj */, 284 | ); 285 | name = Resources; 286 | sourceTree = ""; 287 | }; 288 | 99FFF282B25ED33C61D81D34BD7D4282 /* ARChromeActivity */ = { 289 | isa = PBXGroup; 290 | children = ( 291 | 4F7C6344C9CE5195975547833170897E /* ARChromeActivity.h */, 292 | 790CDF7F535D9681385B15771EFF22DE /* ARChromeActivity.m */, 293 | BE3BC82A48C17CEB53280FCF58972376 /* Resources */, 294 | 5207D62EA02781F901646ADAB5ADD0EB /* Support Files */, 295 | ); 296 | name = ARChromeActivity; 297 | path = ARChromeActivity; 298 | sourceTree = ""; 299 | }; 300 | B9DEA37EAFEA1660F589E1A8DCCA9831 /* Targets Support Files */ = { 301 | isa = PBXGroup; 302 | children = ( 303 | 7AD41DBD1FB59F67AF80C5E77542B585 /* Pods-AFWebViewController */, 304 | ); 305 | name = "Targets Support Files"; 306 | sourceTree = ""; 307 | }; 308 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 309 | isa = PBXGroup; 310 | children = ( 311 | 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */, 312 | ); 313 | name = Frameworks; 314 | sourceTree = ""; 315 | }; 316 | BC5003D174C8E0D3D498CFB4A3BC658F /* Pods */ = { 317 | isa = PBXGroup; 318 | children = ( 319 | 99FFF282B25ED33C61D81D34BD7D4282 /* ARChromeActivity */, 320 | 5249D97A257D15C66C5F559B383973F8 /* TUSafariActivity */, 321 | ); 322 | name = Pods; 323 | sourceTree = ""; 324 | }; 325 | BE3BC82A48C17CEB53280FCF58972376 /* Resources */ = { 326 | isa = PBXGroup; 327 | children = ( 328 | 9CE498F0CB98BE753FD01E14FA0361C9 /* ARChromeActivity.png */, 329 | 0C89468A27E94D37E8B38E4FADE8DE4C /* ARChromeActivity@2x.png */, 330 | C66520FF19707BB28DFCA9FCECEABEFD /* ARChromeActivity@2x~ipad.png */, 331 | AF5BDBE9F7F5E59C9C937CE29A967012 /* ARChromeActivity@3x.png */, 332 | 59613C917DF103995AA346A12776C481 /* ARChromeActivity@3x~ipad.png */, 333 | AAA5A4534AC5350C0C71D1CD04824118 /* ARChromeActivity~ipad.png */, 334 | ); 335 | name = Resources; 336 | sourceTree = ""; 337 | }; 338 | /* End PBXGroup section */ 339 | 340 | /* Begin PBXHeadersBuildPhase section */ 341 | 99584A5477F28A50C4480EC8576C6907 /* Headers */ = { 342 | isa = PBXHeadersBuildPhase; 343 | buildActionMask = 2147483647; 344 | files = ( 345 | 3342B55562921D45300A874110D4498C /* TUSafariActivity.h in Headers */, 346 | ); 347 | runOnlyForDeploymentPostprocessing = 0; 348 | }; 349 | E4FF373E7367EA943CF0D967DE2CB7B5 /* Headers */ = { 350 | isa = PBXHeadersBuildPhase; 351 | buildActionMask = 2147483647; 352 | files = ( 353 | C8521363A5F45FEF303B6FB3635FD06E /* ARChromeActivity.h in Headers */, 354 | ); 355 | runOnlyForDeploymentPostprocessing = 0; 356 | }; 357 | /* End PBXHeadersBuildPhase section */ 358 | 359 | /* Begin PBXNativeTarget section */ 360 | 344B9D4E0D61825D02C791E133E04AA5 /* ARChromeActivity */ = { 361 | isa = PBXNativeTarget; 362 | buildConfigurationList = D7C24E8E56DCEA23E563E07BAB416A35 /* Build configuration list for PBXNativeTarget "ARChromeActivity" */; 363 | buildPhases = ( 364 | 427D1CBEEBD3891C61E07848872537CD /* Sources */, 365 | DB89367B6AC61EB5FFBC279E148E7FD3 /* Frameworks */, 366 | E4FF373E7367EA943CF0D967DE2CB7B5 /* Headers */, 367 | ); 368 | buildRules = ( 369 | ); 370 | dependencies = ( 371 | ); 372 | name = ARChromeActivity; 373 | productName = ARChromeActivity; 374 | productReference = 6504FFE7558B95AA7D9D814BB3CDD510 /* libARChromeActivity.a */; 375 | productType = "com.apple.product-type.library.static"; 376 | }; 377 | DD22B323EE8D06FE95239419A33BAC5C /* Pods-AFWebViewController */ = { 378 | isa = PBXNativeTarget; 379 | buildConfigurationList = DBC65D0A3E8A2B45E9472C740546A815 /* Build configuration list for PBXNativeTarget "Pods-AFWebViewController" */; 380 | buildPhases = ( 381 | 8A8276DBC9A5540B6CC2447B0DCEC9B0 /* Sources */, 382 | 23660FA3960569A7C839546B598ACCCD /* Frameworks */, 383 | ); 384 | buildRules = ( 385 | ); 386 | dependencies = ( 387 | 8C6AFCC8B717A67D756F41678D1B4C80 /* PBXTargetDependency */, 388 | 2AEC270DDE2B844B053E0F2E3B0243D3 /* PBXTargetDependency */, 389 | ); 390 | name = "Pods-AFWebViewController"; 391 | productName = "Pods-AFWebViewController"; 392 | productReference = A16CD9C417D211E93607B4EB5F24CB27 /* libPods-AFWebViewController.a */; 393 | productType = "com.apple.product-type.library.static"; 394 | }; 395 | EDCA3435B98B59D45BAB4427207E4848 /* TUSafariActivity */ = { 396 | isa = PBXNativeTarget; 397 | buildConfigurationList = 86DBB8939928BA99B1D43CDB16C2BE36 /* Build configuration list for PBXNativeTarget "TUSafariActivity" */; 398 | buildPhases = ( 399 | 043F58CED8CA2C8B4BFEA6F6358A2483 /* Sources */, 400 | ED52E0A19379850A5CA66C911092AA69 /* Frameworks */, 401 | 99584A5477F28A50C4480EC8576C6907 /* Headers */, 402 | ); 403 | buildRules = ( 404 | ); 405 | dependencies = ( 406 | 50ED5C2EE6E662C20BF3F87286CAB45C /* PBXTargetDependency */, 407 | ); 408 | name = TUSafariActivity; 409 | productName = TUSafariActivity; 410 | productReference = 69F380972A7BA59944E265D9E8871C99 /* libTUSafariActivity.a */; 411 | productType = "com.apple.product-type.library.static"; 412 | }; 413 | FD56F78E388FBF698BB7695F1D1887A5 /* TUSafariActivity-TUSafariActivity */ = { 414 | isa = PBXNativeTarget; 415 | buildConfigurationList = 3017A9E14B696F91DD81C271DBA7FADD /* Build configuration list for PBXNativeTarget "TUSafariActivity-TUSafariActivity" */; 416 | buildPhases = ( 417 | 9192376D9C233FAB44A8832A30BC0F52 /* Sources */, 418 | 791B8B45A4824A7673955A65AD5445C7 /* Frameworks */, 419 | 61F68D9D2C19DFEE5944675505C17963 /* Resources */, 420 | ); 421 | buildRules = ( 422 | ); 423 | dependencies = ( 424 | ); 425 | name = "TUSafariActivity-TUSafariActivity"; 426 | productName = "TUSafariActivity-TUSafariActivity"; 427 | productReference = 5463DC5CDB94DC533D3231B21DA6E1A2 /* TUSafariActivity.bundle */; 428 | productType = "com.apple.product-type.bundle"; 429 | }; 430 | /* End PBXNativeTarget section */ 431 | 432 | /* Begin PBXProject section */ 433 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 434 | isa = PBXProject; 435 | attributes = { 436 | LastSwiftUpdateCheck = 0730; 437 | LastUpgradeCheck = 0700; 438 | }; 439 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 440 | compatibilityVersion = "Xcode 3.2"; 441 | developmentRegion = English; 442 | hasScannedForEncodings = 0; 443 | knownRegions = ( 444 | en, 445 | ); 446 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 447 | productRefGroup = 403CDB51346AEE9EF4F3C06A6F016D70 /* Products */; 448 | projectDirPath = ""; 449 | projectRoot = ""; 450 | targets = ( 451 | 344B9D4E0D61825D02C791E133E04AA5 /* ARChromeActivity */, 452 | DD22B323EE8D06FE95239419A33BAC5C /* Pods-AFWebViewController */, 453 | EDCA3435B98B59D45BAB4427207E4848 /* TUSafariActivity */, 454 | FD56F78E388FBF698BB7695F1D1887A5 /* TUSafariActivity-TUSafariActivity */, 455 | ); 456 | }; 457 | /* End PBXProject section */ 458 | 459 | /* Begin PBXResourcesBuildPhase section */ 460 | 61F68D9D2C19DFEE5944675505C17963 /* Resources */ = { 461 | isa = PBXResourcesBuildPhase; 462 | buildActionMask = 2147483647; 463 | files = ( 464 | 4666AD684575FB84D87A6DAF8E35615B /* cs.lproj in Resources */, 465 | 46F7E03F1DCCB8FC5B00AD7F21296CE0 /* de.lproj in Resources */, 466 | A38C59E15F6A73BEAFE695AA99C07FAA /* en.lproj in Resources */, 467 | D523DB12003B56BF204A4094E33CF1B0 /* es.lproj in Resources */, 468 | F258993CD08B98F34A8981A11815AEE7 /* eu.lproj in Resources */, 469 | E00C8A0420B4574F180E5F37B733EDB0 /* fi.lproj in Resources */, 470 | 12257F9FB94B296908B717D0C1612B2E /* fr.lproj in Resources */, 471 | 1CF39189AB5D2C72E84966E8A80F072C /* it.lproj in Resources */, 472 | 00FCA478846202BDCDDAD6B3993F85FB /* ja.lproj in Resources */, 473 | D429FCBD0E6671552EEE1DAA90C8FA40 /* ko.lproj in Resources */, 474 | 2993F8EE44EDA97ABF5940E4EC42681F /* nl.lproj in Resources */, 475 | 6B05BE7A659FF77A02A05AE59E50D0AB /* no.lproj in Resources */, 476 | 0C03986EA84D06348F1F0727B2B07765 /* pl.lproj in Resources */, 477 | 3C2E45A2DB543ABCAEECC514666FD103 /* pt.lproj in Resources */, 478 | 3B0CD33350998DBB3BB30D809D10EDCF /* ru.lproj in Resources */, 479 | 9AB2E9BFB6D6B9D94AAACC81C2C67783 /* safari-7.png in Resources */, 480 | FF37BCDD777DC31FFB7FBFBC03640233 /* safari-7@2x.png in Resources */, 481 | 6526937957FCE2A26B9040754A33EFAF /* safari-7@3x.png in Resources */, 482 | 4673427074467DFD300946B42E7902D0 /* safari-7~iPad.png in Resources */, 483 | 33051A192F0F4621E2E9AC406FB8E554 /* safari-7~iPad@2x.png in Resources */, 484 | 6549C91EAED7C0684907EC75046FB4DA /* safari.png in Resources */, 485 | E01AF8FF26977BA1EC96A36EBED57D38 /* safari@2x.png in Resources */, 486 | DA88BF24B780166863C41507940C41E5 /* safari@3x.png in Resources */, 487 | 55F6A93A18A3AB3BEFEACA1E7B3B692F /* safari~iPad.png in Resources */, 488 | 2590D29A9287BF42ABE321D79759656E /* safari~iPad@2x.png in Resources */, 489 | 2BF74BE8D9A32235258C2240380DC52B /* sk.lproj in Resources */, 490 | 649E3F2F38A2226D4C7044FC59DE7918 /* sv.lproj in Resources */, 491 | 0F8C1966CA2BD534D6D31E8713B563C9 /* vi.lproj in Resources */, 492 | 03D6103100C0A0C04ACEE84C3ACA41F2 /* zh_CN.lproj in Resources */, 493 | ); 494 | runOnlyForDeploymentPostprocessing = 0; 495 | }; 496 | /* End PBXResourcesBuildPhase section */ 497 | 498 | /* Begin PBXSourcesBuildPhase section */ 499 | 043F58CED8CA2C8B4BFEA6F6358A2483 /* Sources */ = { 500 | isa = PBXSourcesBuildPhase; 501 | buildActionMask = 2147483647; 502 | files = ( 503 | D94E5F41D535318FC3B3856B66D6341B /* TUSafariActivity-dummy.m in Sources */, 504 | B0C63D365B25D4577D71493091A8BEEA /* TUSafariActivity.m in Sources */, 505 | ); 506 | runOnlyForDeploymentPostprocessing = 0; 507 | }; 508 | 427D1CBEEBD3891C61E07848872537CD /* Sources */ = { 509 | isa = PBXSourcesBuildPhase; 510 | buildActionMask = 2147483647; 511 | files = ( 512 | 116640393E42828EDE59B03EBBF19547 /* ARChromeActivity-dummy.m in Sources */, 513 | DB76A477BDB19D8B64663DB595F3DEC7 /* ARChromeActivity.m in Sources */, 514 | ); 515 | runOnlyForDeploymentPostprocessing = 0; 516 | }; 517 | 8A8276DBC9A5540B6CC2447B0DCEC9B0 /* Sources */ = { 518 | isa = PBXSourcesBuildPhase; 519 | buildActionMask = 2147483647; 520 | files = ( 521 | 124825B286BCD8887C038B99CBA29487 /* Pods-AFWebViewController-dummy.m in Sources */, 522 | ); 523 | runOnlyForDeploymentPostprocessing = 0; 524 | }; 525 | 9192376D9C233FAB44A8832A30BC0F52 /* Sources */ = { 526 | isa = PBXSourcesBuildPhase; 527 | buildActionMask = 2147483647; 528 | files = ( 529 | ); 530 | runOnlyForDeploymentPostprocessing = 0; 531 | }; 532 | /* End PBXSourcesBuildPhase section */ 533 | 534 | /* Begin PBXTargetDependency section */ 535 | 2AEC270DDE2B844B053E0F2E3B0243D3 /* PBXTargetDependency */ = { 536 | isa = PBXTargetDependency; 537 | name = TUSafariActivity; 538 | target = EDCA3435B98B59D45BAB4427207E4848 /* TUSafariActivity */; 539 | targetProxy = 8A8D42CB8C302659872CAA0E24D3A927 /* PBXContainerItemProxy */; 540 | }; 541 | 50ED5C2EE6E662C20BF3F87286CAB45C /* PBXTargetDependency */ = { 542 | isa = PBXTargetDependency; 543 | name = "TUSafariActivity-TUSafariActivity"; 544 | target = FD56F78E388FBF698BB7695F1D1887A5 /* TUSafariActivity-TUSafariActivity */; 545 | targetProxy = B51AAFF745D7A46C86AB2F9EA70BA60C /* PBXContainerItemProxy */; 546 | }; 547 | 8C6AFCC8B717A67D756F41678D1B4C80 /* PBXTargetDependency */ = { 548 | isa = PBXTargetDependency; 549 | name = ARChromeActivity; 550 | target = 344B9D4E0D61825D02C791E133E04AA5 /* ARChromeActivity */; 551 | targetProxy = 7272EC698839FF7810EFC69B041D124E /* PBXContainerItemProxy */; 552 | }; 553 | /* End PBXTargetDependency section */ 554 | 555 | /* Begin XCBuildConfiguration section */ 556 | 011FDC226BBC0B58F8D780968515669E /* Release */ = { 557 | isa = XCBuildConfiguration; 558 | baseConfigurationReference = 23117FFDE404E66A392BDBF905D55C71 /* TUSafariActivity.xcconfig */; 559 | buildSettings = { 560 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 561 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 562 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 563 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 564 | ENABLE_STRICT_OBJC_MSGSEND = YES; 565 | GCC_NO_COMMON_BLOCKS = YES; 566 | GCC_PREFIX_HEADER = "Target Support Files/TUSafariActivity/TUSafariActivity-prefix.pch"; 567 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 568 | MTL_ENABLE_DEBUG_INFO = NO; 569 | OTHER_LDFLAGS = ""; 570 | OTHER_LIBTOOLFLAGS = ""; 571 | PRIVATE_HEADERS_FOLDER_PATH = ""; 572 | PRODUCT_NAME = "$(TARGET_NAME)"; 573 | PUBLIC_HEADERS_FOLDER_PATH = ""; 574 | SDKROOT = iphoneos; 575 | SKIP_INSTALL = YES; 576 | }; 577 | name = Release; 578 | }; 579 | 015A368F878AC3E2CEAE21DDE8026304 /* Debug */ = { 580 | isa = XCBuildConfiguration; 581 | buildSettings = { 582 | ALWAYS_SEARCH_USER_PATHS = NO; 583 | CLANG_ANALYZER_NONNULL = YES; 584 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 585 | CLANG_CXX_LIBRARY = "libc++"; 586 | CLANG_ENABLE_MODULES = YES; 587 | CLANG_ENABLE_OBJC_ARC = YES; 588 | CLANG_WARN_BOOL_CONVERSION = YES; 589 | CLANG_WARN_CONSTANT_CONVERSION = YES; 590 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 591 | CLANG_WARN_EMPTY_BODY = YES; 592 | CLANG_WARN_ENUM_CONVERSION = YES; 593 | CLANG_WARN_INT_CONVERSION = YES; 594 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 595 | CLANG_WARN_UNREACHABLE_CODE = YES; 596 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 597 | CODE_SIGNING_REQUIRED = NO; 598 | COPY_PHASE_STRIP = NO; 599 | ENABLE_TESTABILITY = YES; 600 | GCC_C_LANGUAGE_STANDARD = gnu99; 601 | GCC_DYNAMIC_NO_PIC = NO; 602 | GCC_OPTIMIZATION_LEVEL = 0; 603 | GCC_PREPROCESSOR_DEFINITIONS = ( 604 | "POD_CONFIGURATION_DEBUG=1", 605 | "DEBUG=1", 606 | "$(inherited)", 607 | ); 608 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 609 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 610 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 611 | GCC_WARN_UNDECLARED_SELECTOR = YES; 612 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 613 | GCC_WARN_UNUSED_FUNCTION = YES; 614 | GCC_WARN_UNUSED_VARIABLE = YES; 615 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 616 | ONLY_ACTIVE_ARCH = YES; 617 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 618 | STRIP_INSTALLED_PRODUCT = NO; 619 | SYMROOT = "${SRCROOT}/../build"; 620 | }; 621 | name = Debug; 622 | }; 623 | 0AB03394AF3BE59A8D9EB1CACBF28858 /* Debug */ = { 624 | isa = XCBuildConfiguration; 625 | baseConfigurationReference = 23117FFDE404E66A392BDBF905D55C71 /* TUSafariActivity.xcconfig */; 626 | buildSettings = { 627 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 628 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 629 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 630 | DEBUG_INFORMATION_FORMAT = dwarf; 631 | ENABLE_STRICT_OBJC_MSGSEND = YES; 632 | GCC_NO_COMMON_BLOCKS = YES; 633 | GCC_PREFIX_HEADER = "Target Support Files/TUSafariActivity/TUSafariActivity-prefix.pch"; 634 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 635 | MTL_ENABLE_DEBUG_INFO = YES; 636 | OTHER_LDFLAGS = ""; 637 | OTHER_LIBTOOLFLAGS = ""; 638 | PRIVATE_HEADERS_FOLDER_PATH = ""; 639 | PRODUCT_NAME = "$(TARGET_NAME)"; 640 | PUBLIC_HEADERS_FOLDER_PATH = ""; 641 | SDKROOT = iphoneos; 642 | SKIP_INSTALL = YES; 643 | }; 644 | name = Debug; 645 | }; 646 | 44CDBB6D11DE06DB64D6268622BDC47E /* Release */ = { 647 | isa = XCBuildConfiguration; 648 | buildSettings = { 649 | ALWAYS_SEARCH_USER_PATHS = NO; 650 | CLANG_ANALYZER_NONNULL = YES; 651 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 652 | CLANG_CXX_LIBRARY = "libc++"; 653 | CLANG_ENABLE_MODULES = YES; 654 | CLANG_ENABLE_OBJC_ARC = YES; 655 | CLANG_WARN_BOOL_CONVERSION = YES; 656 | CLANG_WARN_CONSTANT_CONVERSION = YES; 657 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 658 | CLANG_WARN_EMPTY_BODY = YES; 659 | CLANG_WARN_ENUM_CONVERSION = YES; 660 | CLANG_WARN_INT_CONVERSION = YES; 661 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 662 | CLANG_WARN_UNREACHABLE_CODE = YES; 663 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 664 | CODE_SIGNING_REQUIRED = NO; 665 | COPY_PHASE_STRIP = YES; 666 | ENABLE_NS_ASSERTIONS = NO; 667 | GCC_C_LANGUAGE_STANDARD = gnu99; 668 | GCC_PREPROCESSOR_DEFINITIONS = ( 669 | "POD_CONFIGURATION_RELEASE=1", 670 | "$(inherited)", 671 | ); 672 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 673 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 674 | GCC_WARN_UNDECLARED_SELECTOR = YES; 675 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 676 | GCC_WARN_UNUSED_FUNCTION = YES; 677 | GCC_WARN_UNUSED_VARIABLE = YES; 678 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 679 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 680 | STRIP_INSTALLED_PRODUCT = NO; 681 | SYMROOT = "${SRCROOT}/../build"; 682 | VALIDATE_PRODUCT = YES; 683 | }; 684 | name = Release; 685 | }; 686 | 4816A1B1447D2225246301C6A5412CCC /* Release */ = { 687 | isa = XCBuildConfiguration; 688 | baseConfigurationReference = FDA189CCBAB1CF41E275F09836B48E61 /* Pods-AFWebViewController.release.xcconfig */; 689 | buildSettings = { 690 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 691 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 692 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 693 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 694 | ENABLE_STRICT_OBJC_MSGSEND = YES; 695 | GCC_NO_COMMON_BLOCKS = YES; 696 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 697 | MACH_O_TYPE = staticlib; 698 | MTL_ENABLE_DEBUG_INFO = NO; 699 | OTHER_LDFLAGS = ""; 700 | OTHER_LIBTOOLFLAGS = ""; 701 | PODS_ROOT = "$(SRCROOT)"; 702 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 703 | PRODUCT_NAME = "$(TARGET_NAME)"; 704 | SDKROOT = iphoneos; 705 | SKIP_INSTALL = YES; 706 | }; 707 | name = Release; 708 | }; 709 | 94A02EB30C08D42D39C1A21426BD1A67 /* Debug */ = { 710 | isa = XCBuildConfiguration; 711 | baseConfigurationReference = 05EFFABA8B8C965865F2AF842B7C35A2 /* Pods-AFWebViewController.debug.xcconfig */; 712 | buildSettings = { 713 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 714 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 715 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 716 | DEBUG_INFORMATION_FORMAT = dwarf; 717 | ENABLE_STRICT_OBJC_MSGSEND = YES; 718 | GCC_NO_COMMON_BLOCKS = YES; 719 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 720 | MACH_O_TYPE = staticlib; 721 | MTL_ENABLE_DEBUG_INFO = YES; 722 | OTHER_LDFLAGS = ""; 723 | OTHER_LIBTOOLFLAGS = ""; 724 | PODS_ROOT = "$(SRCROOT)"; 725 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 726 | PRODUCT_NAME = "$(TARGET_NAME)"; 727 | SDKROOT = iphoneos; 728 | SKIP_INSTALL = YES; 729 | }; 730 | name = Debug; 731 | }; 732 | B651B3583EB3BD46CC001455B83D480C /* Debug */ = { 733 | isa = XCBuildConfiguration; 734 | baseConfigurationReference = F9362FB5958784C27E820403757BB852 /* ARChromeActivity.xcconfig */; 735 | buildSettings = { 736 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 737 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 738 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 739 | DEBUG_INFORMATION_FORMAT = dwarf; 740 | ENABLE_STRICT_OBJC_MSGSEND = YES; 741 | GCC_NO_COMMON_BLOCKS = YES; 742 | GCC_PREFIX_HEADER = "Target Support Files/ARChromeActivity/ARChromeActivity-prefix.pch"; 743 | IPHONEOS_DEPLOYMENT_TARGET = 5.0; 744 | MTL_ENABLE_DEBUG_INFO = YES; 745 | OTHER_LDFLAGS = ""; 746 | OTHER_LIBTOOLFLAGS = ""; 747 | PRIVATE_HEADERS_FOLDER_PATH = ""; 748 | PRODUCT_NAME = "$(TARGET_NAME)"; 749 | PUBLIC_HEADERS_FOLDER_PATH = ""; 750 | SDKROOT = iphoneos; 751 | SKIP_INSTALL = YES; 752 | }; 753 | name = Debug; 754 | }; 755 | E5FFAE1D04B03863C1A6D9F2600D9FDB /* Debug */ = { 756 | isa = XCBuildConfiguration; 757 | baseConfigurationReference = 23117FFDE404E66A392BDBF905D55C71 /* TUSafariActivity.xcconfig */; 758 | buildSettings = { 759 | CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/TUSafariActivity"; 760 | ENABLE_STRICT_OBJC_MSGSEND = YES; 761 | GCC_NO_COMMON_BLOCKS = YES; 762 | INFOPLIST_FILE = "Target Support Files/TUSafariActivity/ResourceBundle-TUSafariActivity-Info.plist"; 763 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 764 | PRODUCT_NAME = TUSafariActivity; 765 | SDKROOT = iphoneos; 766 | SKIP_INSTALL = YES; 767 | TARGETED_DEVICE_FAMILY = "1,2"; 768 | WRAPPER_EXTENSION = bundle; 769 | }; 770 | name = Debug; 771 | }; 772 | F82EAA52101AD3C68CC86DDA0798C91E /* Release */ = { 773 | isa = XCBuildConfiguration; 774 | baseConfigurationReference = F9362FB5958784C27E820403757BB852 /* ARChromeActivity.xcconfig */; 775 | buildSettings = { 776 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 777 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 778 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 779 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 780 | ENABLE_STRICT_OBJC_MSGSEND = YES; 781 | GCC_NO_COMMON_BLOCKS = YES; 782 | GCC_PREFIX_HEADER = "Target Support Files/ARChromeActivity/ARChromeActivity-prefix.pch"; 783 | IPHONEOS_DEPLOYMENT_TARGET = 5.0; 784 | MTL_ENABLE_DEBUG_INFO = NO; 785 | OTHER_LDFLAGS = ""; 786 | OTHER_LIBTOOLFLAGS = ""; 787 | PRIVATE_HEADERS_FOLDER_PATH = ""; 788 | PRODUCT_NAME = "$(TARGET_NAME)"; 789 | PUBLIC_HEADERS_FOLDER_PATH = ""; 790 | SDKROOT = iphoneos; 791 | SKIP_INSTALL = YES; 792 | }; 793 | name = Release; 794 | }; 795 | FDA73794B2032DB759950297527436C1 /* Release */ = { 796 | isa = XCBuildConfiguration; 797 | baseConfigurationReference = 23117FFDE404E66A392BDBF905D55C71 /* TUSafariActivity.xcconfig */; 798 | buildSettings = { 799 | CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/TUSafariActivity"; 800 | ENABLE_STRICT_OBJC_MSGSEND = YES; 801 | GCC_NO_COMMON_BLOCKS = YES; 802 | INFOPLIST_FILE = "Target Support Files/TUSafariActivity/ResourceBundle-TUSafariActivity-Info.plist"; 803 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 804 | PRODUCT_NAME = TUSafariActivity; 805 | SDKROOT = iphoneos; 806 | SKIP_INSTALL = YES; 807 | TARGETED_DEVICE_FAMILY = "1,2"; 808 | WRAPPER_EXTENSION = bundle; 809 | }; 810 | name = Release; 811 | }; 812 | /* End XCBuildConfiguration section */ 813 | 814 | /* Begin XCConfigurationList section */ 815 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 816 | isa = XCConfigurationList; 817 | buildConfigurations = ( 818 | 015A368F878AC3E2CEAE21DDE8026304 /* Debug */, 819 | 44CDBB6D11DE06DB64D6268622BDC47E /* Release */, 820 | ); 821 | defaultConfigurationIsVisible = 0; 822 | defaultConfigurationName = Release; 823 | }; 824 | 3017A9E14B696F91DD81C271DBA7FADD /* Build configuration list for PBXNativeTarget "TUSafariActivity-TUSafariActivity" */ = { 825 | isa = XCConfigurationList; 826 | buildConfigurations = ( 827 | E5FFAE1D04B03863C1A6D9F2600D9FDB /* Debug */, 828 | FDA73794B2032DB759950297527436C1 /* Release */, 829 | ); 830 | defaultConfigurationIsVisible = 0; 831 | defaultConfigurationName = Release; 832 | }; 833 | 86DBB8939928BA99B1D43CDB16C2BE36 /* Build configuration list for PBXNativeTarget "TUSafariActivity" */ = { 834 | isa = XCConfigurationList; 835 | buildConfigurations = ( 836 | 0AB03394AF3BE59A8D9EB1CACBF28858 /* Debug */, 837 | 011FDC226BBC0B58F8D780968515669E /* Release */, 838 | ); 839 | defaultConfigurationIsVisible = 0; 840 | defaultConfigurationName = Release; 841 | }; 842 | D7C24E8E56DCEA23E563E07BAB416A35 /* Build configuration list for PBXNativeTarget "ARChromeActivity" */ = { 843 | isa = XCConfigurationList; 844 | buildConfigurations = ( 845 | B651B3583EB3BD46CC001455B83D480C /* Debug */, 846 | F82EAA52101AD3C68CC86DDA0798C91E /* Release */, 847 | ); 848 | defaultConfigurationIsVisible = 0; 849 | defaultConfigurationName = Release; 850 | }; 851 | DBC65D0A3E8A2B45E9472C740546A815 /* Build configuration list for PBXNativeTarget "Pods-AFWebViewController" */ = { 852 | isa = XCConfigurationList; 853 | buildConfigurations = ( 854 | 94A02EB30C08D42D39C1A21426BD1A67 /* Debug */, 855 | 4816A1B1447D2225246301C6A5412CCC /* Release */, 856 | ); 857 | defaultConfigurationIsVisible = 0; 858 | defaultConfigurationName = Release; 859 | }; 860 | /* End XCConfigurationList section */ 861 | }; 862 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 863 | } 864 | -------------------------------------------------------------------------------- /Pods/TUSafariActivity/LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012 ThinkUltimate (http://thinkultimate.com). 2 | 3 | http://github.com/davbeck/TUSafariActivity 4 | 5 | Redistribution and use in source and binary forms, with or without modification, 6 | are permitted provided that the following conditions are met: 7 | 8 | - Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | - Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 15 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 16 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17 | IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 18 | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 19 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 21 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 22 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 23 | OF THE POSSIBILITY OF SUCH DAMAGE. 24 | -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/cs.lproj/TUSafariActivity.strings: -------------------------------------------------------------------------------- 1 | "Open in Safari" = "Otevřít v Safari"; -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/de.lproj/TUSafariActivity.strings: -------------------------------------------------------------------------------- 1 | "Open in Safari" = "In Safari öffnen"; -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/en.lproj/TUSafariActivity.strings: -------------------------------------------------------------------------------- 1 | "Open in Safari" = "Open in Safari"; -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/es.lproj/TUSafariActivity.strings: -------------------------------------------------------------------------------- 1 | "Open in Safari" = "Abrir en Safari"; -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/eu.lproj/TUSafariActivity.strings: -------------------------------------------------------------------------------- 1 | "Open in Safari" = "Safarin ireki"; -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/fi.lproj/TUSafariActivity.strings: -------------------------------------------------------------------------------- 1 | "Open in Safari" = "Avaa Safarissa"; -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/fr.lproj/TUSafariActivity.strings: -------------------------------------------------------------------------------- 1 | "Open in Safari" = "Ouvrir dans Safari"; -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/it.lproj/TUSafariActivity.strings: -------------------------------------------------------------------------------- 1 | "Open in Safari" = "Apri in Safari"; -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/ja.lproj/TUSafariActivity.strings: -------------------------------------------------------------------------------- 1 | "Open in Safari" = "Safariで開く"; -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/ko.lproj/TUSafariActivity.strings: -------------------------------------------------------------------------------- 1 | "Open in Safari" = "Safari로 열기"; -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/nl.lproj/TUSafariActivity.strings: -------------------------------------------------------------------------------- 1 | "Open in Safari" = "Open in Safari"; -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/no.lproj/TUSafariActivity.strings: -------------------------------------------------------------------------------- 1 | "Open in Safari" = "Åpne i Safari"; -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/pl.lproj/TUSafariActivity.strings: -------------------------------------------------------------------------------- 1 | "Open in Safari" = "Otwórz w Safari"; -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/pt.lproj/TUSafariActivity.strings: -------------------------------------------------------------------------------- 1 | "Open in Safari" = "Abrir no Safari"; -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/ru.lproj/TUSafariActivity.strings: -------------------------------------------------------------------------------- 1 | "Open in Safari" = "Открыть в Safari"; -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/safari-7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/Pods/TUSafariActivity/Pod/Assets/safari-7.png -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/safari-7@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/Pods/TUSafariActivity/Pod/Assets/safari-7@2x.png -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/safari-7@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/Pods/TUSafariActivity/Pod/Assets/safari-7@3x.png -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/safari-7~iPad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/Pods/TUSafariActivity/Pod/Assets/safari-7~iPad.png -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/safari-7~iPad@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/Pods/TUSafariActivity/Pod/Assets/safari-7~iPad@2x.png -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/safari.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/Pods/TUSafariActivity/Pod/Assets/safari.png -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/safari@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/Pods/TUSafariActivity/Pod/Assets/safari@2x.png -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/safari@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/Pods/TUSafariActivity/Pod/Assets/safari@3x.png -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/safari~iPad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/Pods/TUSafariActivity/Pod/Assets/safari~iPad.png -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/safari~iPad@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/Pods/TUSafariActivity/Pod/Assets/safari~iPad@2x.png -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/sk.lproj/TUSafariActivity.strings: -------------------------------------------------------------------------------- 1 | "Open in Safari" = "Otvoriť v Safari"; -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/sv.lproj/TUSafariActivity.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/Pods/TUSafariActivity/Pod/Assets/sv.lproj/TUSafariActivity.strings -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/vi.lproj/TUSafariActivity.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Fogh/AFWebViewController/d94c817baab4c51b63fbdda7c44fb7f60399732b/Pods/TUSafariActivity/Pod/Assets/vi.lproj/TUSafariActivity.strings -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Assets/zh_CN.lproj/TUSafariActivity.strings: -------------------------------------------------------------------------------- 1 | "Open in Safari" = "在 Safari 中打开"; -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Classes/TUSafariActivity.h: -------------------------------------------------------------------------------- 1 | // 2 | // TUSafariActivity.h 3 | // 4 | // Created by David Beck on 11/30/12. 5 | // Copyright (c) 2012 ThinkUltimate. All rights reserved. 6 | // 7 | // http://github.com/davbeck/TUSafariActivity 8 | // 9 | // Redistribution and use in source and binary forms, with or without modification, 10 | // are permitted provided that the following conditions are met: 11 | // 12 | // - Redistributions of source code must retain the above copyright notice, 13 | // this list of conditions and the following disclaimer. 14 | // - Redistributions in binary form must reproduce the above copyright notice, 15 | // this list of conditions and the following disclaimer in the documentation 16 | // and/or other materials provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 19 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 21 | // IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 22 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 23 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 25 | // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 26 | // OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 27 | // OF THE POSSIBILITY OF SUCH DAMAGE. 28 | // 29 | 30 | #import 31 | 32 | @interface TUSafariActivity : UIActivity 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /Pods/TUSafariActivity/Pod/Classes/TUSafariActivity.m: -------------------------------------------------------------------------------- 1 | // 2 | // TUSafariActivity.h 3 | // 4 | // Created by David Beck on 11/30/12. 5 | // Copyright (c) 2012 ThinkUltimate. All rights reserved. 6 | // 7 | // http://github.com/davbeck/TUSafariActivity 8 | // 9 | // Redistribution and use in source and binary forms, with or without modification, 10 | // are permitted provided that the following conditions are met: 11 | // 12 | // - Redistributions of source code must retain the above copyright notice, 13 | // this list of conditions and the following disclaimer. 14 | // - Redistributions in binary form must reproduce the above copyright notice, 15 | // this list of conditions and the following disclaimer in the documentation 16 | // and/or other materials provided with the distribution. 17 | // 18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 19 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 21 | // IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 22 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 23 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 25 | // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 26 | // OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 27 | // OF THE POSSIBILITY OF SUCH DAMAGE. 28 | // 29 | 30 | #import "TUSafariActivity.h" 31 | 32 | 33 | @implementation TUSafariActivity 34 | { 35 | NSURL *_URL; 36 | } 37 | 38 | - (NSString *)activityType 39 | { 40 | return NSStringFromClass([self class]); 41 | } 42 | 43 | - (NSString *)activityTitle 44 | { 45 | NSURL *resourcesURL = [[NSBundle bundleForClass:self.class] URLForResource:@"TUSafariActivity" withExtension:@"bundle"]; 46 | NSBundle *bundle = [NSBundle bundleWithURL:resourcesURL]; 47 | NSString *defaultString = [bundle localizedStringForKey:@"Open in Safari" value:@"Open in Safari" table:@"TUSafariActivity"]; 48 | 49 | return [[NSBundle mainBundle] localizedStringForKey:@"Open in Safari" value:defaultString table:nil]; 50 | } 51 | 52 | - (UIImage *)activityImage 53 | { 54 | if ([UIImage respondsToSelector:@selector(imageNamed:inBundle:compatibleWithTraitCollection:)]) { 55 | return [UIImage imageNamed:@"TUSafariActivity.bundle/safari" inBundle:[NSBundle bundleForClass:self.class] compatibleWithTraitCollection:nil]; 56 | } else { 57 | // because pre iOS 8 doesn't allow embeded frameworks, our bundle will always be the main bundle 58 | return [UIImage imageNamed:@"TUSafariActivity.bundle/safari-7"]; 59 | } 60 | } 61 | 62 | - (BOOL)canPerformWithActivityItems:(NSArray *)activityItems 63 | { 64 | for (id activityItem in activityItems) { 65 | if ([activityItem isKindOfClass:[NSURL class]] && [[UIApplication sharedApplication] canOpenURL:activityItem]) { 66 | return YES; 67 | } 68 | } 69 | 70 | return NO; 71 | } 72 | 73 | - (void)prepareWithActivityItems:(NSArray *)activityItems 74 | { 75 | for (id activityItem in activityItems) { 76 | if ([activityItem isKindOfClass:[NSURL class]]) { 77 | _URL = activityItem; 78 | } 79 | } 80 | } 81 | 82 | - (void)performActivity 83 | { 84 | BOOL completed = [[UIApplication sharedApplication] openURL:_URL]; 85 | 86 | [self activityDidFinish:completed]; 87 | } 88 | 89 | @end 90 | -------------------------------------------------------------------------------- /Pods/TUSafariActivity/README.md: -------------------------------------------------------------------------------- 1 | # TUSafariActivity 2 | 3 | [![Version](https://img.shields.io/cocoapods/v/TUSafariActivity.svg?style=flat)](http://cocoadocs.org/docsets/TUSafariActivity) 4 | [![License](https://img.shields.io/cocoapods/l/TUSafariActivity.svg?style=flat)](http://cocoadocs.org/docsets/TUSafariActivity) 5 | [![Platform](https://img.shields.io/cocoapods/p/TUSafariActivity.svg?style=flat)](http://cocoadocs.org/docsets/TUSafariActivity) 6 | 7 | `TUSafariActivity` is a `UIActivity` subclass that provides an "Open In Safari" action to a `UIActivityViewController`. 8 | 9 | ![TUSafariActivity screenshot](http://cl.ly/image/2i0n0H3f2g1X/TUSafariActivity.png "TUSafariActivity screenshot") 10 | 11 | ## Installation 12 | 13 | ### CocoaPods 14 | 15 | TUSafariActivity is available through [CocoaPods](http://cocoapods.org). To install 16 | it, simply add the following line to your Podfile: 17 | 18 | pod 'TUSafariActivity', '~> 1.0' 19 | 20 | ## Usage 21 | 22 | *(See example Xcode project)* 23 | 24 | Simply `alloc`/`init` an instance of `TUSafariActivity` and pass that object into the applicationActivities array when creating a `UIActivityViewController`. 25 | 26 | ### Objective-C 27 | 28 | ```objectivec 29 | NSURL *URL = [NSURL URLWithString:@"http://google.com"]; 30 | TUSafariActivity *activity = [[TUSafariActivity alloc] init]; 31 | UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:@[URL] applicationActivities:@[activity]]; 32 | ``` 33 | 34 | ### Swift 35 | 36 | ```swift 37 | let URL = NSURL(string: "http://google.com")! 38 | let activity = TUSafariActivity() 39 | let activityViewController = UIActivityViewController(activityItems: [URL], applicationActivities: [activity]) 40 | ``` 41 | 42 | Note that you can include the activity in any `UIActivityViewController` and it will only be shown to the user if there is a URL in the activity items. -------------------------------------------------------------------------------- /Pods/Target Support Files/ARChromeActivity/ARChromeActivity-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_ARChromeActivity : NSObject 3 | @end 4 | @implementation PodsDummy_ARChromeActivity 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/ARChromeActivity/ARChromeActivity-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Pods/Target Support Files/ARChromeActivity/ARChromeActivity.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/ARChromeActivity 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/ARChromeActivity" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/ARChromeActivity" "${PODS_ROOT}/Headers/Public/TUSafariActivity" 4 | PODS_BUILD_DIR = $BUILD_DIR 5 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 8 | SKIP_INSTALL = YES 9 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AFWebViewController/Pods-AFWebViewController-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## ARChromeActivity 5 | 6 | ARChromeActivity 7 | Copyright (c) 2012 Alex Robinson 8 | 9 | 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: 10 | 11 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 12 | 13 | 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. 14 | 15 | 16 | ## TUSafariActivity 17 | 18 | Copyright (c) 2012 ThinkUltimate (http://thinkultimate.com). 19 | 20 | http://github.com/davbeck/TUSafariActivity 21 | 22 | Redistribution and use in source and binary forms, with or without modification, 23 | are permitted provided that the following conditions are met: 24 | 25 | - Redistributions of source code must retain the above copyright notice, 26 | this list of conditions and the following disclaimer. 27 | - Redistributions in binary form must reproduce the above copyright notice, 28 | this list of conditions and the following disclaimer in the documentation 29 | and/or other materials provided with the distribution. 30 | 31 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 32 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 33 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 34 | IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 35 | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 36 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 37 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 38 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 39 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 40 | OF THE POSSIBILITY OF SUCH DAMAGE. 41 | 42 | Generated by CocoaPods - https://cocoapods.org 43 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AFWebViewController/Pods-AFWebViewController-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | ARChromeActivity 18 | Copyright (c) 2012 Alex Robinson 19 | 20 | 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: 21 | 22 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 23 | 24 | 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. 25 | 26 | License 27 | MIT 28 | Title 29 | ARChromeActivity 30 | Type 31 | PSGroupSpecifier 32 | 33 | 34 | FooterText 35 | Copyright (c) 2012 ThinkUltimate (http://thinkultimate.com). 36 | 37 | http://github.com/davbeck/TUSafariActivity 38 | 39 | Redistribution and use in source and binary forms, with or without modification, 40 | are permitted provided that the following conditions are met: 41 | 42 | - Redistributions of source code must retain the above copyright notice, 43 | this list of conditions and the following disclaimer. 44 | - Redistributions in binary form must reproduce the above copyright notice, 45 | this list of conditions and the following disclaimer in the documentation 46 | and/or other materials provided with the distribution. 47 | 48 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 49 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 50 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 51 | IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 52 | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 53 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 54 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 55 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 56 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 57 | OF THE POSSIBILITY OF SUCH DAMAGE. 58 | 59 | License 60 | BSD 61 | Title 62 | TUSafariActivity 63 | Type 64 | PSGroupSpecifier 65 | 66 | 67 | FooterText 68 | Generated by CocoaPods - https://cocoapods.org 69 | Title 70 | 71 | Type 72 | PSGroupSpecifier 73 | 74 | 75 | StringsTable 76 | Acknowledgements 77 | Title 78 | Acknowledgements 79 | 80 | 81 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AFWebViewController/Pods-AFWebViewController-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_AFWebViewController : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_AFWebViewController 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AFWebViewController/Pods-AFWebViewController-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AFWebViewController/Pods-AFWebViewController-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | *) 22 | TARGET_DEVICE_ARGS="--target-device mac" 23 | ;; 24 | esac 25 | 26 | install_resource() 27 | { 28 | if [[ "$1" = /* ]] ; then 29 | RESOURCE_PATH="$1" 30 | else 31 | RESOURCE_PATH="${PODS_ROOT}/$1" 32 | fi 33 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 34 | cat << EOM 35 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 36 | EOM 37 | exit 1 38 | fi 39 | case $RESOURCE_PATH in 40 | *.storyboard) 41 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 42 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 43 | ;; 44 | *.xib) 45 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 46 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 47 | ;; 48 | *.framework) 49 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 50 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 51 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 52 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 53 | ;; 54 | *.xcdatamodel) 55 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 56 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 57 | ;; 58 | *.xcdatamodeld) 59 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 60 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 61 | ;; 62 | *.xcmappingmodel) 63 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 64 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 65 | ;; 66 | *.xcassets) 67 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 68 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 69 | ;; 70 | *) 71 | echo "$RESOURCE_PATH" 72 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 73 | ;; 74 | esac 75 | } 76 | if [[ "$CONFIGURATION" == "Debug" ]]; then 77 | install_resource "ARChromeActivity/ARChromeActivity/ARChromeActivity.png" 78 | install_resource "ARChromeActivity/ARChromeActivity/ARChromeActivity@2x.png" 79 | install_resource "ARChromeActivity/ARChromeActivity/ARChromeActivity@2x~ipad.png" 80 | install_resource "ARChromeActivity/ARChromeActivity/ARChromeActivity@3x.png" 81 | install_resource "ARChromeActivity/ARChromeActivity/ARChromeActivity@3x~ipad.png" 82 | install_resource "ARChromeActivity/ARChromeActivity/ARChromeActivity~ipad.png" 83 | install_resource "$PODS_CONFIGURATION_BUILD_DIR/TUSafariActivity/TUSafariActivity.bundle" 84 | fi 85 | if [[ "$CONFIGURATION" == "Release" ]]; then 86 | install_resource "ARChromeActivity/ARChromeActivity/ARChromeActivity.png" 87 | install_resource "ARChromeActivity/ARChromeActivity/ARChromeActivity@2x.png" 88 | install_resource "ARChromeActivity/ARChromeActivity/ARChromeActivity@2x~ipad.png" 89 | install_resource "ARChromeActivity/ARChromeActivity/ARChromeActivity@3x.png" 90 | install_resource "ARChromeActivity/ARChromeActivity/ARChromeActivity@3x~ipad.png" 91 | install_resource "ARChromeActivity/ARChromeActivity/ARChromeActivity~ipad.png" 92 | install_resource "$PODS_CONFIGURATION_BUILD_DIR/TUSafariActivity/TUSafariActivity.bundle" 93 | fi 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 114 | fi 115 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AFWebViewController/Pods-AFWebViewController.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/ARChromeActivity" "${PODS_ROOT}/Headers/Public/TUSafariActivity" 4 | LIBRARY_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/ARChromeActivity" "$PODS_CONFIGURATION_BUILD_DIR/TUSafariActivity" 5 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/ARChromeActivity" -isystem "${PODS_ROOT}/Headers/Public/TUSafariActivity" 6 | OTHER_LDFLAGS = $(inherited) -ObjC -l"ARChromeActivity" -l"TUSafariActivity" 7 | PODS_BUILD_DIR = $BUILD_DIR 8 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AFWebViewController/Pods-AFWebViewController.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/ARChromeActivity" "${PODS_ROOT}/Headers/Public/TUSafariActivity" 4 | LIBRARY_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/ARChromeActivity" "$PODS_CONFIGURATION_BUILD_DIR/TUSafariActivity" 5 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/ARChromeActivity" -isystem "${PODS_ROOT}/Headers/Public/TUSafariActivity" 6 | OTHER_LDFLAGS = $(inherited) -ObjC -l"ARChromeActivity" -l"TUSafariActivity" 7 | PODS_BUILD_DIR = $BUILD_DIR 8 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /Pods/Target Support Files/TUSafariActivity/ResourceBundle-TUSafariActivity-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleIdentifier 8 | ${PRODUCT_BUNDLE_IDENTIFIER} 9 | CFBundleInfoDictionaryVersion 10 | 6.0 11 | CFBundleName 12 | ${PRODUCT_NAME} 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0.4 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Pods/Target Support Files/TUSafariActivity/TUSafariActivity-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_TUSafariActivity : NSObject 3 | @end 4 | @implementation PodsDummy_TUSafariActivity 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/TUSafariActivity/TUSafariActivity-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Pods/Target Support Files/TUSafariActivity/TUSafariActivity.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/TUSafariActivity 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/TUSafariActivity" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/ARChromeActivity" "${PODS_ROOT}/Headers/Public/TUSafariActivity" 4 | PODS_BUILD_DIR = $BUILD_DIR 5 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 8 | SKIP_INSTALL = YES 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | AFWebViewController 2 | =================== 3 | ![Pod version](http://img.shields.io/cocoapods/v/AFWebViewController.svg?style=flat) 4 | ![Pod platform](http://img.shields.io/cocoapods/p/AFWebViewController.svg?style=flat) 5 | [![Build Status](http://img.shields.io/travis/Fogh/AFWebViewController.svg?style=flat)](https://travis-ci.org/Fogh/AFWebViewController) 6 | 7 | In-app browser 8 | 9 | _**For apps targeting iOS 9 and greater you should be using [SFSafariViewController](https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller).**_ 10 | 11 | ## Description 12 | 13 | In-app browser for quick implementation in your app. Pretty much inspired by [`SVWebViewController`](https://github.com/TransitApp/SVWebViewController). 14 | Uses [`WKWebView`](https://developer.apple.com/library/IOs/documentation/WebKit/Reference/WKWebView_Ref/index.html) for a much faster browsing experience. 15 | 16 | **Requires iOS 8+** 17 | 18 | ## Installation with [CocoaPods](http://cocoapods.org/) 19 | 20 | Install with CocoaPods and import `AFWebViewController.h` or `AFModalWebViewController.h` where you want to use it. 21 | 22 | ### Podfile 23 | 24 | ```ruby 25 | platform :ios, '8.0' 26 | pod 'AFWebViewController', '~> 1.0' 27 | ``` 28 | 29 | ## Usage example 30 | 31 | **Push `AFWebViewController`:** 32 | ```objectivec 33 | AFWebViewController *webViewController = [AFWebViewController webViewControllerWithAddress:@"https://google.com"]; 34 | webViewController.toolbarTintColor = [UIColor orangeColor]; // Does not work on iPad 35 | [self.navigationController pushViewController:webViewController animated:YES]; 36 | ``` 37 | 38 | **Modal `AFWebViewController`:** 39 | ```objectivec 40 | AFModalWebViewController *webViewController = [AFModalWebViewController webViewControllerWithAddress:@"https://google.com"]; 41 | webViewController.barsTintColor = [UIColor redColor]; 42 | webViewController.toolbarTintColor = [UIColor orangeColor]; // Does not work on iPad 43 | [self presentViewController:webViewController animated:YES completion:NULL]; 44 | `` 45 | ## Other iOS open source projects by me 46 | 47 | - [AFAddressBookManager](https://github.com/Fogh/AFAddressBookManager) 48 | - [AFMobilePayRequestHandler](https://github.com/Fogh/AFMobilePayRequestHandler) 49 | --------------------------------------------------------------------------------