Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Commit

Permalink
breakpoint notifications #1 -- Servicify the notifications package
Browse files Browse the repository at this point in the history
Summary:
We will consume this function in the debugger, and want to take advantage of the
setting-awareness/focusing/styling done in the notifications package.

Reviewed By: jgebhardt

Differential Revision: D3625306

fbshipit-source-id: a0c12e908a4ada0a2ccf7c5381bd75e15d3a67f0
  • Loading branch information
johnislarry authored and Facebook Github Bot 2 committed Jul 28, 2016
1 parent 88b30c2 commit e3ebd01
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/nuclide-notifications/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ function raiseNativeNotification(title: string, body: string): void {
);
}

export function provideRaiseNativeNotification(): typeof raiseNativeNotification {
return raiseNativeNotification;
}

export function deactivate(): void {
subscriptions.dispose();
subscriptions = (null: any);
Expand Down
8 changes: 8 additions & 0 deletions pkg/nuclide-notifications/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,13 @@
},
"packageType": "Atom",
"testRunner": "apm"
},
"providedServices": {
"nuclide-notifications.provideRaiseNativeNotification": {
"versions": {
"description": "A function for raising native notifications.",
"0.0.0": "provideRaiseNativeNotification"
}
}
}
}

0 comments on commit e3ebd01

Please sign in to comment.