MSTranslateVendor
MSTranslateVendor copied to clipboard
WTF with cocoapods?
MSTranslateVendor is possible via CocoaPods. Just add the following to your Podfile.
#define CLIENT_ID @""
#define CLIENT_SECRET @""
- (id)init
{
self = [super init];
if(self)
{
if(![CLIENT_ID length] || ![CLIENT_SECRET length])
{
NSException* exception = [NSException exceptionWithName:@"Is not defined CLIENT_ID or CLIENT_SECRET" reason:@"Must specified CLIEN_ID or CLIENT_SECRET refer a https://github.com/bitmapdata/MSTranslateVendor" userInfo:nil];
[exception raise];
}
}
return self;
}
Men are you kidding? Each time I need to update cocoapods - I also need to update these constants?