Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@capacitor-community/firebase-analytics

Package Overview
Dependencies
Maintainers
31
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capacitor-community/firebase-analytics - npm Package Compare versions

Comparing version 1.0.0-alpha.2 to 1.0.0-alpha.3

5

dist/esm/definitions.d.ts

@@ -1,6 +0,1 @@

declare module "@capacitor/core" {
interface PluginRegistry {
FirebaseAnalytics: FirebaseAnalyticsPlugin;
}
}
export interface FirebaseAnalyticsPlugin {

@@ -7,0 +2,0 @@ initializeFirebase(options: FirebaseInitOptions): Promise<any>;

4

dist/esm/web.js

@@ -15,7 +15,7 @@ import { WebPlugin } from "@capacitor/core";

key: "firebase-app",
src: "https://www.gstatic.com/firebasejs/7.15.4/firebase-app.js",
src: "https://www.gstatic.com/firebasejs/8.2.3/firebase-app.js",
},
{
key: "firebase-ac",
src: "https://www.gstatic.com/firebasejs/7.15.4/firebase-analytics.js",
src: "https://www.gstatic.com/firebasejs/8.2.3/firebase-analytics.js",
},

@@ -22,0 +22,0 @@ ];

{
"name": "@capacitor-community/firebase-analytics",
"version": "1.0.0-alpha.2",
"version": "1.0.0-alpha.3",
"description": "A native plugin for firebase analytics.",

@@ -13,12 +13,13 @@ "homepage": "https://github.com/capacitor-community/firebase-analytics",

"prepublishOnly": "npm run build",
"npm-publish": "np"
"release": "np",
"test": "echo \"No test specified\""
},
"author": "Priyank Patel <priyank.patel@stackspace.ca>",
"author": "mesur.io <oss@mesur.io>",
"license": "MIT",
"dependencies": {
"@capacitor/core": "^3.0.0-rc.0"
"@capacitor/core": "^3.0.0"
},
"devDependencies": {
"@capacitor/android": "^3.0.0-rc.0",
"@capacitor/ios": "^3.0.0-rc.0",
"@capacitor/android": "^3.0.0",
"@capacitor/ios": "^3.0.0",
"husky": "^4.2.5",

@@ -25,0 +26,0 @@ "np": "^7.4.0",

@@ -9,4 +9,4 @@ <p align="center"><br><img src="https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png" width="128" height="128" /></p>

<p align="center">
<img src="https://img.shields.io/maintenance/yes/2020?style=flat-square" />
<a href="https://github.com/capacitor-community/firebase-analytics/actions?query=workflow%3A%22Test+and+Build+Plugin%22"><img src="https://img.shields.io/github/workflow/status/capacitor-community/firebase-analytics/Test%20and%20Build%20Plugin?style=flat-square" /></a>
<img src="https://img.shields.io/maintenance/yes/2021?style=flat-square" />
<a href="https://github.com/capacitor-community/firebase-analytics/actions?query=workflow%3A%22Plugin+Unit+Tests%22"><img src="https://img.shields.io/github/workflow/status/capacitor-community/firebase-analytics/Test%20and%20Build%20Plugin?style=flat-square" /></a>
<a href="https://www.npmjs.com/package/@capacitor-community/firebase-analytics"><img src="https://img.shields.io/npm/l/@capacitor-community/firebase-analytics?style=flat-square" /></a>

@@ -17,3 +17,3 @@ <br>

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
<a href="#contributors-"><img src="https://img.shields.io/badge/all%20contributors-3-orange?style=flat-square" /></a>
<a href="#contributors-"><img src="https://img.shields.io/badge/all%20contributors-5-orange?style=flat-square" /></a>
<!-- ALL-CONTRIBUTORS-BADGE:END -->

@@ -24,9 +24,6 @@ </p>

| Maintainer | GitHub | Social |
| ------------- | ------------------------------------------- | ------------------------------------------------ |
| Priyank Patel | [priyankpat](https://github.com/priyankpat) | [@priyankpat\_](https://twitter.com/priyankpat_) |
| Stewan Silva | [stewwan](https://github.com/stewwan) | [@StewanSilva](https://twitter.com/StewanSilva) |
| Maintainer | GitHub | Social |
| ---------- | --------------------------------------- | ----------------------------------------- |
| mesur.io | [mesur-io](https://github.com/mesur-io) | [@mesur_io](https://twitter.com/mesur_io) |
Maintenance Status: Looking for maintainers!
## Installation

@@ -79,3 +76,2 @@

}
```

@@ -148,3 +144,3 @@

* Sets a user property to a given value.
* @param userId - unique identifier of a user
* @param options - property name and value to set
* @returns void

@@ -309,27 +305,27 @@ * https://firebase.google.com/docs/analytics/user-properties

```bash
npm uninstall --save capacitor-analytics
npm install --save-prod @capacitor-community/firebase-analytics
```
```bash
npm uninstall --save capacitor-analytics
npm install --save-prod @capacitor-community/firebase-analytics
```
1. Update the plugin initialization in Android's _MainActivity.java_
Update the plugin import:
Update the plugin import:
```diff
-import io.stewan.capacitor.analytics.AnalyticsPlugin;
+import com.getcapacitor.community.firebaseanalytics.FirebaseAnalytics;
```
```diff
-import io.stewan.capacitor.analytics.AnalyticsPlugin;
+import com.getcapacitor.community.firebaseanalytics.FirebaseAnalytics;
```
Update the `init()` call to use the new plugin import:
Update the `init()` call to use the new plugin import:
```diff
// Initializes the Bridge
this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
// Additional plugins you've installed go here
// Ex: add(TotallyAwesomePlugin.class);
- add(AnalyticsPlugin.class);
+ add(FirebaseAnalytics.class);
}});
```
```diff
// Initializes the Bridge
this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
// Additional plugins you've installed go here
// Ex: add(TotallyAwesomePlugin.class);
- add(AnalyticsPlugin.class);
+ add(FirebaseAnalytics.class);
}});
```

@@ -349,1 +345,25 @@ 1. Public API changes:

- [Web](https://firebase.google.com/docs/analytics/get-started?platform=web)
## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="https://github.com/brownoxford"><img src="https://avatars.githubusercontent.com/u/755209?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Chris Abernethy</b></sub></a><br /><a href="#maintenance-brownoxford" title="Maintenance">🚧</a></td>
<td align="center"><a href="http://priyankpatel.io"><img src="https://avatars.githubusercontent.com/u/5585797?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Priyank Patel</b></sub></a><br /><a href="https://github.com/capacitor-community/firebase-analytics/commits?author=priyankpat" title="Code">💻</a></td>
<td align="center"><a href="http://github.com/stewones"><img src="https://avatars.githubusercontent.com/u/19799027?v=4?s=100" width="100px;" alt=""/><br /><sub><b>stewwan</b></sub></a><br /><a href="https://github.com/capacitor-community/firebase-analytics/commits?author=stewwan" title="Code">💻</a></td>
<td align="center"><a href="https://www.codewithkarma.com/"><img src="https://avatars.githubusercontent.com/u/6672354?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Karmjit Singh</b></sub></a><br /><a href="https://github.com/capacitor-community/firebase-analytics/commits?author=karm435" title="Tests">⚠️</a> <a href="https://github.com/capacitor-community/firebase-analytics/issues?q=author%3Akarm435" title="Bug reports">🐛</a></td>
<td align="center"><a href="https://github.com/mRoca"><img src="https://avatars.githubusercontent.com/u/4746261?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Michel Roca</b></sub></a><br /><a href="https://github.com/capacitor-community/firebase-analytics/issues?q=author%3AmRoca" title="Bug reports">🐛</a></td>
</tr>
</table>
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc