├── .gitignore ├── ABReleaseNotesViewController.podspec ├── ABReleaseNotesViewController.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── ABReleaseNotesViewController.xcworkspace └── contents.xcworkspacedata ├── ABReleaseNotesViewController ├── ABReleaseNotesDownloader.h ├── ABReleaseNotesDownloader.m ├── ABReleaseNotesPresentationController.h ├── ABReleaseNotesPresentationController.m ├── ABReleaseNotesViewController.h └── ABReleaseNotesViewController.m ├── Demo ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Base.lproj │ └── LaunchScreen.storyboard ├── Info.plist ├── ViewController.h ├── ViewController.m └── main.m ├── LICENSE ├── Podfile ├── Podfile.lock ├── Pods ├── Headers │ ├── Private │ │ └── ABReleaseNotesViewController │ │ │ ├── ABReleaseNotesDownloader.h │ │ │ ├── ABReleaseNotesPresentationController.h │ │ │ └── ABReleaseNotesViewController.h │ └── Public │ │ └── ABReleaseNotesViewController │ │ ├── ABReleaseNotesDownloader.h │ │ ├── ABReleaseNotesPresentationController.h │ │ └── ABReleaseNotesViewController.h ├── Local Podspecs │ └── ABReleaseNotesViewController.podspec.json ├── Manifest.lock ├── Pods.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ └── ABReleaseNotesViewController.xcscheme └── Target Support Files │ ├── ABReleaseNotesViewController │ ├── ABReleaseNotesViewController-dummy.m │ ├── ABReleaseNotesViewController-prefix.pch │ └── ABReleaseNotesViewController.xcconfig │ └── Pods │ ├── Pods-acknowledgements.markdown │ ├── Pods-acknowledgements.plist │ ├── Pods-dummy.m │ ├── Pods-frameworks.sh │ ├── Pods-resources.sh │ ├── Pods.debug.xcconfig │ └── Pods.release.xcconfig └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # Created by https://www.gitignore.io/api/objective-c,osx 3 | 4 | ### Objective-C ### 5 | # Xcode 6 | # 7 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 8 | 9 | ## Build generated 10 | build/ 11 | DerivedData/ 12 | 13 | ## Various settings 14 | *.pbxuser 15 | !default.pbxuser 16 | *.mode1v3 17 | !default.mode1v3 18 | *.mode2v3 19 | !default.mode2v3 20 | *.perspectivev3 21 | !default.perspectivev3 22 | xcuserdata/ 23 | 24 | ## Other 25 | *.moved-aside 26 | *.xcuserstate 27 | 28 | ## Obj-C/Swift specific 29 | *.hmap 30 | *.ipa 31 | 32 | # CocoaPods 33 | # 34 | # We recommend against adding the Pods directory to your .gitignore. However 35 | # you should judge for yourself, the pros and cons are mentioned at: 36 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 37 | # 38 | # Pods/ 39 | 40 | # Carthage 41 | # 42 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 43 | # Carthage/Checkouts 44 | 45 | Carthage/Build 46 | 47 | # fastlane 48 | # 49 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 50 | # screenshots whenever they are needed. 51 | # For more information about the recommended setup visit: 52 | # https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md 53 | 54 | fastlane/report.xml 55 | fastlane/screenshots 56 | 57 | ### Objective-C Patch ### 58 | *.xcscmblueprint 59 | 60 | 61 | ### OSX ### 62 | .DS_Store 63 | .AppleDouble 64 | .LSOverride 65 | 66 | # Icon must end with two \r 67 | Icon 68 | 69 | 70 | # Thumbnails 71 | ._* 72 | 73 | # Files that might appear in the root of a volume 74 | .DocumentRevisions-V100 75 | .fseventsd 76 | .Spotlight-V100 77 | .TemporaryItems 78 | .Trashes 79 | .VolumeIcon.icns 80 | 81 | # Directories potentially created on remote AFP share 82 | .AppleDB 83 | .AppleDesktop 84 | Network Trash Folder 85 | Temporary Items 86 | .apdisk 87 | -------------------------------------------------------------------------------- /ABReleaseNotesViewController.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint ABReleaseNotesViewController.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = "ABReleaseNotesViewController" 11 | s.version = "0.1.1" 12 | s.summary = "The easiest way to display your App Store release notes inside your app after an update." 13 | s.description = <<-DESC 14 | Since iOS 7, users have been opted in to automatic updates of their apps from the App Store. This is great for ensuring that our users are always on the latest versions of our products, but it means that it can be much more difficult to tell them about what's new and different in our updates. ABReleaseNotesViewController fixes that by displaying your app's release notes from the App Store inside your app on the first launch after an update. 15 | DESC 16 | 17 | s.homepage = "https://github.com/aaronbrethorst/ABReleaseNotesViewController" 18 | s.screenshots = "https://s3.amazonaws.com/cocoacontrols_production/uploads/control_image/image/8575/rel.jpg" 19 | s.license = 'MIT' 20 | s.author = { "Aaron Brethorst" => "aaron@brethorsting.com" } 21 | s.source = { :git => "https://github.com/aaronbrethorst/ABReleaseNotesViewController.git", :tag => s.version.to_s } 22 | s.social_media_url = 'https://twitter.com/aaronbrethorst' 23 | 24 | s.platform = :ios, '9.0' 25 | s.requires_arc = true 26 | 27 | s.source_files = 'ABReleaseNotesViewController/**/*' 28 | s.public_header_files = 'ABReleaseNotesViewController/**/*.h' 29 | s.frameworks = 'UIKit' 30 | end 31 | -------------------------------------------------------------------------------- /ABReleaseNotesViewController.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 9399E3BD1C87B6EF00962292 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9399E3BC1C87B6EF00962292 /* main.m */; }; 11 | 9399E3C01C87B6EF00962292 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9399E3BF1C87B6EF00962292 /* AppDelegate.m */; }; 12 | 9399E3C31C87B6EF00962292 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9399E3C21C87B6EF00962292 /* ViewController.m */; }; 13 | 9399E3C81C87B6EF00962292 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9399E3C71C87B6EF00962292 /* Assets.xcassets */; }; 14 | 9399E3CB1C87B6EF00962292 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9399E3C91C87B6EF00962292 /* LaunchScreen.storyboard */; }; 15 | EA52CBC5C708E7C690BFB19B /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BD17B0AC57B42F6C0E9A5B0F /* libPods.a */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXFileReference section */ 19 | 5A73D9EE97975B20849FF3CD /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = ""; }; 20 | 7FC87D78699CE5521328738D /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = ""; }; 21 | 9399E3B81C87B6EF00962292 /* ABReleaseNotesViewController.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ABReleaseNotesViewController.app; sourceTree = BUILT_PRODUCTS_DIR; }; 22 | 9399E3BC1C87B6EF00962292 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 23 | 9399E3BE1C87B6EF00962292 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 24 | 9399E3BF1C87B6EF00962292 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 25 | 9399E3C11C87B6EF00962292 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 26 | 9399E3C21C87B6EF00962292 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 27 | 9399E3C71C87B6EF00962292 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 28 | 9399E3CA1C87B6EF00962292 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 29 | 9399E3CC1C87B6EF00962292 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 30 | BD17B0AC57B42F6C0E9A5B0F /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; 31 | /* End PBXFileReference section */ 32 | 33 | /* Begin PBXFrameworksBuildPhase section */ 34 | 9399E3B51C87B6EF00962292 /* Frameworks */ = { 35 | isa = PBXFrameworksBuildPhase; 36 | buildActionMask = 2147483647; 37 | files = ( 38 | EA52CBC5C708E7C690BFB19B /* libPods.a in Frameworks */, 39 | ); 40 | runOnlyForDeploymentPostprocessing = 0; 41 | }; 42 | /* End PBXFrameworksBuildPhase section */ 43 | 44 | /* Begin PBXGroup section */ 45 | 076035C00259DB8E38E2A365 /* Frameworks */ = { 46 | isa = PBXGroup; 47 | children = ( 48 | BD17B0AC57B42F6C0E9A5B0F /* libPods.a */, 49 | ); 50 | name = Frameworks; 51 | sourceTree = ""; 52 | }; 53 | 6495028A03B63AF555D28AA8 /* Pods */ = { 54 | isa = PBXGroup; 55 | children = ( 56 | 5A73D9EE97975B20849FF3CD /* Pods.debug.xcconfig */, 57 | 7FC87D78699CE5521328738D /* Pods.release.xcconfig */, 58 | ); 59 | name = Pods; 60 | sourceTree = ""; 61 | }; 62 | 9399E3AF1C87B6EF00962292 = { 63 | isa = PBXGroup; 64 | children = ( 65 | 9399E3BA1C87B6EF00962292 /* Demo */, 66 | 9399E3B91C87B6EF00962292 /* Products */, 67 | 6495028A03B63AF555D28AA8 /* Pods */, 68 | 076035C00259DB8E38E2A365 /* Frameworks */, 69 | ); 70 | sourceTree = ""; 71 | }; 72 | 9399E3B91C87B6EF00962292 /* Products */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 9399E3B81C87B6EF00962292 /* ABReleaseNotesViewController.app */, 76 | ); 77 | name = Products; 78 | sourceTree = ""; 79 | }; 80 | 9399E3BA1C87B6EF00962292 /* Demo */ = { 81 | isa = PBXGroup; 82 | children = ( 83 | 9399E3BE1C87B6EF00962292 /* AppDelegate.h */, 84 | 9399E3BF1C87B6EF00962292 /* AppDelegate.m */, 85 | 9399E3C11C87B6EF00962292 /* ViewController.h */, 86 | 9399E3C21C87B6EF00962292 /* ViewController.m */, 87 | 9399E3C71C87B6EF00962292 /* Assets.xcassets */, 88 | 9399E3C91C87B6EF00962292 /* LaunchScreen.storyboard */, 89 | 9399E3CC1C87B6EF00962292 /* Info.plist */, 90 | 9399E3BB1C87B6EF00962292 /* Supporting Files */, 91 | ); 92 | path = Demo; 93 | sourceTree = ""; 94 | }; 95 | 9399E3BB1C87B6EF00962292 /* Supporting Files */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 9399E3BC1C87B6EF00962292 /* main.m */, 99 | ); 100 | name = "Supporting Files"; 101 | sourceTree = ""; 102 | }; 103 | /* End PBXGroup section */ 104 | 105 | /* Begin PBXNativeTarget section */ 106 | 9399E3B71C87B6EF00962292 /* ABReleaseNotesViewController */ = { 107 | isa = PBXNativeTarget; 108 | buildConfigurationList = 9399E3CF1C87B6EF00962292 /* Build configuration list for PBXNativeTarget "ABReleaseNotesViewController" */; 109 | buildPhases = ( 110 | B4B7EE7B263C68B8B6C37266 /* Check Pods Manifest.lock */, 111 | 9399E3B41C87B6EF00962292 /* Sources */, 112 | 9399E3B51C87B6EF00962292 /* Frameworks */, 113 | 9399E3B61C87B6EF00962292 /* Resources */, 114 | 720083790E7372A82AD1D7BE /* Embed Pods Frameworks */, 115 | 5E4F20044B5A2EFEFFB180FA /* Copy Pods Resources */, 116 | ); 117 | buildRules = ( 118 | ); 119 | dependencies = ( 120 | ); 121 | name = ABReleaseNotesViewController; 122 | productName = ABReleaseNotesViewController; 123 | productReference = 9399E3B81C87B6EF00962292 /* ABReleaseNotesViewController.app */; 124 | productType = "com.apple.product-type.application"; 125 | }; 126 | /* End PBXNativeTarget section */ 127 | 128 | /* Begin PBXProject section */ 129 | 9399E3B01C87B6EF00962292 /* Project object */ = { 130 | isa = PBXProject; 131 | attributes = { 132 | LastUpgradeCheck = 0720; 133 | ORGANIZATIONNAME = "Aaron Brethorst"; 134 | TargetAttributes = { 135 | 9399E3B71C87B6EF00962292 = { 136 | CreatedOnToolsVersion = 7.2.1; 137 | }; 138 | }; 139 | }; 140 | buildConfigurationList = 9399E3B31C87B6EF00962292 /* Build configuration list for PBXProject "ABReleaseNotesViewController" */; 141 | compatibilityVersion = "Xcode 3.2"; 142 | developmentRegion = English; 143 | hasScannedForEncodings = 0; 144 | knownRegions = ( 145 | en, 146 | Base, 147 | ); 148 | mainGroup = 9399E3AF1C87B6EF00962292; 149 | productRefGroup = 9399E3B91C87B6EF00962292 /* Products */; 150 | projectDirPath = ""; 151 | projectRoot = ""; 152 | targets = ( 153 | 9399E3B71C87B6EF00962292 /* ABReleaseNotesViewController */, 154 | ); 155 | }; 156 | /* End PBXProject section */ 157 | 158 | /* Begin PBXResourcesBuildPhase section */ 159 | 9399E3B61C87B6EF00962292 /* Resources */ = { 160 | isa = PBXResourcesBuildPhase; 161 | buildActionMask = 2147483647; 162 | files = ( 163 | 9399E3CB1C87B6EF00962292 /* LaunchScreen.storyboard in Resources */, 164 | 9399E3C81C87B6EF00962292 /* Assets.xcassets in Resources */, 165 | ); 166 | runOnlyForDeploymentPostprocessing = 0; 167 | }; 168 | /* End PBXResourcesBuildPhase section */ 169 | 170 | /* Begin PBXShellScriptBuildPhase section */ 171 | 5E4F20044B5A2EFEFFB180FA /* Copy Pods Resources */ = { 172 | isa = PBXShellScriptBuildPhase; 173 | buildActionMask = 2147483647; 174 | files = ( 175 | ); 176 | inputPaths = ( 177 | ); 178 | name = "Copy Pods Resources"; 179 | outputPaths = ( 180 | ); 181 | runOnlyForDeploymentPostprocessing = 0; 182 | shellPath = /bin/sh; 183 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n"; 184 | showEnvVarsInLog = 0; 185 | }; 186 | 720083790E7372A82AD1D7BE /* Embed Pods Frameworks */ = { 187 | isa = PBXShellScriptBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | ); 191 | inputPaths = ( 192 | ); 193 | name = "Embed Pods Frameworks"; 194 | outputPaths = ( 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | shellPath = /bin/sh; 198 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh\"\n"; 199 | showEnvVarsInLog = 0; 200 | }; 201 | B4B7EE7B263C68B8B6C37266 /* Check Pods Manifest.lock */ = { 202 | isa = PBXShellScriptBuildPhase; 203 | buildActionMask = 2147483647; 204 | files = ( 205 | ); 206 | inputPaths = ( 207 | ); 208 | name = "Check Pods Manifest.lock"; 209 | outputPaths = ( 210 | ); 211 | runOnlyForDeploymentPostprocessing = 0; 212 | shellPath = /bin/sh; 213 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 214 | showEnvVarsInLog = 0; 215 | }; 216 | /* End PBXShellScriptBuildPhase section */ 217 | 218 | /* Begin PBXSourcesBuildPhase section */ 219 | 9399E3B41C87B6EF00962292 /* Sources */ = { 220 | isa = PBXSourcesBuildPhase; 221 | buildActionMask = 2147483647; 222 | files = ( 223 | 9399E3C31C87B6EF00962292 /* ViewController.m in Sources */, 224 | 9399E3C01C87B6EF00962292 /* AppDelegate.m in Sources */, 225 | 9399E3BD1C87B6EF00962292 /* main.m in Sources */, 226 | ); 227 | runOnlyForDeploymentPostprocessing = 0; 228 | }; 229 | /* End PBXSourcesBuildPhase section */ 230 | 231 | /* Begin PBXVariantGroup section */ 232 | 9399E3C91C87B6EF00962292 /* LaunchScreen.storyboard */ = { 233 | isa = PBXVariantGroup; 234 | children = ( 235 | 9399E3CA1C87B6EF00962292 /* Base */, 236 | ); 237 | name = LaunchScreen.storyboard; 238 | sourceTree = ""; 239 | }; 240 | /* End PBXVariantGroup section */ 241 | 242 | /* Begin XCBuildConfiguration section */ 243 | 9399E3CD1C87B6EF00962292 /* Debug */ = { 244 | isa = XCBuildConfiguration; 245 | buildSettings = { 246 | ALWAYS_SEARCH_USER_PATHS = NO; 247 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 248 | CLANG_CXX_LIBRARY = "libc++"; 249 | CLANG_ENABLE_MODULES = YES; 250 | CLANG_ENABLE_OBJC_ARC = YES; 251 | CLANG_WARN_BOOL_CONVERSION = YES; 252 | CLANG_WARN_CONSTANT_CONVERSION = YES; 253 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 254 | CLANG_WARN_EMPTY_BODY = YES; 255 | CLANG_WARN_ENUM_CONVERSION = YES; 256 | CLANG_WARN_INT_CONVERSION = YES; 257 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 258 | CLANG_WARN_UNREACHABLE_CODE = YES; 259 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 260 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 261 | COPY_PHASE_STRIP = NO; 262 | DEBUG_INFORMATION_FORMAT = dwarf; 263 | ENABLE_STRICT_OBJC_MSGSEND = YES; 264 | ENABLE_TESTABILITY = YES; 265 | GCC_C_LANGUAGE_STANDARD = gnu99; 266 | GCC_DYNAMIC_NO_PIC = NO; 267 | GCC_NO_COMMON_BLOCKS = YES; 268 | GCC_OPTIMIZATION_LEVEL = 0; 269 | GCC_PREPROCESSOR_DEFINITIONS = ( 270 | "DEBUG=1", 271 | "$(inherited)", 272 | ); 273 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 274 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 275 | GCC_WARN_UNDECLARED_SELECTOR = YES; 276 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 277 | GCC_WARN_UNUSED_FUNCTION = YES; 278 | GCC_WARN_UNUSED_VARIABLE = YES; 279 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 280 | MTL_ENABLE_DEBUG_INFO = YES; 281 | ONLY_ACTIVE_ARCH = YES; 282 | SDKROOT = iphoneos; 283 | TARGETED_DEVICE_FAMILY = "1,2"; 284 | }; 285 | name = Debug; 286 | }; 287 | 9399E3CE1C87B6EF00962292 /* Release */ = { 288 | isa = XCBuildConfiguration; 289 | buildSettings = { 290 | ALWAYS_SEARCH_USER_PATHS = NO; 291 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 292 | CLANG_CXX_LIBRARY = "libc++"; 293 | CLANG_ENABLE_MODULES = YES; 294 | CLANG_ENABLE_OBJC_ARC = YES; 295 | CLANG_WARN_BOOL_CONVERSION = YES; 296 | CLANG_WARN_CONSTANT_CONVERSION = YES; 297 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 298 | CLANG_WARN_EMPTY_BODY = YES; 299 | CLANG_WARN_ENUM_CONVERSION = YES; 300 | CLANG_WARN_INT_CONVERSION = YES; 301 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 302 | CLANG_WARN_UNREACHABLE_CODE = YES; 303 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 304 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 305 | COPY_PHASE_STRIP = NO; 306 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 307 | ENABLE_NS_ASSERTIONS = NO; 308 | ENABLE_STRICT_OBJC_MSGSEND = YES; 309 | GCC_C_LANGUAGE_STANDARD = gnu99; 310 | GCC_NO_COMMON_BLOCKS = YES; 311 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 312 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 313 | GCC_WARN_UNDECLARED_SELECTOR = YES; 314 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 315 | GCC_WARN_UNUSED_FUNCTION = YES; 316 | GCC_WARN_UNUSED_VARIABLE = YES; 317 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 318 | MTL_ENABLE_DEBUG_INFO = NO; 319 | SDKROOT = iphoneos; 320 | TARGETED_DEVICE_FAMILY = "1,2"; 321 | VALIDATE_PRODUCT = YES; 322 | }; 323 | name = Release; 324 | }; 325 | 9399E3D01C87B6EF00962292 /* Debug */ = { 326 | isa = XCBuildConfiguration; 327 | baseConfigurationReference = 5A73D9EE97975B20849FF3CD /* Pods.debug.xcconfig */; 328 | buildSettings = { 329 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 330 | INFOPLIST_FILE = "$(SRCROOT)/Demo/Info.plist"; 331 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 332 | PRODUCT_BUNDLE_IDENTIFIER = com.brethorsting.ABReleaseNotesViewController; 333 | PRODUCT_NAME = "$(TARGET_NAME)"; 334 | }; 335 | name = Debug; 336 | }; 337 | 9399E3D11C87B6EF00962292 /* Release */ = { 338 | isa = XCBuildConfiguration; 339 | baseConfigurationReference = 7FC87D78699CE5521328738D /* Pods.release.xcconfig */; 340 | buildSettings = { 341 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 342 | INFOPLIST_FILE = "$(SRCROOT)/Demo/Info.plist"; 343 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 344 | PRODUCT_BUNDLE_IDENTIFIER = com.brethorsting.ABReleaseNotesViewController; 345 | PRODUCT_NAME = "$(TARGET_NAME)"; 346 | }; 347 | name = Release; 348 | }; 349 | /* End XCBuildConfiguration section */ 350 | 351 | /* Begin XCConfigurationList section */ 352 | 9399E3B31C87B6EF00962292 /* Build configuration list for PBXProject "ABReleaseNotesViewController" */ = { 353 | isa = XCConfigurationList; 354 | buildConfigurations = ( 355 | 9399E3CD1C87B6EF00962292 /* Debug */, 356 | 9399E3CE1C87B6EF00962292 /* Release */, 357 | ); 358 | defaultConfigurationIsVisible = 0; 359 | defaultConfigurationName = Release; 360 | }; 361 | 9399E3CF1C87B6EF00962292 /* Build configuration list for PBXNativeTarget "ABReleaseNotesViewController" */ = { 362 | isa = XCConfigurationList; 363 | buildConfigurations = ( 364 | 9399E3D01C87B6EF00962292 /* Debug */, 365 | 9399E3D11C87B6EF00962292 /* Release */, 366 | ); 367 | defaultConfigurationIsVisible = 0; 368 | defaultConfigurationName = Release; 369 | }; 370 | /* End XCConfigurationList section */ 371 | }; 372 | rootObject = 9399E3B01C87B6EF00962292 /* Project object */; 373 | } 374 | -------------------------------------------------------------------------------- /ABReleaseNotesViewController.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ABReleaseNotesViewController.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ABReleaseNotesViewController/ABReleaseNotesDownloader.h: -------------------------------------------------------------------------------- 1 | // 2 | // ABReleaseNotesDownloader.h 3 | // 4 | // ABReleaseNotesViewController 5 | // 6 | // Copyright (c) 2016 Aaron Brethorst 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights 11 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | // copies of the Software, and to permit persons to whom the Software is 13 | // furnished to do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | // SOFTWARE. 25 | 26 | 27 | #import 28 | 29 | /** 30 | Retrieves release notes and the current version number from the App Store for the app whose 31 | app identifier is passed in on initialization. 32 | */ 33 | 34 | NS_ASSUME_NONNULL_BEGIN 35 | 36 | @interface ABReleaseNotesDownloader : NSObject 37 | 38 | /** 39 | Returns a newly initialized downloader with the specified app identifier. 40 | 41 | @param appIdentifier The unique ID of your app in the App Store. 42 | 43 | @return A newly initialized `ABReleaseNotesDownloader` object. 44 | */ 45 | - (instancetype)initWithAppIdentifier:(NSString *)appIdentifier; 46 | 47 | /** 48 | Responsible for checking the App Store for updates to the app identifier specified in initialization. 49 | 50 | @param checker The block to execute after the update check finishes. This block has no return value, but has three parameters: a BOOL flag indicating whether the app has been updated, release notes, and a new version number. and takes no parameters. 51 | */ 52 | - (void)checkForUpdates:(void (^)(BOOL updated, NSString *releaseNotes, NSString *versionNumber))checker; 53 | @end 54 | 55 | NS_ASSUME_NONNULL_END 56 | -------------------------------------------------------------------------------- /ABReleaseNotesViewController/ABReleaseNotesDownloader.m: -------------------------------------------------------------------------------- 1 | // 2 | // ABReleaseNotesDownloader.m 3 | // 4 | // ABReleaseNotesViewController 5 | // 6 | // Copyright (c) 2016 Aaron Brethorst 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights 11 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | // copies of the Software, and to permit persons to whom the Software is 13 | // furnished to do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | // SOFTWARE. 25 | 26 | 27 | #import "ABReleaseNotesDownloader.h" 28 | 29 | @interface ABReleaseNotesDownloader () 30 | @property(nonatomic,copy) NSString *appIdentifier; 31 | @property(nonatomic,strong) NSURLSessionDataTask *task; 32 | @property(nonatomic,copy,readwrite) NSString *releaseNotes; 33 | @property(nonatomic,copy,readwrite) NSString *versionNumber; 34 | @end 35 | 36 | @implementation ABReleaseNotesDownloader 37 | 38 | - (instancetype)initWithAppIdentifier:(NSString *)appIdentifier { 39 | self = [super init]; 40 | 41 | if (self) { 42 | _appIdentifier = [appIdentifier copy]; 43 | } 44 | return self; 45 | } 46 | 47 | - (void)dealloc { 48 | [self.task cancel]; 49 | self.task = nil; 50 | } 51 | 52 | - (void)checkForUpdates:(void (^)(BOOL updated, NSString *releaseNotes, NSString *versionNumber))checker { 53 | 54 | NSURL *URL = [self.class requestURLForAppIdentifier:self.appIdentifier]; 55 | NSURLRequest *request = [NSURLRequest requestWithURL:URL cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:30]; 56 | 57 | [self loadRequest:request success:^(id response) { 58 | 59 | self.releaseNotes = [self.class extractReleaseNotesFromResponse:response]; 60 | self.versionNumber = [self.class extractVersionNumberFromResponse:response]; 61 | 62 | checker(YES, self.releaseNotes, self.versionNumber); 63 | } failure:^(NSError *error) { 64 | checker(NO, nil, nil); 65 | }]; 66 | } 67 | 68 | - (void)loadRequest:(NSURLRequest *)request success:(void (^)(id response))success failure:(void (^)(NSError* error))failure { 69 | 70 | self.task = [[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { 71 | id responseObject = nil; 72 | 73 | if (error) { 74 | dispatch_async(dispatch_get_main_queue(), ^{ 75 | failure(error); 76 | }); 77 | return; 78 | } 79 | 80 | if (data.length) { 81 | NSError *jsonError = nil; 82 | responseObject = [NSJSONSerialization JSONObjectWithData:data options:(NSJSONReadingOptions)0 error:&jsonError]; 83 | 84 | if (!responseObject && jsonError) { 85 | dispatch_async(dispatch_get_main_queue(), ^{ 86 | failure(jsonError); 87 | }); 88 | return; 89 | } 90 | } 91 | 92 | 93 | dispatch_async(dispatch_get_main_queue(), ^{ 94 | success(responseObject); 95 | }); 96 | }]; 97 | 98 | [self.task resume]; 99 | } 100 | 101 | #pragma mark - Private 102 | 103 | + (NSURL*)requestURLForAppIdentifier:(NSString*)appIdentifier { 104 | NSURLComponents *components = [NSURLComponents componentsWithURL:[NSURL URLWithString:@"http://itunes.apple.com/lookup"] resolvingAgainstBaseURL:NO]; 105 | components.queryItems = @[ 106 | [NSURLQueryItem queryItemWithName:@"id" value:appIdentifier], 107 | [NSURLQueryItem queryItemWithName:@"country" value:[[NSLocale currentLocale] objectForKey:NSLocaleCountryCode]], 108 | ]; 109 | return components.URL; 110 | } 111 | 112 | + (NSString*)extractVersionNumberFromResponse:(NSDictionary*)response { 113 | @try { 114 | return response[@"results"][0][@"version"]; 115 | } 116 | @catch (NSException *exception) { 117 | return nil; 118 | } 119 | } 120 | 121 | + (NSString*)extractReleaseNotesFromResponse:(NSDictionary*)response { 122 | @try { 123 | return response[@"results"][0][@"releaseNotes"]; 124 | } 125 | @catch (NSException *exception) { 126 | return nil; 127 | } 128 | } 129 | 130 | @end 131 | -------------------------------------------------------------------------------- /ABReleaseNotesViewController/ABReleaseNotesPresentationController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ABReleaseNotesPresentationController.h 3 | // 4 | // ABReleaseNotesViewController 5 | // 6 | // Copyright (c) 2016 Aaron Brethorst 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights 11 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | // copies of the Software, and to permit persons to whom the Software is 13 | // furnished to do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | // SOFTWARE. 25 | 26 | 27 | #import 28 | 29 | /** 30 | A presentation controller used by `ABReleaseNotesViewController` to control the display of the 31 | release notes controller on screen. Designed to be used as-is, and you shouldn't have to interact 32 | directly with this class. 33 | */ 34 | 35 | @interface ABReleaseNotesPresentationController : UIPresentationController 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /ABReleaseNotesViewController/ABReleaseNotesPresentationController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ABReleaseNotesPresentationController.m 3 | // 4 | // ABReleaseNotesViewController 5 | // 6 | // Copyright (c) 2016 Aaron Brethorst 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights 11 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | // copies of the Software, and to permit persons to whom the Software is 13 | // furnished to do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | // SOFTWARE. 25 | 26 | 27 | #import "ABReleaseNotesPresentationController.h" 28 | 29 | @interface ABReleaseNotesPresentationController () 30 | @property(nonatomic,strong) UIView *dimmingView; 31 | @end 32 | 33 | @implementation ABReleaseNotesPresentationController 34 | 35 | - (instancetype)initWithPresentedViewController:(UIViewController *)presentedViewController presentingViewController:(UIViewController *)presentingViewController { 36 | self = [super initWithPresentedViewController:presentedViewController presentingViewController:presentingViewController]; 37 | 38 | if (self) { 39 | _dimmingView = [[UIView alloc] initWithFrame:CGRectZero]; 40 | _dimmingView.backgroundColor = [UIColor colorWithWhite:0.f alpha:0.25f]; 41 | } 42 | return self; 43 | } 44 | 45 | - (void)presentationTransitionWillBegin { 46 | [super presentationTransitionWillBegin]; 47 | self.dimmingView.frame = self.containerView.bounds; 48 | self.dimmingView.alpha = 0.f; 49 | [self.containerView insertSubview:self.dimmingView atIndex:0]; 50 | 51 | [self.presentedViewController.transitionCoordinator animateAlongsideTransition:^(id context) { 52 | self.dimmingView.alpha = 1.f; 53 | } completion:nil]; 54 | } 55 | 56 | 57 | - (void)dismissalTransitionWillBegin { 58 | [super dismissalTransitionWillBegin]; 59 | 60 | [self.presentedViewController.transitionCoordinator animateAlongsideTransition:^(id context) { 61 | self.dimmingView.alpha = 0.f; 62 | } completion:^(id context) { 63 | [self.dimmingView removeFromSuperview]; 64 | }]; 65 | } 66 | 67 | - (CGRect)frameOfPresentedViewInContainerView { 68 | if (self.traitCollection.userInterfaceIdiom == UIUserInterfaceIdiomPhone) { 69 | // Phone size should be most of the screen. 70 | return CGRectInset(self.containerView.bounds, 30, 50); 71 | } 72 | else { 73 | // Tablet or TV, at least for now. Cap the size at something reasonable. 74 | CGRect rect = CGRectMake(0, 0, 400, 400); 75 | rect.origin = CGPointMake(self.containerView.center.x - 200.f, self.containerView.center.y - 200); 76 | return rect; 77 | } 78 | } 79 | 80 | - (void)containerViewWillLayoutSubviews { 81 | self.dimmingView.frame = self.containerView.bounds; 82 | self.presentedView.frame = [self frameOfPresentedViewInContainerView]; 83 | } 84 | @end 85 | -------------------------------------------------------------------------------- /ABReleaseNotesViewController/ABReleaseNotesViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ABReleaseNotesViewController.h 3 | // 4 | // ABReleaseNotesViewController 5 | // 6 | // Copyright (c) 2016 Aaron Brethorst 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights 11 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | // copies of the Software, and to permit persons to whom the Software is 13 | // furnished to do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | // SOFTWARE. 25 | 26 | #import 27 | 28 | /** 29 | 30 | Overview 31 | ==== 32 | 33 | `ABReleaseNotesViewController` is a view controller, and should be the only part of this 34 | system with which you'll need to interact directly. 35 | 36 | You should generally instantiate `ABReleaseNotesViewController` with the factory class method 37 | provided here, instead of calling one of the `-init` methods. However, you can call one of the 38 | `-init:` methods if you really want to, but take care to ensure that the properties set by the 39 | factory method are also set wherever you initialize your new view controller. 40 | 41 | Notes: 42 | ==== 43 | 44 | * There is no guarantee that your block in `-checkForUpdates:` will ever be called. Do not assume it will be. 45 | 46 | Typical Usage 47 | ==== 48 | 49 | Create your release notes object in your init method, or in `-viewDidLoad`: 50 | 51 | - (void)viewDidLoad { 52 | [super viewDidLoad]; 53 | self.releaseNotes = [ABReleaseNotesViewController releaseNotesControllerWithAppIdentifier:@"329380089" title:NSLocalizedString(@"Release Notes", @"")]; 54 | } 55 | 56 | After your view appears, begin checking for updates. If an update is available, you may present the view controller immediately, as depicted below: 57 | 58 | [self.releaseNotes checkForUpdates:^(BOOL updated) { 59 | if (updated) { 60 | [self presentViewController:self.releaseNotes animated:YES completion:nil]; 61 | } 62 | }]; 63 | 64 | Additionally, you could present an alert or some sort of non-modal user interface to the user informing them that they can read release notes if desired. 65 | */ 66 | 67 | NS_ASSUME_NONNULL_BEGIN 68 | 69 | typedef NS_ENUM(NSUInteger, ABReleaseNotesViewControllerMode) { 70 | ABReleaseNotesViewControllerModeTesting = 0, 71 | ABReleaseNotesViewControllerModeProduction 72 | }; 73 | 74 | @interface ABReleaseNotesViewController : UIViewController 75 | 76 | /** 77 | The `mode` property controls whether the release notes controller always 78 | appears for testing purposes, or whether it only appears when an update 79 | has actually occurred. By default, this is set to `ABReleaseNotesViewControllerModeTesting` 80 | */ 81 | @property(nonatomic,assign) ABReleaseNotesViewControllerMode mode; 82 | 83 | /** 84 | The style of the blur effect to apply to your view's background. 85 | */ 86 | @property(nonatomic,assign) UIBlurEffectStyle blurEffectStyle; 87 | 88 | /** 89 | The title of the close button at the bottom of the view. By default, this is "Dismiss". 90 | */ 91 | @property(nonatomic,copy) NSString *closeButtonTitle; 92 | 93 | /** 94 | Creates and returns a new view controller. 95 | 96 | @param appIdentifier The App Store identifier for your app. 97 | 98 | @return A newly initialized ABReleaseNotesViewController 99 | */ 100 | - (instancetype)initWithAppIdentifier:(NSString*)appIdentifier; 101 | 102 | /** 103 | Checks the App Store to see if the current version of the app is an updated version. 104 | 105 | @param block The completion block called if an update has occurred. 106 | */ 107 | - (void)checkForUpdates:(void(^)(BOOL updated))block; 108 | @end 109 | 110 | NS_ASSUME_NONNULL_END 111 | -------------------------------------------------------------------------------- /ABReleaseNotesViewController/ABReleaseNotesViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ABReleaseNotesViewController.m 3 | // 4 | // ABReleaseNotesViewController 5 | // 6 | // Copyright (c) 2016 Aaron Brethorst 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights 11 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | // copies of the Software, and to permit persons to whom the Software is 13 | // furnished to do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in all 16 | // copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | // SOFTWARE. 25 | 26 | 27 | #import "ABReleaseNotesViewController.h" 28 | #import "ABReleaseNotesPresentationController.h" 29 | #import "ABReleaseNotesDownloader.h" 30 | 31 | NSString * const ABReleaseNotesVersionUserDefaultsKey = @"ABReleaseNotesVersionUserDefaultsKey"; 32 | 33 | @interface ABReleaseNotesViewController () 34 | @property(nonatomic,copy) NSString *appIdentifier; 35 | @property(nonatomic,strong) ABReleaseNotesDownloader *downloader; 36 | @property(nonatomic,strong) UILabel *titleLabel; 37 | @property(nonatomic,strong) UITextView *bodyText; 38 | @property(nonatomic,copy) UIColor *lineViewColor; 39 | @end 40 | 41 | @implementation ABReleaseNotesViewController 42 | 43 | - (instancetype)initWithAppIdentifier:(NSString*)appIdentifier { 44 | self = [super init]; 45 | 46 | if (self) { 47 | self.title = NSLocalizedString(@"Release Notes", @""); 48 | 49 | _appIdentifier = [appIdentifier copy]; 50 | [self commonInit]; 51 | } 52 | return self; 53 | } 54 | 55 | - (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { 56 | self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; 57 | if (self) { 58 | [self commonInit]; 59 | } 60 | return self; 61 | } 62 | 63 | - (instancetype)initWithCoder:(NSCoder *)aDecoder { 64 | self = [super initWithCoder:aDecoder]; 65 | 66 | if (self) { 67 | [self commonInit]; 68 | } 69 | return self; 70 | } 71 | 72 | - (void)commonInit { 73 | self.modalPresentationStyle = UIModalPresentationCustom; 74 | self.transitioningDelegate = self; 75 | 76 | _mode = ABReleaseNotesViewControllerModeTesting; 77 | 78 | _blurEffectStyle = UIBlurEffectStyleLight; 79 | 80 | _closeButtonTitle = NSLocalizedString(@"Dismiss", @""); 81 | 82 | _lineViewColor = [UIColor colorWithWhite:0.f alpha:0.25f]; 83 | 84 | // this has to be created in the initializer to ensure that, when the release notes 85 | // content is retrieved from the iTunes API, there is already a text view available 86 | // to plug the content into. 87 | _bodyText = ({ 88 | UITextView *textView = [[UITextView alloc] init]; 89 | textView.translatesAutoresizingMaskIntoConstraints = NO; 90 | textView.font = [UIFont preferredFontForTextStyle:UIFontTextStyleBody]; 91 | textView.backgroundColor = [UIColor clearColor]; 92 | textView.editable = NO; 93 | textView.selectable = NO; 94 | textView; 95 | }); 96 | } 97 | 98 | #pragma mark - UIViewController 99 | 100 | - (void)viewDidLoad { 101 | [super viewDidLoad]; 102 | 103 | self.view.layer.shadowColor = [UIColor colorWithRed:0.f green:0.f blue:0.25f alpha:1.f].CGColor; 104 | self.view.layer.shadowOpacity = 0.25f; 105 | self.view.layer.shadowRadius = 8.f; 106 | 107 | UIButton *closeButton = ({ 108 | UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem]; 109 | button.backgroundColor = [UIColor colorWithWhite:1.f alpha:0.25f]; 110 | button.titleLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleBody]; 111 | [button addTarget:self action:@selector(close) forControlEvents:UIControlEventTouchUpInside]; 112 | [button setTitle:self.closeButtonTitle forState:UIControlStateNormal]; 113 | [button addConstraint:[NSLayoutConstraint constraintWithItem:button attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationGreaterThanOrEqual toItem:nil attribute:0 multiplier:0 constant:40]]; 114 | 115 | button; 116 | }); 117 | 118 | NSString *title = self.mode == ABReleaseNotesViewControllerModeProduction ? self.title : [NSString stringWithFormat:@"TESTING - %@", self.title]; 119 | UINavigationBar *navigationBar = [self.class createNavigationBarWithTitle:title]; 120 | 121 | NSArray *subviews = @[navigationBar, self.bodyText, [self.class makeLineViewWithColor:self.lineViewColor], closeButton]; 122 | 123 | UIView *view = [self.class createEffectsViewsWithFrame:self.view.bounds blurEffectStyle:self.blurEffectStyle contentView:({ 124 | UIStackView *stackView = [[UIStackView alloc] initWithArrangedSubviews:subviews]; 125 | stackView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight; 126 | stackView.axis = UILayoutConstraintAxisVertical; 127 | stackView; 128 | })]; 129 | 130 | [self.view addSubview:view]; 131 | } 132 | 133 | #pragma mark - Actions 134 | 135 | - (void)close { 136 | [self dismissViewControllerAnimated:YES completion:nil]; 137 | } 138 | 139 | #pragma mark - Public Methods 140 | 141 | - (void)checkForUpdates:(void(^)(BOOL updated))block { 142 | 143 | BOOL hasIdentifier = self.appIdentifier.length > 0; 144 | NSParameterAssert(hasIdentifier); 145 | if (!hasIdentifier) { 146 | return; 147 | } 148 | 149 | if (self.mode == ABReleaseNotesViewControllerModeProduction) { 150 | NSString *defaultsAppVersion = [[NSUserDefaults standardUserDefaults] objectForKey:ABReleaseNotesVersionUserDefaultsKey]; 151 | if (!defaultsAppVersion) { 152 | // it's nil, so write out a value first launch and bail. 153 | [[NSUserDefaults standardUserDefaults] setObject:[self.class appVersionNumber] forKey:ABReleaseNotesVersionUserDefaultsKey]; 154 | return; 155 | } 156 | 157 | if ([defaultsAppVersion compare:self.class.appVersionNumber options:NSNumericSearch] != NSOrderedDescending) { 158 | // no new app version installed since last launch. 159 | return; 160 | } 161 | } 162 | 163 | // If we've gotten this far, then there's seemingly an update to tell the user about. 164 | self.downloader = [[ABReleaseNotesDownloader alloc] initWithAppIdentifier:self.appIdentifier]; 165 | [self.downloader checkForUpdates:^(BOOL updated, NSString *releaseNotes, NSString *versionNumber) { 166 | if (self.mode == ABReleaseNotesViewControllerModeProduction && [versionNumber isEqual:[self.class appVersionNumber]]) { 167 | // Belt and suspenders in case something went wrong. 168 | NSLog(@"We downloaded release notes, but the version in the App Store is identical to our local version!"); 169 | NSLog(@"Local: %@ - App Store: %@", [self.class appVersionNumber], versionNumber); 170 | return; 171 | } 172 | 173 | self.bodyText.text = releaseNotes; 174 | 175 | block(updated); 176 | }]; 177 | } 178 | 179 | #pragma mark - UIViewControllerTransitioningDelegate 180 | 181 | - (UIPresentationController *)presentationControllerForPresentedViewController:(UIViewController *)presented presentingViewController:(UIViewController *)presenting sourceViewController:(UIViewController *)source { 182 | return [[ABReleaseNotesPresentationController alloc] initWithPresentedViewController:presented presentingViewController:presenting]; 183 | } 184 | 185 | #pragma mark - Private 186 | 187 | + (NSString*)appVersionNumber { 188 | return [NSBundle mainBundle].infoDictionary[@"CFBundleShortVersionString"]; 189 | } 190 | 191 | + (UIView*)makeLineViewWithColor:(UIColor*)color { 192 | UIView *v = [[UIView alloc] init]; 193 | v.backgroundColor = color; 194 | [v addConstraint:[NSLayoutConstraint constraintWithItem:v attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:nil attribute:0 multiplier:0 constant:1]]; 195 | return v; 196 | } 197 | 198 | 199 | 200 | + (UINavigationBar*)createNavigationBarWithTitle:(NSString*)title { 201 | UINavigationBar *navigationBar = [[UINavigationBar alloc] init]; 202 | [navigationBar pushNavigationItem:[[UINavigationItem alloc] initWithTitle:title] animated:YES]; 203 | return navigationBar; 204 | } 205 | 206 | + (UIView*)createEffectsViewsWithFrame:(CGRect)frame blurEffectStyle:(UIBlurEffectStyle)blurEffectStyle contentView:(UIView*)contentView { 207 | 208 | UIView *roundedCornerView = [[UIView alloc] initWithFrame:frame]; 209 | roundedCornerView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight; 210 | roundedCornerView.clipsToBounds = YES; 211 | roundedCornerView.layer.cornerRadius = 8.f; 212 | 213 | UIBlurEffect *blurEffect = [UIBlurEffect effectWithStyle:blurEffectStyle]; 214 | 215 | UIVisualEffectView *background = ({ 216 | UIVisualEffectView *effectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect]; 217 | effectView.frame = frame; 218 | effectView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight; 219 | effectView; 220 | }); 221 | [roundedCornerView addSubview:background]; 222 | 223 | UIVisualEffectView *vibrancyView = ({ 224 | UIVisualEffectView *v = [[UIVisualEffectView alloc] initWithEffect:blurEffect]; 225 | v.frame = background.contentView.bounds; 226 | v.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth; 227 | v; 228 | }); 229 | [background.contentView addSubview:vibrancyView]; 230 | 231 | contentView.frame = vibrancyView.contentView.bounds; 232 | [vibrancyView.contentView addSubview:contentView]; 233 | 234 | return roundedCornerView; 235 | } 236 | 237 | @end 238 | -------------------------------------------------------------------------------- /Demo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // ABReleaseNotesViewController 4 | // 5 | // Created by Aaron Brethorst on 3/2/16. 6 | // Copyright © 2016 Aaron Brethorst. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /Demo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // ABReleaseNotesViewController 4 | // 5 | // Created by Aaron Brethorst on 3/2/16. 6 | // Copyright © 2016 Aaron Brethorst. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | #import "ViewController.h" 11 | 12 | @interface AppDelegate () 13 | @property(nonatomic,strong) ViewController *viewController; 14 | @end 15 | 16 | @implementation AppDelegate 17 | 18 | 19 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 20 | 21 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 22 | self.viewController = [[ViewController alloc] init]; 23 | 24 | self.window.rootViewController = [[UINavigationController alloc] initWithRootViewController:self.viewController]; 25 | 26 | [self.window makeKeyAndVisible]; 27 | 28 | return YES; 29 | } 30 | 31 | - (void)applicationWillResignActive:(UIApplication *)application { 32 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 33 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 34 | } 35 | 36 | - (void)applicationDidEnterBackground:(UIApplication *)application { 37 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 38 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 39 | } 40 | 41 | - (void)applicationWillEnterForeground:(UIApplication *)application { 42 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 43 | } 44 | 45 | - (void)applicationDidBecomeActive:(UIApplication *)application { 46 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 47 | } 48 | 49 | - (void)applicationWillTerminate:(UIApplication *)application { 50 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 51 | } 52 | 53 | @end 54 | -------------------------------------------------------------------------------- /Demo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /Demo/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /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 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /Demo/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // ABReleaseNotesViewController 4 | // 5 | // Created by Aaron Brethorst on 3/2/16. 6 | // Copyright © 2016 Aaron Brethorst. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /Demo/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // ABReleaseNotesViewController 4 | // 5 | // Created by Aaron Brethorst on 3/2/16. 6 | // Copyright © 2016 Aaron Brethorst. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "ABReleaseNotesViewController.h" 11 | 12 | @interface ViewController () 13 | @property(nonatomic,strong) ABReleaseNotesViewController *releaseNotes; 14 | @property(nonatomic,strong) UIWebView *webView; 15 | @end 16 | 17 | @implementation ViewController 18 | 19 | - (void)viewDidLoad { 20 | [super viewDidLoad]; 21 | 22 | self.title = NSLocalizedString(@"Just a Web View", @""); 23 | 24 | self.webView = [[UIWebView alloc] initWithFrame:self.view.bounds]; 25 | self.webView.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth; 26 | [self.view addSubview:self.webView]; 27 | [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.apple.com"]]]; 28 | 29 | self.releaseNotes = [[ABReleaseNotesViewController alloc] initWithAppIdentifier:@"329380089"]; 30 | 31 | // if this was a real app, I would set the mode property on the release notes controller to 'production': 32 | // self.releaseNotes.mode = ABReleaseNotesViewControllerModeProduction; 33 | // It is set by default to ABReleaseNotesViewControllerModeTesting, which means that it always appears: 34 | self.releaseNotes.mode = ABReleaseNotesViewControllerModeTesting; 35 | } 36 | 37 | - (void)viewDidAppear:(BOOL)animated { 38 | [super viewDidAppear:animated]; 39 | 40 | [self.releaseNotes checkForUpdates:^(BOOL updated) { 41 | if (updated) { 42 | [self presentViewController:self.releaseNotes animated:YES completion:nil]; 43 | } 44 | }]; 45 | } 46 | @end -------------------------------------------------------------------------------- /Demo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // ABReleaseNotesViewController 4 | // 5 | // Created by Aaron Brethorst on 3/2/16. 6 | // Copyright © 2016 Aaron Brethorst. All rights reserved. 7 | // 8 | 9 | #import 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) 2016 Aaron Brethorst 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. -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '9.0' 2 | 3 | pod 'ABReleaseNotesViewController', :path => '.' -------------------------------------------------------------------------------- /Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ABReleaseNotesViewController (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - ABReleaseNotesViewController (from `.`) 6 | 7 | EXTERNAL SOURCES: 8 | ABReleaseNotesViewController: 9 | :path: "." 10 | 11 | SPEC CHECKSUMS: 12 | ABReleaseNotesViewController: b378ca2ec9494027a8ea584320453a0697073e56 13 | 14 | COCOAPODS: 0.39.0 15 | -------------------------------------------------------------------------------- /Pods/Headers/Private/ABReleaseNotesViewController/ABReleaseNotesDownloader.h: -------------------------------------------------------------------------------- 1 | ../../../../ABReleaseNotesViewController/ABReleaseNotesDownloader.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ABReleaseNotesViewController/ABReleaseNotesPresentationController.h: -------------------------------------------------------------------------------- 1 | ../../../../ABReleaseNotesViewController/ABReleaseNotesPresentationController.h -------------------------------------------------------------------------------- /Pods/Headers/Private/ABReleaseNotesViewController/ABReleaseNotesViewController.h: -------------------------------------------------------------------------------- 1 | ../../../../ABReleaseNotesViewController/ABReleaseNotesViewController.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ABReleaseNotesViewController/ABReleaseNotesDownloader.h: -------------------------------------------------------------------------------- 1 | ../../../../ABReleaseNotesViewController/ABReleaseNotesDownloader.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ABReleaseNotesViewController/ABReleaseNotesPresentationController.h: -------------------------------------------------------------------------------- 1 | ../../../../ABReleaseNotesViewController/ABReleaseNotesPresentationController.h -------------------------------------------------------------------------------- /Pods/Headers/Public/ABReleaseNotesViewController/ABReleaseNotesViewController.h: -------------------------------------------------------------------------------- 1 | ../../../../ABReleaseNotesViewController/ABReleaseNotesViewController.h -------------------------------------------------------------------------------- /Pods/Local Podspecs/ABReleaseNotesViewController.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ABReleaseNotesViewController", 3 | "version": "0.1.0", 4 | "summary": "The easiest way to display your App Store release notes inside your app after an update.", 5 | "description": "Since iOS 7, users have been opted in to automatic updates of their apps from the App Store. This is great for ensuring that our users are always on the latest versions of our products, but it means that it can be much more difficult to tell them about what's new and different in our updates. ABReleaseNotesViewController fixes that by displaying your app's release notes from the App Store inside your app on the first launch after an update.", 6 | "homepage": "https://github.com/aaronbrethorst/ABReleaseNotesViewController", 7 | "screenshots": "https://s3.amazonaws.com/cocoacontrols_production/uploads/control_image/image/8575/rel.jpg", 8 | "license": "MIT", 9 | "authors": { 10 | "Aaron Brethorst": "aaron@brethorsting.com" 11 | }, 12 | "source": { 13 | "git": "https://github.com/aaronbrethorst/ABReleaseNotesViewController.git", 14 | "tag": "0.1.0" 15 | }, 16 | "social_media_url": "https://twitter.com/aaronbrethorst", 17 | "platforms": { 18 | "ios": "9.0" 19 | }, 20 | "requires_arc": true, 21 | "source_files": "ABReleaseNotesViewController/**/*", 22 | "public_header_files": "ABReleaseNotesViewController/**/*.h", 23 | "frameworks": "UIKit" 24 | } 25 | -------------------------------------------------------------------------------- /Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ABReleaseNotesViewController (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - ABReleaseNotesViewController (from `.`) 6 | 7 | EXTERNAL SOURCES: 8 | ABReleaseNotesViewController: 9 | :path: "." 10 | 11 | SPEC CHECKSUMS: 12 | ABReleaseNotesViewController: b378ca2ec9494027a8ea584320453a0697073e56 13 | 14 | COCOAPODS: 0.39.0 15 | -------------------------------------------------------------------------------- /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 | 0A252E3AB3457CD2AC3CED23421AEC28 /* ABReleaseNotesPresentationController.h in Headers */ = {isa = PBXBuildFile; fileRef = C009B1E3B7F3C71BFF4F408AC484230C /* ABReleaseNotesPresentationController.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 140611970080B0D39DB1E23562B60098 /* ABReleaseNotesViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E758B90E962562ED7E4A1995584A796A /* ABReleaseNotesViewController.m */; }; 12 | 40E96258B51B92378C0509DA20B0AF9C /* ABReleaseNotesDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 54454B1207D8851F83965FFEA13D8F69 /* ABReleaseNotesDownloader.m */; }; 13 | 49C151D4FF556F8411DBE12F627F83C0 /* Pods-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 272643F56613CA0D336AE3DBF19DC404 /* Pods-dummy.m */; }; 14 | 70CE2546677FAF505DAE65500768E4FF /* ABReleaseNotesViewController-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 77A7FA1A113D2AC6F0E1E4730F0B9FED /* ABReleaseNotesViewController-dummy.m */; }; 15 | 73464E658D0ED53CD2CA0931810C0363 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6E7E5AF37923BFA48D6994B9BFC6535F /* Foundation.framework */; }; 16 | 98D1D7E03EDBA47A7E26C97B29E363B9 /* ABReleaseNotesPresentationController.m in Sources */ = {isa = PBXBuildFile; fileRef = E37B62D1CAC2DE3FE8B1469D992F1FE7 /* ABReleaseNotesPresentationController.m */; }; 17 | A61643D39E0D544382AEDD0A0D1A310C /* ABReleaseNotesDownloader.h in Headers */ = {isa = PBXBuildFile; fileRef = 6742DB050B0616808CE02A34B526FB9A /* ABReleaseNotesDownloader.h */; settings = {ATTRIBUTES = (Public, ); }; }; 18 | AD7D987F5C3575B119A8C1B390F0EBAB /* ABReleaseNotesViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = CED2A2A108371FC496F9C8EAA68923DC /* ABReleaseNotesViewController.h */; settings = {ATTRIBUTES = (Public, ); }; }; 19 | CE027C77964E387B888999DAE7330DC7 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6E7E5AF37923BFA48D6994B9BFC6535F /* Foundation.framework */; }; 20 | DB3CD889D57248A545C53D446244BCF7 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C3B7BDF5CE5CB8F095FE12DA55D9A9BB /* UIKit.framework */; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXContainerItemProxy section */ 24 | 68A05FA4851A65F69ED68207BB9504DB /* PBXContainerItemProxy */ = { 25 | isa = PBXContainerItemProxy; 26 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 27 | proxyType = 1; 28 | remoteGlobalIDString = 984EF86269CF25B60D5BB0F915EBF1C4; 29 | remoteInfo = ABReleaseNotesViewController; 30 | }; 31 | /* End PBXContainerItemProxy section */ 32 | 33 | /* Begin PBXFileReference section */ 34 | 10834806BD7B412BC24F347361FA2C8E /* Pods-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-acknowledgements.plist"; sourceTree = ""; }; 35 | 272643F56613CA0D336AE3DBF19DC404 /* Pods-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-dummy.m"; sourceTree = ""; }; 36 | 37DB56D75062CC75FCB0966E1C6E8A8E /* Pods-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-acknowledgements.markdown"; sourceTree = ""; }; 37 | 467A4EFCDAA31D58341CE6D895165F10 /* ABReleaseNotesViewController-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ABReleaseNotesViewController-prefix.pch"; sourceTree = ""; }; 38 | 485FCA2A35714AF637517709A069DCF4 /* libABReleaseNotesViewController.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libABReleaseNotesViewController.a; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 4E762F23EC34ED4A6FF3312D84E33A40 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Pods.debug.xcconfig; sourceTree = ""; }; 40 | 54454B1207D8851F83965FFEA13D8F69 /* ABReleaseNotesDownloader.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = ABReleaseNotesDownloader.m; sourceTree = ""; }; 41 | 6742DB050B0616808CE02A34B526FB9A /* ABReleaseNotesDownloader.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = ABReleaseNotesDownloader.h; sourceTree = ""; }; 42 | 6911BECA35E7518D864239B7E898EEF3 /* Pods-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-frameworks.sh"; sourceTree = ""; }; 43 | 6E7E5AF37923BFA48D6994B9BFC6535F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 44 | 77A7FA1A113D2AC6F0E1E4730F0B9FED /* ABReleaseNotesViewController-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "ABReleaseNotesViewController-dummy.m"; sourceTree = ""; }; 45 | 98C98CDFB3F20F2925F6CD1F141BB14F /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Pods.release.xcconfig; sourceTree = ""; }; 46 | A1A36D34413696BE466E2CA0AFF194DA /* Pods-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-resources.sh"; sourceTree = ""; }; 47 | A49A8B1F602B311547A93A634D9EDCB1 /* ABReleaseNotesViewController.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = ABReleaseNotesViewController.xcconfig; sourceTree = ""; }; 48 | BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 49 | BDDD4D596866E2A440A9FC8C6BCDF707 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | C009B1E3B7F3C71BFF4F408AC484230C /* ABReleaseNotesPresentationController.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = ABReleaseNotesPresentationController.h; sourceTree = ""; }; 51 | C3B7BDF5CE5CB8F095FE12DA55D9A9BB /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; 52 | CED2A2A108371FC496F9C8EAA68923DC /* ABReleaseNotesViewController.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = ABReleaseNotesViewController.h; sourceTree = ""; }; 53 | E37B62D1CAC2DE3FE8B1469D992F1FE7 /* ABReleaseNotesPresentationController.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = ABReleaseNotesPresentationController.m; sourceTree = ""; }; 54 | E758B90E962562ED7E4A1995584A796A /* ABReleaseNotesViewController.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = ABReleaseNotesViewController.m; sourceTree = ""; }; 55 | /* End PBXFileReference section */ 56 | 57 | /* Begin PBXFrameworksBuildPhase section */ 58 | 2FFF183F8BCC29C9423E0A250469F814 /* Frameworks */ = { 59 | isa = PBXFrameworksBuildPhase; 60 | buildActionMask = 2147483647; 61 | files = ( 62 | 73464E658D0ED53CD2CA0931810C0363 /* Foundation.framework in Frameworks */, 63 | ); 64 | runOnlyForDeploymentPostprocessing = 0; 65 | }; 66 | 718B54A3AF4BB06308F7B8F5C1E97C3E /* Frameworks */ = { 67 | isa = PBXFrameworksBuildPhase; 68 | buildActionMask = 2147483647; 69 | files = ( 70 | CE027C77964E387B888999DAE7330DC7 /* Foundation.framework in Frameworks */, 71 | DB3CD889D57248A545C53D446244BCF7 /* UIKit.framework in Frameworks */, 72 | ); 73 | runOnlyForDeploymentPostprocessing = 0; 74 | }; 75 | /* End PBXFrameworksBuildPhase section */ 76 | 77 | /* Begin PBXGroup section */ 78 | 032524B428F2A090F466002DF21F7A27 /* Products */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 485FCA2A35714AF637517709A069DCF4 /* libABReleaseNotesViewController.a */, 82 | BDDD4D596866E2A440A9FC8C6BCDF707 /* libPods.a */, 83 | ); 84 | name = Products; 85 | sourceTree = ""; 86 | }; 87 | 037C0CA694176A3C0915F62C9D20B3E6 /* Targets Support Files */ = { 88 | isa = PBXGroup; 89 | children = ( 90 | B3D1D13E0C6553800746CB8FD61CF946 /* Pods */, 91 | ); 92 | name = "Targets Support Files"; 93 | sourceTree = ""; 94 | }; 95 | 18340F12838DEE43507667CC74401EB1 /* iOS */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 6E7E5AF37923BFA48D6994B9BFC6535F /* Foundation.framework */, 99 | C3B7BDF5CE5CB8F095FE12DA55D9A9BB /* UIKit.framework */, 100 | ); 101 | name = iOS; 102 | sourceTree = ""; 103 | }; 104 | 1F313904D06DC948C76ED01228AC1CDF /* Support Files */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | A49A8B1F602B311547A93A634D9EDCB1 /* ABReleaseNotesViewController.xcconfig */, 108 | 77A7FA1A113D2AC6F0E1E4730F0B9FED /* ABReleaseNotesViewController-dummy.m */, 109 | 467A4EFCDAA31D58341CE6D895165F10 /* ABReleaseNotesViewController-prefix.pch */, 110 | ); 111 | name = "Support Files"; 112 | path = "Pods/Target Support Files/ABReleaseNotesViewController"; 113 | sourceTree = ""; 114 | }; 115 | 433CD3331B6C3787F473C941B61FC68F /* Frameworks */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 18340F12838DEE43507667CC74401EB1 /* iOS */, 119 | ); 120 | name = Frameworks; 121 | sourceTree = ""; 122 | }; 123 | 652567F5A21FCD79228C90EC3BFE96B6 /* ABReleaseNotesViewController */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | 7868E479439BDECD042B197F75A5E427 /* ABReleaseNotesViewController */, 127 | 1F313904D06DC948C76ED01228AC1CDF /* Support Files */, 128 | ); 129 | name = ABReleaseNotesViewController; 130 | path = ..; 131 | sourceTree = ""; 132 | }; 133 | 75A3C3EDD1E6BE063F4E270FE8990C27 /* Development Pods */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 652567F5A21FCD79228C90EC3BFE96B6 /* ABReleaseNotesViewController */, 137 | ); 138 | name = "Development Pods"; 139 | sourceTree = ""; 140 | }; 141 | 7868E479439BDECD042B197F75A5E427 /* ABReleaseNotesViewController */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | 6742DB050B0616808CE02A34B526FB9A /* ABReleaseNotesDownloader.h */, 145 | 54454B1207D8851F83965FFEA13D8F69 /* ABReleaseNotesDownloader.m */, 146 | C009B1E3B7F3C71BFF4F408AC484230C /* ABReleaseNotesPresentationController.h */, 147 | E37B62D1CAC2DE3FE8B1469D992F1FE7 /* ABReleaseNotesPresentationController.m */, 148 | CED2A2A108371FC496F9C8EAA68923DC /* ABReleaseNotesViewController.h */, 149 | E758B90E962562ED7E4A1995584A796A /* ABReleaseNotesViewController.m */, 150 | ); 151 | path = ABReleaseNotesViewController; 152 | sourceTree = ""; 153 | }; 154 | 7DB346D0F39D3F0E887471402A8071AB = { 155 | isa = PBXGroup; 156 | children = ( 157 | BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */, 158 | 75A3C3EDD1E6BE063F4E270FE8990C27 /* Development Pods */, 159 | 433CD3331B6C3787F473C941B61FC68F /* Frameworks */, 160 | 032524B428F2A090F466002DF21F7A27 /* Products */, 161 | 037C0CA694176A3C0915F62C9D20B3E6 /* Targets Support Files */, 162 | ); 163 | sourceTree = ""; 164 | }; 165 | B3D1D13E0C6553800746CB8FD61CF946 /* Pods */ = { 166 | isa = PBXGroup; 167 | children = ( 168 | 37DB56D75062CC75FCB0966E1C6E8A8E /* Pods-acknowledgements.markdown */, 169 | 10834806BD7B412BC24F347361FA2C8E /* Pods-acknowledgements.plist */, 170 | 272643F56613CA0D336AE3DBF19DC404 /* Pods-dummy.m */, 171 | 6911BECA35E7518D864239B7E898EEF3 /* Pods-frameworks.sh */, 172 | A1A36D34413696BE466E2CA0AFF194DA /* Pods-resources.sh */, 173 | 4E762F23EC34ED4A6FF3312D84E33A40 /* Pods.debug.xcconfig */, 174 | 98C98CDFB3F20F2925F6CD1F141BB14F /* Pods.release.xcconfig */, 175 | ); 176 | name = Pods; 177 | path = "Target Support Files/Pods"; 178 | sourceTree = ""; 179 | }; 180 | /* End PBXGroup section */ 181 | 182 | /* Begin PBXHeadersBuildPhase section */ 183 | 0084ED6B5B1174BBE9D38B5C528EF24E /* Headers */ = { 184 | isa = PBXHeadersBuildPhase; 185 | buildActionMask = 2147483647; 186 | files = ( 187 | A61643D39E0D544382AEDD0A0D1A310C /* ABReleaseNotesDownloader.h in Headers */, 188 | 0A252E3AB3457CD2AC3CED23421AEC28 /* ABReleaseNotesPresentationController.h in Headers */, 189 | AD7D987F5C3575B119A8C1B390F0EBAB /* ABReleaseNotesViewController.h in Headers */, 190 | ); 191 | runOnlyForDeploymentPostprocessing = 0; 192 | }; 193 | /* End PBXHeadersBuildPhase section */ 194 | 195 | /* Begin PBXNativeTarget section */ 196 | 24949691361C730FF3B40D4719F91267 /* Pods */ = { 197 | isa = PBXNativeTarget; 198 | buildConfigurationList = ABC9FD17826483DA1E604C9B0C9BAB40 /* Build configuration list for PBXNativeTarget "Pods" */; 199 | buildPhases = ( 200 | 3AC752D964CABF5E4A16F1C53BECEDB6 /* Sources */, 201 | 2FFF183F8BCC29C9423E0A250469F814 /* Frameworks */, 202 | ); 203 | buildRules = ( 204 | ); 205 | dependencies = ( 206 | BE0E4BA6E14152E6C3CA80C62207D26F /* PBXTargetDependency */, 207 | ); 208 | name = Pods; 209 | productName = Pods; 210 | productReference = BDDD4D596866E2A440A9FC8C6BCDF707 /* libPods.a */; 211 | productType = "com.apple.product-type.library.static"; 212 | }; 213 | 984EF86269CF25B60D5BB0F915EBF1C4 /* ABReleaseNotesViewController */ = { 214 | isa = PBXNativeTarget; 215 | buildConfigurationList = C66E002077F0D84F5930126490488EC1 /* Build configuration list for PBXNativeTarget "ABReleaseNotesViewController" */; 216 | buildPhases = ( 217 | ED321CF060EFB03B5439913A0278956A /* Sources */, 218 | 718B54A3AF4BB06308F7B8F5C1E97C3E /* Frameworks */, 219 | 0084ED6B5B1174BBE9D38B5C528EF24E /* Headers */, 220 | ); 221 | buildRules = ( 222 | ); 223 | dependencies = ( 224 | ); 225 | name = ABReleaseNotesViewController; 226 | productName = ABReleaseNotesViewController; 227 | productReference = 485FCA2A35714AF637517709A069DCF4 /* libABReleaseNotesViewController.a */; 228 | productType = "com.apple.product-type.library.static"; 229 | }; 230 | /* End PBXNativeTarget section */ 231 | 232 | /* Begin PBXProject section */ 233 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 234 | isa = PBXProject; 235 | attributes = { 236 | LastSwiftUpdateCheck = 0700; 237 | LastUpgradeCheck = 0700; 238 | }; 239 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 240 | compatibilityVersion = "Xcode 3.2"; 241 | developmentRegion = English; 242 | hasScannedForEncodings = 0; 243 | knownRegions = ( 244 | en, 245 | ); 246 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 247 | productRefGroup = 032524B428F2A090F466002DF21F7A27 /* Products */; 248 | projectDirPath = ""; 249 | projectRoot = ""; 250 | targets = ( 251 | 984EF86269CF25B60D5BB0F915EBF1C4 /* ABReleaseNotesViewController */, 252 | 24949691361C730FF3B40D4719F91267 /* Pods */, 253 | ); 254 | }; 255 | /* End PBXProject section */ 256 | 257 | /* Begin PBXSourcesBuildPhase section */ 258 | 3AC752D964CABF5E4A16F1C53BECEDB6 /* Sources */ = { 259 | isa = PBXSourcesBuildPhase; 260 | buildActionMask = 2147483647; 261 | files = ( 262 | 49C151D4FF556F8411DBE12F627F83C0 /* Pods-dummy.m in Sources */, 263 | ); 264 | runOnlyForDeploymentPostprocessing = 0; 265 | }; 266 | ED321CF060EFB03B5439913A0278956A /* Sources */ = { 267 | isa = PBXSourcesBuildPhase; 268 | buildActionMask = 2147483647; 269 | files = ( 270 | 40E96258B51B92378C0509DA20B0AF9C /* ABReleaseNotesDownloader.m in Sources */, 271 | 98D1D7E03EDBA47A7E26C97B29E363B9 /* ABReleaseNotesPresentationController.m in Sources */, 272 | 70CE2546677FAF505DAE65500768E4FF /* ABReleaseNotesViewController-dummy.m in Sources */, 273 | 140611970080B0D39DB1E23562B60098 /* ABReleaseNotesViewController.m in Sources */, 274 | ); 275 | runOnlyForDeploymentPostprocessing = 0; 276 | }; 277 | /* End PBXSourcesBuildPhase section */ 278 | 279 | /* Begin PBXTargetDependency section */ 280 | BE0E4BA6E14152E6C3CA80C62207D26F /* PBXTargetDependency */ = { 281 | isa = PBXTargetDependency; 282 | name = ABReleaseNotesViewController; 283 | target = 984EF86269CF25B60D5BB0F915EBF1C4 /* ABReleaseNotesViewController */; 284 | targetProxy = 68A05FA4851A65F69ED68207BB9504DB /* PBXContainerItemProxy */; 285 | }; 286 | /* End PBXTargetDependency section */ 287 | 288 | /* Begin XCBuildConfiguration section */ 289 | 353704FA81099F15DCE3E5D476B3BD07 /* Debug */ = { 290 | isa = XCBuildConfiguration; 291 | baseConfigurationReference = A49A8B1F602B311547A93A634D9EDCB1 /* ABReleaseNotesViewController.xcconfig */; 292 | buildSettings = { 293 | ENABLE_STRICT_OBJC_MSGSEND = YES; 294 | GCC_PREFIX_HEADER = "Target Support Files/ABReleaseNotesViewController/ABReleaseNotesViewController-prefix.pch"; 295 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 296 | MTL_ENABLE_DEBUG_INFO = YES; 297 | OTHER_LDFLAGS = ""; 298 | OTHER_LIBTOOLFLAGS = ""; 299 | PRIVATE_HEADERS_FOLDER_PATH = ""; 300 | PRODUCT_NAME = "$(TARGET_NAME)"; 301 | PUBLIC_HEADERS_FOLDER_PATH = ""; 302 | SDKROOT = iphoneos; 303 | SKIP_INSTALL = YES; 304 | }; 305 | name = Debug; 306 | }; 307 | 5CE5176205D06FF3FFE3DDDA9291E44B /* Debug */ = { 308 | isa = XCBuildConfiguration; 309 | buildSettings = { 310 | ALWAYS_SEARCH_USER_PATHS = NO; 311 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 312 | CLANG_CXX_LIBRARY = "libc++"; 313 | CLANG_ENABLE_MODULES = YES; 314 | CLANG_ENABLE_OBJC_ARC = YES; 315 | CLANG_WARN_BOOL_CONVERSION = YES; 316 | CLANG_WARN_CONSTANT_CONVERSION = YES; 317 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 318 | CLANG_WARN_EMPTY_BODY = YES; 319 | CLANG_WARN_ENUM_CONVERSION = YES; 320 | CLANG_WARN_INT_CONVERSION = YES; 321 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 322 | CLANG_WARN_UNREACHABLE_CODE = YES; 323 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 324 | COPY_PHASE_STRIP = NO; 325 | GCC_C_LANGUAGE_STANDARD = gnu99; 326 | GCC_DYNAMIC_NO_PIC = NO; 327 | GCC_OPTIMIZATION_LEVEL = 0; 328 | GCC_PREPROCESSOR_DEFINITIONS = ( 329 | "DEBUG=1", 330 | "$(inherited)", 331 | ); 332 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 333 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 334 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 335 | GCC_WARN_UNDECLARED_SELECTOR = YES; 336 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 337 | GCC_WARN_UNUSED_FUNCTION = YES; 338 | GCC_WARN_UNUSED_VARIABLE = YES; 339 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 340 | ONLY_ACTIVE_ARCH = YES; 341 | STRIP_INSTALLED_PRODUCT = NO; 342 | SYMROOT = "${SRCROOT}/../build"; 343 | }; 344 | name = Debug; 345 | }; 346 | 74857149DC1E0D599B8A01A78349A926 /* Release */ = { 347 | isa = XCBuildConfiguration; 348 | buildSettings = { 349 | ALWAYS_SEARCH_USER_PATHS = NO; 350 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 351 | CLANG_CXX_LIBRARY = "libc++"; 352 | CLANG_ENABLE_MODULES = YES; 353 | CLANG_ENABLE_OBJC_ARC = YES; 354 | CLANG_WARN_BOOL_CONVERSION = YES; 355 | CLANG_WARN_CONSTANT_CONVERSION = YES; 356 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 357 | CLANG_WARN_EMPTY_BODY = YES; 358 | CLANG_WARN_ENUM_CONVERSION = YES; 359 | CLANG_WARN_INT_CONVERSION = YES; 360 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 361 | CLANG_WARN_UNREACHABLE_CODE = YES; 362 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 363 | COPY_PHASE_STRIP = YES; 364 | ENABLE_NS_ASSERTIONS = NO; 365 | GCC_C_LANGUAGE_STANDARD = gnu99; 366 | GCC_PREPROCESSOR_DEFINITIONS = "RELEASE=1"; 367 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 368 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 369 | GCC_WARN_UNDECLARED_SELECTOR = YES; 370 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 371 | GCC_WARN_UNUSED_FUNCTION = YES; 372 | GCC_WARN_UNUSED_VARIABLE = YES; 373 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 374 | STRIP_INSTALLED_PRODUCT = NO; 375 | SYMROOT = "${SRCROOT}/../build"; 376 | VALIDATE_PRODUCT = YES; 377 | }; 378 | name = Release; 379 | }; 380 | BFC38462EC4E4EF08DE4A7D7083B069A /* Release */ = { 381 | isa = XCBuildConfiguration; 382 | baseConfigurationReference = 98C98CDFB3F20F2925F6CD1F141BB14F /* Pods.release.xcconfig */; 383 | buildSettings = { 384 | ENABLE_STRICT_OBJC_MSGSEND = YES; 385 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 386 | MACH_O_TYPE = staticlib; 387 | MTL_ENABLE_DEBUG_INFO = NO; 388 | OTHER_LDFLAGS = ""; 389 | OTHER_LIBTOOLFLAGS = ""; 390 | PODS_ROOT = "$(SRCROOT)"; 391 | PRODUCT_NAME = "$(TARGET_NAME)"; 392 | SDKROOT = iphoneos; 393 | SKIP_INSTALL = YES; 394 | }; 395 | name = Release; 396 | }; 397 | C9CFFC3F37E472C8F21BA7B61E646B37 /* Release */ = { 398 | isa = XCBuildConfiguration; 399 | baseConfigurationReference = A49A8B1F602B311547A93A634D9EDCB1 /* ABReleaseNotesViewController.xcconfig */; 400 | buildSettings = { 401 | ENABLE_STRICT_OBJC_MSGSEND = YES; 402 | GCC_PREFIX_HEADER = "Target Support Files/ABReleaseNotesViewController/ABReleaseNotesViewController-prefix.pch"; 403 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 404 | MTL_ENABLE_DEBUG_INFO = NO; 405 | OTHER_LDFLAGS = ""; 406 | OTHER_LIBTOOLFLAGS = ""; 407 | PRIVATE_HEADERS_FOLDER_PATH = ""; 408 | PRODUCT_NAME = "$(TARGET_NAME)"; 409 | PUBLIC_HEADERS_FOLDER_PATH = ""; 410 | SDKROOT = iphoneos; 411 | SKIP_INSTALL = YES; 412 | }; 413 | name = Release; 414 | }; 415 | CE5BA401A33C5A5BB6BCF013C5F29235 /* Debug */ = { 416 | isa = XCBuildConfiguration; 417 | baseConfigurationReference = 4E762F23EC34ED4A6FF3312D84E33A40 /* Pods.debug.xcconfig */; 418 | buildSettings = { 419 | ENABLE_STRICT_OBJC_MSGSEND = YES; 420 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 421 | MACH_O_TYPE = staticlib; 422 | MTL_ENABLE_DEBUG_INFO = YES; 423 | OTHER_LDFLAGS = ""; 424 | OTHER_LIBTOOLFLAGS = ""; 425 | PODS_ROOT = "$(SRCROOT)"; 426 | PRODUCT_NAME = "$(TARGET_NAME)"; 427 | SDKROOT = iphoneos; 428 | SKIP_INSTALL = YES; 429 | }; 430 | name = Debug; 431 | }; 432 | /* End XCBuildConfiguration section */ 433 | 434 | /* Begin XCConfigurationList section */ 435 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 436 | isa = XCConfigurationList; 437 | buildConfigurations = ( 438 | 5CE5176205D06FF3FFE3DDDA9291E44B /* Debug */, 439 | 74857149DC1E0D599B8A01A78349A926 /* Release */, 440 | ); 441 | defaultConfigurationIsVisible = 0; 442 | defaultConfigurationName = Release; 443 | }; 444 | ABC9FD17826483DA1E604C9B0C9BAB40 /* Build configuration list for PBXNativeTarget "Pods" */ = { 445 | isa = XCConfigurationList; 446 | buildConfigurations = ( 447 | CE5BA401A33C5A5BB6BCF013C5F29235 /* Debug */, 448 | BFC38462EC4E4EF08DE4A7D7083B069A /* Release */, 449 | ); 450 | defaultConfigurationIsVisible = 0; 451 | defaultConfigurationName = Release; 452 | }; 453 | C66E002077F0D84F5930126490488EC1 /* Build configuration list for PBXNativeTarget "ABReleaseNotesViewController" */ = { 454 | isa = XCConfigurationList; 455 | buildConfigurations = ( 456 | 353704FA81099F15DCE3E5D476B3BD07 /* Debug */, 457 | C9CFFC3F37E472C8F21BA7B61E646B37 /* Release */, 458 | ); 459 | defaultConfigurationIsVisible = 0; 460 | defaultConfigurationName = Release; 461 | }; 462 | /* End XCConfigurationList section */ 463 | }; 464 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 465 | } 466 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/xcshareddata/xcschemes/ABReleaseNotesViewController.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 44 | 45 | 46 | 52 | 53 | 55 | 56 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /Pods/Target Support Files/ABReleaseNotesViewController/ABReleaseNotesViewController-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_ABReleaseNotesViewController : NSObject 3 | @end 4 | @implementation PodsDummy_ABReleaseNotesViewController 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/ABReleaseNotesViewController/ABReleaseNotesViewController-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Pods/Target Support Files/ABReleaseNotesViewController/ABReleaseNotesViewController.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/ABReleaseNotesViewController" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/ABReleaseNotesViewController" 3 | OTHER_LDFLAGS = -framework "UIKit" 4 | PODS_ROOT = ${SRCROOT} 5 | SKIP_INSTALL = YES -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods/Pods-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## ABReleaseNotesViewController 5 | 6 | The MIT License (MIT) 7 | 8 | Copyright (c) 2016 Aaron Brethorst 9 | 10 | Permission is hereby granted, free of charge, to any person obtaining a copy 11 | of this software and associated documentation files (the "Software"), to deal 12 | in the Software without restriction, including without limitation the rights 13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 | copies of the Software, and to permit persons to whom the Software is 15 | furnished to do so, subject to the following conditions: 16 | 17 | The above copyright notice and this permission notice shall be included in all 18 | copies or substantial portions of the Software. 19 | 20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 26 | SOFTWARE. 27 | Generated by CocoaPods - http://cocoapods.org 28 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods/Pods-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 | The MIT License (MIT) 18 | 19 | Copyright (c) 2016 Aaron Brethorst 20 | 21 | Permission is hereby granted, free of charge, to any person obtaining a copy 22 | of this software and associated documentation files (the "Software"), to deal 23 | in the Software without restriction, including without limitation the rights 24 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 25 | copies of the Software, and to permit persons to whom the Software is 26 | furnished to do so, subject to the following conditions: 27 | 28 | The above copyright notice and this permission notice shall be included in all 29 | copies or substantial portions of the Software. 30 | 31 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 32 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 33 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 34 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 35 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 36 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 37 | SOFTWARE. 38 | Title 39 | ABReleaseNotesViewController 40 | Type 41 | PSGroupSpecifier 42 | 43 | 44 | FooterText 45 | Generated by CocoaPods - http://cocoapods.org 46 | Title 47 | 48 | Type 49 | PSGroupSpecifier 50 | 51 | 52 | StringsTable 53 | Acknowledgements 54 | Title 55 | Acknowledgements 56 | 57 | 58 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods/Pods-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods : NSObject 3 | @end 4 | @implementation PodsDummy_Pods 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods/Pods-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="${CONFIGURATION_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} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --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/Pods-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${CONFIGURATION_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 | realpath() { 12 | DIRECTORY="$(cd "${1%/*}" && pwd)" 13 | FILENAME="${1##*/}" 14 | echo "$DIRECTORY/$FILENAME" 15 | } 16 | 17 | install_resource() 18 | { 19 | case $1 in 20 | *.storyboard) 21 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 22 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 23 | ;; 24 | *.xib) 25 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 26 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 27 | ;; 28 | *.framework) 29 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 30 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 31 | echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 32 | rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 33 | ;; 34 | *.xcdatamodel) 35 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" 36 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" 37 | ;; 38 | *.xcdatamodeld) 39 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" 40 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" 41 | ;; 42 | *.xcmappingmodel) 43 | echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" 44 | xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" 45 | ;; 46 | *.xcassets) 47 | ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1") 48 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 49 | ;; 50 | /*) 51 | echo "$1" 52 | echo "$1" >> "$RESOURCES_TO_COPY" 53 | ;; 54 | *) 55 | echo "${PODS_ROOT}/$1" 56 | echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" 57 | ;; 58 | esac 59 | } 60 | 61 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 62 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 63 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 64 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 65 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 66 | fi 67 | rm -f "$RESOURCES_TO_COPY" 68 | 69 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 70 | then 71 | case "${TARGETED_DEVICE_FAMILY}" in 72 | 1,2) 73 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 74 | ;; 75 | 1) 76 | TARGET_DEVICE_ARGS="--target-device iphone" 77 | ;; 78 | 2) 79 | TARGET_DEVICE_ARGS="--target-device ipad" 80 | ;; 81 | *) 82 | TARGET_DEVICE_ARGS="--target-device mac" 83 | ;; 84 | esac 85 | 86 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 87 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 88 | while read line; do 89 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 90 | XCASSET_FILES+=("$line") 91 | fi 92 | done <<<"$OTHER_XCASSETS" 93 | 94 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 95 | fi 96 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods/Pods.debug.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/ABReleaseNotesViewController" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/ABReleaseNotesViewController" 4 | OTHER_LDFLAGS = $(inherited) -ObjC -l"ABReleaseNotesViewController" -framework "UIKit" 5 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods/Pods.release.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/ABReleaseNotesViewController" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/ABReleaseNotesViewController" 4 | OTHER_LDFLAGS = $(inherited) -ObjC -l"ABReleaseNotesViewController" -framework "UIKit" 5 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ABReleaseNotesViewController 2 | ==== 3 | 4 | Since iOS 7, users have been opted in to automatic updates of their apps from the App Store. This is great for ensuring that our users are always on the latest versions of our products, but it means that it can be much more difficult to tell them about what's new and different in our updates. `ABReleaseNotesViewController` fixes that by displaying your app's release notes from the App Store inside your app on the first launch after an update. 5 | 6 | `ABReleaseNotesViewController` is an easy-to-use, reasonably attractive way to display your application's release notes from the App Store inside your app. This project was inspired by [https://github.com/iGriever/TWSReleaseNotesView](TWSReleaseNotesView). I've used `TWSReleaseNotesView` in the past, and it was great, but it hasn't been updated in a few years. 7 | 8 | ![Animated GIF demonstrating the project](http://i.imgur.com/wgwhOY8.gif) 9 | 10 | Quickstart 11 | ==== 12 | 13 | Create your release notes object in your init method, or in `-viewDidLoad`: 14 | 15 | - (void)viewDidLoad { 16 | [super viewDidLoad]; 17 | 18 | self.releaseNotes = [ABReleaseNotesViewController releaseNotesControllerWithAppIdentifier:@"329380089" title:NSLocalizedString(@"Release Notes", @"")]; 19 | } 20 | 21 | After your view appears, begin checking for updates. If an update is available, you may present the view controller immediately, as depicted below: 22 | 23 | [self.releaseNotes checkForUpdates:^(BOOL updated) { 24 | if (updated) { 25 | [self presentViewController:self.releaseNotes animated:YES completion:nil]; 26 | } 27 | }]; 28 | 29 | Additionally, you could present an alert or some sort of non-modal user interface to the user informing them that they can read release notes if desired. 30 | 31 | System Requirements 32 | ==== 33 | 34 | iOS 9.0 and above. Should be compatible with tvOS, but I haven't tried it there, yet. Supporting iOS 8 should be relatively straightforward, if you're willing to deal with some Auto Layout annoyances that are rendered trivial by `UIStackView`. 35 | 36 | Issues, Pull Requests, etc. 37 | ==== 38 | 39 | Issues, bug fixes, and new features are always welcome. Priority will be given to issues that are accompanied by patches, but I will do my best to stay on top of problems with the code. 40 | 41 | TODOs 42 | ==== 43 | 44 | - [ ] Cocoapods 45 | - [ ] Carthage 46 | - [ ] Optional Markdown formatting of release notes 47 | 48 | Credits 49 | ==== 50 | 51 | * Created by [Aaron Brethorst](http://www.twitter.com/aaronbrethorst). 52 | * Inspired by [TWSReleaseNotesView](https://github.com/iGriever/TWSReleaseNotesView), by [Matteo Lallone](https://twitter.com/iGriever) and [Gianluca Divisi](https://twitter.com/gianlucadivisi). 53 | 54 | MIT License 55 | ==== 56 | 57 | The MIT License (MIT) 58 | 59 | Copyright (c) 2016 Aaron Brethorst 60 | 61 | Permission is hereby granted, free of charge, to any person obtaining a copy 62 | of this software and associated documentation files (the "Software"), to deal 63 | in the Software without restriction, including without limitation the rights 64 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 65 | copies of the Software, and to permit persons to whom the Software is 66 | furnished to do so, subject to the following conditions: 67 | 68 | The above copyright notice and this permission notice shall be included in all 69 | copies or substantial portions of the Software. 70 | 71 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 72 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 73 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 74 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 75 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 76 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 77 | SOFTWARE. 78 | --------------------------------------------------------------------------------