1 Star 1 Fork 0

TS_OHOS / apollo-android

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

apollo-android

Synopsis

Apollo HarmonyOS is a GraphQL client that generates Java models from GraphQL queries. These models give you a type-safe API to work with GraphQL servers. Apollo helps you keep your GraphQL query statements together, organized, and easy to access. his library is designed primarily with HarmonyOS in mind, but you can use it in any Java app.

Features

  • Java code generation
  • Queries, Mutations and Subscriptions
  • Reflection-free parsing of responses
  • HTTP cache
  • Normalized cache
  • File uploads
  • Custom scalar types
  • Support for RxJava2, RxJava3, Coroutines and Reactor

Getting started

If you are new to GraphQL, check out the tutorial that will guide you through building an HarmonyOS app using Apollo, Java and coroutines.

If you'd like to add Apollo HarmonyOSto an existing project:

  • Get started with Java shows how to add Apollo HarmonyOS to a Java project.

Get started with Multiplatform (Experimental) shows how to add Apollo HarmonyOS to a Multiplatform project. This is still under heavy development and APIs may change without warning.

Advanced topics

Check the project website for in depth documentation about caching, plugin configuration, android, file upload, coroutines, rxjava2, rxjava3, persisted queries, no runtime, migrations and much more...

IntelliJ Plugin

The JS Graphql IntelliJ Plugin provides auto-completion, error highlighting, and go-to-definition functionality for your .graphql files. You can create a .graphqlconfig file to use GraphQL scratch files to work with your schema outside product code (such as to write temporary queries to test resolvers).

Releases

  • The latest version is Maven Central
  • Check the changelog for the release history.
  • Releases are hosted on Jcenter and Maven Central. The plugin is additionally hosted on the Gradle Plugin Portal
repositories {
  mavenCentral()
}

dependencies {
  implementation("com.gitee.ts_ohos:apollo_runtime:1.0.0")
  implementation("com.gitee.ts_ohos:apollo_rxhos:1.0.0")
}

Snapshots

Latest development changes are available in Sonatype's snapshots repository:

repositories {
  maven { 
    url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
  }
}

Snapshots

Apollo HarmonyOS runs on the following platforms: HarmonyOS API level 4+

Who is Apollo?

  • Apollo Graph, Inc. creates industry-leading tools for building applications with GraphQL:
  • Apollo Client – The most popular GraphQL client for the web. Apollo also builds and maintains Apollo iOS and Apollo HarmonyOS.
  • Apollo Server – Build a production-ready JavaScript GraphQL server with a schema-first approach.
  • Apollo Studio – A turnkey portal for GraphQL developers, featuring a powerful GraphQL IDE (the Apollo Explorer), metrics reporting, schema search, and documentation.
  • Apollo Federation – Create and manage a single data graph composed of subgraphs that can be developed independently.

Repository Comments ( 0 )

Sign in to post a comment

About

Apollo Android是GraphQL客户端,分为两部分,服务器端和客户端,我们这个是客户端,客户端有支持Rect,JS,IOS,android。客户端完全依赖服务端与GraphQL服务器进行通信。通过OKHTTP动态下载架构。这个项目需要客户端和服务端同时构建才能正常使用 expand collapse
Java
MIT
Cancel

Releases

No release

apollo-android

Contributors

All

Activities

Load More
can not load any more
Java
1
https://toscode.gitee.com/ts_ohos/ohos_apollo.git
git@toscode.gitee.com:ts_ohos/ohos_apollo.git
ts_ohos
ohos_apollo
apollo-android
master

Search

161121 f78d6d6f 1850385 154831 86f8c370 1850385