Unverified Commit d41017c0 authored by Lucio Maciel's avatar Lucio Maciel Committed by GitHub

Merge pull request #565 from filipedelimabrito/dependencies

[PROJECT][V2]Add Fresco library.
parents 8e10d07a 99de9a7f
...@@ -47,6 +47,11 @@ dependencies { ...@@ -47,6 +47,11 @@ dependencies {
implementation libraries.timber implementation libraries.timber
implementation libraries.fresco
implementation libraries.frescoAnimatedGif
implementation libraries.frescoWebP
implementation libraries.frescoAnimatedWebP
implementation libraries.kotlin implementation libraries.kotlin
testImplementation libraries.junit testImplementation libraries.junit
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="chat.rocket.android"> package="chat.rocket.android">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="android.permission.WAKE_LOCK" />
<application <application
......
...@@ -5,6 +5,7 @@ import android.app.Application ...@@ -5,6 +5,7 @@ import android.app.Application
import chat.rocket.android.BuildConfig import chat.rocket.android.BuildConfig
import chat.rocket.android.dagger.DaggerApplicationComponent import chat.rocket.android.dagger.DaggerApplicationComponent
import com.facebook.drawee.backends.pipeline.Fresco
import dagger.android.AndroidInjector import dagger.android.AndroidInjector
import dagger.android.DispatchingAndroidInjector import dagger.android.DispatchingAndroidInjector
import dagger.android.HasActivityInjector import dagger.android.HasActivityInjector
...@@ -23,6 +24,8 @@ class RocketChatApplication : Application(), HasActivityInjector { ...@@ -23,6 +24,8 @@ class RocketChatApplication : Application(), HasActivityInjector {
.build() .build()
.inject(this) .inject(this)
Fresco.initialize(this)
setupTimber() setupTimber()
} }
......
...@@ -19,6 +19,7 @@ ext { ...@@ -19,6 +19,7 @@ ext {
rxandroid : '2.0.1', rxandroid : '2.0.1',
timber : '4.5.1', timber : '4.5.1',
dagger : '2.11', dagger : '2.11',
fresco : '1.5.0',
// For testing // For testing
expresso : '3.0.1', expresso : '3.0.1',
...@@ -28,26 +29,30 @@ ext { ...@@ -28,26 +29,30 @@ ext {
] ]
libraries = [ libraries = [
kotlin : "org.jetbrains.kotlin:kotlin-stdlib-jre7:${versions.kotlin}", kotlin : "org.jetbrains.kotlin:kotlin-stdlib-jre7:${versions.kotlin}",
appCompat : "com.android.support:appcompat-v7:${versions.support}", appCompat : "com.android.support:appcompat-v7:${versions.support}",
annotations : "com.android.support:support-annotations:${versions.support}", annotations : "com.android.support:support-annotations:${versions.support}",
recyclerview : "com.android.support:recyclerview-v7:${versions.support}", recyclerview : "com.android.support:recyclerview-v7:${versions.support}",
design : "com.android.support:design:${versions.support}", design : "com.android.support:design:${versions.support}",
constraintLayout : "com.android.support.constraint:constraint-layout:${versions.constraintLayout}", constraintLayout : "com.android.support.constraint:constraint-layout:${versions.constraintLayout}",
autoValue : "com.google.auto.value:auto-value:${versions.autoValue}", autoValue : "com.google.auto.value:auto-value:${versions.autoValue}",
moshi : "com.squareup.moshi:moshi:${versions.moshi}", dagger : "com.google.dagger:dagger:${versions.dagger}",
dagger : "com.google.dagger:dagger:${versions.dagger}", daggerSupport : "com.google.dagger:dagger-android-support:${versions.dagger}",
daggerSupport : "com.google.dagger:dagger-android-support:${versions.dagger}", daggerProcessor : "com.google.dagger:dagger-compiler:${versions.dagger}",
daggerProcessor : "com.google.dagger:dagger-compiler:${versions.dagger}", daggerAndroidApt : "com.google.dagger:dagger-android-processor:${versions.dagger}",
daggerAndroidApt : "com.google.dagger:dagger-android-processor:${versions.dagger}", room : "android.arch.persistence.room:runtime:${versions.room}",
okhttp : "com.squareup.okhttp3:okhttp:${versions.okhttp}", roomProcessor : "android.arch.persistence.room:compiler:${versions.room}",
okhttpLogger : "com.squareup.okhttp3:logging-interceptor:${versions.okhttp}", roomRxjava : "android.arch.persistence.room:rxjava2:${versions.room}",
rxjava : "io.reactivex.rxjava2:rxjava:${versions.rxjava}", rxjava : "io.reactivex.rxjava2:rxjava:${versions.rxjava}",
rxandroid : "io.reactivex.rxjava2:rxandroid:${versions.rxandroid}", rxandroid : "io.reactivex.rxjava2:rxandroid:${versions.rxandroid}",
timber : "com.jakewharton.timber:timber:${versions.timber}", moshi : "com.squareup.moshi:moshi:${versions.moshi}",
room : "android.arch.persistence.room:runtime:${versions.room}", okhttp : "com.squareup.okhttp3:okhttp:${versions.okhttp}",
roomProcessor : "android.arch.persistence.room:compiler:${versions.room}", okhttpLogger : "com.squareup.okhttp3:logging-interceptor:${versions.okhttp}",
roomRxjava : "android.arch.persistence.room:rxjava2:${versions.room}", fresco : "com.facebook.fresco:fresco:${versions.fresco}",
frescoAnimatedGif : "com.facebook.fresco:animated-gif:${versions.fresco}",
frescoWebP : "com.facebook.fresco:webpsupport:${versions.fresco}",
frescoAnimatedWebP : "com.facebook.fresco:animated-webp:${versions.fresco}",
timber : "com.jakewharton.timber:timber:${versions.timber}",
// For testing // For testing
junit : "junit:junit:$versions.junit", junit : "junit:junit:$versions.junit",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment