Commit c06c806a authored by yogevbd's avatar yogevbd

Uprgade react-native@0.59.5

parent 32ca65df
......@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
android {
compileSdkVersion 27
buildToolsVersion '28.0.3'
buildToolsVersion '28.0.0'
defaultConfig {
minSdkVersion 19
......@@ -18,13 +18,12 @@ android {
}
}
dependencies {
// Google's GCM.
// compile 'com.google.android.gms:play-services-gcm:15.0.1'
compile "com.google.firebase:firebase-messaging:17.3.0"
compile 'com.facebook.react:react-native:+'
implementation "com.google.firebase:firebase-messaging:17.3.0"
implementation 'com.facebook.react:react-native:+'
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:2.+'
testCompile 'org.robolectric:robolectric:3.1.4'
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:2.+'
testImplementation 'org.robolectric:robolectric:3.1.4'
}
This diff is collapsed.
......@@ -2,10 +2,10 @@
buildscript {
ext {
buildToolsVersion = "28.0.3"
buildToolsVersion = "28.0.0"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28
targetSdkVersion = 26
supportLibVersion = "28.0.0"
}
repositories {
......@@ -16,6 +16,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.1'
classpath 'com.google.gms:google-services:4.0.0'
}
}
......@@ -28,8 +29,9 @@ allprojects {
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
url "$rootDir/../../node_modules/react-native/android"
}
maven { url "$rootDir/../../node_modules/jsc-android/dist" }
}
}
......
/build
google-services.json
\ No newline at end of file
apply plugin: 'com.android.application'
apply plugin: "com.android.application"
project.ext.react = [
root : "../../../",
entryFile: "index.js",
bundleAssetName: "index.android.bundle",
bundleInAlpha: true,
bundleInBeta: true
]
apply from: "../../../node_modules/react-native/react.gradle"
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
buildToolsVersion "28.0.0"
defaultConfig {
applicationId "com.wix.reactnativenotifications.app"
......@@ -31,16 +41,21 @@ configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion "26.1.0"
}
details.useVersion "28.0.0"
}
}
}
configurations.all {
resolutionStrategy {
force 'org.webkit:android-jsc:r236355'
}
}
dependencies {
// compile fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.google.firebase:firebase-core:16.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.facebook.react:react-native:+'
......@@ -48,3 +63,5 @@ dependencies {
testImplementation'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
\ No newline at end of file
......@@ -9,6 +9,7 @@
android:name=".MainApplication"
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:usesCleartextTraffic="true"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<meta-data
......
include ':myapplication'
include ':react-native-notifications'
project(':react-native-notifications').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-notifications/android')
project(':react-native-notifications').projectDir = new File(rootProject.projectDir, '../../android')
\ No newline at end of file
......@@ -122,7 +122,7 @@ class NotificationsExampleApp extends Component {
title: 'Local Notification Title',
sound: 'chime.aiff',
category: 'SOME_CATEGORY',
userInfo: { }
userInfo: { link: 'localNotificationLink' },
});
}
......
require('./example/index');
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment