mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
[android] Update to latest version of android libs; Fix compilation issues
This commit is contained in:
@@ -4,7 +4,8 @@ const path = require('path');
|
||||
const appBuildGradlePath = path.join('android', 'app', 'build.gradle');
|
||||
|
||||
const defaultCompileStatement = "compile project(':react-native-firebase')";
|
||||
const requiredCompileStatement = "compile(project(':react-native-firebase')) {\n transitive = false\n }";
|
||||
const requiredCompileStatement =
|
||||
"compile(project(':react-native-firebase')) {\n transitive = false\n }";
|
||||
|
||||
// android/build.gradle
|
||||
// 1) TODO: Add Google Play maven repository
|
||||
@@ -16,7 +17,10 @@ const requiredCompileStatement = "compile(project(':react-native-firebase')) {\n
|
||||
let buildGradleContents = fs.readFileSync(appBuildGradlePath, 'utf8');
|
||||
|
||||
// 1) Check that react-native-firebase compile statement is the correct format
|
||||
buildGradleContents = buildGradleContents.replace(defaultCompileStatement, requiredCompileStatement);
|
||||
buildGradleContents = buildGradleContents.replace(
|
||||
defaultCompileStatement,
|
||||
requiredCompileStatement
|
||||
);
|
||||
|
||||
// 2) TODO: Add firebase-core and play-services-base dependencies
|
||||
|
||||
|
||||
Reference in New Issue
Block a user