Download Library



Download Library: Unity (C#)




Setup

Include the provided .unitypackage library into your Unity project. The easiest way to do it is to use the Assets->Import Package->Custom Package option (see the screenshot below). This package contains both Enhance plugin and the demo project which you can explore to find out more about the usage of Enhance.


Download Library: Android (Java)




Setup

Include the provided .jar library into your project. To do that in the Android Studio, copy the library into the libs folder, right click on the file and use the Add as a library option. You can also verify if the dependencies section of the build.gradle file was updated correctly. This is how it may look like for example:

dependencies {
    ...
    compile files('libs/Enhance.jar')
}
If this doesn't work, you should try to clean the project before you re-build it.

At the top of any source file where you want to use Enhance, you must include the library by adding the following imports (depending on which features you want to utilize):

import co.enhance.Enhance;
import co.enhance.Enhance.*;
import co.enhance.nativeads.*;

Download Library: iOS (Objective-C)




Setup

Include the provided .a library into your Objective-C project. To do that in the Xcode, go to your project's "Build Phases", press the "+" under the "Link Binary With Libraries" section, pick the "Add Other..." option nad navigate to the provided static .a library.

At the top of any source file where you want to use Enhance, you must include the library by adding the following imports (depending on which features you want to utilize):

#import "Enhance.h"
#import "EnhanceInAppPurchases.h"

Download Library: OpenFL (Haxe)




Setup

Include the provided extension into your OpenFL project. For example, you can do that by adding the following line to your project.xml file:

<include path="Path/To/Enhance/Extension"/>

Download Library: Adobe Air (AS3)




Setup

Include the provided .swc and .ane libraries into your Air project. If you don't use any IDE, open the .xml file of your project and update the <extensions> section:

<extensions>
    <extensionID>co.enhance.airconnector</extensionID>
</extensions>

If you're using the command line to build your project, you will have to supply additional parameters to include the Enhance library. Example:

# Compile .swf
amxmlc EnhanceAirDemo.mxml -external-library-path lib -swf-version 23 -compiler.debug

# Package as .apk
adt -package -target apk-debug -storetype pkcs12 -keystore cert/cert_android.p12 EnhanceAirDemo.apk EnhanceAirDemo.xml EnhanceAirDemo.swf res/icons -extdir lib

# The bold parameters specify where the .swf and .ane files are placed.

At the top of any source file where you want to use Enhance, you must include the library by adding the following import:

import co.enhance.Enhance;

Download Library: Defold (Lua)




Setup

Move the provided extension folder (enhance_extension) into your Defold project. Make sure it is visible in the Project Explorer:

Download Library: Construct 2 (Visual)




Setup

Install the provided .c2addon plugin. To do this, open the Construct 2 and drag and drop the file onto the window.

The important thing to note is that this connector is not standalone and will require you to include also another Drag and Drop library. That said, the plugin you just installed is only a wrapper for our Cordova (JavaScript) extension. This is due to how Construct 2 handles mobile builds - if you want to build a native mobile application, you will always need an additional software. Why? Because Construct 2 exports your application as HTML5/JavaScript code, which alone won't work on mobile devices, unless you run it in a web browser. There are different methods to "wrap" your project into a native mobile app and most of them are based on the Apache Cordova. This means that before we move forward you will have to export your project for the Cordova target. To do so, use the File->Export project... option and choose the "Cordova" icon under the "Mobile" section.
Now, let's take a look at a few different options to build your Construct 2 mobile app with Enhance library included.
Cordova CLI
We will use the original Cordova distribution. First of all, you should install the Apache Cordova on your Mac, Linux or Windows machine. Once it's ready, open the terminal or cmd.exe (if you're on Windows) and navigate to your exported project's folder:

cd path/to/my/project
To enable Enhance usage, add the latest version of our Cordova connector to your project's dependencies:

cordova plugin add enhance-cordova-connector
Now you can run the cordova prepare command to make your project ready for packaging. From this point, the project should be ready for the further configuration and building.
Cocoon.IO
Cocoon by ludei is an online build service for HTML5 projects. If you want to use it, you will need an account. If you don't have one, go ahead and sign up. Once your account is ready, create a .zip archive with the folder we exported from Construct 2, then use the Drop ZIP or Upload option from the "Create project" section and navigate to the archive. When the upload process is done, a new project should appear on your dashboard. To enable Enhance usage in your app, you will have to add our Cordova plugin to it. To do that, go to the Settings page and switch to the Plugins section. From the list on the left side, pick the Custom option and enter the following Git Url:

https://github.com/enhance-co/cordova-connector.git
Press the Install button. From this point, the project should be ready for the further configuration and building.

Note:
There may be an additional software (e.g. Android SDK, Xcode) or steps required. If you run into trouble with any of that, please refer to a respective documentation.

Download Library: Cordova (JS)




Setup

Include the provided plugin into your Cordova project. There are different ways to do that, depending on which tools you use.

Cordova CLI
Run the following lines in the terminal:
cd path/to/my/project
cordova plugin add enhance-cordova-connector

Cocoon.IO
Go to the Settings page and switch to the Plugins section. From the list on the left side, pick the Custom option and enter the following Git Url and press the Install button:

https://github.com/enhance-co/cordova-connector.git

Others
You can obtain the connector directly from the NPM and GitHub: https://www.npmjs.com/package/enhance-cordova-connector
https://github.com/enhance-co/cordova-connector.git

Download Library: Stencyl (Visual)




Setup

Install the provided extension (.zip) in your project. To do that, run the Stencyl and load up your project. Then open the Settings window and pick the Extensions tab. In the top of the window you should see the Install extension... button. Press the button and navigate to the file. When it's done, make sure the extension is enabled.

Download Library: Construct 3 (Visual)




Setup

Install the provided .c3addon plugin. To do that, open the Menu->View->Addon Manager window, then press the Install new addon button and navigate to the file. If you run into trouble, check out the official guide.

Download Library: Xamarin (C#)




Setup

Add the Enhance NuGet package to your project. To do that, right-click on the Packages folder in you project tree and select the Add Packages... option. The source should be set to nuget.org. Enter Enhance.Connector into the search box and once it's found, press the Add Package button. Alternatively, you can setup a local source and use the provided .nupkg file. For more informations, check the official guide.

Download Library: MIT App Inventor (Visual)




Setup

Open your project in the Designer view, use the Pallete->Extension->Import extension option and select the provided .aix file.