From 638069e631cb601103dac28b2922e88680c9fd55 Mon Sep 17 00:00:00 2001 From: Olivier Mehani Date: Sun, 27 Sep 2015 20:42:21 +1000 Subject: [PATCH] Import ShowsRage (com.mgaetan89.showsrage) Squashed commits: * fdroid import --url https://github.com/MGaetan89/ShowsRage --subdir app * [com.mgaetan89.showsrage] Update metadata * [com.mgaetan89.showsrage] Disable Google Play Service/Casting * [com.mgaetan89.showsrage] Fix lint issues * fdroid rewritemeta com.mgaetan89.showsrage; and description fix Signed-off-by: Olivier Mehani --- metadata/com.mgaetan89.showsrage.txt | 46 +++++++++++ ...move-Google-Play-Services-dependency.patch | 77 +++++++++++++++++++ 2 files changed, 123 insertions(+) create mode 100644 metadata/com.mgaetan89.showsrage.txt create mode 100644 metadata/com.mgaetan89.showsrage/0001-Remove-Google-Play-Services-dependency.patch diff --git a/metadata/com.mgaetan89.showsrage.txt b/metadata/com.mgaetan89.showsrage.txt new file mode 100644 index 0000000000..33375749f9 --- /dev/null +++ b/metadata/com.mgaetan89.showsrage.txt @@ -0,0 +1,46 @@ +Categories:Internet +License:Apache2 +Web Site: +Source Code:https://github.com/MGaetan89/ShowsRage +Issue Tracker:https://github.com/MGaetan89/ShowsRage/issues + +Summary:Manage your SickRage installation +Description: +ShowsRage is an application that allows you to manage your +[https://www.sickrage.tv/ SickRage] installation. + +Support for [http://www.sickbeard.com/ SickBeard] (or any other variant) is not +guaranteed, but the main features should work properly. + +ShowsRage intend to provide the same features as on the web interface, packed +inside a modern and easy-to-use Android application. + +The following features are currently available: + +* Support Android 4.0.3 and up +* Based on [https://www.google.com/design/ Material Design] +* Shows information: list, get info, list seasons and episodes +* Shows management: add, pause/resume, change quality, delete +* Episode management: search, set status, stream, list coming +* Logs +* Shows statistics +* Update SickRage (requires SickRage 4.0.30) + +The dependency on Google Play Services has been removed in this binary, but this +prevents Casting from working. +. + +Repo Type:git +Repo:https://github.com/MGaetan89/ShowsRage + +Build:1.0.1,15 + commit=48bad1d29cd6c0e66102acc28f218f6ef3641d9b + subdir=app + patch=0001-Remove-Google-Play-Services-dependency.patch + gradle=yes + +Auto Update Mode:Version v%v +Update Check Mode:Tags +Current Version:1.0.1 +Current Version Code:15 + diff --git a/metadata/com.mgaetan89.showsrage/0001-Remove-Google-Play-Services-dependency.patch b/metadata/com.mgaetan89.showsrage/0001-Remove-Google-Play-Services-dependency.patch new file mode 100644 index 0000000000..36a0c8cb8e --- /dev/null +++ b/metadata/com.mgaetan89.showsrage/0001-Remove-Google-Play-Services-dependency.patch @@ -0,0 +1,77 @@ +From ca7f6e68c56097c6d4d33ea394681c7c1e5270fa Mon Sep 17 00:00:00 2001 +From: Olivier Mehani +Date: Sun, 27 Sep 2015 21:27:14 +1000 +Subject: [PATCH] Remove Google Play Services dependency + +This disables the abitily to do Casting, though... + +Signed-off-by: Olivier Mehani +--- + app/build.gradle | 1 - + app/src/main/AndroidManifest.xml | 4 ---- + .../showsrage/fragment/EpisodeDetailFragment.java | 15 +-------------- + 3 files changed, 1 insertion(+), 19 deletions(-) + +diff --git a/app/build.gradle b/app/build.gradle +index cc29feb..e78e620 100644 +--- a/app/build.gradle ++++ b/app/build.gradle +@@ -116,7 +116,6 @@ dependencies { + compile 'com.android.support:support-v4:23.0.1' + compile 'com.github.bumptech.glide:glide:3.6.1' + compile 'com.github.bumptech.glide:okhttp-integration:1.3.1' +- compile 'com.google.android.gms:play-services-cast:7.5.0' + compile 'com.squareup.okhttp:okhttp:2.5.0' + compile 'com.squareup.okhttp:okhttp-urlconnection:2.5.0' + compile 'com.squareup.retrofit:retrofit:1.9.0' +diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml +index 4b57473..13098f9 100644 +--- a/app/src/main/AndroidManifest.xml ++++ b/app/src/main/AndroidManifest.xml +@@ -61,10 +61,6 @@ + android:name="com.mgaetan89.showsrage.helper.OkHttpGlideModule" + android:value="GlideModule"/> + +- +- + +diff --git a/app/src/main/java/com/mgaetan89/showsrage/fragment/EpisodeDetailFragment.java b/app/src/main/java/com/mgaetan89/showsrage/fragment/EpisodeDetailFragment.java +index 3dd2e49..e5b6e55 100644 +--- a/app/src/main/java/com/mgaetan89/showsrage/fragment/EpisodeDetailFragment.java ++++ b/app/src/main/java/com/mgaetan89/showsrage/fragment/EpisodeDetailFragment.java +@@ -349,9 +349,6 @@ public class EpisodeDetailFragment extends MediaRouteDiscoveryFragment implement + } + + private void displayStreamingMenus(Episode episode) { +- if (this.castMenu != null) { +- this.castMenu.setVisible(this.isCastMenuVisible(episode)); +- } + + if (this.playVideoMenu != null) { + this.playVideoMenu.setVisible(this.isPlayMenuVisible(episode)); +@@ -393,17 +390,7 @@ public class EpisodeDetailFragment extends MediaRouteDiscoveryFragment implement + } + + private boolean isCastMenuVisible(@Nullable Episode episode) { +- FragmentActivity activity = this.getActivity(); +- +- if (activity == null) { +- return false; +- } +- +- SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(activity); +- boolean episodeDownloaded = this.isEpisodeDownloaded(episode); +- boolean viewInExternalVideoPlayer = preferences.getBoolean("stream_in_chromecast", false); +- +- return episodeDownloaded && viewInExternalVideoPlayer; ++ return false; + } + + private boolean isEpisodeDownloaded(@Nullable Episode episode) { +-- +2.5.3 +