Skip to content

Commit 948a7ac

Browse files
committed
donee
1 parent 90d8738 commit 948a7ac

File tree

2 files changed

+35
-12
lines changed

2 files changed

+35
-12
lines changed

.github/workflows/build-sample-apps.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Build sample apps
33
on:
44
pull_request: # build sample apps for every commit pushed to an open pull request (including drafts)
55
push:
6+
branches: [ main, feature/* ]
67

78
concurrency: # cancel previous workflow run if one exists.
89
group: ${{ github.workflow }}-${{ github.ref }}
@@ -58,6 +59,7 @@ jobs:
5859
# List all sample apps you want to have compiled.
5960
# List item is name of directory inside of "Apps" directory for the corresponding app to compile.
6061
- "APN"
62+
- "FCM"
6163
defaults:
6264
run:
6365
working-directory: apps/${{ matrix.sample-app }}

Apps/APN/src/screens/Settings.js

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const Settings = ({ navigation, route }) => {
101101
setTrackScreensEnabled(initialConfig.trackScreens);
102102
setTrackDeviceAttributesEnabled(initialConfig.trackDeviceAttributes);
103103
setDebugModeEnabled(initialConfig.debugMode);
104-
setScreenView(initialConfig.screenViewUse);
104+
setScreenView(initialConfig.screenViewUse);
105105
setAppLifecycleEventTrackingEnabled(initialConfig?.trackAppLifecycleEvents);
106106
}, [initialCdpApiKey, initialConfig, initialSiteId]);
107107

@@ -245,32 +245,53 @@ const Settings = ({ navigation, route }) => {
245245
</View>
246246
<View style={settingsStyles.section}>
247247
<Text style={settingsStyles.sectionLabel}>ScreenView Use</Text>
248-
<View style={[settingsStyles.buttonGroup, { backgroundColor: '#F0F0F5', borderRadius: 8 }]}>
248+
<View
249+
style={[
250+
settingsStyles.buttonGroup,
251+
{ backgroundColor: '#F0F0F5', borderRadius: 8 },
252+
]}
253+
>
249254
<TouchableOpacity
250255
style={[
251256
settingsStyles.segmentButton,
252257
{ flex: 1 },
253-
screenView === ScreenView.All.toString() && { backgroundColor: '#4B48C9' }
258+
screenView === ScreenView.All.toString() && {
259+
backgroundColor: '#4B48C9',
260+
},
254261
]}
255262
onPress={() => setScreenView(ScreenView.All.toString())}
256263
>
257-
<Text style={[
258-
settingsStyles.segmentButtonText,
259-
screenView === ScreenView.All.toString() && { color: 'white' }
260-
]}>All</Text>
264+
<Text
265+
style={[
266+
settingsStyles.segmentButtonText,
267+
screenView === ScreenView.All.toString() && {
268+
color: 'white',
269+
},
270+
]}
271+
>
272+
All
273+
</Text>
261274
</TouchableOpacity>
262275
<TouchableOpacity
263276
style={[
264277
settingsStyles.segmentButton,
265278
{ flex: 1 },
266-
screenView === ScreenView.InApp.toString() && { backgroundColor: '#4B48C9' }
279+
screenView === ScreenView.InApp.toString() && {
280+
backgroundColor: '#4B48C9',
281+
},
267282
]}
268283
onPress={() => setScreenView(ScreenView.InApp.toString())}
269284
>
270-
<Text style={[
271-
settingsStyles.segmentButtonText,
272-
screenView === ScreenView.InApp.toString() && { color: 'white' }
273-
]}>InApp</Text>
285+
<Text
286+
style={[
287+
settingsStyles.segmentButtonText,
288+
screenView === ScreenView.InApp.toString() && {
289+
color: 'white',
290+
},
291+
]}
292+
>
293+
InApp
294+
</Text>
274295
</TouchableOpacity>
275296
</View>
276297
</View>

0 commit comments

Comments
 (0)