Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
FaizanDurrani committed Apr 4, 2019
0 parents commit 1b2982c
Show file tree
Hide file tree
Showing 142 changed files with 6,641 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/Assets/AssetStoreTools*
/.gradle/
/.idea/

# Visual Studio 2015 cache directory
/.vs/

# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
.consulo/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
*.pdb

# Unity3D generated meta files
*.pidb.meta

# Unity3D Generated File On Crash Reports
sysinfo.txt

# Builds
*.apk
/.project
MemoryCaptures
3 changes: 3 additions & 0 deletions Assembly-CSharp.csproj.DotSettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=assets_005Cbackgroundaudio/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=assets_005Cbackgroundaudio_005Cscripts/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
8 changes: 8 additions & 0 deletions Assets/BackgroundAudio.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/BackgroundAudio/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Assets/BackgroundAudio/Editor/BackgroundAudioDependencies.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<dependencies>
<androidPackages>
<androidPackage spec="com.android.support:support-compat:+"/>
</androidPackages>
</dependencies>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/BackgroundAudio/Plugins.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/BackgroundAudio/Plugins/Android.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions Assets/BackgroundAudio/Plugins/Android/App.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package com.Faizan.Github.BackgroundAudio;

import android.app.Application;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.os.Build;
import android.util.Log;

public class App extends Application {

public static final String TAG = "Application";
public static final String NOTIF_CHANNEL_ID = "audioNotifChannel";

@Override
public void onCreate() {
super.onCreate();

Log.d(TAG, "onCreate() was called!");

if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) return;

NotificationChannel channel = new NotificationChannel(
NOTIF_CHANNEL_ID,
"Audio Notification",
NotificationManager.IMPORTANCE_LOW
);

NotificationManager manager = getSystemService(NotificationManager.class);
if (manager != null) {
manager.createNotificationChannel(channel);
}
}
}
31 changes: 31 additions & 0 deletions Assets/BackgroundAudio/Plugins/Android/App.java.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1b2982c

Please sign in to comment.