Skip to content

Commit

Permalink
Add react-native-system-notification - with modifications:
Browse files Browse the repository at this point in the history
  • Loading branch information
kdelwat committed Jan 12, 2017
1 parent 862cd10 commit 19b8cd4
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ android {
}

dependencies {
compile project(':react-native-system-notification')
compile project(':react-native-share-menu')
compile project(':react-native-vector-icons')
compile project(':react-native-share')
Expand Down
10 changes: 9 additions & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.VIBRATE"/>

<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-sdk
android:minSdkVersion="16"
android:targetSdkVersion="22" />
Expand All @@ -32,6 +33,13 @@
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
<receiver android:name="io.neson.react.notification.NotificationEventReceiver" />
<receiver android:name="io.neson.react.notification.NotificationPublisher" />
<receiver android:name="io.neson.react.notification.SystemBootEventReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"></action>
</intent-filter>
</receiver>
</application>

</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import android.util.Log;

import com.facebook.react.ReactApplication;
import io.neson.react.notification.NotificationPackage;
import com.meedan.ShareMenuPackage;
import com.oblador.vectoricons.VectorIconsPackage;
import cl.json.RNSharePackage;
Expand All @@ -30,6 +31,7 @@ protected boolean getUseDeveloperSupport() {
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new NotificationPackage(),
new ShareMenuPackage(),
new VectorIconsPackage(),
new RNSharePackage()
Expand Down
2 changes: 2 additions & 0 deletions android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
rootProject.name = 'Tasks'
include ':react-native-system-notification'
project(':react-native-system-notification').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-system-notification/android')
include ':react-native-share-menu'
project(':react-native-share-menu').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-share-menu/android')
include ':react-native-vector-icons'
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"react-native-scrollable-tab-view": "^0.7.0",
"react-native-share": "^1.0.17",
"react-native-share-menu": "^1.3.0",
"react-native-system-notification": "^0.2.1",
"react-native-vector-icons": "^4.0.0"
},
"devDependencies": {
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2954,6 +2954,10 @@ react-native-side-menu@^0.20.1:
version "0.20.1"
resolved "https://registry.yarnpkg.com/react-native-side-menu/-/react-native-side-menu-0.20.1.tgz#df21b4bb9d8a1aa3bae53d74ddf8a739eb59bfc5"

react-native-system-notification@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/react-native-system-notification/-/react-native-system-notification-0.2.1.tgz#ef3276858ff310f5891076eccd8214db78853465"

react-native-tab-navigator@^0.3.3:
version "0.3.3"
resolved "https://registry.yarnpkg.com/react-native-tab-navigator/-/react-native-tab-navigator-0.3.3.tgz#b222bad21fbe773c8d28f9a0de30ce62b08724d3"
Expand Down

0 comments on commit 19b8cd4

Please sign in to comment.