Skip to content

Commit b139868

Browse files
committed
style(examples): reformat whitespace
1 parent 1f83f9c commit b139868

4 files changed

Lines changed: 13 additions & 36 deletions

File tree

examples/demo-no-location/MainPage.xaml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,7 @@
2929
Padding="16,14"
3030
Spacing="2"
3131
>
32-
<Label
33-
Text="OneSignal"
34-
TextColor="White"
35-
FontSize="22"
36-
FontAttributes="Bold"
37-
/>
32+
<Label Text="OneSignal" TextColor="White" FontSize="22" FontAttributes="Bold" />
3833
<Label Text="No-Location Demo" TextColor="White" FontSize="14" />
3934
</VerticalStackLayout>
4035

@@ -45,11 +40,7 @@
4540
<Border Style="{StaticResource CardBorderStyle}">
4641
<Grid Padding="12" ColumnDefinitions="Auto,*" ColumnSpacing="8">
4742
<Label Text="App ID" Style="{StaticResource LabelStyle}" />
48-
<Label
49-
x:Name="AppIdLabel"
50-
Grid.Column="1"
51-
Style="{StaticResource ValueStyle}"
52-
/>
43+
<Label x:Name="AppIdLabel" Grid.Column="1" Style="{StaticResource ValueStyle}" />
5344
</Grid>
5445
</Border>
5546
</VerticalStackLayout>
@@ -71,11 +62,7 @@
7162

7263
<Grid ColumnDefinitions="Auto,*" ColumnSpacing="8">
7364
<Label Text="Push ID" Style="{StaticResource LabelStyle}" />
74-
<Label
75-
x:Name="PushIdLabel"
76-
Grid.Column="1"
77-
Style="{StaticResource ValueStyle}"
78-
/>
65+
<Label x:Name="PushIdLabel" Grid.Column="1" Style="{StaticResource ValueStyle}" />
7966
</Grid>
8067

8168
<Button

examples/demo-no-location/MainPage.xaml.cs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ private void OnTestLocationClicked(object? sender, EventArgs e)
126126
try
127127
{
128128
OneSignal.Location.RequestPermission();
129-
LocationStatusLabel.Text = "Location request completed without linking the location module.";
129+
LocationStatusLabel.Text =
130+
"Location request completed without linking the location module.";
130131
}
131132
catch (Exception exception)
132133
{
@@ -143,10 +144,7 @@ private async Task<HttpResponseMessage> SendTestNotificationAsync(string pushSub
143144
{
144145
["app_id"] = _appId,
145146
["include_subscription_ids"] = new[] { pushSubscriptionId },
146-
["headings"] = new Dictionary<string, string>
147-
{
148-
["en"] = "OneSignal No-Location Demo",
149-
},
147+
["headings"] = new Dictionary<string, string> { ["en"] = "OneSignal No-Location Demo" },
150148
["contents"] = new Dictionary<string, string>
151149
{
152150
["en"] = "This test push was sent without linking the location module.",
@@ -176,7 +174,8 @@ private static void SetBusy(Button button, ActivityIndicator spinner, bool busy)
176174
spinner.IsVisible = busy;
177175
}
178176

179-
private static string FormatValue(string value) => string.IsNullOrWhiteSpace(value) ? "-" : value;
177+
private static string FormatValue(string value) =>
178+
string.IsNullOrWhiteSpace(value) ? "-" : value;
180179

181180
private static bool IsPlaceholder(string value) =>
182181
value.Trim().StartsWith("YOUR-", StringComparison.OrdinalIgnoreCase);
@@ -185,9 +184,7 @@ private static bool IsPlaceholder(string value) =>
185184
private static Thickness GetWindowSafeAreaInsets()
186185
{
187186
var window = UIApplication
188-
.SharedApplication
189-
.ConnectedScenes
190-
.OfType<UIWindowScene>()
187+
.SharedApplication.ConnectedScenes.OfType<UIWindowScene>()
191188
.SelectMany(scene => scene.Windows)
192189
.FirstOrDefault(window => window.IsKeyWindow);
193190

examples/demo-no-location/Platforms/Android/AndroidManifest.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,5 @@
99
<uses-permission android:name="android.permission.VIBRATE" />
1010
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
1111

12-
<application
13-
android:allowBackup="true"
14-
android:supportsRtl="true"
15-
></application>
12+
<application android:allowBackup="true" android:supportsRtl="true"></application>
1613
</manifest>

examples/demo-no-location/demo-no-location.csproj

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
<PropertyGroup>
33
<TargetFrameworks>net10.0-android</TargetFrameworks>
44
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('OSX'))"
5-
>$(TargetFrameworks);net10.0-ios</TargetFrameworks
6-
>
5+
>$(TargetFrameworks);net10.0-ios</TargetFrameworks>
76
<OutputType>Exe</OutputType>
87
<RootNamespace>OneSignalDemoNoLocation</RootNamespace>
98
<UseMaui>true</UseMaui>
@@ -20,12 +19,10 @@
2019

2120
<SupportedOSPlatformVersion
2221
Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'"
23-
>14.2</SupportedOSPlatformVersion
24-
>
22+
>14.2</SupportedOSPlatformVersion>
2523
<SupportedOSPlatformVersion
2624
Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'"
27-
>26.0</SupportedOSPlatformVersion
28-
>
25+
>26.0</SupportedOSPlatformVersion>
2926
</PropertyGroup>
3027

3128
<ItemGroup>
@@ -56,5 +53,4 @@
5653
<CodesignTeamId>99SW8E36CT</CodesignTeamId>
5754
<CodesignProvision>Appium Demo - Main</CodesignProvision>
5855
</PropertyGroup>
59-
6056
</Project>

0 commit comments

Comments
 (0)