1 Star 2 Fork 0

TS_OHOS / apollo-android

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 2.98 KB
一键复制 编辑 原始数据 按行查看 历史
dusky_duansy 提交于 2021-07-07 10:26 . update 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.
Java
1
https://gitee.com/ts_ohos/ohos_apollo.git
git@gitee.com:ts_ohos/ohos_apollo.git
ts_ohos
ohos_apollo
apollo-android
master

搜索帮助