TUMCampus: Better .diff file and newest version
This commit is contained in:
parent
72575ee226
commit
144695939b
|
|
@ -28,7 +28,7 @@ Status: Active Development.
|
||||||
Repo Type:git
|
Repo Type:git
|
||||||
Repo:https://github.com/TCA-Team/TumCampusApp.git
|
Repo:https://github.com/TCA-Team/TumCampusApp.git
|
||||||
|
|
||||||
Build Version:0.1.1,31,112dd285e2bcf218ed0eca18f8fd79b9072cd83c,subdir=TumCampusApp,patch=bugsense.patch,prebuild=find src/ -type f |xargs -n 1 perl -pi -e "s/.*package(?=\W)/package/g" && \
|
Build Version:1.1.2,32,956e42b30a092a28c1748f5152d6779ca4399100,subdir=TumCampusApp,patch=bugsense.patch,prebuild=find src/ -type f |xargs -n 1 perl -pi -e "s/.*package(?=\W)/package/g" && \
|
||||||
sed -i '30s/package:/Uri uri = Uri.parse("package:/g' src/de/tum/in/tumcampusapp/tumonline/TUMOnlineConst.java &&\
|
sed -i '30s/package:/Uri uri = Uri.parse("package:/g' src/de/tum/in/tumcampusapp/tumonline/TUMOnlineConst.java &&\
|
||||||
rm libs/bugsense*
|
rm libs/bugsense*
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,113 +1,33 @@
|
||||||
--- a/TumCampusApp/src/de/tum/in/tumcampusapp/activities/StartupActivity.java 2013-11-21 10:28:57.939199642 +0100
|
--- a/TumCampusApp/src/de/tum/in/tumcampusapp/activities/StartupActivity.java 2013-11-23 12:45:50.093747730 +0100
|
||||||
+++ b/TumCampusApp/src/de/tum/in/tumcampusapp/activities/StartupActivity.java 2013-11-21 10:32:40.003212529 +0100
|
+++ b/TumCampusApp/src/de/tum/in/tumcampusapp/activities/StartupActivity.java 2013-11-23 16:31:20.752918783 +0100
|
||||||
@@ -1,53 +1,57 @@
|
@@ -6,7 +6,7 @@
|
||||||
-package de.tum.in.tumcampusapp.activities;
|
import android.os.StrictMode;
|
||||||
-
|
import android.util.Log;
|
||||||
-import android.app.Activity;
|
|
||||||
-import android.content.Intent;
|
|
||||||
-import android.os.Bundle;
|
|
||||||
-import android.os.StrictMode;
|
|
||||||
-import android.util.Log;
|
|
||||||
-
|
|
||||||
-import com.bugsense.trace.BugSenseHandler;
|
-import com.bugsense.trace.BugSenseHandler;
|
||||||
-
|
+//import com.bugsense.trace.BugSenseHandler;
|
||||||
-import de.tum.in.tumcampusapp.auxiliary.DemoModeStartActivity;
|
|
||||||
-
|
import de.tum.in.tumcampusapp.auxiliary.DemoModeStartActivity;
|
||||||
-/**
|
|
||||||
- * Entrance point of the App.
|
@@ -18,18 +18,18 @@
|
||||||
- *
|
*/
|
||||||
- * @author Sascha Moecker
|
public class StartupActivity extends Activity {
|
||||||
- *
|
public static final boolean DEMO_MODE = false;
|
||||||
- */
|
|
||||||
-public class StartupActivity extends Activity {
|
|
||||||
- public static final boolean DEMO_MODE = false;
|
|
||||||
- public static final boolean TRACK_ERRORS_WITH_BUG_SENSE = true;
|
- public static final boolean TRACK_ERRORS_WITH_BUG_SENSE = true;
|
||||||
-
|
+ public static final boolean TRACK_ERRORS_WITH_BUG_SENSE = false;
|
||||||
- @Override
|
|
||||||
- protected void onCreate(Bundle savedInstanceState) {
|
@Override
|
||||||
- super.onCreate(savedInstanceState);
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
-
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
- // Init a Bug Report to https://www.bugsense.com
|
- // Init a Bug Report to https://www.bugsense.com
|
||||||
- if (TRACK_ERRORS_WITH_BUG_SENSE) {
|
+ /** Init a Bug Report to https://www.bugsense.com
|
||||||
- Log.d(this.getClass().getSimpleName(), "BugSense initialized");
|
if (TRACK_ERRORS_WITH_BUG_SENSE) {
|
||||||
- BugSenseHandler.initAndStartSession(this, "19d18764");
|
Log.d(this.getClass().getSimpleName(), "BugSense initialized");
|
||||||
- }
|
BugSenseHandler.initAndStartSession(this, "19d18764");
|
||||||
|
}
|
||||||
-
|
-
|
||||||
- // Workaround for new API version. There was a security update which
|
+**/
|
||||||
- // disallows applications to execute HTTP request in the GUI main
|
// Workaround for new API version. There was a security update which
|
||||||
- // thread.
|
// disallows applications to execute HTTP request in the GUI main
|
||||||
- if (android.os.Build.VERSION.SDK_INT > 8) {
|
// thread.
|
||||||
- StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder()
|
|
||||||
- .permitAll().build();
|
|
||||||
- StrictMode.setThreadPolicy(policy);
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- // Start the demo Activity if demo mode is set
|
|
||||||
- if (DEMO_MODE) {
|
|
||||||
- Intent intent = new Intent(this, DemoModeStartActivity.class);
|
|
||||||
- startActivity(intent);
|
|
||||||
- finish();
|
|
||||||
- } else {
|
|
||||||
- Intent intent = new Intent(this, StartActivity.class);
|
|
||||||
- startActivity(intent);
|
|
||||||
- finish();
|
|
||||||
- }
|
|
||||||
- }
|
|
||||||
-}
|
|
||||||
+package de.tum.in.tumcampusapp.activities;
|
|
||||||
+
|
|
||||||
+import android.app.Activity;
|
|
||||||
+import android.content.Intent;
|
|
||||||
+import android.os.Bundle;
|
|
||||||
+import android.os.StrictMode;
|
|
||||||
+import android.util.Log;
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+//import com.bugsense.trace.BugSenseHandler;
|
|
||||||
+//Goodbye!
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+import de.tum.in.tumcampusapp.auxiliary.DemoModeStartActivity;
|
|
||||||
+
|
|
||||||
+/**
|
|
||||||
+ * Entrance point of the App.
|
|
||||||
+ *
|
|
||||||
+ * @author Sascha Moecker
|
|
||||||
+ *
|
|
||||||
+ */
|
|
||||||
+public class StartupActivity extends Activity {
|
|
||||||
+ public static final boolean DEMO_MODE = false;
|
|
||||||
+ public static final boolean TRACK_ERRORS_WITH_BUG_SENSE = true;
|
|
||||||
+
|
|
||||||
+ @Override
|
|
||||||
+ protected void onCreate(Bundle savedInstanceState) {
|
|
||||||
+ super.onCreate(savedInstanceState);
|
|
||||||
+
|
|
||||||
+ // Init a Bug Report to https://www.bugsense.com
|
|
||||||
+// if (TRACK_ERRORS_WITH_BUG_SENSE) {
|
|
||||||
+// Log.d(this.getClass().getSimpleName(), "BugSense initialized");
|
|
||||||
+// BugSenseHandler.initAndStartSession(this, "19d18764");
|
|
||||||
+// }
|
|
||||||
+
|
|
||||||
+ // Workaround for new API version. There was a security update which
|
|
||||||
+ // disallows applications to execute HTTP request in the GUI main
|
|
||||||
+ // thread.
|
|
||||||
+ if (android.os.Build.VERSION.SDK_INT > 8) {
|
|
||||||
+ StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder()
|
|
||||||
+ .permitAll().build();
|
|
||||||
+ StrictMode.setThreadPolicy(policy);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ // Start the demo Activity if demo mode is set
|
|
||||||
+ if (DEMO_MODE) {
|
|
||||||
+ Intent intent = new Intent(this, DemoModeStartActivity.class);
|
|
||||||
+ startActivity(intent);
|
|
||||||
+ finish();
|
|
||||||
+ } else {
|
|
||||||
+ Intent intent = new Intent(this, StartActivity.class);
|
|
||||||
+ startActivity(intent);
|
|
||||||
+ finish();
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue