Closed Amosel closed 3 years ago
@Humni push notification not receiving on android side . but its work perfectly on ios side.
project.ext.react = [ enableHermes: false, // clean and rebuild if changing ]
apply from: "../../node_modules/react-native/react.gradle"
/**
/**
/**
def jscFlavor = 'org.webkit:android-jsc-intl:+'
Date.toLocaleString
and String.localeCompare
that/**
android { compileSdkVersion rootProject.ext.compileSdkVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
applicationId "com.joinbuggy.driverapp"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
multiDexEnabled true
}
// dexOptions { // javaMaxHeapSize "4g" // } splits { abi { reset() enable enableSeparateBuildPerCPUArchitecture universalApk false // If true, also generate a universal APK include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" } } signingConfigs { debug { storeFile file('debug.keystore') storePassword 'android' keyAlias 'androiddebugkey' keyPassword 'android' } } buildTypes { debug { signingConfig signingConfigs.debug } release { // Caution! In production, you need to generate your own keystore file. // see https://reactnative.dev/docs/signed-apk-android. signingConfig signingConfigs.debug minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" // firebaseCrashlytics { // nativeSymbolUploadEnabled true // } } }
// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// https://developer.android.com/studio/build/configure-apk-splits.html
def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
def abi = output.getFilter(com.android.build.OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
}
}
}
}
dependencies {
implementation project(':react-native-push-notification')
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.firebase:firebase-crashlytics:17.4.1'
// For animated GIF support
compile 'com.facebook.fresco:animated-gif:1.+'
implementation 'com.google.firebase:firebase-messaging:20.0.0'
implementation project(':react-native-pusher-push-notifications')
implementation 'com.pusher:push-notifications-android:1.4.2'
// implementation 'com.pusher:push-notifications-android:1.6.2' testImplementation 'junit:junit:4.12'
// For WebP support, including animated WebP
compile 'com.facebook.fresco:animated-webp:1.+'
compile 'com.facebook.fresco:webpsupport:1.+'
implementation fileTree(dir: "libs", include: ["*.jar"])
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+" // From node_modules
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
implementation platform('com.google.firebase:firebase-bom:26.8.0')
// implementation 'com.google.firebase:firebase-crashlytics' //implementation 'com.google.firebase:firebase-analytics' implementation 'com.google.firebase:firebase-analytics:18.0.2' //async implementation project(':@react-native-async-storage') debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { exclude group:'com.facebook.fbjni' }
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
exclude group:'com.facebook.flipper'
exclude group:'com.squareup.okhttp3', module:'okhttp'
}
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
exclude group:'com.facebook.flipper'
}
if (enableHermes) {
def hermesPath = "../../node_modules/hermes-engine/android/";
debugImplementation files(hermesPath + "hermes-debug.aar")
releaseImplementation files(hermesPath + "hermes-release.aar")
} else {
implementation jscFlavor
}
}
// 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) { from configurations.compile into 'libs' }
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) apply plugin: 'com.google.gms.google-services' apply plugin: 'com.google.firebase.crashlytics'
{ "name": "Buggy", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start", "test": "jest", "lint": "eslint ." }, "dependencies": { "@apollo/client": "^3.3.6", "@apollo/react-hooks": "^4.0.0", "@ptomasroos/react-native-multi-slider": "^2.2.2", "@react-native-async-storage/async-storage": "^1.13.4", "@react-native-community/checkbox": "^0.5.6", "@react-native-community/masked-view": "^0.1.10", "@react-native-community/netinfo": "^5.9.10", "@react-native-community/push-notification-ios": "^1.8.0", "@react-native-firebase/analytics": "^11.0.0", "@react-native-firebase/app": "^11.0.0", "@react-native-firebase/crashlytics": "^11.0.0", "@react-native-firebase/perf": "^11.0.0", "@react-native-picker/picker": "^1.9.10", "@react-navigation/bottom-tabs": "^5.11.2", "@react-navigation/material-bottom-tabs": "^5.3.10", "@react-navigation/native": "^5.8.10", "@react-navigation/stack": "^5.12.8", "apollo-boost": "^0.4.7", "apollo-cache-inmemory": "^1.6.6", "apollo-client": "^2.6.10", "apollo-link-rest": "^0.8.0-beta.0", "graphql": "^15.4.0", "graphql-tag": "^2.11.0", "moment": "^2.29.1", "react": "16.13.1", "react-native": "0.63.4", "react-native-animate-loading-button": "^1.0.3", "react-native-animated-login": "^0.2.1", "react-native-calendar-picker": "^7.1.1", "react-native-check-version": "^1.0.8", "react-native-device-info": "^8.0.7", "react-native-dialog": "^6.1.2", "react-native-elements": "^3.0.1", "react-native-file-viewer": "^2.1.4", "react-native-gesture-handler": "^1.9.0", "react-native-google-places-autocomplete": "^2.1.3", "react-native-image-crop-picker": "^0.36.0", "react-native-image-slider-box": "^1.0.12", "react-native-input-credit-card": "^0.5.5", "react-native-keyboard-aware-scroll-view": "^0.9.3", "react-native-launch-navigator": "^1.0.8", "react-native-linear-gradient": "^2.5.6", "react-native-modal": "^11.6.1", "react-native-paper": "^4.5.0", "react-native-paper-dropdown": "^0.0.5", "react-native-picker-select": "^8.0.4", "react-native-push-notification": "^6.1.3", "react-native-pusher-push-notifications": "^2.4.0", "react-native-reanimated": "^1.13.2", "react-native-responsive-screen": "^1.4.1", "react-native-restart": "^0.0.20", "react-native-safe-area-context": "^3.1.9", "react-native-screens": "^2.16.1", "react-native-simple-dialogs": "^1.4.0", "react-native-vector-icons": "^7.1.0", "react-navigation": "^4.4.4", "rn-fetch-blob": "^0.12.0" }, "devDependencies": { "@babel/core": "^7.8.4", "@babel/runtime": "^7.8.4", "@react-native-community/eslint-config": "^1.1.0", "babel-jest": "^25.1.0", "eslint": "^6.5.1", "jest": "^25.1.0", "metro-react-native-babel-preset": "^0.59.0", "react-test-renderer": "16.13.1" }, "jest": { "preset": "react-native" } }
@Amosel LGTM - I'll get this tested over the 2 weeks and if it works will get it merged