Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 8ddf4c1

Browse files
author
Jay Logue
authored
Merge pull request #568 from openweave/feature/fix_linking_issue
Fix linking issue for WeaveSecuritySupport target in Android app
2 parents a502b45 + 3a8bf87 commit 8ddf4c1

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/wrappers/jni/security-support/native/WeaveSecuritySupport.cpp

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,29 @@ jint WeaveSecuritySupport::getLibVersion(JNIEnv *env, jclass cls)
134134
} // namespace SecuritySupport
135135
} // namespace Weave
136136
} // namespace nl
137+
138+
namespace nl {
139+
namespace Weave {
140+
namespace Platform {
141+
namespace PersistedStorage {
142+
143+
/*
144+
* Dummy implementations of PersistedStorage platform methods. These aren't
145+
* used in the context of the Java DeviceManager, but are required to satisfy
146+
* the linker.
147+
*/
148+
149+
WEAVE_ERROR Read(const char *aKey, uint32_t &aValue)
150+
{
151+
return WEAVE_ERROR_NOT_IMPLEMENTED;
152+
}
153+
154+
WEAVE_ERROR Write(const char *aKey, uint32_t aValue)
155+
{
156+
return WEAVE_ERROR_NOT_IMPLEMENTED;
157+
}
158+
159+
} // PersistentStorage
160+
} // Platform
161+
} // Weave
162+
}

0 commit comments

Comments
 (0)