Skip to content

jni: update java library interfaces#326

Merged
buildbreaker merged 11 commits intomasterfrom
jni-update-java-library-interfaces
Aug 16, 2019
Merged

jni: update java library interfaces#326
buildbreaker merged 11 commits intomasterfrom
jni-update-java-library-interfaces

Conversation

@buildbreaker
Copy link
Copy Markdown

@buildbreaker buildbreaker commented Aug 13, 2019

Updating java library layer to conform to the streaming interfaces changes. Also, tweaks to make the java layer more consistent with the ObjC layer in #327

Signed-off-by: Alan Chiu achiu@lyft.com

For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md

Description: Updating java library interfaces
Risk Level: low
Testing: n/a
Docs Changes: n/a
Release Notes: n/a
[Optional Fixes #Issue]
[Optional Deprecated:]

@buildbreaker buildbreaker marked this pull request as ready for review August 14, 2019 18:12
rebello95
rebello95 previously approved these changes Aug 14, 2019
initialize((ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE));
engine = new EnvoyEngine();
initialize((ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE));
envoyEngine = new EnvoyEngineImpl();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Assuming an upcoming PR will allow for specifying a custom/mockable implementation of EnvoyEngine

Copy link
Copy Markdown
Author

@buildbreaker buildbreaker Aug 14, 2019

Choose a reason for hiding this comment

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

Yup. This isn't as important at the moment because we're not "using" the new interfaces within our example applications. I plan to take some time to update this when we do a full end to end wire up

@goaway
Copy link
Copy Markdown
Contributor

goaway commented Aug 15, 2019

Overall I think this is great starting point for implementing the Android bridging logic. I'm generally in favor of moving forward and merging it. See comments above. :)

Copy link
Copy Markdown
Contributor

@goaway goaway left a comment

Choose a reason for hiding this comment

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

(comments above)

@buildbreaker buildbreaker force-pushed the jni-update-java-library-interfaces branch from 246a2f8 to 8beebf7 Compare August 15, 2019 01:37
@buildbreaker buildbreaker force-pushed the jni-update-java-library-interfaces branch from 3f8c4e4 to 3a631e6 Compare August 15, 2019 17:47
Copy link
Copy Markdown
Member

@junr03 junr03 left a comment

Choose a reason for hiding this comment

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

Just one small change, otherwise lgtm

@buildbreaker buildbreaker force-pushed the jni-update-java-library-interfaces branch from 3a631e6 to 768e647 Compare August 15, 2019 22:42
goaway
goaway previously approved these changes Aug 15, 2019
Copy link
Copy Markdown
Contributor

@goaway goaway left a comment

Choose a reason for hiding this comment

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

Ok, I pulled up the actual source from this branch and it's fitting together better in my head now. It looks good.

(I don't think we necessarily need all the types defined in types/, since I think in some cases it makes more sense to bridge to a higher-level construct, but I also think it's fine for now. It also doesn't directly pertain to this PR.)

IMO, let's proceed and iterate on top of this.

@buildbreaker
Copy link
Copy Markdown
Author

@goaway The original intent of the data structures defined in types/ was to make the JNI methods easier to use from the jni_inferface.cc side. This hopefully allows us to more easily implement a pass through from the jni_interface.cc to the main_interface.h

Open to changing it and I agree it's separate from this PR

Alan Chiu added 9 commits August 15, 2019 16:01
Signed-off-by: Alan Chiu <achiu@lyft.com>
Signed-off-by: Alan Chiu <achiu@lyft.com>
Signed-off-by: Alan Chiu <achiu@lyft.com>
Signed-off-by: Alan Chiu <achiu@lyft.com>
Signed-off-by: Alan Chiu <achiu@lyft.com>
Signed-off-by: Alan Chiu <achiu@lyft.com>
Signed-off-by: Alan Chiu <achiu@lyft.com>
fix
Signed-off-by: Alan Chiu <achiu@lyft.com>
Signed-off-by: Alan Chiu <achiu@lyft.com>
@goaway
Copy link
Copy Markdown
Contributor

goaway commented Aug 15, 2019

From conversation in slack, after consideration, I agree we should keep the stuff in types/ for now, since it may prove useful, and we can evaluate better as we work on the bridging layer.

Signed-off-by: Alan Chiu <achiu@lyft.com>
Signed-off-by: Alan Chiu <achiu@lyft.com>
Copy link
Copy Markdown
Contributor

@goaway goaway left a comment

Choose a reason for hiding this comment

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

nice work, approved.

@buildbreaker
Copy link
Copy Markdown
Author

thanks @goaway !

@buildbreaker buildbreaker merged commit 43dd1ca into master Aug 16, 2019
@buildbreaker buildbreaker deleted the jni-update-java-library-interfaces branch August 16, 2019 16:59
rebello95 added a commit that referenced this pull request Aug 16, 2019
Makes some relatively minor updates to match up with the JNI interfaces being checked in with #326. This diff was larger before, but much of it got checked in with #329.

Signed-off-by: Michael Rebello <me@michaelrebello.com>
jpsim pushed a commit to envoyproxy/envoy that referenced this pull request Nov 28, 2022
Makes some relatively minor updates to match up with the JNI interfaces being checked in with envoyproxy/envoy-mobile#326. This diff was larger before, but much of it got checked in with envoyproxy/envoy-mobile#329.

Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit to envoyproxy/envoy that referenced this pull request Nov 29, 2022
Makes some relatively minor updates to match up with the JNI interfaces being checked in with envoyproxy/envoy-mobile#326. This diff was larger before, but much of it got checked in with envoyproxy/envoy-mobile#329.

Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: JP Simard <jp@jpsim.com>
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.

4 participants