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
Opensourcing kotlin protos #8272
Merged
deannagarcia
merged 32 commits into
protocolbuffers:master
from
deannagarcia:kotlinProtos
Apr 21, 2021
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
4f829fb
Copying in kotlin proto specific files
deannagarcia 887462a
Fixing some of the kokoro tests
deannagarcia 8399bb8
Fixing more kokoro tests
deannagarcia f25ca77
Make kotlin a top-level directory
deannagarcia be2f000
Adding most recent work
deannagarcia 73e0e7a
Removing target folder
deannagarcia eef2418
Adding most recent work
deannagarcia 751d05c
Fixing core ExtendableMessageExtension
deannagarcia 1949746
Commit with --kotlin_out working
deannagarcia 87faccd
Merge branch 'master' into kotlinProtos
deannagarcia e263c7e
Updating the makefile with new files
deannagarcia 6f5c6eb
Merge branch 'kotlinProtos' of https://github.com/deannagarcia/protob…
deannagarcia 0454655
updating typo in makefile
deannagarcia 2c9aca5
Adding another file to the makefile
deannagarcia 438d777
Adding file names to cmake files
deannagarcia 726241f
Changing structure to have kotlin submodules
deannagarcia 30355ff
Fixing build
deannagarcia b0acba3
cleaning up
deannagarcia 9aaaf70
updating makefile
deannagarcia 74a32c0
fixing kokoro tests
deannagarcia a088736
Adding OptIn to the allow list for spell check
deannagarcia 043935b
Fixing codespell allow list
deannagarcia 4a82094
Reversing codespell changes
deannagarcia 7b23ae1
Merge remote-tracking branch 'remotes/upstream/master' into kotlinProtos
deannagarcia 610fc63
Adding opt to codespell instead of OptIn
deannagarcia 7c3b28d
Trying optin in codespell
deannagarcia 50592a5
Making dependency on java proto instead of copying files and generati…
deannagarcia e844a53
Merge branch 'master' into kotlinProtos
deannagarcia a250d3f
Restrict extension setter and getter operations to non-nullable T
deannagarcia 1b637aa
Merge branch 'kotlinProtos' of https://github.com/deannagarcia/protob…
deannagarcia 1c81c89
Add the codespell file to list of files not checked by codespell
deannagarcia f650807
Adding note to the README about kotlin protos
deannagarcia File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<project name="generate-sources"> | ||
<echo message="Running protoc ..."/> | ||
<mkdir dir="${generated.sources.dir}"/> | ||
<exec executable="${protoc}"> | ||
<arg value="--kotlin_out=lite:${generated.sources.dir}"/> | ||
<arg value="--proto_path=${protobuf.source.dir}"/> | ||
<arg value="${protobuf.source.dir}/google/protobuf/any.proto"/> | ||
<arg value="${protobuf.source.dir}/google/protobuf/api.proto"/> | ||
<arg value="${protobuf.source.dir}/google/protobuf/duration.proto"/> | ||
<arg value="${protobuf.source.dir}/google/protobuf/empty.proto"/> | ||
<arg value="${protobuf.source.dir}/google/protobuf/field_mask.proto"/> | ||
<arg value="${protobuf.source.dir}/google/protobuf/source_context.proto"/> | ||
<arg value="${protobuf.source.dir}/google/protobuf/struct.proto"/> | ||
<arg value="${protobuf.source.dir}/google/protobuf/timestamp.proto"/> | ||
<arg value="${protobuf.source.dir}/google/protobuf/type.proto"/> | ||
<arg value="${protobuf.source.dir}/google/protobuf/wrappers.proto"/> | ||
</exec> | ||
</project> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<project name="generate-test-sources"> | ||
<mkdir dir="${generated.testsources.dir}"/> | ||
<exec executable="${protoc}"> | ||
<arg value="--java_out=lite:${generated.testsources.dir}"/> | ||
<arg value="--proto_path=${protobuf.source.dir}"/> | ||
<arg value="--proto_path=${protobuf.basedir}/java/kotlin/${test.proto.dir}"/> | ||
<arg value="--experimental_allow_proto3_optional"/> | ||
<arg value="${protobuf.source.dir}/google/protobuf/map_lite_unittest.proto"/> | ||
<arg value="${protobuf.source.dir}/google/protobuf/unittest.proto"/> | ||
<arg value="${protobuf.source.dir}/google/protobuf/unittest_import.proto"/> | ||
<arg value="${protobuf.source.dir}/google/protobuf/unittest_import_lite.proto"/> | ||
<arg value="${protobuf.source.dir}/google/protobuf/unittest_import_public.proto"/> | ||
<arg value="${protobuf.source.dir}/google/protobuf/unittest_import_public_lite.proto"/> | ||
<arg value="${protobuf.source.dir}/google/protobuf/unittest_lite.proto"/> | ||
<arg value="${protobuf.source.dir}/google/protobuf/unittest_proto3.proto"/> | ||
<arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/evil_names_proto2.proto"/> | ||
<arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/evil_names_proto3.proto"/> | ||
<arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/example_extensible_message.proto"/> | ||
<arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/multiple_files_proto3.proto"/> | ||
</exec> | ||
<exec executable="${protoc}"> | ||
<arg value="--kotlin_out=lite:${generated.testsources.dir}"/> | ||
<arg value="--proto_path=${protobuf.source.dir}"/> | ||
<arg value="--proto_path=${protobuf.basedir}/java/kotlin/${test.proto.dir}"/> | ||
<arg value="--experimental_allow_proto3_optional"/> | ||
<arg value="${protobuf.source.dir}/google/protobuf/map_lite_unittest.proto"/> | ||
<arg value="${protobuf.source.dir}/google/protobuf/unittest_lite.proto"/> | ||
<arg value="${protobuf.source.dir}/google/protobuf/unittest_proto3.proto"/> | ||
<arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/evil_names_proto2.proto"/> | ||
<arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/evil_names_proto3.proto"/> | ||
<arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/example_extensible_message.proto"/> | ||
<arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/multiple_files_proto3.proto"/> | ||
</exec> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Remove code enclosed by "BEGIN FULL-RUNTIME" and "END FULL-RUNTIME" to | ||
# create the lite-only version of a test file. | ||
|
||
BEGIN { | ||
in_full_runtime = 0; | ||
} | ||
|
||
/BEGIN FULL-RUNTIME/ { | ||
in_full_runtime = 1; | ||
next; | ||
} | ||
|
||
/END FULL-RUNTIME/ { | ||
in_full_runtime = 0; | ||
next; | ||
} | ||
|
||
in_full_runtime { | ||
# Skip full runtime code path. | ||
next; | ||
} | ||
|
||
{ | ||
print; | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be removed? I think this made its way into a different PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It turns out that the spell check has to have the lowercase version, so this is the fix to the other PR.