Apollo Android 3 is available in alpha. It is still in active development, and we'd love for folks to test it out. See the v3 documentation and please report any issues!
Apollo Android is a GraphQL client that generates Java and Kotlin 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.
This library is designed primarily with Android in mind, but you can use it in any Java/Kotlin app.
If you are new to GraphQL, check out the tutorial that will guide you through building an Android app using Apollo, Kotlin and coroutines.
If you'd like to add Apollo Android to an existing project:
Check the project website for in depth documentation about caching, plugin configuration, android, file upload, coroutines, rxjava2, rxjava3, reactor, mutiny, persisted queries, no runtime, migrations and much more...
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).
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
plugins {
id("com.apollographql.apollo").version("x.y.z")
}
repositories {
mavenCentral()
}
dependencies {
implementation("com.apollographql.apollo:apollo-runtime:x.y.z")
// optional: if you want to use the normalized cache
implementation("com.apollographql.apollo:apollo-normalized-cache-sqlite:x.y.z")
// optional: for coroutines support
implementation("com.apollographql.apollo:apollo-coroutines-support:x.y.z")
// optional: for Mutiny support
implementation("com.apollographql.apollo:apollo-mutiny-support:x.y.z")
// optional: for Reactor support
implementation("com.apollographql.apollo:apollo-reactor-support:x.y.z")
// optional: for RxJava3 support
implementation("com.apollographql.apollo:apollo-rx3-support:x.y.z")
// optional: Most of apollo-android does not depend on Android in practice and runs on any JVM or on Kotlin native. apollo-android-support contains a few Android-only helper classes. For an example to send logs to logcat or run callbacks on the main thread.
implementation("com.apollographql.apollo:apollo-android-support:x.y.z")
// optional: if you just want the generated models and parsers and write your own HTTP code/cache code, you can remove apollo-runtime
// and use apollo-api instead
implementation("com.apollographql.apollo:apollo-api:x.y.z")
}
Latest development changes are available in Sonatype's snapshots repository:
repositories {
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
}
}
Apollo Android runs on the following platforms:
If you'd like to contribute, please see Contributing.md.
Apollo builds open-source software and a graph platform to unify GraphQL across your apps and services. We help you ship faster with:
Check out the Odyssey learning platform, the perfect place to start your GraphQL journey with videos and interactive code challenges. Join the Apollo Community to interact with and get technical help from the GraphQL community.
原文标题:Hello Apollo Writing Your First Android App With GraphQL 原文地址:https://android.jlelse.eu/hello-apollo-writing-your-first-android-app-with-graphql-d8edabb35a2 作者:Pranay Airan 翻译:leesniper 如果你是一个移动应
问题 Fetched 1,484 B in 2s (767 B/s) Reading package lists... Done Building dependency tree Reading state information... Done 18 packages can be upgraded. Run 'apt list --upg
android MQTT学习 apache-apollo-1.7.1-windows Apache Apollo是一个代理服务器,Apollo允许客户端通过开放的MQTT协议连接。 chrome测试mqtt插件MqttLens chrome测试mqtt插件MqttLens 可搜索 MQTT再学习 -- 搭建MQTT服务器及测试 链接:https://pan.baidu.com/s/1cLD_rN
Apollo(阿波罗)是携程框架部门研发的分布式配置中心,能够集中化管理应用不同环境、不同集群的配置,配置修改后能够实时推送到应用端,并且具备规范的权限、流程治理等特性,适用于微服务配置管理场景。 Swoft 基于 Apollo 提供的 API,在之上进行封装,使之能在 Swoft 中快速使用。 安装 swoft/whoops 作为一个额外的扩展组件,需要手动安装: Composer 安装 com
Apollo以ActiveMQ原型为基础,是一个更快、更可靠、更易于维护的消息代理工具。Apache称Apollo为最快、最强健的 STOMP(Streaming Text Orientated Message Protocol,流文本定向消息协议)服务器。 Apollo的特性如下: 支持Stomp 1.0和Stomp 1.1协议 主题和队列 队列浏览器 主题持久订阅 镜像队列 可靠的消息传递 消
Apollo Client 是一个全功能的 GraphQL 客户端,用于 React 、Angular 的交互。允许你轻松通过 GraphQL 获取数据并构建 UI 组件。
Glimmer Apollo: Ember and Glimmer integration for Apollo Client. Documentation Visit glimmer-apollo.com to read the docs. Compatibility Apollo Client v3.0 or above GlimmerX v0.6 or above Node.js v12 o
Apollo Angular Apollo Angular allows you to fetch data from your GraphQL server and use it in building complex and reactive UIs using the Angular framework. Apollo Angular may be used in any context t
apollo-link ⚠️ THIS PROJECT HAS BEEN DEPRECATED ⚠️ The Links in this repo have been migrated to the apollo-client project (as of >= @apollo/client@3.0.0). Please refer to the Apollo Client migration g