capacitor-appmetrica
Advanced tools
Comparing version 1.0.0-beta.0 to 1.0.0-beta.1
{ | ||
"name": "capacitor-appmetrica", | ||
"version": "1.0.0-beta.0", | ||
"version": "1.0.0-beta.1", | ||
"description": "Capacitor plugin for Appmetrica", | ||
@@ -5,0 +5,0 @@ "main": "plugin.js", |
# Capacitor Appmetrica plugin | ||
Currently only works on ios, but android support will be coming soon | ||
# Available methods: | ||
- logEvent | ||
- setUserProfileID | ||
- reportUserProfile | ||
- getDeviceID | ||
- activate() | ||
- pauseSession() | ||
- sendEventsBuffer() | ||
- resumeSession() | ||
- setLocationTracking() | ||
- setStatisticsSending() | ||
- setLocation() | ||
- reportAppOpen() | ||
- reportError() | ||
- reportEvent() | ||
- reportReferralUrl() | ||
- setUserProfileID() | ||
- getDeviceID() | ||
- reportUserProfile() | ||
# Usage example: | ||
0. Add in `capacitor.config.json` | ||
```json | ||
{ | ||
"plugins": { | ||
"Appmetrica": { | ||
"apiKey": "Your API key" | ||
} | ||
} | ||
``` | ||
1. In your module (e.g. `app.module.ts`) | ||
@@ -52,2 +49,6 @@ | ||
async initialization() { | ||
await this.appmetrica.activate("<SDK_API_KEY>", { logs: true }) | ||
} | ||
async logEvent(name: string, params?: Object) { | ||
@@ -78,1 +79,29 @@ await this.appmetrica.logEvent(name, params) | ||
``` | ||
## BREAKING CHANGES in 1.x.x | ||
1. Removed automatic initialization of Appmetrica, now you need to initialize it manually using the `activate` method | ||
To migrate, remove the `Appmetrica` settings from the `capacitor.config.json` | ||
```diff | ||
{ | ||
"plugins": { | ||
... | ||
- "Appmetrica": { | ||
- "apiKey": "Your API key" | ||
- ... | ||
- }, | ||
... | ||
} | ||
``` | ||
and run the `activate` method when the application starts. For example: | ||
```typescript | ||
ngOnInit() { | ||
this.appmetrica.activate("<API_KEY>", options) | ||
} | ||
``` | ||
2. Added Android support |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
163559
106
0