Skip to content

Commit

Permalink
Major Commit - 0.2.8
Browse files Browse the repository at this point in the history
 - Show Detail & Release Activity
   - Lists show synopsis, latest releases & its batches
   - Updated UI
 - Updated DialogX UI to new Design
 - Optimized App & Removed some older dependencies
 - Updated README.md
  • Loading branch information
Sher1234 committed Jun 27, 2018
1 parent 96e4d91 commit 9bd08e8
Show file tree
Hide file tree
Showing 36 changed files with 1,105 additions and 748 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ Horrible Subs uses number of open source projects to work properly:
* In App Search for listing available subs from Horrible Subs
* Views All as well as Current Shows
* Lists full weeks schedule day wise(According to User Time)

Mentioned features might not work in upcoming releases but will be fixed soon
* ~~Show pages for previous show releases~~
* ~~Search in List~~
* Show Activity for viewing previous show releases and show details

#### Release Updates
```
Added Show Activity with New UI & Updated Dialog UI with new design language Major Commit - June 27, 2018
Schedule Activity - Listing Full Schedule Major Commit - June 27, 2018
Shows Activity - Listing all & current shows, Improved UI Major Commit - June 27, 2018
New Search Activity, Improved Home UI with SearchView, Optimized Data Models Major Commit - June 27, 2018
Expand Down Expand Up @@ -64,10 +62,10 @@ Currently Listing Latest 60 Releases & Reimplemented some features

#### Download
| Type | Date | Version | Api | Download |
| ------ | ------ | ------ | ------ | ------ |
| Alpha 2 | June 27 2018 | 27 | v4 | [Click Here](https://github.com/Sher1234/HorribleSubs/releases/download/hs-0.2.7/app-debug.apk) |
| Alpha 1 | June 27 2018 | 25 | v4 | [Click Here](https://github.com/Sher1234/HorribleSubs/releases/download/hs-0.2.5/app-debug.apk) |
| **Latest Release** | **April 25, 2018** | **22** | **v3** | **[Click Here](https://github.com/Sher1234/HorribleSubs/releases/download/hs-0.2.2/app-debug.apk)** |
| Beta 3 | June 27, | 28 | v4 | [Click Here](https://github.com/Sher1234/HorribleSubs/releases/download/hs-0.2.8/app-debug.apk) |
| Alpha 2 | June 27, 2018 | 27 | v4 | [Click Here](https://github.com/Sher1234/HorribleSubs/releases/download/hs-0.2.7/app-debug.apk) |
| Alpha 1 | June 27, 2018 | 25 | v4 | [Click Here](https://github.com/Sher1234/HorribleSubs/releases/download/hs-0.2.5/app-debug.apk) |
| Release 2 | April 25, 2018| 22| v3 | [Click Here](https://github.com/Sher1234/HorribleSubs/releases/download/hs-0.2.2/app-debug.apk) |
| Release 1 | April 24, 2018 | 21 | v3 | [Click Here](https://github.com/Sher1234/HorribleSubs/releases/download/hs-0.2.1/hs-21.apk) |
| Beta 2 | April 1, 2018 | 18 | v3 | [Click Here](https://github.com/Sher1234/HorribleSubs/releases/download/hs-0.1.8/app-debug.apk) |
| Beta 1 | March 29, 2018 | 16 | v2 | [Click Here](https://github.com/Sher1234/HorribleSubs/releases/download/hs-0.1.6/app-debug.apk) |
Expand Down
14 changes: 4 additions & 10 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "info.horriblesubs.sher"
minSdkVersion 15
targetSdkVersion 28
versionCode 27
versionName "0.2.7"
versionCode 28
versionName "0.2.8"
multiDexEnabled = true
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand All @@ -17,35 +17,29 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
buildTypes.each {
it.buildConfigField("String", "HAPI", HAPI)
}
}
}

dependencies {
// android support library
api 'com.android.support:design:28.0.0-alpha3'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:design:28.0.0-alpha3'
implementation 'com.android.support:support-v4:28.0.0-alpha3'
implementation 'com.android.support:exifinterface:28.0.0-alpha3'
implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:exifinterface:28.0.0-alpha3'
implementation 'com.android.support:support-vector-drawable:28.0.0-alpha3'
// firebase library
// implementation 'com.google.firebase:firebase-ads:15.0.1'
implementation 'com.google.firebase:firebase-firestore:17.0.2'
implementation 'com.google.firebase:firebase-messaging:17.0.0'
implementation 'com.google.android.gms:play-services-auth:15.0.1'

implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'

//other libraries
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.squareup.picasso:picasso:2.71828'

testImplementation 'junit:junit:4.12'
implementation 'org.jetbrains:annotations-java5:16.0.1'
Expand Down
9 changes: 6 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
tools:ignore="GoogleAppIndexingWarning">

<service
android:name=".old.service.NotifyService"
android:name=".service.NotifyService"
tools:ignore="ExportedService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>

<service
android:name=".old.service.IdService"
android:name=".service.IdService"
tools:ignore="ExportedService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
Expand Down Expand Up @@ -88,9 +88,12 @@
android:theme="@style/AppTheme.NoActionBar" />

<activity
android:name=".old.activity.Detail"
android:name=".activity.Show"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="@string/app_name"
android:launchMode="singleTop"
android:theme="@style/AppTheme.NoActionBar" />

<activity
android:name=".old.activity.About"
android:exported="true"
Expand Down
31 changes: 5 additions & 26 deletions app/src/main/java/info/horriblesubs/sher/activity/Home.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,10 @@

import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;

import info.horriblesubs.sher.Api;
import info.horriblesubs.sher.AppController;
import info.horriblesubs.sher.R;
import info.horriblesubs.sher.fragment.HomeFragment1;
import info.horriblesubs.sher.model.base.ReleaseItem;
import info.horriblesubs.sher.model.base.ScheduleItem;
import info.horriblesubs.sher.model.response.HomeResponse;
import info.horriblesubs.sher.util.DialogX;
import info.horriblesubs.sher.util.FragmentNavigation;
Expand Down Expand Up @@ -68,7 +64,6 @@ protected void onCreate(Bundle savedInstanceState) {
searchView.setOnQueryTextListener(this);
task = new HomeTask();
task.execute();
// onLoadData(fakeHomeResponse());
}

@Override
Expand Down Expand Up @@ -124,8 +119,8 @@ public boolean onOptionsItemSelected(MenuItem item) {
final DialogX dialogX = new DialogX(this);
if (b)
dialogX.setTitle("Disable Notifications")
.setDescription("This will disable new release notifications, You will not be able receive notifications on any new release.")
.positiveButton("OK", new View.OnClickListener() {
.setDescription(getResources().getString(R.string.disable_notify))
.positiveButton("Ok", new View.OnClickListener() {
@Override
public void onClick(View v) {
removeNotificationAlert();
Expand All @@ -134,15 +129,15 @@ public void onClick(View v) {
});
else
dialogX.setTitle("Enable Notifications")
.setDescription("This will enable new release notifications, You will receive notifications on every new release.")
.positiveButton("OK", new View.OnClickListener() {
.setDescription(getResources().getString(R.string.enable_notify))
.positiveButton("Ok", new View.OnClickListener() {
@Override
public void onClick(View v) {
setNotificationAlert();
dialogX.dismiss();
}
});
dialogX.negativeButton("CANCEL", new View.OnClickListener() {
dialogX.negativeButton("Cancel", new View.OnClickListener() {
@Override
public void onClick(View v) {
dialogX.dismiss();
Expand Down Expand Up @@ -185,22 +180,6 @@ private void setNotificationAlert() {
invalidateOptionsMenu();
}

private HomeResponse fakeHomeResponse() {
HomeResponse response = new HomeResponse();
ArrayList<ReleaseItem> items = new ArrayList<>();
ArrayList<ScheduleItem> sitems = new ArrayList<>();
for (int i = 0; i < 60; i++) {
ReleaseItem item = new ReleaseItem(i + "", "", i + "", i + "", "", "", "");
items.add(item);
ScheduleItem xitem = new ScheduleItem(i + "", "", i + "", "06 09:30 -07:00", true);
sitems.add(xitem);
}
response.schedule = sitems;
response.allBatches = items;
response.allSubs = items;
return response;
}

private void onLoadData(@NotNull HomeResponse homeResponse) {
Fragment fragment = getSupportFragmentManager().findFragmentByTag(F_TAG);
if (fragment != null)
Expand Down
Loading

0 comments on commit 9bd08e8

Please sign in to comment.