Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Ensure compatibility for Firebase and Google Play Services #297

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
apply plugin: 'com.android.library'

def DEFAULT_GOOGLE_PLAY_SERVICES_VERSION = "11.8.+";
def DEFAULT_FIREBASE_CORE_VERSION = "11.8.+";

android {
compileSdkVersion 26
buildToolsVersion '26.0.2'
Expand All @@ -23,12 +26,20 @@ android {
}

dependencies {
def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion')
? project.googlePlayServicesVersion
: DEFAULT_GOOGLE_PLAY_SERVICES_VERSION

def firebaseCoreVersion = project.hasProperty('firebaseCoreVersion')
? project.firebaseCoreVersion
: DEFAULT_FIREBASE_CORE_VERSION

compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.facebook.react:react-native:+'
compile 'com.android.support:support-v4:26.1.0'
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.google.android.gms:play-services-wallet:11.8.0'
compile 'com.google.firebase:firebase-core:11.8.0'
compile "com.google.android.gms:play-services-wallet:$googlePlayServicesVersion"
compile "com.google.firebase:firebase-core:$firebaseCoreVersion"
compile 'com.stripe:stripe-android:6.0.0'
compile 'com.github.tipsi:CreditCardEntry:1.4.8.10'
}
Expand Down
3 changes: 3 additions & 0 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ def enableSeparateBuildPerCPUArchitecture = false
*/
def enableProguardInReleaseBuilds = false

def googlePlayServicesVersion = project.googlePlayServicesVersion
def firebaseCoreVersion = project.firebaseCoreVersion

android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
Expand Down
2 changes: 2 additions & 0 deletions example/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@

android.useDeprecatedNdk=true
android.enableAapt2=false
googlePlayServicesVersion=15.0.1
firebaseCoreVersion=16.0.0