Skip to content

Commit add825b

Browse files
committed
github graphql api demo
1 parent 1168c4e commit add825b

File tree

16 files changed

+129527
-1068
lines changed

16 files changed

+129527
-1068
lines changed

.idea/deploymentTargetDropDown.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77

88
plugins {
99
id 'com.android.application'
10-
id 'org.jetbrains.kotlin.android'
11-
id 'kotlin-kapt'
12-
id 'androidx.navigation.safeargs.kotlin'
1310
id 'com.apollographql.apollo'
1411
}
1512

@@ -22,7 +19,8 @@ android {
2219
secretProp.load(new FileInputStream(secretFile))
2320

2421
defaultConfig {
25-
buildConfigField "String", "GRAPHQL_API_KEY", secretProp['GRAPHQL_API_KEY']
22+
buildConfigField "String", "GITHUB_TOKEN", secretProp['GITHUB_TOKEN']
23+
buildConfigField "String", "SERVER_URL", secretProp['SERVER_URL']
2624
applicationId "com.forever.bee.goworld"
2725
minSdk rootProject.ext.minSdkVersion
2826
targetSdk rootProject.ext.targetSdkVersion
@@ -54,7 +52,7 @@ android {
5452

5553
apollo {
5654
useSemanticNaming = false
57-
packageName.set("com.forever.bee.akgraphql")
55+
// packageName.set("com.forever.bee.akgraphql")
5856
}
5957
}
6058

@@ -80,7 +78,6 @@ dependencies {
8078

8179
// Apollo-Android
8280
implementation "com.apollographql.apollo:apollo-runtime:$apollo_android"
83-
implementation "com.apollographql.apollo:apollo-normalized-cache-sqlite:$apollo_android"
8481

8582
// Network
8683
implementation 'com.google.code.gson:gson:2.9.0'

app/src/androidTest/java/com/forever/bee/akgraphql/ExampleInstrumentedTest.kt

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
query myStars($first: Int, $after: String) {
2+
viewer {
3+
login
4+
starredRepositories(first: $first, after: $after, orderBy: {field: STARRED_AT, direction: DESC}) {
5+
edges {
6+
cursor
7+
node {
8+
id
9+
name
10+
}
11+
}
12+
pageInfo {
13+
hasNextPage
14+
}
15+
}
16+
}
17+
}

app/src/main/graphql/com/forever/bee/akgraphql/api/TripServer.graphql

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)