Removed bug(sense) in TumCampus. So we can build it again.
This commit is contained in:
parent
d5f5e08725
commit
72575ee226
|
@ -1,4 +1,3 @@
|
||||||
Disabled:Proprietary binaries
|
|
||||||
Categories:Internet
|
Categories:Internet
|
||||||
License:GPLv3 or New BSD
|
License:GPLv3 or New BSD
|
||||||
Web Site:https://apps.wiki.tum.de/TUM+Campus+App
|
Web Site:https://apps.wiki.tum.de/TUM+Campus+App
|
||||||
|
@ -20,19 +19,20 @@ This app displays:
|
||||||
* Important links
|
* Important links
|
||||||
* RSS-feeds
|
* RSS-feeds
|
||||||
* Automatic muting of the phone during lectures
|
* Automatic muting of the phone during lectures
|
||||||
|
* Access to TUMonline
|
||||||
|
|
||||||
|
Bugsense has been removed for F-droid distribution.
|
||||||
Status: Active Development.
|
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:1.1,30,bcb179eb0d45ad697b350c1ba01ea4e79d626e55,subdir=TumCampusApp,prebuild=find src/ -type f |xargs -n 1 perl -pi -e "s/.*package(?=\W)/package/g" && \
|
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" && \
|
||||||
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*
|
||||||
|
|
||||||
|
|
||||||
Auto Update Mode:None
|
Auto Update Mode:None
|
||||||
Update Check Mode:Static
|
Update Check Mode:RepoManifest
|
||||||
Current Version:1.1
|
|
||||||
Current Version Code:30
|
|
||||||
|
|
||||||
|
|
||||||
|
|
113
metadata/de.tum.in.tumcampus/bugsense.patch
Normal file
113
metadata/de.tum.in.tumcampus/bugsense.patch
Normal file
|
@ -0,0 +1,113 @@
|
||||||
|
--- a/TumCampusApp/src/de/tum/in/tumcampusapp/activities/StartupActivity.java 2013-11-21 10:28:57.939199642 +0100
|
||||||
|
+++ b/TumCampusApp/src/de/tum/in/tumcampusapp/activities/StartupActivity.java 2013-11-21 10:32:40.003212529 +0100
|
||||||
|
@@ -1,53 +1,57 @@
|
||||||
|
-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;
|
||||||
|
-
|
||||||
|
-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();
|
||||||
|
- }
|
||||||
|
- }
|
||||||
|
-}
|
||||||
|
+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