This repository has been archived by the owner on Oct 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
184 changed files
with
6,614 additions
and
6,489 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.swc -crlf -diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,57 @@ | ||
FlashRuntimeExtensions.h | ||
FlashRuntimeExtensions.jar | ||
|
||
._* | ||
*.mobileprovision | ||
user.properties | ||
|
||
source/ios/DerivedData/ | ||
docs/ | ||
reports/ | ||
|
||
source/actionscript/bin | ||
*.swp | ||
*.lock | ||
profile | ||
*~.nib | ||
*.pbxuser | ||
*.mode1v3 | ||
*.mode2v3 | ||
*.perspectivev3 | ||
!default.pbxuser | ||
!default.mode1v3 | ||
!default.mode2v3 | ||
!default.perspectivev3 | ||
xcuserdata | ||
xcuserdata/**/* | ||
DerivedData/ | ||
build/ | ||
|
||
source/android/bin | ||
source/android/gen | ||
source/android/assets | ||
source/android/res | ||
*.apk | ||
*.ap_ | ||
*.dex | ||
*.class | ||
local.properties | ||
bin/ | ||
gen/ | ||
|
||
html-template/ | ||
bin-debug/ | ||
bin-release/ | ||
.actionScriptProperties | ||
.flexProperties | ||
.flexLibProperties | ||
.FlexUnitSettings | ||
.project | ||
.fxpProperties | ||
|
||
Icon | ||
.DS_Store* | ||
ehthumbs.db | ||
Thumbs.db | ||
Desktop.ini | ||
|
||
.settings/ | ||
.project | ||
.metadata | ||
|
||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "source/actionscript/abcore"] | ||
path = source/actionscript/abcore | ||
url = https://github.com/alebianco/abcore.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
## HEAD | ||
|
||
### 0.2.04 (February 02, 2013) | ||
|
||
* Updated native tracker to version 2.0b4 | ||
* API refinement | ||
* improved build scripts | ||
* fixed debug flag bug | ||
* fixed bug for reading optOut value not available in iOS | ||
* initializing dispatch period on first usage to fix inconsistent values | ||
* ASdoc update & integration (scratch that, still having problems with iOS) | ||
* updated build script | ||
* moved demo project to a separate repository | ||
|
||
### 0.2.03 (December 28, 2012) | ||
|
||
* totally rewritten Flash API | ||
* totally rewritten native code for Android and iOS | ||
* upgraded to the new Google tracker (v2.0 beta 3) to support the new "Application" analytics' profile | ||
* full support to the new Google tracker, including e-commerce, multiple trackers support, custom metrics and dimensions | ||
* brand new demo project built specifically for mobile devices (in progress) | ||
|
||
### 0.1.23 (December 2, 2012) | ||
|
||
* upgraded to AIR 3.5 | ||
* updated Google Analytics libraries (Android 1.5.1 and iOS 1.5) | ||
* improved error handling | ||
* added account ID validation | ||
|
||
### 0.1.22 (October 7, 2012) | ||
|
||
* upgraded to AIR 3.4 | ||
* fixed more compatibility issues for cross-system compilation | ||
|
||
### 0.1.21 (October 2, 2012) | ||
|
||
* finally tested on real iOS devices, thanks to [@digitaljohn](http://github.com/digitaljohn) | ||
* fixed incompatibility issues with earlier versions of iOS | ||
* added some utility methods to the Enums related to custom variables | ||
|
||
### 0.1.2 (August 17, 2012) | ||
|
||
* upgraded to AIR 3.3 | ||
* added target in the ANT script to run the demo project on the iOS simulator | ||
* cleaned and updated the ANT build file | ||
* fixed issues with the iOS version of the extension | ||
|
||
### 0.1.1 (July 15, 2012) | ||
|
||
* updated Google Analytics libraries (Android 1.4.2 and iOS 1.4) | ||
* added demo project to showcase usage and capabilities | ||
* added some documentation on usage | ||
|
||
### 0.1.0 (July 11, 2012) | ||
|
||
* initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License | ||
|
||
Copyright (c) 2011 - 2013 the original author or authors | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
# ANE-Google-Analytics: AIR Native Extension for Google Analytics on iOS and Android | ||
|
||
This is an Air native extension for Google Analytics on the iOS and Android platforms. | ||
|
||
**NOTE** The current release of the extension supports the new [Application profile](https://support.google.com/analytics/answer/1009714) for Google Analytics. | ||
|
||
## Introduction | ||
|
||
The Google Analytics Platform lets you measure user interactions with your business across various devices and environments. | ||
This extension for AIR applications leverages the Android and iOS native SDKs provided by Google Analytics, exposing their features through a common API that can be used seamlessly on both platforms. | ||
|
||
This extension makes it easy for developers to collect user engagement data from their apps. | ||
Developers can then use Google Analytics reports to measure: | ||
* The number of active users are using their applications. | ||
* From where in the world the application is being used. | ||
* Adoption and usage of specific features. | ||
* In-app purchases and transactions. | ||
* The number and type of application crashes. | ||
* And many other useful metrics. | ||
|
||
## Usage | ||
|
||
First of all, add the *NativeGATracker.ane* to your project. | ||
Then you should check if the library is supported, get an instance of the tracker, start a tracking session using your Analytics ID and actually track something. | ||
|
||
The code below shows the most basic example: | ||
```ActionScript | ||
import eu.alebianco.air.extensions.analytics.Analytics; | ||
import eu.alebianco.air.extensions.analytics.api.ITracker; | ||
if (Analytics.isSupported()) { | ||
var analytics:Analytics = Analytics.getInstance(); | ||
var tracker:ITracker = analytics.getTracker(ANALYTICS_ID); | ||
// Track a page view | ||
tracker.buildView("Home").track(); | ||
// Track an event | ||
tracker.buildEvent("click", "button").withLabel("play").withValue(10).track(); | ||
tracker.buildEvent("click", "button").withLabel("stop").track(); | ||
tracker.buildEvent("swipe", "screen").withValue(1).track(); | ||
tracker.buildEvent("app", "quit").track(); | ||
// Track an exception | ||
tracker.buildException(false).withDescription("ok, an error occurred, but it wasn't that bad").track(); | ||
tracker.buildException(true).withDescription("panic! this shit is hitting the fan!").track(); | ||
tracker.buildException(false).track(); | ||
// Track a timer | ||
tracker.buildTiming("loading", 5000).withName("resources").withLabel("audio.mp3").track(); | ||
tracker.buildTiming("waiting", 1000).track(); | ||
// Track a social interaction | ||
tracker.buildSocial("GooglePlus", "+1").forContent("http://alessandrobianco.eu").track(); | ||
tracker.buildSocial("Facebook", "like").track(); | ||
// Track an ecommerce transaction | ||
tracker.buildTransaction(UIDUtil.createUID(), 10.5) | ||
.withAffiliation("In-App Purchase") | ||
.withTaxCost(0.5) | ||
.createProduct("cr-300", "300 credits pack", 7, 1).inCategory("credits").add() | ||
.createProduct("it-156", "extra life item", 1.5, 2).add() | ||
.track(); | ||
} | ||
``` | ||
|
||
The first iteration of the demo project [ANE-Google-Analytics-Demo](https://github.com/alebianco/ANE-Google-Analytics-Demo) is now complete. | ||
Its purpose is to showcase the basic project setup and the features of the extension. | ||
As a first iteration, only screens and events tracking are implemented and enabled. Over time I'll complete it by adding more tracking options to fully exploid the extension. | ||
|
||
## Building | ||
|
||
Requirements: | ||
* Adobe Air SDK 3.5 or later | ||
* XCode IDE, iOS SDK 5.1 or later | ||
* Google Android SDK 2.2 | ||
|
||
Add the _FlashRuntimeExtensions.h_ file from the Adobe Air SDK to the _source/ios/Libraries_ folder | ||
Add the _FlashRuntimeExtensions.jar_ file from the Adobe Air SDK to the _source/android/libs_ folder | ||
In the **build** folder, make a copy of the _user.properties.eg_ file and call it _user.properties_ | ||
Edit that file to provide values specific to your system | ||
Use the `build.ant` ant script you'll find in the **build** folder, to build the project | ||
|
||
## Contributing | ||
|
||
If you want to contribute to the project refer to the [CONTRIBUTING.md](CONTRIBUTING.md) document for guidelines. | ||
|
||
## Roadmap | ||
|
||
You can follow the project planning on [Trello](https://trello.com/b/wk7wHEhS), you can even vote for the tasks that are more important for you and you'll like to see implemented. |
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.