Skip to content

Commit

Permalink
Merge pull request #13 from VirtueSky/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
VirtueSky authored Aug 22, 2024
2 parents 4f26072 + 1eab95d commit 4089855
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
### 1: Download the repo and drop it into folder `Assets`
### 2: Add the line below to `Packages/manifest.json`

for version `2.9.7`
for version `2.9.8`
```csharp
"com.virtuesky.sunflower":"https://github.com/VirtueSky/sunflower.git#2.9.7",
"com.virtuesky.sunflower":"https://github.com/VirtueSky/sunflower.git#2.9.8",
```

## Includes modules
Expand Down
2 changes: 1 addition & 1 deletion VirtueSky/ControlPanel/ConstantPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
public class ConstantPackage
{
public const string VersionSunflower = "2.9.7";
public const string VersionSunflower = "2.9.8";
public const string PackageNameInAppPurchase = "com.unity.purchasing";
public const string MaxVersionInAppPurchase = "4.12.2";
public const string PackageNameNewtonsoftJson = "com.unity.nuget.newtonsoft-json";
Expand Down
11 changes: 7 additions & 4 deletions VirtueSky/Notifications/Runtime/NotificationIOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Collections.Generic;
using Unity.Notifications.iOS;
using UnityEngine;
using VirtueSky.Threading.Tasks;
using Cysharp.Threading.Tasks;

namespace VirtueSky.Notifications
{
Expand All @@ -23,7 +23,8 @@ internal static async UniTask RequestAuthorization()
}
}

private static async UniTask RegisterNotificationChannel(string identifier, string title, string subtitle, string body, iOSNotificationTrigger trigger)
private static async UniTask RegisterNotificationChannel(string identifier, string title, string subtitle,
string body, iOSNotificationTrigger trigger)
{
await RequestAuthorization();

Expand All @@ -42,7 +43,8 @@ private static async UniTask RegisterNotificationChannel(string identifier, stri
Body = body,
Subtitle = subtitle,
ShowInForeground = true,
ForegroundPresentationOption = (PresentationOption.Alert | PresentationOption.Badge | PresentationOption.Sound),
ForegroundPresentationOption =
(PresentationOption.Alert | PresentationOption.Badge | PresentationOption.Sound),
CategoryIdentifier = "category_a",
ThreadIdentifier = "thread1",
Trigger = trigger,
Expand All @@ -60,7 +62,8 @@ private static async UniTask RegisterNotificationChannel(string identifier, stri
}
}

internal static void Schedule(string identifier, string title, string subtitle, string text, TimeSpan fireTime, bool repeat)
internal static void Schedule(string identifier, string title, string subtitle, string text, TimeSpan fireTime,
bool repeat)
{
var interval = fireTime;
if (interval <= TimeSpan.Zero) interval = TimeSpan.FromSeconds(1);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "com.virtuesky.sunflower",
"displayName": "Sunflower",
"description": "Core ScriptableObject Architecture for building Unity games",
"version": "2.9.7",
"version": "2.9.8",
"unity": "2022.3",
"category": "virtuesky",
"license": "MIT",
Expand Down

0 comments on commit 4089855

Please sign in to comment.