Skip to content

Commit d96d23e

Browse files
authored
Fix objective c cues that Rouge didn't like that much (#1016)
1 parent 672f482 commit d96d23e

File tree

15 files changed

+24
-24
lines changed

15 files changed

+24
-24
lines changed

src/connections/destinations/catalog/adjust/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ pod "Segment-Adjust"
2727

2828
After adding the dependency, you must register the destination with our SDK. To do this, import the Adjust destination in your `AppDelegate`:
2929

30-
```objective-c
30+
```objc
3131
#import <Segment-Adjust/SEGAdjustIntegrationFactory.h>
3232
```
3333

3434
And add the following lines:
3535

36-
```objective-c
36+
```objc
3737
NSString *const SEGMENT_WRITE_KEY = @" ... ";
3838
SEGAnalyticsConfiguration *config = [SEGAnalyticsConfiguration configurationWithWriteKey:SEGMENT_WRITE_KEY];
3939

src/connections/destinations/catalog/adobe-analytics/heartbeat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Analytics.with(this).track("Video Playback Started",
6161

6262
The following example shows how to set an integration-specific option on iOS:
6363

64-
```objective-c
64+
```objc
6565
options:@{
6666
@"integrations": @{
6767
@"Adobe Analytics" : @{

src/connections/destinations/catalog/adobe-analytics/mobile.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ compile 'com.segment.analytics.android.integrations:adobe-analytics:1.0.0'
3131

3232

3333
iOS:
34-
```objective-c
34+
```objc
3535
pod 'Segment-Adobe-Analytics', '1.1.0-beta'
3636
```
3737

@@ -79,7 +79,7 @@ Config.setUserIdentifier("123");
7979

8080
And on iOS:
8181

82-
```objective-c
82+
```objc
8383
[ADBMobile setUserIdentifier:@"123"];
8484
```
8585
@@ -93,7 +93,7 @@ Analytics.trackState("Home Screen", <properties mapped in contextData>);
9393

9494
And on iOS:
9595

96-
```objective-c
96+
```objc
9797
[self.ADBMobile trackState:@"Home Screen" data:<properties mapped in contextData>];
9898
```
9999
@@ -107,7 +107,7 @@ Analytics.trackEvent("Clicked A Button", <properties mapped in contextData>);
107107

108108
And on iOS:
109109

110-
```objective-c
110+
```objc
111111
[ADBMobile trackAction:@"Clicked A Button" data:<properties mapped in contextData>];
112112
```
113113
@@ -119,7 +119,7 @@ Calling `reset` sets your user's `visitorId` to `null`. `null` is Adobe's defau
119119
Config.setUserIdentifier(null);
120120
```
121121

122-
```objective-c
122+
```objc
123123
[ADBMobile trackingClearCurrentBeacon];
124124
```
125125

@@ -133,6 +133,6 @@ Analytics.sendQueuedHits();
133133

134134
And on iOS:
135135

136-
```objective-c
136+
```objc
137137
[ADBMobile trackingSendQueuedHits];
138138
```

src/connections/destinations/catalog/amplitude/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ example. To set an out of session event, pass in `true` for the key
709709

710710
iOS Example:
711711

712-
```objective-c
712+
```objc
713713
[[SEGAnalytics sharedAnalytics]
714714
track: @"Push Notification Viewed"
715715
properties: nil

src/connections/destinations/catalog/appsflyer/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ If you are sending in the attribution data yourself, for iOS be sure the followi
132132

133133
For example, an attribution event coming from an attribution partner would look like:
134134

135-
```objective-c
135+
```objc
136136
[[SEGAnalytics sharedAnalytics] track:@"Install Attributed", properties: @{
137137
@"provider" : @"Appsflyer/Tune/Kochava/Branch",
138138
@"campaign" : @{

src/connections/destinations/catalog/braze/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ The `inAppMessages` parameter will be an array of [`appboy.ab.InAppMessage`](htt
254254
```
255255
6. If you are using the `UserNotification` framework, follow [Braze's documentation](https://www.braze.com/docs/developer_guide/platform_integration_guides/ios/push_notifications/integration/#using-usernotification-framework-ios-10) to register push notifications using the `UserNotification` framework. Then in your application's `userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler` method, add the following:
256256

257-
```obj-c
257+
```objc
258258
if ([Appboy sharedInstance] == nil) {
259259
[[SEGAppboyIntegrationFactory instance].appboyHelper saveUserNotificationCenter:center
260260
notificationResponse:response];

src/connections/destinations/catalog/comscore/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Note that iOS and Android expect different casing. We expect `snake_case` for iO
163163

164164
Example on passing destination specific option values through on iOS:
165165

166-
```objective-c
166+
```objc
167167
options:@{
168168
@"integrations": @{
169169
@"com-score" : @{

src/connections/destinations/catalog/doubleclick-floodlight/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Assuming the below is an example Floodlight tag mapping:
3939

4040
With the following `track` call:
4141

42-
```objective-c
42+
```objc
4343
[[SEGAnalytics sharedAnalytics] track:@"Free El"
4444
properties:@{ @"show": @"Stranger Things", @"source": @"Netflix", @"greatestShowEver": YES }];
4545
```

src/connections/destinations/catalog/flurry/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ If you're not familiar with the Segment Specs, take a look to understand what th
2828

2929
An example iOS call would look like:
3030

31-
```objective-c
31+
```objc
3232
[[SEGAnalytics sharedAnalytics] screen:@"Home"];
3333
```
3434

src/connections/destinations/catalog/intercom/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ Segment supports Intercom's `reset` method only for Device-mode Mobile sources.
243243

244244
On iOS:
245245

246-
```objective-c
246+
```objc
247247
[Intercom reset];
248248
```
249249

@@ -429,7 +429,7 @@ analytics.onIntegrationReady("Intercom", new Callback() {
429429
});
430430
```
431431

432-
```objective-c
432+
```objc
433433
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(integrationDidStart:) name:SEGAnalyticsIntegrationDidStart object:nil];
434434

435435
- (void)integrationDidStart:(nonnull NSNotification *)notification

0 commit comments

Comments
 (0)