Update: Fixes issue with building due to new update of Google Play services https://github.com/arnesson/cordova-plugin-firebase/issues/610
This commit is contained in:
parent
b8b0617c34
commit
538741127c
3 changed files with 35 additions and 1 deletions
|
|
@ -160,5 +160,5 @@
|
||||||
<splash src="resources/*PACKAGENAME*/windows/splash/SplashScreen.scale-100.png" width="620" height="300"/>
|
<splash src="resources/*PACKAGENAME*/windows/splash/SplashScreen.scale-100.png" width="620" height="300"/>
|
||||||
<splash src="resources/*PACKAGENAME*/windows/splash/SplashScreenPhone.scale-240.png" width="1152" height="1920"/>
|
<splash src="resources/*PACKAGENAME*/windows/splash/SplashScreenPhone.scale-240.png" width="1152" height="1920"/>
|
||||||
</platform>
|
</platform>
|
||||||
|
<hook src="fixFirebasePlugin.js" type="before_build" />
|
||||||
</widget>
|
</widget>
|
||||||
|
|
|
||||||
14
fixFirebasePlugin.js
Normal file
14
fixFirebasePlugin.js
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
module.exports = function(context) {
|
||||||
|
var fs = require('fs');
|
||||||
|
var path = require('path');
|
||||||
|
|
||||||
|
var rootdir = context.opts.projectRoot;
|
||||||
|
|
||||||
|
var platformDir = 'platforms/android';
|
||||||
|
//change the path to your external gradle file
|
||||||
|
var srcFile = path.join(rootdir, 'src/android/build-extras.gradle');
|
||||||
|
var destFile = path.join(rootdir, platformDir, 'build-extras.gradle');
|
||||||
|
|
||||||
|
console.log("copying "+srcFile+" to "+destFile);
|
||||||
|
fs.createReadStream(srcFile).pipe(fs.createWriteStream(destFile));
|
||||||
|
}
|
||||||
20
src/android/build-extras.gradle
Normal file
20
src/android/build-extras.gradle
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
configurations.all {
|
||||||
|
resolutionStrategy {
|
||||||
|
force "com.google.android.gms:play-services-auth:11.8.0"
|
||||||
|
force "com.google.android.gms:play-services-identity:11.8.0"
|
||||||
|
force "com.google.android.gms:play-services-ads:11.8.0"
|
||||||
|
force "com.google.android.gms:play-services-base:11.8.0"
|
||||||
|
force "com.google.android.gms:play-services-gcm:11.8.0"
|
||||||
|
force "com.google.android.gms:play-services-analytics:11.8.0"
|
||||||
|
force "com.google.android.gms:play-services-location:11.8.0"
|
||||||
|
force "com.google.android.gms:play-services-basement:11.8.0"
|
||||||
|
force "com.google.android.gms:play-services-tagmanager:11.8.0"
|
||||||
|
force 'com.google.firebase:firebase-core:11.8.0'
|
||||||
|
force 'com.google.firebase:firebase-crash:11.8.0'
|
||||||
|
force 'com.google.firebase:firebase-auth:11.8.0'
|
||||||
|
force 'com.google.firebase:firebase-common:11.8.0'
|
||||||
|
force 'com.google.firebase:firebase-config:11.8.0'
|
||||||
|
force 'com.google.firebase:firebase-perf:11.8.0'
|
||||||
|
force 'com.google.firebase:firebase-messaging:11.8.0'
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue