1 Star 2 Fork 0

TS_OHOS / apollo-android

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

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.
MIT License Copyright (c) 2021 疯华整猫 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

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

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
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

搜索帮助