Skip to content
This repository has been archived by the owner on Aug 9, 2020. It is now read-only.

Commit

Permalink
added dagger to android project for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor committed May 16, 2016
1 parent 9e9188c commit 8e253a3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
16 changes: 16 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
apply plugin: 'com.android.application'
apply plugin: 'android-apt'

buildscript {
repositories {
mavenCentral()
jcenter()
}

dependencies {
classpath "com.neenbedankt.gradle.plugins:android-apt:1.8"
}
}

android {
compileSdkVersion 23
Expand Down Expand Up @@ -26,6 +38,10 @@ dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':rx_cache')
testCompile 'junit:junit:4.12'

apt "com.google.dagger:dagger-compiler:2.4"
compile "com.google.dagger:dagger:2.4"
provided "org.glassfish:javax.annotation:10.0-b28"
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import java.util.ArrayList;
import java.util.List;

import io.rx_cache.internal.RxCache;
import rx.Observable;

/**
Expand All @@ -18,12 +19,13 @@ public class MainActivity extends Activity {

//Create integration test for max mg limit and clearing expired data

/* final RxProviders rxProviders = new RxCache.Builder()

final RxProviders rxProviders = new RxCache.Builder()
.setMaxMBPersistenceCache(50)
.persistence(getApplicationContext().getFilesDir())
.using(RxProviders.class);

for (int i = 0; i < 1000; i++) {
/* for (int i = 0; i < 1000; i++) {
String key = System.currentTimeMillis() + i + "";
rxProviders.getMocksEphemeralPaginate(createObservableMocks(100), new DynamicKey(key))
.subscribe();
Expand Down

0 comments on commit 8e253a3

Please sign in to comment.