Skip to content

Commit ae72f2b

Browse files
committed
Release 1.6.1
1 parent de1049f commit ae72f2b

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,4 +352,22 @@ Using SwitcherTestWhen to define a specific condition for the test:
352352
void testMyFeature() {
353353
assertTrue(instance.myFeature());
354354
}
355-
```
355+
```
356+
357+
## Native Image
358+
Switcher Client is fully compatible with GraalVM Native Image out of the box.
359+
</br>Here is how you can configure the SDK to work with GraalVM:
360+
```java
361+
@ConfigurationProperties
362+
public class MyNativeAppFeatureFlags extends SwitcherContextBase {
363+
364+
public static final String MY_SWITCHER = "MY_SWITCHER";
365+
@Override
366+
@PostConstruct
367+
protected void configureClient() {
368+
super.configureClient();
369+
super.registerSwitcherKeys(MY_SWITCHER);
370+
}
371+
}
372+
```
373+
Check out more code examples in the [Switcher Tutorials](https://github.com/switcherapi/switcherapi-tutorials) repository.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<groupId>com.github.switcherapi</groupId>
99
<artifactId>switcher-client</artifactId>
1010
<packaging>jar</packaging>
11-
<version>1.6.1-SNAPSHOT</version>
11+
<version>1.6.1</version>
1212

1313
<name>Switcher Client</name>
1414
<description>Switcher Client SDK for working with Switcher API</description>

0 commit comments

Comments
 (0)