Skip to content

WTF with cocoapods? #6

@gerchicov-bp

Description

@gerchicov-bp

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions