Two more specific questions within:
Eventually googling turned up instances of AuthScope and EmptyResponse
interfaces, which are trivial but necessary definitions, so I added them in
a .shared subpackage/subdirectory to com.google.api.gwt , and then
ApiCore.gwt.xml , as per the project where I found them:
https://github.com/googlearchive/gwt-google-apis/tree/master/apis/src/com/google/api/gwt
That's an archived gwt-google-apis project. 1> Is that where I'm supposed
to find them to include in an Endpoints project?
Then I tried building the GWT project, but I got:
Compiling module com.blue_green_group.gdxendpoints.GdxDefinitionSuperdev
Finding entry point classes
Tracing compile failure path for type
'com.blue_green_group.gdxendpoints.client.HtmlLauncher'
[ERROR] Errors in
'file:/home/myhome/AndroidStudioProjects/gdx-endpoints/html/src/com/blue_green_group/gdxendpoints/client/HtmlLauncher.java'
[ERROR] Line 36: No source code is available for type
com.blue_green_group.gdxendpoints.backend.endpointsApi.EndpointsApi; did
you forget to inherit a required module?
[ERROR] Line 89: No source code is available for type
com.blue_green_group.gdxendpoints.backend.endpointsApi.EndpointsApi.Builder;
did you forget to inherit a required module?
EndpointsApi (and its inner class Builder) are defined by annotation in the
backend module of this project, outside the GWT module. Their source code
is in
/home/myhome/AndroidStudioProjects/gdx-endpoints/backend/build/generated-
source/endpoints/java/com/blue_green_group/gdxendpoints/backend/endpointsApi
also outside the GWT module. 2> How is GWT supposed to find those source
files?
On Sunday, January 1, 2017 at 12:12:47 AM UTC-5, Matthew Rubenstein wrote:
>
> So I copy the generated directory tree rooted at com/ into my GWT project
> in Android Studio. I compile the project and I get errors:
> ...html/src/com/blue_green_group/gdxendpoints/backend/api/gwt/services/
> endpointsApi/shared/EndpointsApi.java:19: error: package com.google.api.
> gwt.shared does not exist
> import com.google.api.gwt.shared.AuthScope;
> ^
> ...html/src/com/blue_green_group/gdxendpoints/backend/api/gwt/services/
> endpointsApi/shared/EndpointsApi.java:20: error: package com.google.api.
> gwt.shared does not exist
> import com.google.api.gwt.shared.EmptyResponse;
> ^
> ...html/src/com/blue_green_group/gdxendpoints/backend/api/gwt/services/
> endpointsApi/shared/EndpointsApi.java:45: error: cannot find symbol
> public enum EndpointsApiAuthScope implements AuthScope {
> ^
> symbol: class AuthScope
> location: interface EndpointsApi
> ...html/src/com/blue_green_group/gdxendpoints/backend/api/gwt/services/
> endpointsApi/shared/EndpointsApi.java:56: error: method does not override
> or implement a method from a supertype
> @Override
> ^
>
> Because EndpointsApi.java says
>
> import com.google.api.gwt.shared.AuthScope;
> import com.google.api.gwt.shared.EmptyResponse;
>
> and there are no such packages in my project. Indeed I found them through
> googling mentioned only a few times, mainly in the long deprecated
> gwt-google-apis project. Mostly
> import com.google.api.gwt.oauth2.<...>
>
> Where are those AuthScope and EmptyResponse superclasses source code
> supposed to come from for GWT to compile into Javascript?
>
>
> On Thursday, December 29, 2016 at 2:00:11 PM UTC-5, Matthew Rubenstein
> wrote:
>>
>> Hello. I'm developing Linux desktop, Android and GWT apps as separate
>> modules in the same Android Studio project, each of which has an AppEngine
>> client. The desktop and Android apps are working, following guides in:
>>
>> https://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/HelloEndpoints#2-connecting-your-android-app-to-the-backend
>>
>> https://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/HelloEndpoints#app-engine-java-endpoints-module-template
>>
>> respectively. I'm trying to use the Github google/apis-client-generator
>> to generate the GWT client code:
>> https://github.com/google/apis-client-generator
>>
>> ---------------------------------------------------------
>> generate_library --input=rest --language=gwt --output_dir=.
>> ---------------------------------------------------------
>>
>>
>> but I don't understand how to use the code tree it emits:
>> ---------------------------------------------------------
>> ├── apis
>> ├── build.xml
>> ├── com
>> │ ├── blue_green_group
>> │ │ └── gdxendpoints
>> │ │ └── backend
>> │ │ └── api
>> │ │ └── gwt
>> │ │ └── services
>> │ │ └── endpointsApi
>> │ │ └── shared
>> │ │ ├── EndpointsApi.java
>> │ │ ├── model
>> │ │ │ └── MyBean.java
>> │ │ └── package-info.java
>> │ └── google
>> │ └── api
>> │ └── gwt
>> │ └── services
>> │ └── EndpointsApi.gwt.xml
>> └── rest
>> ---------------------------------------------------------
>>
>> Am I supposed to import that com/ tree into my (GWT) project? Wouldn't I
>> do so just by gradle/import reference to the backend module already in my
>> project, which would keep them in sync etc? The .java and .gwt.xml files
>> are entirely redundant (identical) to the backend code already in my
>> project that I deployed to the AppEngine server (from which I downloaded
>> the apis and rest files that generated the new local tree), except for an
>> EndpointsApi.gwt.xml file and a package-info.java file (just a [package
>> <name>] line). Thanks for your insights.
>>
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/c163f44d-7dfa-460e-8991-e07dd87d61e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.