Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implements the most of the changes for 0.5.0 #19

Merged
merged 22 commits into from
Jun 25, 2015
Merged

Implements the most of the changes for 0.5.0 #19

merged 22 commits into from
Jun 25, 2015

Conversation

zhangkun83
Copy link
Collaborator

Design doc is here.
@ejona86 please review
@madongfly please help verify the Android support works


// You need to build the https://github.com/grpc/grpc-java
// to obtain these libraries below.
compile 'io.grpc:grpc-core:0.1.0-SNAPSHOT'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why use these snapshots?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

…tion of tasks in the tests and fixed found issues; Use released version of grpc
… right before executing the java compilation task. Otherwise incremental build will break.
…t/tested as long as install is not in the command line
- Add ofTest() and ofNonTest() selectors;
- Move the linking of generateProto tasks and javaCompile tasks (adding
  task dependency, and adding generated source dirs to javaCompile's
  input) to right after the execution of generateProtoTasks
  configuration closure, because alternative locations won't work well:
  1. At the beginning of the generateProto task. In incremental builds,
     the generateProto task may be skipped because proto files are not
     changed, but we still want to add the generated files dirs to
     the javaCompile task.
  2. In project.gradle.taskGraph.beforeTask. Android plugin doesn't
     allow calling variant.registerJavaGeneratingTask() at this point,
     i.e., in the task execution phase.
  Caveat: if the user configure tasks in their own project.afterEvaluate
  closure, e.g., adding a new builtin/plugin, it won't be included in
  the javaCompile inputs. So, user has to configure tasks in
  protobuf.generateProtoTasks.
- Add more test cases.

/**
* Returns the conventional substring that represents the sourceSet in task names,
* e.g., "generate<sourceSetStubString>Proto"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/StubS/Subs/

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@ejona86
Copy link
Collaborator

ejona86 commented Jun 25, 2015

@zhangkun83, some comments, but LGTM

zhangkun83 added a commit that referenced this pull request Jun 25, 2015
Implements the most of the changes for 0.5.0
@zhangkun83 zhangkun83 merged commit 289c0e6 into google:master Jun 25, 2015
@zhangkun83 zhangkun83 deleted the android_extend_sourcesets branch June 25, 2015 23:28
podarsmarty pushed a commit to podarsmarty/protobuf-gradle-plugin that referenced this pull request Jul 22, 2016
* added network manager, added location manager, changed main activity to have a simple map fragment, and waith until map is ready and location is ready before init.

* changed mapfragment back and used location manager in map wrapper fragment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants