Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
50f364b
androidx + api
Jul 29, 2019
4110c79
api
aarayam Jul 29, 2019
39b7a61
add manifest permission internet
vinnydeveloper Jul 29, 2019
20c447d
tetnando funcionar
vinnydeveloper Jul 30, 2019
c7a25b3
adapter
Jul 30, 2019
780de40
Merge remote-tracking branch 'origin/mayara' into mayara
Jul 30, 2019
5cd5b2a
Implementando funcionalidade da api consumindo as noticias top headlines
vinnydeveloper Jul 30, 2019
62b897a
Merge remote-tracking branch 'origin/vinicius-new' into mayara
Jul 30, 2019
8cb3225
ajuste tela detalhe
Jul 30, 2019
9491ca9
classes room
Jul 31, 2019
902aced
.
Jul 31, 2019
577ae23
tela pesquisa
Jul 31, 2019
0ebdb66
Adicionado pesquisa e ajuste de data
vinnydeveloper Aug 1, 2019
099fa05
toolbar detalhe activity
Aug 3, 2019
80d7ec4
ajustes layout detalhe / item
amandaosako Aug 3, 2019
8d5f5ab
Database Room implementado.
mateuspamaral Aug 3, 2019
80ecfbd
Adicionado Auth com firebase Email e senha
vinnydeveloper Aug 3, 2019
819f6f1
Merge branch 'mateus' of https://github.com/vinnydeveloper/DHNews int…
vinnydeveloper Aug 3, 2019
6b7c418
ajuste layout detalhe noticia e cardview
Aug 5, 2019
fe4eb1e
tela favoritos
aarayam Aug 5, 2019
b7950be
merge mayara
vinnydeveloper Aug 5, 2019
f1738be
organizando pastas
Aug 5, 2019
77b9007
Merge branch 'mateus' into mayara
amandaosako Aug 6, 2019
2e21cf3
organizando pastas
Aug 6, 2019
0a9f131
Merge remote-tracking branch 'origin/vinicius-new' into mayara
aarayam Aug 7, 2019
32ae30e
Implemntando bookmark com firebase
vinnydeveloper Aug 7, 2019
3d756c3
autenticação cadastro
aarayam Aug 7, 2019
12c5126
login
aarayam Aug 7, 2019
acee7e4
layout usuario
aarayam Aug 7, 2019
8cb6ab1
layout perfil usuario
aarayam Aug 8, 2019
41a5fa8
mergeando aquivos mayara
vinnydeveloper Aug 8, 2019
fc09a71
reorganização das pastas
aarayam Aug 9, 2019
f733cd2
merge vinicius-new
aarayam Aug 9, 2019
164e6cd
autenticação login
aarayam Aug 9, 2019
6fe55ce
login google
aarayam Aug 9, 2019
5b00d55
Resolvendo os null excp, e incluindo várias coisa
vinnydeveloper Aug 9, 2019
49d6390
click remove item
aarayam Aug 9, 2019
8901c34
Merge branch 'vinicius-new' into mayara
amandaosako Aug 9, 2019
f16d11e
merge vinicius-new
aarayam Aug 9, 2019
a8d06c4
merge vinicius-new
aarayam Aug 9, 2019
edcf6a5
Ajustando layout
vinnydeveloper Aug 10, 2019
f64f46a
Merge branch 'vinicius-new' into mayara
amandaosako Aug 10, 2019
61cf532
ajuste layout ler depois
aarayam Aug 10, 2019
902e941
Add recurso anti null
vinnydeveloper Aug 12, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 54 additions & 11 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,72 @@ android {
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:support-v4:28.0.0'
testImplementation 'junit:junit:4.12'
implementation 'de.hdodenhof:circleimageview:3.0.0'
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android.material:material:1.0.0'

// Dependecias Archutecture components
// Room database
implementation "androidx.room:room-runtime:2.1.0"
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
annotationProcessor "androidx.room:room-compiler:2.1.0"
implementation "androidx.room:room-rxjava2:2.1.0"

// ViewModel and LiveData
implementation "androidx.lifecycle:lifecycle-extensions:2.0.0"
implementation "androidx.lifecycle:lifecycle-common-java8:2.0.0"
implementation "androidx.lifecycle:lifecycle-reactivestreams:2.0.0"

/*############################ Gson: Json Converter ##########################*/
implementation "com.google.code.gson:gson:2.8.5"

androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
/*########################### ReactiveX ######################################*/
implementation "io.reactivex.rxjava2:rxandroid:2.0.2"
implementation "io.reactivex.rxjava2:rxjava:2.1.9"
/*############################################################################*/

/*############################ Retrofit ######################################*/
implementation "com.squareup.retrofit2:adapter-rxjava2:2.3.0"
implementation "com.squareup.retrofit2:retrofit:2.4.0"
implementation "com.squareup.okhttp3:logging-interceptor:3.4.1"
// Facebook Sthetho
implementation "com.facebook.stetho:stetho:1.5.0"
implementation "com.facebook.stetho:stetho-okhttp3:1.5.0"
implementation "com.squareup.retrofit2:converter-gson:2.4.0"
/*############################################################################*/

implementation 'com.squareup.picasso:picasso:2.71828'

/*############################# REDES SOCIAIS ##################################*/
implementation 'com.google.android.gms:play-services-auth:17.0.0'
implementation 'com.facebook.android:facebook-android-sdk:[5,6)'

testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'de.hdodenhof:circleimageview:3.0.0'

/*########################### FIRE BASE ################################*/
implementation 'com.google.firebase:firebase-core:17.0.1'
implementation 'com.google.firebase:firebase-auth:18.1.0'
implementation 'com.google.firebase:firebase-database:18.0.0'
}
apply plugin: 'com.google.gms.google-services' // Google Play services Gradle plugin

