Skip to content

Commit

Permalink
Merge 707631d into d17b382
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehardy committed Feb 5, 2021
2 parents d17b382 + 707631d commit 4617c0d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions .spellcheck.dict.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Firestore
GDPR
globals
Gradle
gradle
Hesp
Homebrew
HTTP
Expand Down
2 changes: 2 additions & 0 deletions docs/in-app-messaging/usage/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ yarn add @react-native-firebase/in-app-messaging
cd ios/ && pod install
```

Note: in-app-messaging requires a minimum android gradle plugin version of 3.5.4 to compile or you will see `AAPT` errors regarding unexpected XML with `<queries>` elements. However, `react-native@0.63.4` still ships with a default of 3.5.3. If you have not already, you must update the line `classpath("com.android.tools.build:gradle:3.5.3")`in `android/build.gradle` to a minimum of `3.5.4` for android builds to work.

If you're using an older version of React Native without autolinking support, or wish to integrate into an existing project,
you can follow the manual installation steps for [iOS](/in-app-messaging/usage/installation/ios) and [Android](/in-app-messaging/usage/installation/android).

Expand Down
11 changes: 11 additions & 0 deletions packages/auth/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,21 @@ repositories {
jcenter()
}

def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

def BROWSER_VERSION = safeExtGet('androidxBrowserVersion', '[1.0.0, 2.0.0)')

dependencies {
api appProject
implementation platform("com.google.firebase:firebase-bom:${ReactNative.ext.getVersion("firebase", "bom")}")
implementation "com.google.firebase:firebase-auth"

// This is needed for the reCAPTCHA flow but is incorrectly missing as a transitive dependency upstream
// https://github.com/invertase/react-native-firebase/issues/4744
// https://github.com/firebase/firebase-android-sdk/issues/2164
implementation "androidx.browser:browser:${BROWSER_VERSION}"
}

ReactNative.shared.applyPackageVersion()
Expand Down
2 changes: 0 additions & 2 deletions packages/ml/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ dependencies {

implementation 'com.google.android.gms:play-services-vision:20.1.1'
implementation 'com.google.android.gms:play-services-vision-common:19.1.1'
implementation 'com.google.android.gms:play-services-vision-image-labeling-internal:16.0.5'
implementation 'com.google.android.gms:play-services-vision-image-label:18.0.5'
implementation 'com.google.firebase:firebase-ml-model-interpreter:22.0.4'
}

Expand Down

0 comments on commit 4617c0d

Please sign in to comment.