Skip to content

Commit 3f235e1

Browse files
committed
Release 2.2.1
1 parent 3308899 commit 3f235e1

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,4 +352,26 @@ 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+
359+
Switcher Client is fully compatible with GraalVM Native Image out of the box.
360+
</br>Here is how you can configure the SDK to work with GraalVM:
361+
362+
```java
363+
@ConfigurationProperties
364+
public class MyNativeAppFeatureFlags extends SwitcherContextBase {
365+
366+
public static final String MY_SWITCHER = "MY_SWITCHER";
367+
368+
@Override
369+
@PostConstruct
370+
protected void configureClient() {
371+
super.configureClient();
372+
super.registerSwitcherKeys(MY_SWITCHER);
373+
}
374+
}
375+
```
376+
377+
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>2.2.1-SNAPSHOT</version>
11+
<version>2.2.1</version>
1212

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

0 commit comments

Comments
 (0)