https://github.com/hansemannn/titanium-firebase-performance
Use the Firebase Performance SDK in Axway Titanium ๐
https://github.com/hansemannn/titanium-firebase-performance
appcelerator axway firebase firebase-performance javascript native titanium
Last synced: about 2 months ago
JSON representation
Use the Firebase Performance SDK in Axway Titanium ๐
- Host: GitHub
- URL: https://github.com/hansemannn/titanium-firebase-performance
- Owner: hansemannn
- License: other
- Created: 2017-10-19T22:21:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-13T15:21:30.000Z (about 1 year ago)
- Last Synced: 2025-03-29T01:12:15.664Z (2 months ago)
- Topics: appcelerator, axway, firebase, firebase-performance, javascript, native, titanium
- Language: Objective-C
- Size: 15.1 MB
- Stars: 8
- Watchers: 4
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Firebase Performance - Titanium Module
Use the native Firebase SDK in Axway Titanium. This repository is part of the [Titanium Firebase](https://github.com/hansemannn/titanium-firebase) project.## Supporting this effort
The whole Firebase support in Titanium is developed and maintained by the community (`@hansemannn` and `@m1ga`). To keep
this project maintained and be able to use the latest Firebase SDK's, please see the "Sponsor" button of this repository,
thank you!## Requirements
- [x] The [Firebase Core](https://github.com/hansemannn/titanium-firebase-core) module (iOS only)
- [x] iOS: Titanium SDK 6.3.0+
- [x] Android: Titanium SDK 7.0.0+## Download
- [x] [Stable release](https://github.com/hansemannn/titanium-firebase-performance/releases)
- [x] [](http://gitt.io/component/firebase.performance)## API's
### `FirebasePerformance`
#### Methods
##### `startTrace(name)`
- `name` (String)##### `incrementCounter(message, counter, increment)`
- `name` (String)
- `counter` (String)
- `increment` (Number, optional)##### `stopTrace(name)`
- `name` (String)#### Properties
##### `dataCollectionEnabled` (Boolean, get/set, iOS-only)
#### `allTraces` ([String], iOS-only)
## Example
```js
// Require the Firebase Performance module
var FirebasePerformance = require('firebase.performance');// Start the named trace
FirebasePerformance.startTrace('trace_name');// Increment the counter value
FirebasePerformance.incrementCounter('trace_name', 'counter_name', 1); // Trace name, counter name, increment (optional)// Stop the named trace
FirebasePerformance.stopTrace('trace_name');/// -- iOS-only, remove for Android for now --
// Manually disable data collection (enabled by default)
FirebasePerformance.dataCollectionEnabled = false;// Returns all trace-names
Ti.API.log(FirebasePerformance.allTraces);
```## Build
### iOS
```js
cd ios
appc ti build -p ios --build-only
```### Android
```js
cd android
appc ti build -p android --build-only
```## Legal
This module is Copyright (c) 2017-present by Hans Knรถchel. All Rights Reserved.
Usage of this module is subject to the Terms of Service agreement with Appcelerator, Inc.