MSTranslateVendor icon indicating copy to clipboard operation
MSTranslateVendor copied to clipboard

WTF with cocoapods?

Open gerchicov-bp opened this issue 6 years ago • 0 comments

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?

gerchicov-bp avatar Jan 16 '18 16:01 gerchicov-bp