Code Monkey home page Code Monkey logo

acra-telerik-analytics's Introduction

ACRA Telerik Analytics

Contains the source code of the org.nativescript.ata library used by the nativescript-marketplace-demo app for Android.

Build

cd "ACRA Telerik Analytics"
../gradlew packFramework

This generates .tgz and .aar files in the dist folder.

Update

If you need to make changes to the source code:

  1. Make the source code changes.
  2. Increment the version in package.json
  3. Go to the "ACRA Telerik Analytics" folder.
  4. Build with ../gradlew packFramework
  5. Go back to the repository root folder and then go to the dist folder
  6. npm publish the newly generated tgz file.

Install

npm install acra-telerik-analytics

How to use from a NativeScript application for Android

var application = require("application");

application.on(application.launchEvent, function(args) {
    if (application.android) {
        var analyticsProductKey = "The product key located in the auto-generated code-snippet when you create a new Analytics app for Android in Telerik Platform";
        org.nativescript.ata.AnalyticsReportSender.init(application.android.nativeApp, analyticsProductKey);
    }
});

How to use from a native Android application

Add node_modules/acra-telerik-analytics/platforms/android/ACRA Telerik Analytics-release.aar as a dependency in your Android application project.

package org.nativescript.ata.app;

import android.app.Application;
import android.util.Log;

import org.nativescript.ata.AnalyticsReportSender;

public class ATAApplication extends Application {
    @Override
    public void onCreate() {
        String analyticsProductKey = "The product key located in the auto-generated code-snippet when you create a new Analytics app for Android in Telerik Platform";
        AnalyticsReportSender.init(this, analyticsProductKey);
        super.onCreate();
    }
}

acra-telerik-analytics's People

Contributors

dtopuzov avatar hamorphis avatar panayotcankov avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.