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

#421 Code clean up

parent 79f775ca
No related merge requests found
......@@ -113,7 +113,8 @@ public class Tablexia extends TablexiaApplication {
});
if(TablexiaSettings.getInstance().getBuildType().isBugReport()) {
String DSN = (TablexiaBuildConfig.SENTRY_DSN_FALLBACK == null || sentryDSN == null || sentryDSN.equals(TablexiaBuildConfig.SENTRY_DSN_FALLBACK)) ? null : sentryDSN;
@SuppressWarnings("ConstantConditions")
String DSN = (TablexiaBuildConfig.SENTRY_DSN_FALLBACK == null || sentryDSN == null || TablexiaBuildConfig.SENTRY_DSN_FALLBACK.equals(sentryDSN)) ? null : sentryDSN;
TablexiaRaven.start(DSN);
}
}
......
......@@ -225,7 +225,6 @@ public class TablexiaRaven {
fis.close();
} catch (Exception e) {
e.printStackTrace();
return null;
}
return event;
......
......@@ -27,9 +27,7 @@ task debugJar(type: Jar) {
attributes 'Build-Type': 'debug'
attributes 'Version-Name': tablexiaVersionName
attributes 'Assets-Cheksums': getMapConvertedToString(rootProject.ext.assetsChecksum)
attributes 'Sentry-DSN': project.hasProperty('TABLEXIA_SENTRY_DSN_DEBUG') ? "$TABLEXIA_SENTRY_DSN_DEBUG" : "$project.sentryDSNFallbackValue";
attributes 'Sentry-DSN-Fallback': "$project.sentryDSNFallbackValue";
}
}
}
......@@ -47,7 +45,6 @@ task releaseJar(type: Jar) {
attributes 'Build-Type': 'release'
attributes 'Version-Name': tablexiaVersionName
attributes 'Assets-Cheksums': getMapConvertedToString(rootProject.ext.assetsChecksum)
attributes 'Sentry-DSN': project.hasProperty('TABLEXIA_SENTRY_DSN_RELEASE') ? "$TABLEXIA_SENTRY_DSN_RELEASE" : "$project.sentryDSNFallbackValue";
}
}
......
......@@ -37,7 +37,6 @@ def updateRoboVMProperties(String buildType, String applicationId, String iconNa
// Extracts native libs (*.a) from the native-ios.jar and places them
// under build/libs/ios/.
// also copies all '*.a' libraries from libs/ to build/libs/ios
task copyNatives << {
file("build/libs/ios/").mkdirs();
configurations.natives.files.each { jar ->
......
......@@ -21,9 +21,9 @@ import java.util.Locale;
import cz.nic.tablexia.screen.loader.IConnectionManager;
public class IOSLauncher extends IOSApplication.Delegate {
private static final String TABLEXIA_BUILD_TYPE_KEY = "cz.nic.tablexia.BuildType";
private static final String TABLEXIA_SENTRY_DSN_KEY = "cz.nic.tablexia.SentryDSN";
private static final String TABLEXIA_SENTRY_DSN_FALLBACK_KEY = "cz.nic.tablexia.SentryDSNFallback";
public static final Tablexia.SQLConnectionType SQL_CONNECTION_TYPE = new Tablexia.SQLConnectionType("SQLite.JDBCDriver", "jdbc:sqlite:");
private static final boolean HAS_SOFT_BACK_BUTTON = true;
......
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