react-native-ua
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "react-native-ua", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "React Native module for Urban Airship platforms: iOS and Android", | ||
@@ -19,3 +19,3 @@ "main": "index.js", | ||
"name": "Thiago Papageorgiou", | ||
"email": "tmpapageorgiou@gmail.com" | ||
"email": "tpapageorgiou@gmail.com" | ||
} | ||
@@ -22,0 +22,0 @@ ], |
@@ -5,2 +5,6 @@ # React Native Module for Urban Airship | ||
[Sample app using this module](https://github.com/globocom/react-native-ua-sample) | ||
<!-- TOC depthFrom:2 depthTo:6 withLinks:1 updateOnSave:1 orderedList:0 --> | ||
@@ -67,3 +71,3 @@ | ||
2. Add Urban Airship's repository url in your `android/build.gradle` file: | ||
2. Include the `react-native-ua` module in your app compile dependencies, inside the `android/app/build.gradle` file: | ||
@@ -73,20 +77,2 @@ ```java | ||
allprojects { | ||
repositories { | ||
// ... | ||
maven { | ||
// ... | ||
url "https://urbanairship.bintray.com/android" // add urban repository url | ||
} | ||
} | ||
} | ||
``` | ||
3. Include the `react-native-ua` module in your app compile dependencies, inside the `android/app/build.gradle` file: | ||
```java | ||
// ... | ||
dependencies { | ||
@@ -99,31 +85,4 @@ // ... | ||
4. Add to your app manifest (`android/app/src/main/AndroidManifest.xml`) these permissions: | ||
3. Create the `android/app/src/main/assets/airshipconfig.properties` file and update it with your Urban Airship App's data: | ||
```xml | ||
<manifest ...> | ||
// ... | ||
<application ...> | ||
// ... | ||
<receiver | ||
android:name="com.globo.reactnativeua.ReactNativeUAReceiver" | ||
android:exported="false"> | ||
<intent-filter> | ||
<action android:name="com.urbanairship.push.CHANNEL_UPDATED"/> | ||
<action android:name="com.urbanairship.push.OPENED"/> | ||
<action android:name="com.urbanairship.push.DISMISSED"/> | ||
<action android:name="com.urbanairship.push.RECEIVED"/> | ||
<category android:name="${applicationId}"/> | ||
</intent-filter> | ||
</receiver> | ||
</application> | ||
</manifest> | ||
``` | ||
5. Create the `android/app/src/main/assets/airshipconfig.properties` file and update it with your Urban Airship App's data: | ||
```java | ||
@@ -142,3 +101,3 @@ gcmSender = Your GCM sender ID (Your Google API project number) | ||
6. Inside `MainActivity.java`, located at `android/app/src/main/java/your/app/domain`, add the `ReactNativeUAPackage` to your app package list: | ||
4. Inside `MainActivity.java`, located at `android/app/src/main/java/your/app/domain`, add the `ReactNativeUAPackage` to your app package list: | ||
@@ -145,0 +104,0 @@ ```java |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
45399532
265
210
197