Skip to content

Commit

Permalink
Backend changes and categories added.
Browse files Browse the repository at this point in the history
See changelog for more info.
  • Loading branch information
eagskunst committed Jul 14, 2018
1 parent b132a33 commit 6a7988e
Show file tree
Hide file tree
Showing 20 changed files with 933 additions and 363 deletions.
38 changes: 34 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

App for getting video game news from different websites!

See release notes on master branch releases for features that cover last release.
See release notes on master branch releases for features that cover last release. You could also download last .apk version here. (**Android min. version: 4.1**)

See changelog on develop branch for not-official features.

Expand All @@ -14,8 +14,38 @@ See changelog on develop branch for not-official features.

-RSS Parser (https://github.com/prof18/RSS-Parser)

# Build

1. Open Android Studio.
2. Select File -> New -> Project from Version Control -> GitHub
3. Enter your github username and password.
4. Copy this repo's clone url.
5. Select the repository and hit clone.


# Changelog

-11/7/2018: Changed colors. Added app icon inside toolbar. Added a Floating Action Button for back to top compability.
-2/7/2018: Bugfixes for Locale and proper onBackPressed when paserMaker.isRunning = true. Change min. version for Android 4.1 Improvement of ParserMaker
-27/6/2018: First commit.
**-14/7/2018:**
Added a drawer layout with a navigation view.

Changed MainActivity's all in one for a Fragment that can handle all categories of news.

Changed ParserMaker's use of variable Activity in order to avoid a NullException. Now use an interface.

Created Urls.json file for reading urls depending on language.

Added GSON library for Json reading.

Created Categories inside Models package.

Created LoadUrls for handling the reading of the Json file.

Created WebViewActivity.

Deleted icon in toolbar.xml layout. Now is added with toolbar.setIcon()

Changed harcoded strings and dimens.

**-11/7/2018:** Changed colors. Added app icon inside toolbar. Added a Floating Action Button for back to top compability.
**-2/7/2018:** Bugfixes for Locale and proper onBackPressed when paserMaker.isRunning = true. Change min. version for Android 4.1 Improvement of ParserMaker
**-27/6/2018:** First commit.
2 changes: 2 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ dependencies {
implementation 'com.android.support:design:26.1.0'
implementation 'com.prof.rssparser:rssparser:1.4.1'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.squareup.okhttp:okhttp:2.5.0'
implementation 'com.squareup.okhttp:okhttp-urlconnection:2.2.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:cardview-v7:26.1.0'
implementation 'com.android.support:recyclerview-v7:26.1.0'
implementation 'com.android.support:support-v4:26.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
Expand Down
16 changes: 13 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,33 @@
package="com.example.emmanuel.gamingnews">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<application

android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<activity android:name=".views.MainActivity"
android:launchMode="singleTask"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".views.WebViewActivity"
android:parentActivityName=".views.MainActivity"
android:launchMode="singleTop"
>
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".views.MainActivity"
/>
</activity>
</application>

</manifest>
65 changes: 65 additions & 0 deletions app/src/main/assets/Urls.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[
{
"language": "es",
"all_urls": [
"https://www.eurogamer.es/?format=rss",
"https://vandal.elespanol.com/xml.cgi",
"https://www.levelup.com/rss",
"https://puregaming.es/feed/"
],
"ps4_urls": [
"http://feeds.feedburner.com/SCEEBlogES",
"https://puregaming.es/juegos-ps4/feed/",
"https://www.egamers.com/category/ps4/feed/",
"http://es.ign.com/ps4.xml",
"http://www.laps4.com/foro/external.php?type=RSS2&forumids=2"
],
"xboxO_urls":[
"https://puregaming.es/juegos-xbox-one/feed/",
"https://www.somosxbox.com/feed",
"http://es.ign.com/xbox-one.xml"
],
"switch_urls": [
"https://www.nintenderos.com/category/switch/noticias-switch/feed/",
"https://search.nintendo-europe.com/es/feed/news/",
"https://www.eurogamer.es/?format=rss&platform=SWITCH"
],
"pc_urls": [
"https://puregaming.es/juegos-pc/feed/",
"https://www.eurogamer.es/?format=rss&platform=PC",
"https://www.egamers.com/category/pc/feed/"
]
},
{
"language": "en",
"all_urls": [
"https://www.gamespot.com/feeds/news/",
"https://www.vg247.com/feed/",
"https://www.eurogamer.net/?format=rss",
"https://kotaku.com/tag/gaming/rss",
"https://www.gameinformer.com/news.xml"
],
"ps4_urls": [
"https://www.eurogamer.net/?format=rss&platform=PS4",
"http://feeds.feedburner.com/psblog",
"http://pureplaystation.com/category/latest-news/feed/"
],
"xboxO_urls":[
"http://www.thisisxbox.com/feed/",
"https://news.xbox.com/en-us/feed/",
"http://in.ign.com/xbox-one.xml"
],
"switch_urls": [
"https://nintendotoday.com/tag/switch/feed/",
"https://kotaku.com/tag/nintendo-switch/rss",
"https://mynintendonews.com/feed/",
"https://nintendowire.com/switch/feed/",
"http://www.nintendolife.com/feeds/news"
],
"pc_urls": [
"https://www.rockpapershotgun.com/category/pc-game-news/feed/",
"https://venturebeat.com/category/pc-gaming/feed/",
"https://www.pcgamer.com/rss/"
]
}
]
Loading

0 comments on commit 6a7988e

Please sign in to comment.