Skip to content

Commit e3d4df3

Browse files
Merge pull request #1 from CoderGamester/develop
Release 0.1.1
2 parents 25fa40a + 2055133 commit e3d4df3

File tree

5 files changed

+146
-3
lines changed

5 files changed

+146
-3
lines changed

.gitattributes

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
## Unity ##
2+
*.cs diff=csharp text
3+
*.cginc text
4+
*.shader text
5+
*.mat merge=unityyamlmerge eol=lf
6+
*.anim merge=unityyamlmerge eol=lf
7+
*.unity merge=unityyamlmerge eol=lf
8+
*.prefab merge=unityyamlmerge eol=lf
9+
*.physicsMaterial2D merge=unityyamlmerge eol=lf
10+
*.physicMaterial merge=unityyamlmerge eol=lf
11+
*.asset merge=unityyamlmerge eol=lf
12+
*.meta merge=unityyamlmerge eol=lf
13+
*.controller merge=unityyamlmerge eol=lf
14+
15+
16+
## git-lfs ##
17+
18+
#Image
19+
*.jpg filter=lfs diff=lfs merge=lfs -text
20+
*.jpeg filter=lfs diff=lfs merge=lfs -text
21+
*.png filter=lfs diff=lfs merge=lfs -text
22+
*.gif filter=lfs diff=lfs merge=lfs -text
23+
*.psd filter=lfs diff=lfs merge=lfs -text
24+
*.ai filter=lfs diff=lfs merge=lfs -text
25+
26+
#Audio
27+
*.mp3 filter=lfs diff=lfs merge=lfs -text
28+
*.wav filter=lfs diff=lfs merge=lfs -text
29+
*.ogg filter=lfs diff=lfs merge=lfs -text
30+
31+
#Video
32+
*.mp4 filter=lfs diff=lfs merge=lfs -text
33+
*.mov filter=lfs diff=lfs merge=lfs -text
34+
35+
#3D Object
36+
*.FBX filter=lfs diff=lfs merge=lfs -text
37+
*.fbx filter=lfs diff=lfs merge=lfs -text
38+
*.blend filter=lfs diff=lfs merge=lfs -text
39+
*.obj filter=lfs diff=lfs merge=lfs -text
40+
41+
#ETC
42+
*.a filter=lfs diff=lfs merge=lfs -text
43+
*.exr filter=lfs diff=lfs merge=lfs -text
44+
*.tga filter=lfs diff=lfs merge=lfs -text
45+
*.pdf filter=lfs diff=lfs merge=lfs -text
46+
*.zip filter=lfs diff=lfs merge=lfs -text
47+
*.dll filter=lfs diff=lfs merge=lfs -text
48+
*.unitypackage filter=lfs diff=lfs merge=lfs -text
49+
*.aif filter=lfs diff=lfs merge=lfs -text
50+
*.ttf filter=lfs diff=lfs merge=lfs -text
51+
*.rns filter=lfs diff=lfs merge=lfs -text
52+
*.reason filter=lfs diff=lfs merge=lfs -text
53+
*.lxo filter=lfs diff=lfs merge=lfs -text

.gitignore

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# This .gitignore file should be placed at the root of your Unity project directory
2+
#
3+
# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore
4+
#
5+
/[Ll]ibrary/
6+
/[Tt]emp/
7+
/[Oo]bj/
8+
/[Bb]uild/
9+
/[Bb]uilds/
10+
/[Ll]ogs/
11+
/[Mm]emoryCaptures/
12+
13+
# Asset meta data should only be ignored when the corresponding asset is also ignored
14+
!/[Aa]ssets/**/*.meta
15+
16+
# Uncomment this line if you wish to ignore the asset store tools plugin
17+
# /[Aa]ssets/AssetStoreTools*
18+
19+
# Autogenerated Jetbrains Rider plugin
20+
[Aa]ssets/Plugins/Editor/JetBrains*
21+
22+
# Visual Studio cache directory
23+
.vs/
24+
25+
# Gradle cache directory
26+
.gradle/
27+
28+
# Autogenerated VS/MD/Consulo solution and project files
29+
ExportedObj/
30+
.consulo/
31+
*.csproj
32+
*.unityproj
33+
*.sln
34+
*.suo
35+
*.tmp
36+
*.user
37+
*.userprefs
38+
*.pidb
39+
*.booproj
40+
*.svd
41+
*.pdb
42+
*.mdb
43+
*.opendb
44+
*.VC.db
45+
46+
# Rider Generated
47+
.idea
48+
49+
# Unity3D generated meta files
50+
*.pidb.meta
51+
*.pdb.meta
52+
*.mdb.meta
53+
54+
# Unity3D generated file on crash reports
55+
sysinfo.txt
56+
57+
# Builds
58+
*.apk
59+
*.unitypackage
60+
61+
# Crashlytics generated file
62+
crashlytics-build.properties
63+
64+
#OS generated
65+
**/.DS_Store
66+
**/DS_Store
67+
**/DS_Store?*
68+
**/._*
69+
**/Spotlight-V100
70+
**/.Trashes
71+
**/ehthumbs.db
72+
**/Thumbs.db
73+
74+
#Windows generated
75+
*Thumbs*
76+
*.orig
77+
*.orig.meta
78+
*.uxf
79+
80+
81+

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [0.1.1] - 2020-07-29
8+
9+
**Fixed**:
10+
- Added missing gitignore & gitattributes files
11+
- Fixed notifications for Android
12+
713
## [0.1.0] - 2020-07-29
814

915
- Initial submission for package distribution

Runtime/GameNotificationsMonoBehaviour.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,15 +314,18 @@ public void Initialize(params GameNotificationChannel[] channels)
314314
if (!doneDefault)
315315
{
316316
doneDefault = true;
317-
((AndroidNotificationsPlatform)Platform).DefaultChannelId = notificationChannel.Id;
317+
((AndroidNotificationsPlatform)_platform).DefaultChannelId = notificationChannel.Id;
318318
}
319319

320320
long[] vibrationPattern = null;
321321
if (notificationChannel.VibrationPattern != null)
322+
{
322323
vibrationPattern = notificationChannel.VibrationPattern.Select(v => (long)v).ToArray();
324+
}
323325

324326
// Wrap channel in Android object
325-
var androidChannel = new AndroidNotificationChannel(notificationChannel.Id, notificationChannel.Name,
327+
var androidChannel = new AndroidNotificationChannel(
328+
notificationChannel.Id, notificationChannel.Name,
326329
notificationChannel.Description,
327330
(Importance)notificationChannel.Style)
328331
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.gamelovers.notificationservice",
33
"displayName": "Notification Service",
4-
"version": "0.1.0",
4+
"version": "0.1.1",
55
"unity": "2019.4",
66
"description": "This package provides an easier to use service to help manage the notification sent to mobile devices, and based on the Unity's Mobile Notifications package.\nIt allows to schedule local notifications, receive remote notifications and clear any type of notification.",
77
"dependencies": {

0 commit comments

Comments
 (0)