Closed bezkel closed 2 years ago
In your code you should declare the TS firebase object:
// eslint-disable-next-line @typescript-eslint/no-explicit-any
declare let firebase: any;
Thank you. That helped me a lot and it's running so far. But another problem is now in gradle:
Welcome to Gradle 6.5!
Here are the highlights of this release:
- Experimental file-system watching
- Improved version ordering
- New samples
For more details see https://docs.gradle.org/6.5/release-notes.html
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.5/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing
> Configure project :app
Warning: The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin.
FAILURE: Build failed with an exception.
* Where:
Script '/home/travis/build/eclipsesource/tabris-js-build-template/build/build/cordova/platforms/android/tabris-plugin-firebase/[secure]-build-extras.gradle' line: 2
* What went wrong:
A problem occurred evaluating project ':app'.
> Plugin with id 'com.google.gms.google-services' not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 30s
Any Idea what I could do?
Does anyone get this worked with tabris 3.8 and cloudbuild? So maybe it could be a problem on my side...
@bezkel, thanks for reporting the issue. We will figure it out.
@bezkel , the issue has been solved.
Problem description
I added the plugin as it is described and other plugins worked:
<plugin name="tabris-plugin-firebase" spec="https://github.com/eclipsesource/tabris-plugin-firebase.git" />
This results into:error TS2304: Cannot find name 'firebase'.
After that if tried to include it into package.json:
This results into:
I cant remember what I have done, but I have also an fail with the error:
I think i tried to add it by npm into package-lock.json
Expected behavior
global firebase is working with tabris 3.8.0
Environment