在Android上安装的React Native Firebase指南,有一条注释:“在android / app / build.gradle中,将所有编译语句更新为实现,例如。我已将build.gralde中的所有compile语句更改为实现,因此我的build.gradle中具有实现“ com.facebook.react:react-native:+”。我看到react native firebase将apk用于react-native,而compileOnly用于其他模块。我的问题是最好用的是什么-如果我将所有内容都更改为实现(包括react-native),都会有问题吗?为什么有任何原因,react-native-firebase将“ apk”用于react-native和com.android.support:support-v4:$supportVersion。
api "com.facebook.react:react-native:+" // From node_modules
api "com.android.support:support-v4:$supportVersion"
compileOnly "com.google.android.gms:play-services-base:15.0.0"
compileOnly "com.google.firebase:firebase-ads:15.0.0"
compileOnly "com.google.firebase:firebase-auth:15.0.0"
...