├── BuildNumberTagger.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── BuildNumberTagger.xccheckout └── xcuserdata │ └── madushan.xcuserdatad │ └── xcschemes │ ├── BuildNumberTagger.xcscheme │ └── xcschememanagement.plist ├── BuildNumberTagger ├── AppDelegate.swift ├── AppIconReference.xcassets │ └── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-60@2x.png │ │ ├── Icon-60@3x.png │ │ ├── Icon-72.png │ │ ├── Icon-72@2x.png │ │ ├── Icon-76.png │ │ ├── Icon-76@2x.png │ │ ├── Icon-Small-50.png │ │ ├── Icon-Small-50@2x.png │ │ ├── Icon-Small.png │ │ ├── Icon-Small@2x.png │ │ ├── Icon-Small@3x.png │ │ ├── Icon-Spotlight-40.png │ │ ├── Icon-Spotlight-40@2x.png │ │ ├── Icon-Spotlight-40@3x.png │ │ ├── Icon.png │ │ └── Icon@2x.png ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard ├── Images.xcassets │ └── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-60@2x.png │ │ ├── Icon-60@3x.png │ │ ├── Icon-72.png │ │ ├── Icon-72@2x.png │ │ ├── Icon-76.png │ │ ├── Icon-76@2x.png │ │ ├── Icon-Small-50.png │ │ ├── Icon-Small-50@2x.png │ │ ├── Icon-Small.png │ │ ├── Icon-Small@2x.png │ │ ├── Icon-Small@3x.png │ │ ├── Icon-Spotlight-40.png │ │ ├── Icon-Spotlight-40@2x.png │ │ ├── Icon-Spotlight-40@3x.png │ │ ├── Icon.png │ │ └── Icon@2x.png ├── Info.plist └── ViewController.swift ├── BuildNumberTaggerTests ├── BuildNumberTaggerTests.swift └── Info.plist ├── LICENSE ├── README.md └── screenshot.png /BuildNumberTagger.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 4D76CC111BB0EA1600CADF20 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4D76CC101BB0EA1600CADF20 /* AppDelegate.swift */; }; 11 | 4D76CC131BB0EA1600CADF20 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4D76CC121BB0EA1600CADF20 /* ViewController.swift */; }; 12 | 4D76CC161BB0EA1600CADF20 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4D76CC141BB0EA1600CADF20 /* Main.storyboard */; }; 13 | 4D76CC181BB0EA1600CADF20 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4D76CC171BB0EA1600CADF20 /* Images.xcassets */; }; 14 | 4D76CC1B1BB0EA1600CADF20 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4D76CC191BB0EA1600CADF20 /* LaunchScreen.xib */; }; 15 | 4D76CC271BB0EA1600CADF20 /* BuildNumberTaggerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4D76CC261BB0EA1600CADF20 /* BuildNumberTaggerTests.swift */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXContainerItemProxy section */ 19 | 4D76CC211BB0EA1600CADF20 /* PBXContainerItemProxy */ = { 20 | isa = PBXContainerItemProxy; 21 | containerPortal = 4D76CC031BB0EA1600CADF20 /* Project object */; 22 | proxyType = 1; 23 | remoteGlobalIDString = 4D76CC0A1BB0EA1600CADF20; 24 | remoteInfo = BuildNumberTagger; 25 | }; 26 | /* End PBXContainerItemProxy section */ 27 | 28 | /* Begin PBXFileReference section */ 29 | 4D76CC0B1BB0EA1600CADF20 /* BuildNumberTagger.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BuildNumberTagger.app; sourceTree = BUILT_PRODUCTS_DIR; }; 30 | 4D76CC0F1BB0EA1600CADF20 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 31 | 4D76CC101BB0EA1600CADF20 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 32 | 4D76CC121BB0EA1600CADF20 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 33 | 4D76CC151BB0EA1600CADF20 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 34 | 4D76CC171BB0EA1600CADF20 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 35 | 4D76CC1A1BB0EA1600CADF20 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 36 | 4D76CC201BB0EA1600CADF20 /* BuildNumberTaggerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = BuildNumberTaggerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | 4D76CC251BB0EA1600CADF20 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 38 | 4D76CC261BB0EA1600CADF20 /* BuildNumberTaggerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BuildNumberTaggerTests.swift; sourceTree = ""; }; 39 | 4D76CC301BB0EEDD00CADF20 /* AppIconReference.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = AppIconReference.xcassets; sourceTree = ""; }; 40 | /* End PBXFileReference section */ 41 | 42 | /* Begin PBXFrameworksBuildPhase section */ 43 | 4D76CC081BB0EA1600CADF20 /* Frameworks */ = { 44 | isa = PBXFrameworksBuildPhase; 45 | buildActionMask = 2147483647; 46 | files = ( 47 | ); 48 | runOnlyForDeploymentPostprocessing = 0; 49 | }; 50 | 4D76CC1D1BB0EA1600CADF20 /* Frameworks */ = { 51 | isa = PBXFrameworksBuildPhase; 52 | buildActionMask = 2147483647; 53 | files = ( 54 | ); 55 | runOnlyForDeploymentPostprocessing = 0; 56 | }; 57 | /* End PBXFrameworksBuildPhase section */ 58 | 59 | /* Begin PBXGroup section */ 60 | 4D76CC021BB0EA1600CADF20 = { 61 | isa = PBXGroup; 62 | children = ( 63 | 4D76CC0D1BB0EA1600CADF20 /* BuildNumberTagger */, 64 | 4D76CC231BB0EA1600CADF20 /* BuildNumberTaggerTests */, 65 | 4D76CC0C1BB0EA1600CADF20 /* Products */, 66 | ); 67 | sourceTree = ""; 68 | }; 69 | 4D76CC0C1BB0EA1600CADF20 /* Products */ = { 70 | isa = PBXGroup; 71 | children = ( 72 | 4D76CC0B1BB0EA1600CADF20 /* BuildNumberTagger.app */, 73 | 4D76CC201BB0EA1600CADF20 /* BuildNumberTaggerTests.xctest */, 74 | ); 75 | name = Products; 76 | sourceTree = ""; 77 | }; 78 | 4D76CC0D1BB0EA1600CADF20 /* BuildNumberTagger */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 4D76CC101BB0EA1600CADF20 /* AppDelegate.swift */, 82 | 4D76CC121BB0EA1600CADF20 /* ViewController.swift */, 83 | 4D76CC141BB0EA1600CADF20 /* Main.storyboard */, 84 | 4D76CC171BB0EA1600CADF20 /* Images.xcassets */, 85 | 4D76CC191BB0EA1600CADF20 /* LaunchScreen.xib */, 86 | 4D76CC0E1BB0EA1600CADF20 /* Supporting Files */, 87 | 4D76CC301BB0EEDD00CADF20 /* AppIconReference.xcassets */, 88 | ); 89 | path = BuildNumberTagger; 90 | sourceTree = ""; 91 | }; 92 | 4D76CC0E1BB0EA1600CADF20 /* Supporting Files */ = { 93 | isa = PBXGroup; 94 | children = ( 95 | 4D76CC0F1BB0EA1600CADF20 /* Info.plist */, 96 | ); 97 | name = "Supporting Files"; 98 | sourceTree = ""; 99 | }; 100 | 4D76CC231BB0EA1600CADF20 /* BuildNumberTaggerTests */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 4D76CC261BB0EA1600CADF20 /* BuildNumberTaggerTests.swift */, 104 | 4D76CC241BB0EA1600CADF20 /* Supporting Files */, 105 | ); 106 | path = BuildNumberTaggerTests; 107 | sourceTree = ""; 108 | }; 109 | 4D76CC241BB0EA1600CADF20 /* Supporting Files */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 4D76CC251BB0EA1600CADF20 /* Info.plist */, 113 | ); 114 | name = "Supporting Files"; 115 | sourceTree = ""; 116 | }; 117 | /* End PBXGroup section */ 118 | 119 | /* Begin PBXNativeTarget section */ 120 | 4D76CC0A1BB0EA1600CADF20 /* BuildNumberTagger */ = { 121 | isa = PBXNativeTarget; 122 | buildConfigurationList = 4D76CC2A1BB0EA1600CADF20 /* Build configuration list for PBXNativeTarget "BuildNumberTagger" */; 123 | buildPhases = ( 124 | 4D76CC071BB0EA1600CADF20 /* Sources */, 125 | 4D76CC081BB0EA1600CADF20 /* Frameworks */, 126 | 4D76CC321BB1763100CADF20 /* ShellScript */, 127 | 4D76CC091BB0EA1600CADF20 /* Resources */, 128 | 4D76CC331BB1944F00CADF20 /* ShellScript */, 129 | ); 130 | buildRules = ( 131 | ); 132 | dependencies = ( 133 | ); 134 | name = BuildNumberTagger; 135 | productName = BuildNumberTagger; 136 | productReference = 4D76CC0B1BB0EA1600CADF20 /* BuildNumberTagger.app */; 137 | productType = "com.apple.product-type.application"; 138 | }; 139 | 4D76CC1F1BB0EA1600CADF20 /* BuildNumberTaggerTests */ = { 140 | isa = PBXNativeTarget; 141 | buildConfigurationList = 4D76CC2D1BB0EA1600CADF20 /* Build configuration list for PBXNativeTarget "BuildNumberTaggerTests" */; 142 | buildPhases = ( 143 | 4D76CC1C1BB0EA1600CADF20 /* Sources */, 144 | 4D76CC1D1BB0EA1600CADF20 /* Frameworks */, 145 | 4D76CC1E1BB0EA1600CADF20 /* Resources */, 146 | ); 147 | buildRules = ( 148 | ); 149 | dependencies = ( 150 | 4D76CC221BB0EA1600CADF20 /* PBXTargetDependency */, 151 | ); 152 | name = BuildNumberTaggerTests; 153 | productName = BuildNumberTaggerTests; 154 | productReference = 4D76CC201BB0EA1600CADF20 /* BuildNumberTaggerTests.xctest */; 155 | productType = "com.apple.product-type.bundle.unit-test"; 156 | }; 157 | /* End PBXNativeTarget section */ 158 | 159 | /* Begin PBXProject section */ 160 | 4D76CC031BB0EA1600CADF20 /* Project object */ = { 161 | isa = PBXProject; 162 | attributes = { 163 | LastUpgradeCheck = 0640; 164 | ORGANIZATIONNAME = Hapticus; 165 | TargetAttributes = { 166 | 4D76CC0A1BB0EA1600CADF20 = { 167 | CreatedOnToolsVersion = 6.4; 168 | }; 169 | 4D76CC1F1BB0EA1600CADF20 = { 170 | CreatedOnToolsVersion = 6.4; 171 | TestTargetID = 4D76CC0A1BB0EA1600CADF20; 172 | }; 173 | }; 174 | }; 175 | buildConfigurationList = 4D76CC061BB0EA1600CADF20 /* Build configuration list for PBXProject "BuildNumberTagger" */; 176 | compatibilityVersion = "Xcode 3.2"; 177 | developmentRegion = English; 178 | hasScannedForEncodings = 0; 179 | knownRegions = ( 180 | en, 181 | Base, 182 | ); 183 | mainGroup = 4D76CC021BB0EA1600CADF20; 184 | productRefGroup = 4D76CC0C1BB0EA1600CADF20 /* Products */; 185 | projectDirPath = ""; 186 | projectRoot = ""; 187 | targets = ( 188 | 4D76CC0A1BB0EA1600CADF20 /* BuildNumberTagger */, 189 | 4D76CC1F1BB0EA1600CADF20 /* BuildNumberTaggerTests */, 190 | ); 191 | }; 192 | /* End PBXProject section */ 193 | 194 | /* Begin PBXResourcesBuildPhase section */ 195 | 4D76CC091BB0EA1600CADF20 /* Resources */ = { 196 | isa = PBXResourcesBuildPhase; 197 | buildActionMask = 2147483647; 198 | files = ( 199 | 4D76CC161BB0EA1600CADF20 /* Main.storyboard in Resources */, 200 | 4D76CC1B1BB0EA1600CADF20 /* LaunchScreen.xib in Resources */, 201 | 4D76CC181BB0EA1600CADF20 /* Images.xcassets in Resources */, 202 | ); 203 | runOnlyForDeploymentPostprocessing = 0; 204 | }; 205 | 4D76CC1E1BB0EA1600CADF20 /* Resources */ = { 206 | isa = PBXResourcesBuildPhase; 207 | buildActionMask = 2147483647; 208 | files = ( 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | /* End PBXResourcesBuildPhase section */ 213 | 214 | /* Begin PBXShellScriptBuildPhase section */ 215 | 4D76CC321BB1763100CADF20 /* ShellScript */ = { 216 | isa = PBXShellScriptBuildPhase; 217 | buildActionMask = 2147483647; 218 | files = ( 219 | ); 220 | inputPaths = ( 221 | ); 222 | outputPaths = ( 223 | ); 224 | runOnlyForDeploymentPostprocessing = 0; 225 | shellPath = /bin/zsh; 226 | shellScript = "IFS=$'\\n'\n\nfunction tagAllIcons(){\n buildNumber=$(/usr/libexec/PlistBuddy -c \"Print CFBundleVersion\" \"${PROJECT_DIR}/${INFOPLIST_FILE}\")\n versionNumber=$(/usr/libexec/PlistBuddy -c \"Print CFBundleShortVersionString\" \"${PROJECT_DIR}/${INFOPLIST_FILE}\")\n \n APP_ICONS_PATH=\"${PROJECT_DIR}/BuildNumberTagger/Images.xcassets/AppIcon.appiconset\"\n REFERENCE_ICONS_PATH=\"${PROJECT_DIR}/BuildNumberTagger/AppIconReference.xcassets\"\n \n for ICON_PATH in $(find ${REFERENCE_ICONS_PATH} -name \"*Icon*.png\")\n do\n name=${ICON_PATH##*/}\n TARGET_PATH=\"${APP_ICONS_PATH}/$name\"\n \n echo $TARGET_PATH\n \n WIDTH=$(identify -format %w ${ICON_PATH})\n FONT_SIZE=$(echo \"$WIDTH * .17\" | bc -l)\n \n convert ${ICON_PATH} -fill white -font Courier -pointsize ${FONT_SIZE} -gravity south -annotate 0 \"$versionNumber($buildNumber)\" ${TARGET_PATH}\n \n done\n}\n \nif [ \"${CONFIGURATION}\"==\"Release\" ]; then\n tagAllIcons\nfi\n \n"; 227 | }; 228 | 4D76CC331BB1944F00CADF20 /* ShellScript */ = { 229 | isa = PBXShellScriptBuildPhase; 230 | buildActionMask = 2147483647; 231 | files = ( 232 | ); 233 | inputPaths = ( 234 | ); 235 | outputPaths = ( 236 | ); 237 | runOnlyForDeploymentPostprocessing = 0; 238 | shellPath = /bin/zsh; 239 | shellScript = "IFS=$'\\n'\n\n #Increase Build for next build\nfunction increaseBuild(){\n \n echo \"Increasing build number...\"\n plist=${PROJECT_DIR}/${INFOPLIST_FILE}\n \n # increment the build number (ie 115 to 116)\n buildnum=$(/usr/libexec/PlistBuddy -c \"Print CFBundleVersion\" \"${plist}\")\n if [[ \"${buildnum}\" == \"\" ]]; then\n echo \"No build number in $plist\"\n exit 2\n fi\n \n buildnum=$(expr $buildnum + 1)\n /usr/libexec/Plistbuddy -c \"Set CFBundleVersion $buildnum\" \"${plist}\"\n echo \"Increased build number to $buildnum\"\n \n}\n \nif [ \"${CONFIGURATION}\"==\"Release\" ]; then\n increaseBuild\nfi\n \n"; 240 | }; 241 | /* End PBXShellScriptBuildPhase section */ 242 | 243 | /* Begin PBXSourcesBuildPhase section */ 244 | 4D76CC071BB0EA1600CADF20 /* Sources */ = { 245 | isa = PBXSourcesBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | 4D76CC131BB0EA1600CADF20 /* ViewController.swift in Sources */, 249 | 4D76CC111BB0EA1600CADF20 /* AppDelegate.swift in Sources */, 250 | ); 251 | runOnlyForDeploymentPostprocessing = 0; 252 | }; 253 | 4D76CC1C1BB0EA1600CADF20 /* Sources */ = { 254 | isa = PBXSourcesBuildPhase; 255 | buildActionMask = 2147483647; 256 | files = ( 257 | 4D76CC271BB0EA1600CADF20 /* BuildNumberTaggerTests.swift in Sources */, 258 | ); 259 | runOnlyForDeploymentPostprocessing = 0; 260 | }; 261 | /* End PBXSourcesBuildPhase section */ 262 | 263 | /* Begin PBXTargetDependency section */ 264 | 4D76CC221BB0EA1600CADF20 /* PBXTargetDependency */ = { 265 | isa = PBXTargetDependency; 266 | target = 4D76CC0A1BB0EA1600CADF20 /* BuildNumberTagger */; 267 | targetProxy = 4D76CC211BB0EA1600CADF20 /* PBXContainerItemProxy */; 268 | }; 269 | /* End PBXTargetDependency section */ 270 | 271 | /* Begin PBXVariantGroup section */ 272 | 4D76CC141BB0EA1600CADF20 /* Main.storyboard */ = { 273 | isa = PBXVariantGroup; 274 | children = ( 275 | 4D76CC151BB0EA1600CADF20 /* Base */, 276 | ); 277 | name = Main.storyboard; 278 | sourceTree = ""; 279 | }; 280 | 4D76CC191BB0EA1600CADF20 /* LaunchScreen.xib */ = { 281 | isa = PBXVariantGroup; 282 | children = ( 283 | 4D76CC1A1BB0EA1600CADF20 /* Base */, 284 | ); 285 | name = LaunchScreen.xib; 286 | sourceTree = ""; 287 | }; 288 | /* End PBXVariantGroup section */ 289 | 290 | /* Begin XCBuildConfiguration section */ 291 | 4D76CC281BB0EA1600CADF20 /* Debug */ = { 292 | isa = XCBuildConfiguration; 293 | buildSettings = { 294 | ALWAYS_SEARCH_USER_PATHS = NO; 295 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 296 | CLANG_CXX_LIBRARY = "libc++"; 297 | CLANG_ENABLE_MODULES = YES; 298 | CLANG_ENABLE_OBJC_ARC = YES; 299 | CLANG_WARN_BOOL_CONVERSION = YES; 300 | CLANG_WARN_CONSTANT_CONVERSION = YES; 301 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 302 | CLANG_WARN_EMPTY_BODY = YES; 303 | CLANG_WARN_ENUM_CONVERSION = YES; 304 | CLANG_WARN_INT_CONVERSION = YES; 305 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 306 | CLANG_WARN_UNREACHABLE_CODE = YES; 307 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 308 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 309 | COPY_PHASE_STRIP = NO; 310 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 311 | ENABLE_STRICT_OBJC_MSGSEND = YES; 312 | GCC_C_LANGUAGE_STANDARD = gnu99; 313 | GCC_DYNAMIC_NO_PIC = NO; 314 | GCC_NO_COMMON_BLOCKS = YES; 315 | GCC_OPTIMIZATION_LEVEL = 0; 316 | GCC_PREPROCESSOR_DEFINITIONS = ( 317 | "DEBUG=1", 318 | "$(inherited)", 319 | ); 320 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 321 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 322 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 323 | GCC_WARN_UNDECLARED_SELECTOR = YES; 324 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 325 | GCC_WARN_UNUSED_FUNCTION = YES; 326 | GCC_WARN_UNUSED_VARIABLE = YES; 327 | IPHONEOS_DEPLOYMENT_TARGET = 8.4; 328 | MTL_ENABLE_DEBUG_INFO = YES; 329 | ONLY_ACTIVE_ARCH = YES; 330 | SDKROOT = iphoneos; 331 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 332 | TARGETED_DEVICE_FAMILY = "1,2"; 333 | }; 334 | name = Debug; 335 | }; 336 | 4D76CC291BB0EA1600CADF20 /* Release */ = { 337 | isa = XCBuildConfiguration; 338 | buildSettings = { 339 | ALWAYS_SEARCH_USER_PATHS = NO; 340 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 341 | CLANG_CXX_LIBRARY = "libc++"; 342 | CLANG_ENABLE_MODULES = YES; 343 | CLANG_ENABLE_OBJC_ARC = YES; 344 | CLANG_WARN_BOOL_CONVERSION = YES; 345 | CLANG_WARN_CONSTANT_CONVERSION = YES; 346 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 347 | CLANG_WARN_EMPTY_BODY = YES; 348 | CLANG_WARN_ENUM_CONVERSION = YES; 349 | CLANG_WARN_INT_CONVERSION = YES; 350 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 351 | CLANG_WARN_UNREACHABLE_CODE = YES; 352 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 353 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 354 | COPY_PHASE_STRIP = NO; 355 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 356 | ENABLE_NS_ASSERTIONS = NO; 357 | ENABLE_STRICT_OBJC_MSGSEND = YES; 358 | GCC_C_LANGUAGE_STANDARD = gnu99; 359 | GCC_NO_COMMON_BLOCKS = YES; 360 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 361 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 362 | GCC_WARN_UNDECLARED_SELECTOR = YES; 363 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 364 | GCC_WARN_UNUSED_FUNCTION = YES; 365 | GCC_WARN_UNUSED_VARIABLE = YES; 366 | IPHONEOS_DEPLOYMENT_TARGET = 8.4; 367 | MTL_ENABLE_DEBUG_INFO = NO; 368 | SDKROOT = iphoneos; 369 | TARGETED_DEVICE_FAMILY = "1,2"; 370 | VALIDATE_PRODUCT = YES; 371 | }; 372 | name = Release; 373 | }; 374 | 4D76CC2B1BB0EA1600CADF20 /* Debug */ = { 375 | isa = XCBuildConfiguration; 376 | buildSettings = { 377 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 378 | INFOPLIST_FILE = BuildNumberTagger/Info.plist; 379 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 380 | PRODUCT_NAME = "$(TARGET_NAME)"; 381 | }; 382 | name = Debug; 383 | }; 384 | 4D76CC2C1BB0EA1600CADF20 /* Release */ = { 385 | isa = XCBuildConfiguration; 386 | buildSettings = { 387 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 388 | INFOPLIST_FILE = BuildNumberTagger/Info.plist; 389 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 390 | PRODUCT_NAME = "$(TARGET_NAME)"; 391 | }; 392 | name = Release; 393 | }; 394 | 4D76CC2E1BB0EA1600CADF20 /* Debug */ = { 395 | isa = XCBuildConfiguration; 396 | buildSettings = { 397 | BUNDLE_LOADER = "$(TEST_HOST)"; 398 | FRAMEWORK_SEARCH_PATHS = ( 399 | "$(SDKROOT)/Developer/Library/Frameworks", 400 | "$(inherited)", 401 | ); 402 | GCC_PREPROCESSOR_DEFINITIONS = ( 403 | "DEBUG=1", 404 | "$(inherited)", 405 | ); 406 | INFOPLIST_FILE = BuildNumberTaggerTests/Info.plist; 407 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 408 | PRODUCT_NAME = "$(TARGET_NAME)"; 409 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/BuildNumberTagger.app/BuildNumberTagger"; 410 | }; 411 | name = Debug; 412 | }; 413 | 4D76CC2F1BB0EA1600CADF20 /* Release */ = { 414 | isa = XCBuildConfiguration; 415 | buildSettings = { 416 | BUNDLE_LOADER = "$(TEST_HOST)"; 417 | FRAMEWORK_SEARCH_PATHS = ( 418 | "$(SDKROOT)/Developer/Library/Frameworks", 419 | "$(inherited)", 420 | ); 421 | INFOPLIST_FILE = BuildNumberTaggerTests/Info.plist; 422 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 423 | PRODUCT_NAME = "$(TARGET_NAME)"; 424 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/BuildNumberTagger.app/BuildNumberTagger"; 425 | }; 426 | name = Release; 427 | }; 428 | /* End XCBuildConfiguration section */ 429 | 430 | /* Begin XCConfigurationList section */ 431 | 4D76CC061BB0EA1600CADF20 /* Build configuration list for PBXProject "BuildNumberTagger" */ = { 432 | isa = XCConfigurationList; 433 | buildConfigurations = ( 434 | 4D76CC281BB0EA1600CADF20 /* Debug */, 435 | 4D76CC291BB0EA1600CADF20 /* Release */, 436 | ); 437 | defaultConfigurationIsVisible = 0; 438 | defaultConfigurationName = Release; 439 | }; 440 | 4D76CC2A1BB0EA1600CADF20 /* Build configuration list for PBXNativeTarget "BuildNumberTagger" */ = { 441 | isa = XCConfigurationList; 442 | buildConfigurations = ( 443 | 4D76CC2B1BB0EA1600CADF20 /* Debug */, 444 | 4D76CC2C1BB0EA1600CADF20 /* Release */, 445 | ); 446 | defaultConfigurationIsVisible = 0; 447 | defaultConfigurationName = Release; 448 | }; 449 | 4D76CC2D1BB0EA1600CADF20 /* Build configuration list for PBXNativeTarget "BuildNumberTaggerTests" */ = { 450 | isa = XCConfigurationList; 451 | buildConfigurations = ( 452 | 4D76CC2E1BB0EA1600CADF20 /* Debug */, 453 | 4D76CC2F1BB0EA1600CADF20 /* Release */, 454 | ); 455 | defaultConfigurationIsVisible = 0; 456 | defaultConfigurationName = Release; 457 | }; 458 | /* End XCConfigurationList section */ 459 | }; 460 | rootObject = 4D76CC031BB0EA1600CADF20 /* Project object */; 461 | } 462 | -------------------------------------------------------------------------------- /BuildNumberTagger.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /BuildNumberTagger.xcodeproj/project.xcworkspace/xcshareddata/BuildNumberTagger.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | 1D2A6FB1-1676-486F-87CB-437DCC1E86F2 9 | IDESourceControlProjectName 10 | BuildNumberTagger 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | 9C101D3926182CE752A244D19BD2A04AE6169F1F 14 | https://github.com/madnik/iOS-Build-Number-Overlay.git 15 | 16 | IDESourceControlProjectPath 17 | BuildNumberTagger.xcodeproj 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | 9C101D3926182CE752A244D19BD2A04AE6169F1F 21 | ../.. 22 | 23 | IDESourceControlProjectURL 24 | https://github.com/madnik/iOS-Build-Number-Overlay.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | 9C101D3926182CE752A244D19BD2A04AE6169F1F 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | 9C101D3926182CE752A244D19BD2A04AE6169F1F 36 | IDESourceControlWCCName 37 | BuildNumberTagger 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /BuildNumberTagger.xcodeproj/xcuserdata/madushan.xcuserdatad/xcschemes/BuildNumberTagger.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 75 | 77 | 83 | 84 | 85 | 86 | 87 | 88 | 94 | 96 | 102 | 103 | 104 | 105 | 107 | 108 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /BuildNumberTagger.xcodeproj/xcuserdata/madushan.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | BuildNumberTagger.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 4D76CC0A1BB0EA1600CADF20 16 | 17 | primary 18 | 19 | 20 | 4D76CC1F1BB0EA1600CADF20 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /BuildNumberTagger/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // BuildNumberTagger 4 | // 5 | // Created by Madushan Gamage on 9/22/15. 6 | // Copyright (c) 2015 Madnik. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(application: UIApplication) { 23 | // 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. 24 | // 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. 25 | } 26 | 27 | func applicationDidEnterBackground(application: UIApplication) { 28 | // 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. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(application: UIApplication) { 33 | // 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. 34 | } 35 | 36 | func applicationDidBecomeActive(application: UIApplication) { 37 | // 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. 38 | } 39 | 40 | func applicationWillTerminate(application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "3x" 17 | }, 18 | { 19 | "size" : "40x40", 20 | "idiom" : "iphone", 21 | "filename" : "Icon-Spotlight-40@2x.png", 22 | "scale" : "2x" 23 | }, 24 | { 25 | "size" : "40x40", 26 | "idiom" : "iphone", 27 | "filename" : "Icon-Spotlight-40@3x.png", 28 | "scale" : "3x" 29 | }, 30 | { 31 | "size" : "57x57", 32 | "idiom" : "iphone", 33 | "filename" : "Icon.png", 34 | "scale" : "1x" 35 | }, 36 | { 37 | "size" : "57x57", 38 | "idiom" : "iphone", 39 | "filename" : "Icon@2x.png", 40 | "scale" : "2x" 41 | }, 42 | { 43 | "size" : "60x60", 44 | "idiom" : "iphone", 45 | "filename" : "Icon-60@2x.png", 46 | "scale" : "2x" 47 | }, 48 | { 49 | "size" : "60x60", 50 | "idiom" : "iphone", 51 | "filename" : "Icon-60@3x.png", 52 | "scale" : "3x" 53 | }, 54 | { 55 | "size" : "29x29", 56 | "idiom" : "ipad", 57 | "filename" : "Icon-Small.png", 58 | "scale" : "1x" 59 | }, 60 | { 61 | "idiom" : "ipad", 62 | "size" : "29x29", 63 | "scale" : "2x" 64 | }, 65 | { 66 | "size" : "40x40", 67 | "idiom" : "ipad", 68 | "filename" : "Icon-Spotlight-40.png", 69 | "scale" : "1x" 70 | }, 71 | { 72 | "idiom" : "ipad", 73 | "size" : "40x40", 74 | "scale" : "2x" 75 | }, 76 | { 77 | "size" : "50x50", 78 | "idiom" : "ipad", 79 | "filename" : "Icon-Small-50.png", 80 | "scale" : "1x" 81 | }, 82 | { 83 | "size" : "50x50", 84 | "idiom" : "ipad", 85 | "filename" : "Icon-Small-50@2x.png", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "size" : "72x72", 90 | "idiom" : "ipad", 91 | "filename" : "Icon-72.png", 92 | "scale" : "1x" 93 | }, 94 | { 95 | "size" : "72x72", 96 | "idiom" : "ipad", 97 | "filename" : "Icon-72@2x.png", 98 | "scale" : "2x" 99 | }, 100 | { 101 | "size" : "76x76", 102 | "idiom" : "ipad", 103 | "filename" : "Icon-76.png", 104 | "scale" : "1x" 105 | }, 106 | { 107 | "size" : "76x76", 108 | "idiom" : "ipad", 109 | "filename" : "Icon-76@2x.png", 110 | "scale" : "2x" 111 | }, 112 | { 113 | "idiom" : "car", 114 | "size" : "120x120", 115 | "scale" : "1x" 116 | }, 117 | { 118 | "size" : "24x24", 119 | "idiom" : "watch", 120 | "scale" : "2x", 121 | "role" : "notificationCenter", 122 | "subtype" : "38mm" 123 | }, 124 | { 125 | "size" : "27.5x27.5", 126 | "idiom" : "watch", 127 | "scale" : "2x", 128 | "role" : "notificationCenter", 129 | "subtype" : "42mm" 130 | }, 131 | { 132 | "size" : "29x29", 133 | "idiom" : "watch", 134 | "filename" : "Icon-Small@2x.png", 135 | "role" : "companionSettings", 136 | "scale" : "2x" 137 | }, 138 | { 139 | "size" : "29x29", 140 | "idiom" : "watch", 141 | "filename" : "Icon-Small@3x.png", 142 | "role" : "companionSettings", 143 | "scale" : "3x" 144 | }, 145 | { 146 | "size" : "40x40", 147 | "idiom" : "watch", 148 | "scale" : "2x", 149 | "role" : "appLauncher", 150 | "subtype" : "38mm" 151 | }, 152 | { 153 | "size" : "44x44", 154 | "idiom" : "watch", 155 | "scale" : "2x", 156 | "role" : "longLook", 157 | "subtype" : "42mm" 158 | }, 159 | { 160 | "size" : "86x86", 161 | "idiom" : "watch", 162 | "scale" : "2x", 163 | "role" : "quickLook", 164 | "subtype" : "38mm" 165 | }, 166 | { 167 | "size" : "98x98", 168 | "idiom" : "watch", 169 | "scale" : "2x", 170 | "role" : "quickLook", 171 | "subtype" : "42mm" 172 | } 173 | ], 174 | "info" : { 175 | "version" : 1, 176 | "author" : "xcode" 177 | } 178 | } -------------------------------------------------------------------------------- /BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-60@2x.png -------------------------------------------------------------------------------- /BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-60@3x.png -------------------------------------------------------------------------------- /BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-72.png -------------------------------------------------------------------------------- /BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-72@2x.png -------------------------------------------------------------------------------- /BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-76.png -------------------------------------------------------------------------------- /BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-76@2x.png -------------------------------------------------------------------------------- /BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-Small-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-Small-50.png -------------------------------------------------------------------------------- /BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png -------------------------------------------------------------------------------- /BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-Small.png -------------------------------------------------------------------------------- /BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-Small@2x.png -------------------------------------------------------------------------------- /BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-Small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-Small@3x.png -------------------------------------------------------------------------------- /BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-Spotlight-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-Spotlight-40.png -------------------------------------------------------------------------------- /BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-Spotlight-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-Spotlight-40@2x.png -------------------------------------------------------------------------------- /BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-Spotlight-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon-Spotlight-40@3x.png -------------------------------------------------------------------------------- /BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon.png -------------------------------------------------------------------------------- /BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/AppIconReference.xcassets/AppIcon.appiconset/Icon@2x.png -------------------------------------------------------------------------------- /BuildNumberTagger/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /BuildNumberTagger/Base.lproj/Main.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 | -------------------------------------------------------------------------------- /BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "3x" 17 | }, 18 | { 19 | "size" : "40x40", 20 | "idiom" : "iphone", 21 | "filename" : "Icon-Spotlight-40@2x.png", 22 | "scale" : "2x" 23 | }, 24 | { 25 | "size" : "40x40", 26 | "idiom" : "iphone", 27 | "filename" : "Icon-Spotlight-40@3x.png", 28 | "scale" : "3x" 29 | }, 30 | { 31 | "size" : "57x57", 32 | "idiom" : "iphone", 33 | "filename" : "Icon.png", 34 | "scale" : "1x" 35 | }, 36 | { 37 | "size" : "57x57", 38 | "idiom" : "iphone", 39 | "filename" : "Icon@2x.png", 40 | "scale" : "2x" 41 | }, 42 | { 43 | "size" : "60x60", 44 | "idiom" : "iphone", 45 | "filename" : "Icon-60@2x.png", 46 | "scale" : "2x" 47 | }, 48 | { 49 | "size" : "60x60", 50 | "idiom" : "iphone", 51 | "filename" : "Icon-60@3x.png", 52 | "scale" : "3x" 53 | }, 54 | { 55 | "size" : "29x29", 56 | "idiom" : "ipad", 57 | "filename" : "Icon-Small.png", 58 | "scale" : "1x" 59 | }, 60 | { 61 | "idiom" : "ipad", 62 | "size" : "29x29", 63 | "scale" : "2x" 64 | }, 65 | { 66 | "size" : "40x40", 67 | "idiom" : "ipad", 68 | "filename" : "Icon-Spotlight-40.png", 69 | "scale" : "1x" 70 | }, 71 | { 72 | "idiom" : "ipad", 73 | "size" : "40x40", 74 | "scale" : "2x" 75 | }, 76 | { 77 | "size" : "50x50", 78 | "idiom" : "ipad", 79 | "filename" : "Icon-Small-50.png", 80 | "scale" : "1x" 81 | }, 82 | { 83 | "size" : "50x50", 84 | "idiom" : "ipad", 85 | "filename" : "Icon-Small-50@2x.png", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "size" : "72x72", 90 | "idiom" : "ipad", 91 | "filename" : "Icon-72.png", 92 | "scale" : "1x" 93 | }, 94 | { 95 | "size" : "72x72", 96 | "idiom" : "ipad", 97 | "filename" : "Icon-72@2x.png", 98 | "scale" : "2x" 99 | }, 100 | { 101 | "size" : "76x76", 102 | "idiom" : "ipad", 103 | "filename" : "Icon-76.png", 104 | "scale" : "1x" 105 | }, 106 | { 107 | "size" : "76x76", 108 | "idiom" : "ipad", 109 | "filename" : "Icon-76@2x.png", 110 | "scale" : "2x" 111 | }, 112 | { 113 | "size" : "24x24", 114 | "idiom" : "watch", 115 | "scale" : "2x", 116 | "role" : "notificationCenter", 117 | "subtype" : "38mm" 118 | }, 119 | { 120 | "size" : "27.5x27.5", 121 | "idiom" : "watch", 122 | "scale" : "2x", 123 | "role" : "notificationCenter", 124 | "subtype" : "42mm" 125 | }, 126 | { 127 | "size" : "29x29", 128 | "idiom" : "watch", 129 | "filename" : "Icon-Small@2x.png", 130 | "role" : "companionSettings", 131 | "scale" : "2x" 132 | }, 133 | { 134 | "size" : "29x29", 135 | "idiom" : "watch", 136 | "filename" : "Icon-Small@3x.png", 137 | "role" : "companionSettings", 138 | "scale" : "3x" 139 | }, 140 | { 141 | "size" : "40x40", 142 | "idiom" : "watch", 143 | "scale" : "2x", 144 | "role" : "appLauncher", 145 | "subtype" : "38mm" 146 | }, 147 | { 148 | "size" : "44x44", 149 | "idiom" : "watch", 150 | "scale" : "2x", 151 | "role" : "longLook", 152 | "subtype" : "42mm" 153 | }, 154 | { 155 | "size" : "86x86", 156 | "idiom" : "watch", 157 | "scale" : "2x", 158 | "role" : "quickLook", 159 | "subtype" : "38mm" 160 | }, 161 | { 162 | "size" : "98x98", 163 | "idiom" : "watch", 164 | "scale" : "2x", 165 | "role" : "quickLook", 166 | "subtype" : "42mm" 167 | } 168 | ], 169 | "info" : { 170 | "version" : 1, 171 | "author" : "xcode" 172 | } 173 | } -------------------------------------------------------------------------------- /BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png -------------------------------------------------------------------------------- /BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png -------------------------------------------------------------------------------- /BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-72.png -------------------------------------------------------------------------------- /BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-72@2x.png -------------------------------------------------------------------------------- /BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-76.png -------------------------------------------------------------------------------- /BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-76@2x.png -------------------------------------------------------------------------------- /BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-Small-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-Small-50.png -------------------------------------------------------------------------------- /BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png -------------------------------------------------------------------------------- /BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-Small.png -------------------------------------------------------------------------------- /BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png -------------------------------------------------------------------------------- /BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png -------------------------------------------------------------------------------- /BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-Spotlight-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-Spotlight-40.png -------------------------------------------------------------------------------- /BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-Spotlight-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-Spotlight-40@2x.png -------------------------------------------------------------------------------- /BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-Spotlight-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon-Spotlight-40@3x.png -------------------------------------------------------------------------------- /BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon.png -------------------------------------------------------------------------------- /BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/BuildNumberTagger/Images.xcassets/AppIcon.appiconset/Icon@2x.png -------------------------------------------------------------------------------- /BuildNumberTagger/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.iceblob.$(PRODUCT_NAME:rfc1034identifier) 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 | 19 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /BuildNumberTagger/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // BuildNumberTagger 4 | // 5 | // Created by Madushan Gamage on 9/22/15. 6 | // Copyright (c) 2015 Madnik. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | // Do any additional setup after loading the view, typically from a nib. 16 | } 17 | 18 | override func didReceiveMemoryWarning() { 19 | super.didReceiveMemoryWarning() 20 | // Dispose of any resources that can be recreated. 21 | } 22 | 23 | 24 | } 25 | 26 | -------------------------------------------------------------------------------- /BuildNumberTaggerTests/BuildNumberTaggerTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // BuildNumberTaggerTests.swift 3 | // BuildNumberTaggerTests 4 | // 5 | // Created by Madushan Gamage on 9/22/15. 6 | // Copyright (c) 2015 Hapticus. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import XCTest 11 | 12 | class BuildNumberTaggerTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | XCTAssert(true, "Pass") 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measureBlock() { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /BuildNumberTaggerTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.hapticus.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # iOS-Build-Number-Overlay 2 | Overlay version and build numbers in your release builds. 3 | 4 | This is a simple bash script usage demostration to auto tag your app icons with version and build number in the format like. 5 | 6 | VersionNumber(BuildNumber) 7 | ex: 1.0(2) 8 | 9 | ![alt tag](https://raw.githubusercontent.com/madnik/iOS-Build-Number-Overlay/master/screenshot.png) 10 | 11 | ## Setting Up 12 | This depends on the popular image processing library `ImageMagick`. You can use homebrew to install it. 13 | If you don't have homebrew installed have [HomeBrew](http://brew.sh/) first. 14 | 15 | Lets brew it. 16 | 17 | brew install ImageMagick 18 | brew install ghostscript 19 | 20 | If anything go wrong. Try 21 | 22 | brew doctor 23 | 24 | Clone the repository and open build phases for your target. Wait a minute if you know what you are doing and lazy to clone here you got a gist for scripts. [Overlay Gist](https://gist.github.com/3ec45a168247fcc616c0.git) 25 | 26 | If you cloned it already. Let me explain you. You will see 2 run scripts at build phases. 1 before copy bundle resources build phase and one after. 27 | 28 | Please select you shell properly. I'm using zsh thats make it `/bin/zsh`. Most probably it will be `/bin/sh` for you. Very important to change it. 29 | 30 | If all set. When you archive project. It will change your AppIcons to have build and version number overlay on it. I made it only for release builds because when you debug it is not necessary to do this. When you do archive the build configuration will be `Release`. So the function get executed. 31 | 32 | First script will take images from reference icon set and replace actual icons. 33 | Second script will increase the build number after a release is made. This prepare the build number for next release. 34 | Note that reference icon set `AppIconReference.xcassets` in not added to our target. Not to any target. Its whole purpose is to have original icons for us. 35 | 36 | There are many ways to do this. You can also avoid having a reference icon set and directly convert icons to build product target. Play with it and adjust to your needs. 37 | 38 | 39 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mlvea/iOS-Build-Number-Overlay/996df3531079874440da4df70dd4bdf9c98ea820/screenshot.png --------------------------------------------------------------------------------