Giter Club home page Giter Club logo

godot-tenjin's Introduction

Tenjin plugin for Godot engine. Free attribution, Ad Revenue LTV, Cost and ad revenue aggregation.

Installation using NativeLib Addon

  1. Add NativeLib Addon into your project (search it in Godot's AssetLib).

  2. Find TENJIN in plugins list and press "Install" button.

  3. Set your API key in plugin variables list.

  4. Enable Custom Build for using in Android.

Installation using NativeLib-CLI

  1. Install NativeLib-CLI in your system.

  2. Make nativelib -i tenjin in your project directory.

  3. Set Tenjin/ApiKey in your project settings.

  4. Enable Custom Build for using in Android.

Usage

Wrapper on gd-script will be in your autoloading list. Use global name tenjin anywhere in your code to use API.

API

logEvent(event: String)

Log any custom event in your application.

logEventWithValue(event: String, value: int)

Log custom event with value which can be summarized in reports.

logPurchase(sku: String, currency: String, amount: int, price: float)

Log in-app purchase.

logPurchaseWithSignature(sku: String, currency: String, amount: int, price: float, data: String, signature: String)

Log in-app purchase with receipt verification.

godot-tenjin's People

Contributors

drmoriarty avatar

Stargazers

 avatar  avatar

Watchers

 avatar

godot-tenjin's Issues

_tj singletone is null

Hi, thanks for your work! Been trying to integrate Tenjin via NativeLib addon. However, it seems that singletone can't be found.

func _ready() -> void:
	pause_mode = Node.PAUSE_MODE_PROCESS
	if(Engine.has_singleton("Tenjin")):
		print("%s : tenjin initialized" % name)
		_tj = Engine.get_singleton("Tenjin")
	else:
		print("%s : singletone not found" % name)
	var deepLink = ''
	if _facebook != null:
		deepLink = _facebook.deep_link_uri()
	var apiKey = ''
	if ProjectSettings.has_setting('Tenjin/ApiKey'):
		apiKey = ProjectSettings.get_setting('Tenjin/ApiKey')
	init(apiKey, deepLink)

This piece (which is basically default tenjin.gd part created upon loading Tenjin via NativeLib) prints "tenjin : singletone not found"

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.