This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Be sure to run `pod lib lint JiveCommon.podspec' to ensure this is a | |
# valid spec and remove all comments before submitting the spec. | |
# | |
# Any lines starting with a # are optional, but encouraged | |
# | |
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html | |
# | |
Pod::Spec.new do |s| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// WeakTestTests.m | |
// WeakTestTests | |
// | |
// Created by Borders, Heath on 2/29/16. | |
// Copyright © 2016 Heath Borders. All rights reserved. | |
// | |
#import <XCTest/XCTest.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <XCTest/XCTest.h> | |
@interface PlaygroundTests : XCTestCase | |
@end | |
@implementation PlaygroundTests | |
static const NSUInteger length = 100000000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// PlaygroundTests.m | |
// PlaygroundTests | |
// | |
// Created by Borders, Heath on 3/9/16. | |
// Copyright © 2016 Twitch. All rights reserved. | |
// | |
#import <XCTest/XCTest.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -euo pipefail | |
if [ ${#} -eq 0 ] | |
then | |
# read from STDIN | |
MAYBE_GIT_HASH=$( cat ) | |
else | |
MAYBE_GIT_HASH="${1}" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -euo pipefail | |
if [ ${#} -eq 0 ] | |
then | |
# read from STDIN | |
DATE=$( cat ) | |
else | |
DATE="${1}" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -euo pipefail | |
# When we increment TW_BUNDLE_SHORT_VERSION_STRING | |
# also update TW_BUNDLE_SHORT_VERSION_DATE to the current date/time | |
# we don't have to be very exact, but it should be updated at least | |
# once every 18 months because iTunes requires that a CFBundleVersion | |
# be at most 18 characters long, and DECIMALIZED_GIT_HASH will be | |
# at most 10 characters long. Thus, MINUTES_SINCE_DATE needs to be | |
# at most 7 characters long so we can use the format: | |
# ${MINUTES_SINCE_DATE}.${DECIMALIZED_GIT_HASH} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -euo pipefail | |
if [ ${#} -eq 0 ] | |
then | |
# read from STDIN | |
MAYBE_CFBUNDLEVERSION=$( cat ) | |
else | |
MAYBE_CFBUNDLEVERSION="${1}" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define HJBAssertNotSame(expression1, expression2, ...) \ | |
XCTAssert((expression1) != (expression2), \ | |
__VA_ARGS__) | |
- (void)testCFMutableSetWithOpaquePointersCopiedToNSSetByAddingDoesNotKeepOpaquePointerBehavior | |
{ | |
NSString * _Nonnull string1 = [@"ab" stringByAppendingString:@"cd"]; | |
NSString * _Nonnull string2 = [@"a" stringByAppendingString:@"bcd"]; | |
TWAssertNotSame(string1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TWFoundation.podspec # the podspec that our Twitch iOS App and the TWFoundationHost project below consume | |
TWFoundation | |
├── Podfile # Configures TWFoundationHost and TWFoundationHostTests | |
├── Podfile.lock | |
├── Pods | |
│ ├── ... # Pods stuff | |
├── TWFoundation | |
│ ├── NSArray+TWFoundation.h | |
│ ├── NSArray+TWFoundation.m | |
| ├── ... # More TWFoundation classes |