Skip to content

new sdk version #6

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
- First release. Up to date with java sdk v0.1.0
1.1.0
- Up tp date with spec v0.5.0 and java sdk v0.3.1
1.2.0
- Up to date with spec v0.7.0 and java sdk v1.15.1. Using split client v4.16.0
41 changes: 20 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This SDK is compatible with Java 11 and higher.
<dependency>
<groupId>io.split.openfeature</groupId>
<artifactId>split-openfeature-provider</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</dependency>
```
### Configure it
Expand Down Expand Up @@ -78,27 +78,26 @@ Please see [Contributors Guide](CONTRIBUTORS-GUIDE.md) to find all you need to s
Licensed under the Apache License, Version 2.0. See: [Apache License](http://www.apache.org/licenses/).

## About Split

Split, now a part of Harness, is a leading Feature Delivery Platform for engineering teams that want to confidently deploy features as fast as they can develop them. Split’s fine-grained management, real-time monitoring, and data-driven experimentation ensure that new features will improve the customer experience without breaking or degrading performance. Companies like Twilio, Salesforce, GoDaddy and WePay have trusted Split to power their feature delivery.
To learn more about Harness Feature Management and Experimentation (formerly Split), visit the [Harness website](https://www.harness.io/products/feature-management-experimentation) or contact [Harness Sales](https://harness.io/contact/sales).

Split is the leading Feature Delivery Platform for engineering teams that want to confidently deploy features as fast as they can develop them. Split’s fine-grained management, real-time monitoring, and data-driven experimentation ensure that new features will improve the customer experience without breaking or degrading performance. Companies like Twilio, Salesforce, GoDaddy and WePay trust Split to power their feature delivery.

To learn more about Split, contact hello@split.io, or get started with feature flags for free at https://www.split.io/signup.

Split has built and maintains SDKs for:

* Java [Github](https://github.com/splitio/java-client) [Docs](https://help.split.io/hc/en-us/articles/360020405151-Java-SDK)
* Javascript [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK)
* Node [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK)
* .NET [Github](https://github.com/splitio/dotnet-client) [Docs](https://help.split.io/hc/en-us/articles/360020240172--NET-SDK)
* Ruby [Github](https://github.com/splitio/ruby-client) [Docs](https://help.split.io/hc/en-us/articles/360020673251-Ruby-SDK)
* PHP [Github](https://github.com/splitio/php-client) [Docs](https://help.split.io/hc/en-us/articles/360020350372-PHP-SDK)
* Python [Github](https://github.com/splitio/python-client) [Docs](https://help.split.io/hc/en-us/articles/360020359652-Python-SDK)
* GO [Github](https://github.com/splitio/go-client) [Docs](https://help.split.io/hc/en-us/articles/360020093652-Go-SDK)
* Android [Github](https://github.com/splitio/android-client) [Docs](https://help.split.io/hc/en-us/articles/360020343291-Android-SDK)
* iOS [Github](https://github.com/splitio/ios-client) [Docs](https://help.split.io/hc/en-us/articles/360020401491-iOS-SDK)
Harness has built and maintains SDKs for:

* Java [Github](https://github.com/splitio/java-client) [Docs](https://developer.harness.io/docs/feature-management-experimentation/sdks-and-infrastructure/server-side-sdks/java-sdk)
* Javascript [Github](https://github.com/splitio/javascript-client) [Docs]()
* Node [Github](https://github.com/splitio/javascript-client) [Docs](https://developer.harness.io/docs/feature-management-experimentation/sdks-and-infrastructure/server-side-sdks/nodejs-sdk)
* .NET [Github](https://github.com/splitio/dotnet-client) [Docs](https://developer.harness.io/docs/feature-management-experimentation/sdks-and-infrastructure/server-side-sdks/net-sdk)
* Ruby [Github](https://github.com/splitio/ruby-client) [Docs](https://developer.harness.io/docs/feature-management-experimentation/sdks-and-infrastructure/server-side-sdks/ruby-sdk)
* PHP [Github](https://github.com/splitio/php-client) [Docs](https://developer.harness.io/docs/feature-management-experimentation/sdks-and-infrastructure/server-side-sdks/php-sdk)
* Python [Github](https://github.com/splitio/python-client) [Docs](https://developer.harness.io/docs/feature-management-experimentation/sdks-and-infrastructure/server-side-sdks/python-sdk)
* GO [Github](https://github.com/splitio/go-client) [Docs](https://developer.harness.io/docs/feature-management-experimentation/sdks-and-infrastructure/server-side-sdks/go-sdk)
* Android [Github](https://github.com/splitio/android-client) [Docs](https://developer.harness.io/docs/feature-management-experimentation/sdks-and-infrastructure/client-side-sdks/android-sdk)
* iOS [Github](https://github.com/splitio/ios-client) [Docs](https://developer.harness.io/docs/feature-management-experimentation/sdks-and-infrastructure/client-side-sdks/ios-sdk)

For a comprehensive list of open source projects visit our [Github page](https://github.com/splitio?utf8=%E2%9C%93&query=%20only%3Apublic%20).
**Learn more about Split:**
Visit [split.io/product](https://www.split.io/product) for an overview of Split, or visit our documentation at [help.split.io](http://help.split.io) for more detailed information.

**Learn more about Harness:**

Visit [harness.io](https://www.harness.io) for an overview of Harness, or visit our documentation at [developer.harness.io/docs](https://developer.harness.io/docs) for more detailed information.

6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.split.openfeature</groupId>
<artifactId>split-openfeature-provider</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>

<name>split-openfeature-provider-java</name>
<description>Split OpenFeature Java Provider</description>
Expand Down Expand Up @@ -54,7 +54,7 @@
<dependency>
<groupId>io.split.client</groupId>
<artifactId>java-client</artifactId>
<version>4.4.3</version>
<version>4.16.0</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
Expand All @@ -75,7 +75,7 @@
<dependency>
<groupId>dev.openfeature</groupId>
<artifactId>sdk</artifactId>
<version>0.3.1</version>
<version>1.15.1</version>
</dependency>
</dependencies>

Expand Down
6 changes: 2 additions & 4 deletions src/test/java/io/split/openfeature/ClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ public void init() {
System.out.println("Unexpected Exception occurred initializing Split Provider.");
}
client = openFeatureAPI.getClient("Split Client");
EvaluationContext evaluationContext = new MutableContext();
String targetingKey = "key";
evaluationContext.setTargetingKey(targetingKey);
EvaluationContext evaluationContext = new MutableContext(targetingKey);
client.setEvaluationContext(evaluationContext);
}

Expand Down Expand Up @@ -106,8 +105,7 @@ public void getBooleanSplitWithKeyTest() {

// if we override the evaluation context for this check to use a different key,
// this should take priority, and therefore we should receive a treatment of off
EvaluationContext evaluationContext = new MutableContext();
evaluationContext.setTargetingKey("randomKey");
EvaluationContext evaluationContext = new MutableContext("randomKey");
result = client.getBooleanValue("my_feature", true, evaluationContext);
assertFalse(result);
}
Expand Down
5 changes: 2 additions & 3 deletions src/test/java/io/split/openfeature/SplitProviderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,11 @@ public class SplitProviderTest {
private SplitClient mockSplitClient;

@BeforeEach
private void init() {
public void init() {
MockitoAnnotations.openMocks(this);

key = "key";
evaluationContext = new MutableContext();
evaluationContext.setTargetingKey(key);
evaluationContext = new MutableContext(key);
}

@Test
Expand Down