0

我正在使用 Cloud Endpoints 创建一个后端 GAE 项目。我还想创建一个使用这些端点的 Android 应用程序,并且我在此处的文档中发现我必须将 java 源类复制到我的 Android 项目才能访问端点。在我为外部客户端开发端点的情况下,我真的不喜欢这种方法(我不想给他们我的源代码,我更喜欢给他们一个 jar 库以避免复杂性)。

我发现阅读 README 文件也是使用端点生成的The generated service-specific library can be found in the top level directory of the zip file: google-api-services-noteendpoint-v1-rev20130920182043-1.16.0-rc.jar. 但是这个 jar 不再生成了。

那么,复制源类是否是将端点的访问权限传递给 Android 项目的唯一方法?这个曾经应该被创建的罐子在哪里?

非常感谢。

4

2 回答 2

0

Ok, I found the answer, the jar is not generated but can be generated by maven. The endpoints created has maven structure and you only have to package it to get the final jar. Tested and working.

于 2014-03-19T23:21:07.597 回答
0

在eclipse上,使用Google插件,点击appengine项目可以选择:Google->Generate Cloud Endpoint Client Library,需要有关联的android项目。您可以创建一个android关联项目,在创建新项目时选择:AppEngine Connected Android Project。

于 2015-05-07T19:23:29.510 回答