ReallySmallSoftware / cordova-plugin-firestore

A Google Firebase Firestore plugin to enable realtime synchronisation between app and cloud and automatically handle limited connectivity.
Other
22 stars 10 forks source link

The cordova-support-google-services changed <resource-file> configuration #15

Open imelgrat opened 5 years ago

imelgrat commented 5 years ago

In the README it explains that the google-services.json file should be declared by using:

<platform name="android">
    <resource-file src="google-services.json" target="google-services.json" />
</platform>

This caused the build to fail, as the file was not found by the related Gradle task. The actual configuration should be

<platform name="android">
    <resource-file src="google-services.json" target="app/google-services.json" />
</platform>

This was taken from the cordova-support-google-services page (https://www.npmjs.com/package/cordova-support-google-services) and made the build work with no problems.

Specifications

Tested on Windows 7, the following plugins: cordova-support-google-services^1.3.1 cordova-plugin-firebaseui-auth^1.0.2 cordova-plugin-firestore^1.3.2

ReallySmallSoftware commented 5 years ago

This is an artifact of when the plugin supported the previous cordova-android version. I will update the documentation.

imelgrat commented 5 years ago

Yes. It's not a problem with the plugin itself.