28
28
#include < app/icd/client/CheckInHandler.h>
29
29
#include < app/icd/client/DefaultICDClientStorage.h>
30
30
#include < controller/CHIPDeviceController.h>
31
+ #include < controller/java/CHIPP256KeypairBridge.h>
31
32
#include < credentials/GroupDataProviderImpl.h>
32
33
#include < credentials/PersistentStorageOpCertStore.h>
33
34
#include < credentials/attestation_verifier/DacOnlyPartialAttestationVerifier.h>
34
35
#include < crypto/RawKeySessionKeystore.h>
35
36
#include < lib/support/TimeUtils.h>
36
37
#include < platform/internal/DeviceNetworkInfo.h>
37
-
38
38
#ifdef JAVA_MATTER_CONTROLLER_TEST
39
39
#include < controller/ExampleOperationalCredentialsIssuer.h>
40
40
#include < controller/ExamplePersistentStorage.h>
41
41
#else
42
42
#include < platform/android/AndroidChipPlatform-JNI.h>
43
- #include < platform/android/CHIPP256KeypairBridge.h>
44
43
#endif // JAVA_MATTER_CONTROLLER_TEST
45
44
46
45
#include " AndroidCheckInDelegate.h"
@@ -71,7 +70,6 @@ class AndroidDeviceControllerWrapper : public chip::Controller::DevicePairingDel
71
70
jobject JavaObjectRef () { return mJavaObjectRef .ObjectRef (); }
72
71
jlong ToJNIHandle ();
73
72
74
- #ifndef JAVA_MATTER_CONTROLLER_TEST
75
73
/* *
76
74
* Returns a CHIPP256KeypairBridge which can be used to delegate signing operations
77
75
* to a KeypairDelegate in the Java layer. Note that this will always return a pointer
@@ -85,7 +83,6 @@ class AndroidDeviceControllerWrapper : public chip::Controller::DevicePairingDel
85
83
}
86
84
return mKeypairBridge ;
87
85
}
88
- #endif // JAVA_MATTER_CONTROLLER_TEST
89
86
90
87
void CallJavaIntMethod (const char * methodName, jint argument);
91
88
void CallJavaLongMethod (const char * methodName, jlong argument);
@@ -235,12 +232,12 @@ class AndroidDeviceControllerWrapper : public chip::Controller::DevicePairingDel
235
232
236
233
JavaVM * mJavaVM = nullptr ;
237
234
chip::JniGlobalReference mJavaObjectRef ;
235
+ CHIPP256KeypairBridge * mKeypairBridge = nullptr ;
238
236
#ifdef JAVA_MATTER_CONTROLLER_TEST
239
237
ExampleOperationalCredentialsIssuerPtr mOpCredsIssuer ;
240
238
PersistentStorage mExampleStorage ;
241
239
#else
242
240
AndroidOperationalCredentialsIssuerPtr mOpCredsIssuer ;
243
- CHIPP256KeypairBridge * mKeypairBridge = nullptr ;
244
241
#endif // JAVA_MATTER_CONTROLLER_TEST
245
242
246
243
// These fields allow us to release the string/byte array memory later.
0 commit comments