Skip to content
Snippets Groups Projects
Commit 839f2d89 authored by Matyáš Latner's avatar Matyáš Latner
Browse files

#187 Enabled flurry bug report for iOS

parent 607c7529
No related merge requests found
...@@ -66,6 +66,7 @@ allprojects { ...@@ -66,6 +66,7 @@ allprojects {
sqlDroidVersion = '1.0.3' sqlDroidVersion = '1.0.3'
sqlLiteJdbcVersion = '3.8.10.1' sqlLiteJdbcVersion = '3.8.10.1'
guavaVersion = '18.0' guavaVersion = '18.0'
roboPodsVersion = '1.13.0'
androidSupportV4Version = '22.0.0' androidSupportV4Version = '22.0.0'
googlePlayServicesVersion = '8.3.+' googlePlayServicesVersion = '8.3.+'
} }
...@@ -370,6 +371,7 @@ project(":ios") { ...@@ -370,6 +371,7 @@ project(":ios") {
compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion" compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-ios" compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-ios"
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios" compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
compile "org.robovm:robopods-flurry-ios:$roboPodsVersion"
} }
} }
......
...@@ -11,6 +11,7 @@ import org.robovm.apple.glkit.GLKViewDrawableMultisample; ...@@ -11,6 +11,7 @@ import org.robovm.apple.glkit.GLKViewDrawableMultisample;
import org.robovm.apple.systemconfiguration.SCNetworkReachability; import org.robovm.apple.systemconfiguration.SCNetworkReachability;
import org.robovm.apple.systemconfiguration.SCNetworkReachabilityFlags; import org.robovm.apple.systemconfiguration.SCNetworkReachabilityFlags;
import org.robovm.apple.uikit.UIApplication; import org.robovm.apple.uikit.UIApplication;
import org.robovm.pods.flurry.analytics.Flurry;
import java.net.InetSocketAddress; import java.net.InetSocketAddress;
import java.util.Locale; import java.util.Locale;
...@@ -35,6 +36,13 @@ public class IOSLauncher extends IOSApplication.Delegate { ...@@ -35,6 +36,13 @@ public class IOSLauncher extends IOSApplication.Delegate {
NSDictionary infoDictionary = NSBundle.getMainBundle().getInfoDictionary(); NSDictionary infoDictionary = NSBundle.getMainBundle().getInfoDictionary();
String buildType = infoDictionary.get(new NSString("cz.nic.tablexia.BuildType")).toString(); String buildType = infoDictionary.get(new NSString("cz.nic.tablexia.BuildType")).toString();
if (TablexiaSettings.getInstance().getBuildType().isBugReport() && TablexiaBuildConfig.FLURRY_KEY != null) {
Flurry.setDebugLogEnabled(false);
Flurry.setAppVersion(TablexiaSettings.getInstance().getFullName());
Flurry.enableCrashReporting();
Flurry.startSession(TablexiaBuildConfig.FLURRY_KEY);
}
return new IOSApplication(new Tablexia(buildType, return new IOSApplication(new Tablexia(buildType,
Locale.getDefault(), Locale.getDefault(),
SQL_CONNECTION_TYPE, SQL_CONNECTION_TYPE,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment