Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Jul 12, 2018
1 parent e274cd5 commit 91dec18
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ src/platforms/android/include.gradle
!src/platforms/web/typings/firebase-webapi.d.ts
!src/platforms/ios/typings/*.d.ts
!src/platforms/android/typings/**/*.d.ts
!src/scripts/entitlements*.js
!src/scripts/*.js
!demo/karma.conf.js
demo/*.d.ts
demo-ng/*.d.ts
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
[Firebase iOS SDK Changelog](https://firebase.google.com/support/release-notes/ios)
[Firebase Android SDK Changelog](https://firebase.google.com/support/release-notes/android)

## 6.4.1 (2018, July 13)
[Fixes & Enhancements](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/milestone/64?closed=1)


## 6.4.0 (2018, July 3)
[Fixes & Enhancements](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/milestone/63?closed=1)

Expand Down
6 changes: 6 additions & 0 deletions src/scripts/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -3422,10 +3422,16 @@ module.exports = function($logger, $projectData, hookArgs) {
if (hookArgs.platform.toLowerCase() === 'android') {
var sourceGoogleJson = path.join($projectData.appResourcesDirectoryPath, "Android", "google-services.json");
var destinationGoogleJson = path.join($projectData.platformsDir, "android", "app", "google-services.json");
var destinationGoogleJsonAlt = path.join($projectData.platformsDir, "android", "google-services.json");
if (fs.existsSync(sourceGoogleJson) && fs.existsSync(path.dirname(destinationGoogleJson))) {
$logger.out("Copy " + sourceGoogleJson + " to " + destinationGoogleJson + ".");
fs.writeFileSync(destinationGoogleJson, fs.readFileSync(sourceGoogleJson));
resolve();
} else if (fs.existsSync(sourceGoogleJson) && fs.existsSync(path.dirname(destinationGoogleJsonAlt))) {
// NativeScript < 4 doesn't have the 'app' folder
$logger.out("Copy " + sourceGoogleJson + " to " + destinationGoogleJsonAlt + ".");
fs.writeFileSync(destinationGoogleJsonAlt, fs.readFileSync(sourceGoogleJson));
resolve();
} else {
$logger.warn("Unable to copy google-services.json.");
reject();
Expand Down

0 comments on commit 91dec18

Please sign in to comment.