1 |
efrain |
1 |
// Copyright 2019 Google
|
|
|
2 |
//
|
|
|
3 |
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
4 |
// you may not use this file except in compliance with the License.
|
|
|
5 |
// You may obtain a copy of the License at
|
|
|
6 |
//
|
|
|
7 |
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
8 |
//
|
|
|
9 |
// Unless required by applicable law or agreed to in writing, software
|
|
|
10 |
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
12 |
// See the License for the specific language governing permissions and
|
|
|
13 |
// limitations under the License.
|
|
|
14 |
|
|
|
15 |
#import "Crashlytics/Shared/FIRCLSConstants.h"
|
|
|
16 |
#import "FirebaseCore/Sources/Private/FirebaseCoreInternal.h"
|
|
|
17 |
|
|
|
18 |
#define STR_HELPER(x) #x
|
|
|
19 |
#define STR(x) STR_HELPER(x)
|
|
|
20 |
|
|
|
21 |
NSString* const FIRCLSDeveloperToken = @"77f0789d8e230eccdb4b99b82dccd78d47f9b604";
|
|
|
22 |
|
|
|
23 |
// User Messages
|
|
|
24 |
NSString* const FIRCLSMissingConsumerKeyMsg = @"consumer key is nil or zero length";
|
|
|
25 |
NSString* const FIRCLSMissingConsumerSecretMsg = @"consumer secret is nil or zero length";
|
|
|
26 |
|
|
|
27 |
// Exceptions
|
|
|
28 |
NSString* const FIRCLSException = @"FIRCLSException";
|
|
|
29 |
|
|
|
30 |
// Endpoints
|
|
|
31 |
NSString* const FIRCLSSettingsEndpoint = @"https://firebase-settings.crashlytics.com";
|
|
|
32 |
NSString* const FIRCLSConfigureEndpoint = @"https://update.crashlytics.com";
|
|
|
33 |
NSString* const FIRCLSReportsEndpoint = @"https://reports.crashlytics.com";
|
|
|
34 |
|
|
|
35 |
// Network requests
|
|
|
36 |
NSString* const FIRCLSNetworkAccept = @"Accept";
|
|
|
37 |
NSString* const FIRCLSNetworkAcceptCharset = @"Accept-Charset";
|
|
|
38 |
NSString* const FIRCLSNetworkApplicationJson = @"application/json";
|
|
|
39 |
NSString* const FIRCLSNetworkAcceptLanguage = @"Accept-Language";
|
|
|
40 |
NSString* const FIRCLSNetworkContentLanguage = @"Content-Language";
|
|
|
41 |
NSString* const FIRCLSNetworkCrashlyticsAPIClientDisplayVersion =
|
|
|
42 |
@"X-Crashlytics-API-Client-Display-Version";
|
|
|
43 |
NSString* const FIRCLSNetworkCrashlyticsAPIClientId = @"X-Crashlytics-API-Client-Id";
|
|
|
44 |
NSString* const FIRCLSNetworkCrashlyticsDeveloperToken = @"X-Crashlytics-Developer-Token";
|
|
|
45 |
NSString* const FIRCLSNetworkCrashlyticsGoogleAppId = @"X-Crashlytics-Google-App-Id";
|
|
|
46 |
NSString* const FIRCLSNetworkCrashlyticsOrgId = @"X-Crashlytics-Org-Id";
|
|
|
47 |
NSString* const FIRCLSNetworkUserAgent = @"User-Agent";
|
|
|
48 |
NSString* const FIRCLSNetworkUTF8 = @"utf-8";
|
|
|
49 |
|
|
|
50 |
NSString* FIRCLSSDKGeneratorName(void) {
|
|
|
51 |
return [NSString stringWithFormat:@"%s/%s", STR(CLS_SDK_NAME), FIRCLSSDKVersion().UTF8String];
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
NSString* FIRCLSSDKVersion(void) {
|
|
|
55 |
return FIRFirebaseVersion();
|
|
|
56 |
}
|