Użyj widelca Restkit na github za pośrednictwem CocoaPods?

restkit używa w inny sposób protokołu oauth2, muszę zmienić kod, aby móc go używać na swój sposób:

Z:

// OAuth 2 valid request
if (self.authenticationType == RKRequestAuthenticationTypeOAuth2) {
    NSString *authorizationString = [NSString stringWithFormat:@"OAuth2 %@", self.OAuth2AccessToken];
    [_URLRequest setValue:authorizationString forHTTPHeaderField:@"Authorization"];
}

do:

// OAuth 2 valid request
if (self.authenticationType == RKRequestAuthenticationTypeOAuth2) {
    NSString *authorizationString = [NSString stringWithFormat:@"Bearer %@", self.OAuth2AccessToken];
    [_URLRequest setValue:authorizationString forHTTPHeaderField:@"Authorization"];
}

Użycie „Nośnika” zamiast „Oauth2” ....

Używam CocoaPods do importowania restkit w moim projekcie.

Czy mogę rozwidlić repozytorium Restkit na github i używać fork przez CocoaPod zamiast oficjalnej wersji?

questionAnswers(2)

yourAnswerToTheQuestion