diff --git a/android/build.gradle b/android/build.gradle index d52fd0263..ec55288b7 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,7 +1,6 @@ buildscript { repositories { mavenCentral() - google() jcenter() } dependencies { @@ -12,7 +11,6 @@ buildscript { allprojects { repositories { mavenCentral() - google() jcenter() } } diff --git a/android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotification.java b/android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotification.java index 93e82d77d..7184a9a42 100644 --- a/android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotification.java +++ b/android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotification.java @@ -79,10 +79,6 @@ private Bundle getBundleFromIntent(Intent intent) { Bundle bundle = null; if (intent.hasExtra("notification")) { bundle = intent.getBundleExtra("notification"); - } else if (intent.hasExtra("google.message_id")) { - bundle = new Bundle(); - - bundle.putBundle("data", intent.getExtras()); } if (bundle == null) { diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 3ff475d22..7d9688948 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -203,8 +203,6 @@ dependencies { } } -apply plugin: 'com.google.gms.google-services' - // Run this once to be able to run the application with BUCK // puts all compile dependencies into folder libs for BUCK to use task copyDownloadableDepsToLibs(type: Copy) { diff --git a/example/android/build.gradle b/example/android/build.gradle index 32a599bd5..1bc9aba49 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -8,13 +8,11 @@ buildscript { targetSdkVersion = 28 } repositories { - google() jcenter() } dependencies { classpath("com.android.tools.build:gradle:3.5.2") - classpath('com.google.gms:google-services:4.3.3') // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } @@ -32,7 +30,6 @@ allprojects { url("$rootDir/../node_modules/jsc-android/dist") } - google() jcenter() maven { url 'https://www.jitpack.io' } }