48 changes: 48 additions & 0 deletions app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"project_info": {
"project_number": "981079449550",
"firebase_url": "https://dhnews-4c852.firebaseio.com",
"project_id": "dhnews-4c852",
"storage_bucket": "dhnews-4c852.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:981079449550:android:653cf61d23a7be21",
"android_client_info": {
"package_name": "br.com.dhnews"
}
},
"oauth_client": [
{
"client_id": "981079449550-4e5fo4k6lfn85iv2faqhqv431fvdd0hc.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "br.com.dhnews",
"certificate_hash": "1b0640848fe97a8b39b4f28bdf31cbcd1ecd2cdf"
}
},
{
"client_id": "981079449550-4v0clknv22gpjt5b1roiltht80magor3.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC-IVM1cWS9Tnou_UbeqNnlFW4Kf9dQWTU"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "981079449550-4v0clknv22gpjt5b1roiltht80magor3.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package br.com.dhnews;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import androidx.test.InstrumentationRegistry;
import androidx.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;
Expand Down
17 changes: 11 additions & 6 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,27 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="br.com.dhnews">

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

<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=".lerdepois.detalhe.DetalheLerDepoisActivity"></activity>
<activity android:name=".lerdepois.views.LerDepoisActivity" />
<activity android:name=".usuario.view.UsuarioActivity" />
<activity android:name=".view.autenticacao.LoginActivity">

</activity>
<activity android:name=".view.lerdepois.DetalheLerDepoisActivity" />
<activity android:name=".view.lerdepois.LerDepoisActivity" />
<activity
android:name=".view.MainActivy"
android:name=".view.MainActivity"
android:label="@string/title_activity_home_activy"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".splash.Splash"
android:name=".view.splash.SplashActivity"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -30,7 +35,7 @@
android:name="preloaded_fonts"
android:resource="@array/preloaded_fonts" />

<activity android:name=".detalhenoticia.DetalheNoticiaActivity" />
<activity android:name=".view.noticias.DetalheNoticiaActivity" />
</application>

</manifest>
Binary file added app/src/main/ic_launcher-web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
125 changes: 0 additions & 125 deletions app/src/main/java/br/com/dhnews/adapters/NoticiasAdapter.java

This file was deleted.

Loading