Skip to content
Merged
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
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: ci
on:
pull_request:
branches:
- main
- development
push:
branches:
- '*'

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up nodejs
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
cache: 'npm'

- name: npm CI
run: npm ci

- name: npm Check
run: npm run check

- name: npm Test
run: npm run test

- name: npm Build
run: npm run build
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

13 changes: 12 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
0.1.0 (October 20, 2021)
- Added localhost mode support (Read more in our docs here: https://help.split.io/hc/en-us/articles/4406066357901-React-Native-SDK#localhost-mode).
- Updated @splitsoftware/splitio-commons dependency to version 1.0.0, which includes:
- Updated localhost mode to emit SDK_READY_FROM_CACHE event in Browser when using localStorage (Related to issue https://github.com/splitio/react-client/issues/34).
- Updated streaming logic to use the newest version of our streaming service, including:
- Integration with Auth service V2, connecting to the new channels and applying the received connection delay.
- Implemented handling of the new MySegmentsV2 notification types (SegmentRemoval, KeyList, Bounded and Unbounded)
- New control notification for environment scoped streaming reset.
- Fix of some log messages typos, among other improvements.
- Updated some NPM dependencies for vulnerability fixes.

0.0.1 (July 29, 2021)
- Initial public release. Check the official documentation for details: https://help.split.io/hc/en-us/articles/4406066357901
- Initial public release. Check the official documentation for details: https://help.split.io/hc/en-us/articles/4406066357901-React-Native-SDK
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ Split has built and maintains SDKs for:
* 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)
* Javascript for Browser [Github](https://github.com/splitio/javascript-browser-client) [Docs](https://help.split.io/hc/en-us/articles/360058730852-Browser-SDK)
* Javascript for React Native [Github](https://github.com/splitio/react-native-client) [Docs](https://help.split.io/hc/en-us/articles/4406066357901)
* 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)
* React [Github](https://github.com/splitio/react-client) [Docs](https://help.split.io/hc/en-us/articles/360038825091-React-SDK)
* React Native [Github](https://github.com/splitio/react-native-client) [Docs](https://help.split.io/hc/en-us/articles/4406066357901-React-Native-SDK)
* Redux [Github](https://github.com/splitio/redux-client) [Docs](https://help.split.io/hc/en-us/articles/360038851551-Redux-SDK)
* Ruby [Github](https://github.com/splitio/ruby-client) [Docs](https://help.split.io/hc/en-us/articles/360020673251-Ruby-SDK)

Expand Down
7 changes: 7 additions & 0 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# App example

App example used for debugging, testing and checking type definitions of Split SDK for React Native.

```bash
> cd ios/ && pod install && cd .. # CocoaPods on iOS needs this extra step, if changes were made in iOS native modules
> npm start -- --reset-cache # start metro bundler server, cleaning cache in case `react-native-client` has been rebuilt or dependencies updated
> npm run android
> npm run ios
```
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ PODS:
- React-cxxreact (= 0.64.1)
- React-jsi (= 0.64.1)
- React-perflogger (= 0.64.1)
- RNSplit (0.0.1):
- RNSplit (0.1.0):
- React
- Yoga (1.14.0)
- YogaKit (1.18.1):
Expand Down Expand Up @@ -488,7 +488,7 @@ SPEC CHECKSUMS:
React-RCTVibration: 4b99a7f5c6c0abbc5256410cc5425fb8531986e1
React-runtimeexecutor: ff951a0c241bfaefc4940a3f1f1a229e7cb32fa6
ReactCommon: bedc99ed4dae329c4fcf128d0c31b9115e5365ca
RNSplit: 5c78d865a08e56dd125968ba1b529358f0b9f537
RNSplit: e75dc5a74f4c0e34bec2b68a6d075cbd8aadbe48
Yoga: a7de31c64fe738607e7a3803e3f591a4b1df7393
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

Expand Down
7 changes: 4 additions & 3 deletions example/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

const path = require('path');
const blacklist = require('metro-config/src/defaults/blacklist');
const exclusionList = require('metro-config/src/defaults/exclusionList');
const escape = require('escape-string-regexp');
const pkg = require('../package.json');

Expand All @@ -21,9 +21,10 @@ module.exports = {
watchFolders: [root],

// We need to make sure that only one version is loaded for peerDependencies
// So we blacklist them at the root, and alias them to the versions in example's node_modules
// So we blocklist them at the root, and alias them to the versions in example's node_modules
resolver: {
blacklistRE: blacklist(
// https://facebook.github.io/metro/docs/configuration#blocklist
blockList: exclusionList(
modules.map(
(m) =>
new RegExp(`^${escape(path.join(root, 'node_modules', m))}\\/.*$`)
Expand Down
1 change: 1 addition & 0 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ const App = () => {
style={{
backgroundColor: isDarkMode ? Colors.black : Colors.white,
}}>
<Text>SDK version: {factory.settings.version}</Text>
<Text>SDK state: {sdkState}</Text>

{/* <Text>User key:</Text>
Expand Down
7 changes: 7 additions & 0 deletions full/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"main": "../lib/commonjs/full/index.js",
"module": "../lib/module/full/index.js",
"types": "../types/full/index.d.ts",
"react-native": "../lib/module/full/index.js",
"sideEffects": false
}
Loading