Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/3party
diff options
context:
space:
mode:
authorAlex Zolotarev <alex@maps.me>2015-06-16 16:41:14 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:51:49 +0300
commit96abca12617de4c0e4fc5f619b6319f893625439 (patch)
treeffcacbcd8e0f84ecdd1320cb910116710b6942c3 /3party
parent4376ae13abe76a75430419814f007c2c071fd5db (diff)
[alohalytics] Updated license and readme.
Diffstat (limited to '3party')
-rw-r--r--3party/Alohalytics/LICENSE2
-rw-r--r--3party/Alohalytics/README.md95
2 files changed, 96 insertions, 1 deletions
diff --git a/3party/Alohalytics/LICENSE b/3party/Alohalytics/LICENSE
index cfd0bcea30..52f49a1805 100644
--- a/3party/Alohalytics/LICENSE
+++ b/3party/Alohalytics/LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2014 Alexander Zolotarev <me@alex.bio> from Minsk, Belarus
+Copyright (c) 2015 Alexander Zolotarev <me@alex.bio> from Minsk, Belarus
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/3party/Alohalytics/README.md b/3party/Alohalytics/README.md
new file mode 100644
index 0000000000..5f26a25af8
--- /dev/null
+++ b/3party/Alohalytics/README.md
@@ -0,0 +1,95 @@
+Aloha, developer!
+
+Alohalytics statistics engine solves following problems:
+- Track any event from iOS/Android/C++ code (e.g. events from Java and native C++ code will be collected perfectly).
+- Track basic events like iOS/Android app installs/updates/launches.
+- Track basic devices information including IDFA and Google Play Advertising IDs.
+- Collect all events while device is offline.
+
+More features are coming soon!
+
+If you have any questions, please contact Alex Zolotarev <me@alex.bio> from Minsk, Belarus.
+
+iOS
+======
+Minimum supported iOS version is 5.1.
+
+If you target iOS 5.1, then add an optional AddSupport.framework to your binary to access IDFA (for iOS 6+ you can add it as 'required').
+
+If your app uses background fetch, you can use ```[Alohalytics forceUpload];``` from ```application:performFetchWithCompletionHandler``` in your app delegate to improve events delivery.
+
+App updates are detected by changing CURRENT_PROJECT_VERSION in CFBundleShortVersionString key in the plist file.
+
+Built-in logged events
+------
+- $install
+- $launch
+- $update
+- $iosDeviceIds
+- $iosDeviceInfo
+- $browserUserAgent
+- $applicationDidBecomeActive
+- $applicationWillResignActive
+- $applicationWillEnterForeground
+- $applicationDidEnterBackground
+- $applicationWillTerminate
+
+
+Android
+======
+Minimum supported Android version is 2.3 (API level 9).
+
+Built-in logged events
+------
+- $install
+- $launch
+- $update
+- $androidIds
+- $androidDeviceInfo
+
+
+nginx server setup example
+======
+```
+http {
+ log_format alohalytics '$remote_addr [$time_local] "$request" $status $content_length "$http_user_agent" $content_type $http_content_encoding';
+ server {
+ listen 8080; # <-- Change to actual server port.
+ server_name localhost; # <-- Change to actual server name.
+ # To hide nginx version.
+ server_tokens off;
+
+ # Location starts with /aloha- prefix to filter out some random web requests.
+ location ~ ^/(ios|android|mac)/(.+)/(.+) {
+ # Store for later use.
+ set $OS $1;
+
+ # Most filtering can be easily done on nginx side:
+ # Our clients send only POST requests.
+ limit_except POST { deny all; }
+ # Content-Length should be valid, but it is checked anyway on FastCGI app's code side.
+ # Content-Type should be "application/alohalytics-binary-blob"
+ if ($content_type != "application/alohalytics-binary-blob") {
+ return 415; # Unsupported Media Type
+ }
+ # Content-Encoding should be "gzip"
+ if ($http_content_encoding != "gzip") {
+ return 400; # Bad Request
+ }
+ client_body_buffer_size 1M;
+ client_body_temp_path /tmp 2; # <-- Change to writable directory which can temporarily store large POST bodies (rare case).
+ client_max_body_size 100M;
+
+ access_log /tmp/aloha-$OS-access.log alohalytics; # <-- Change to actual log directory.
+ # Unfortunately, error_log does not support variables.
+ error_log /tmp/aloha-error.log notice; # <-- Change to actual log directory.
+
+ fastcgi_pass_request_headers on;
+ fastcgi_param REMOTE_ADDR $remote_addr;
+ fastcgi_param REQUEST_URI $request_uri;
+ fastcgi_pass 127.0.0.1:8888; # <-- Change to actual FastCGI app address and port.
+ }
+ }
+}
+
+```