-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Generate ZCL code for Android #7439
Conversation
Not sure why the ZAP templates action is failing - I checked out the "Generated files" commit, re-ran |
...oid/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/OnOffClientFragment.kt
Outdated
Show resolved
Hide resolved
...oid/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/EnterNetworkFragment.kt
Show resolved
Hide resolved
src/controller/java/src/chip/devicecontroller/ChipClusterException.java
Outdated
Show resolved
Hide resolved
I tested the change and it works correctly with Thread devices, too, but please fix the lock issue. |
@austinh0 it's failing because
while
(note different order of qualifiers). There are other differences too. When I run Which makes me suspect that the restyler you are running and the one CI is running (which might match the one I am running) might be different? Best guess so far on that, at least... |
I have resolved the comments, but it seems I need to make |
/rebase |
1 similar comment
/rebase |
ZAP check is passing now, this is ready to review again. |
|
||
#include <core/CHIPError.h> | ||
class JniReferences |
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.
Everything in this class seems to be static. Would a namespace be more appropriate here?
Alternatively, this should be a singleton class with some ::Instance method so that not all methods are static.
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.
* Create StackLock.h, containing StackLockGuard (formerly ScopedPthread) and StackUnlockGuard * Add ZAP templates for accessing clusters through JNI * Generated files and java/BUILD changes to include them * Update Android CHIPTool to use cluster commands.
Problem
Android has no generated clusters support.
Change overview
StackUnlock.h
so it can be reusedhelper.js
that generatesrc/controller/java/gen/ChipClusters.java
andsrc/controller/java/gen/ChipClusters-JNI.cpp
zap_regen_all
scriptNetworkCommissioningCluster
andOnOffCluster
in Android CHIPToolTesting