Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Espresso idling resource for Apollo GraphQL client #469

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
7a1664d
Add apollo-idling-resource module
VisheshVadhera Apr 19, 2017
3ad4610
Restructuring of the module
VisheshVadhera Apr 19, 2017
1210f32
Add IdlingResource class
VisheshVadhera Apr 19, 2017
0dda9b8
Add dispatcher
VisheshVadhera Apr 20, 2017
51817a7
Add ApolloTracker for tracking the requests
VisheshVadhera Apr 22, 2017
76780b3
Execute callback on calls finished
VisheshVadhera Apr 24, 2017
0af44d1
Register espresso callback with apolloTracker
VisheshVadhera Apr 24, 2017
989e102
Add basic test to check that idlingResource is being created properly
VisheshVadhera Apr 24, 2017
b68e8e5
Add test for idleNow
VisheshVadhera Apr 25, 2017
ff6fa0d
Add test for registerCallBack
VisheshVadhera Apr 26, 2017
7158335
Rename variables
VisheshVadhera Apr 26, 2017
873f393
Merge branch 'master' of github.com:apollographql/apollo-android into…
VisheshVadhera Apr 28, 2017
5525529
Change variable names
VisheshVadhera Apr 28, 2017
43a90b6
Add tests for apolloCallTracker
VisheshVadhera Apr 28, 2017
53801bf
Hide usage of apolloTracker in apolloClient
VisheshVadhera Apr 28, 2017
4483920
Fix tests in apolloCallTracker
VisheshVadhera Apr 28, 2017
190ae11
Add tests for syncCalls
VisheshVadhera Apr 28, 2017
664b033
Add test for checking that idleCallback is invoked
VisheshVadhera Apr 28, 2017
41dcb1d
Merge branch 'master' of github.com:apollographql/apollo-android into…
VisheshVadhera Apr 28, 2017
72484ae
Cleanup
VisheshVadhera Apr 28, 2017
cbf6574
Add docs for ApolloCallTracker
VisheshVadhera Apr 28, 2017
de9a829
Checkstyle
VisheshVadhera May 1, 2017
1cc6187
Merge branch 'master' of github.com:apollographql/apollo-android into…
VisheshVadhera May 2, 2017
07d4b91
Merge branch 'feature-espresso-idling-resource' of github.com:Vishesh…
VisheshVadhera May 2, 2017
5d23a9f
Temp fix for apollo-sample module
VisheshVadhera May 2, 2017
69a28d5
Revert the change made in last commit
VisheshVadhera May 3, 2017
d934cc0
Merge branch 'master' of github.com:apollographql/apollo-android into…
VisheshVadhera May 3, 2017
8d1a6d6
Fix the assertionError in ApolloPrefetchCallbackTest
VisheshVadhera May 3, 2017
7610a67
Move the test class to idling-resource package
VisheshVadhera May 3, 2017
c75d4c4
Add docs for new methods in apolloClient
VisheshVadhera May 3, 2017
79d2f99
Merge branch 'master' of github.com:apollographql/apollo-android into…
VisheshVadhera May 4, 2017
f5ba765
Merge branch 'master' of github.com:apollographql/apollo-android into…
VisheshVadhera May 9, 2017
85581e0
Change method names
VisheshVadhera May 11, 2017
7471952
Move the private method to the last
VisheshVadhera May 11, 2017
f3f1e48
Change method names
VisheshVadhera May 11, 2017
fa598f1
Change Deque with LinkedHashSet
VisheshVadhera May 11, 2017
0d495e1
Remove synchronized from setIdleCallback
VisheshVadhera May 11, 2017
8133815
Rename idleCallback to idleResourceCallback
VisheshVadhera May 12, 2017
1860193
Merge branch 'feature-espresso-idling-resource' of github.com:Vishesh…
VisheshVadhera May 12, 2017
f47672b
Fix checkstyle
VisheshVadhera May 12, 2017
c8102ba
Fix checkstyle
VisheshVadhera May 12, 2017
dd3cb51
Fix failing test
VisheshVadhera May 13, 2017
95c9383
Merge branch 'master' of github.com:apollographql/apollo-android into…
VisheshVadhera May 13, 2017
f9d36a8
Change package & module name
VisheshVadhera May 13, 2017
ac1e4a8
Merge branch 'master' of github.com:apollographql/apollo-android into…
VisheshVadhera May 13, 2017
516615b
Merge branch 'master' of github.com:apollographql/apollo-android into…
VisheshVadhera May 23, 2017
4fab454
Code review
VisheshVadhera May 24, 2017
57c401d
Merge branch 'master' of github.com:apollographql/apollo-android into…
VisheshVadhera May 29, 2017
c4e5ab5
Change the order of methods in the class
VisheshVadhera May 29, 2017
3dad93e
Add missing tracker to builder in RealApolloCall
VisheshVadhera May 29, 2017
9820c66
Fix tests in queryFetcher
VisheshVadhera May 30, 2017
2096424
Merge branch 'master' of github.com:apollographql/apollo-android into…
VisheshVadhera May 30, 2017
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
Next Next commit
Add apollo-idling-resource module
  • Loading branch information
VisheshVadhera committed Apr 19, 2017
commit 7a1664d869a2876a18682395cf7a58f1f2d9a1a0
1 change: 1 addition & 0 deletions apollo-idling-resource/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
32 changes: 32 additions & 0 deletions apollo-idling-resource/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"

defaultConfig {
applicationId "com.apollographql.apollo"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
testCompile 'junit:junit:4.12'
}
25 changes: 25 additions & 0 deletions apollo-idling-resource/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /home/vishesh/Android/Sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
10 changes: 10 additions & 0 deletions apollo-idling-resource/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"

package="com.apollographql.apollo">

<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">

</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.apollographql.apollo;

import org.junit.Test;

import static org.junit.Assert.*;

/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ include 'apollo-runtime'
include 'apollo-sample'
include 'apollo-api'
include 'apollo-android-support'
include ':apollo-integration'
include ':apollo-integration', ':apollo-idling-resource'
include ':apollo-rxsupport'
include ':apollo-rx2support'