@capacitor-community/firebase-analytics
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
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", | ||
}, | ||
@@ -31,0 +31,0 @@ ]; |
{ | ||
"name": "@capacitor-community/firebase-analytics", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A native plugin for firebase analytics.", | ||
@@ -13,5 +13,6 @@ "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", | ||
@@ -18,0 +19,0 @@ "dependencies": { |
@@ -9,3 +9,3 @@ <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" /> | ||
<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%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> | ||
@@ -23,9 +23,6 @@ <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> | ||
| 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: Actively Maintained | ||
## Installation | ||
@@ -68,3 +65,2 @@ | ||
new ArrayList<Class<? extends Plugin>>() { | ||
{ | ||
@@ -79,2 +75,3 @@ // Additional plugins you've installed go here | ||
} | ||
``` | ||
@@ -152,3 +149,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 | ||
@@ -313,27 +310,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); | ||
}}); | ||
``` | ||
@@ -353,1 +350,23 @@ 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> | ||
</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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
149336
366
0
2