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
Binary file added docs/images/react_native_github_action.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions docs/releasing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Releasing

This document explains the process of releasing new versions within capture-es repo

## Release for React Native

1. Get the latest capture-sdk release version, for example [0.17.11](https://github.com/bitdriftlabs/capture-sdk/releases/tag/v0.17.11)
2. Run `scripts/update_rn_capture_version.sh` with the desired version
3. Open and merge PR on [capture-es] (https://github.com/bitdriftlabs/capture-es) repo
4. Run Github action [React Native Release] (https://github.com/bitdriftlabs/capture-es/actions/workflows/react-native-release.yml)
3. Hit `Run Workflow` button on the right.
4. Keep `main` branch selection, enter version that follows formatting rules from [Version Formatting](#version-formatting).
5. The CI job should open a PR named 'Update SDK version to 0.12.1-rc.4' ([example](https://github.com/bitdriftlabs/capture-sdk/pull/1637)).
6. Approve and merge the PR.
7. Update [release docs](https://docs.bitdrift.io/sdk/releases-react-native) to include latest version.

![](images/react_native_github_action.png)

An example release can be found [here](https://github.com/bitdriftlabs/capture-sdk/releases/tag/v0.12.1-rc.5).

2 changes: 1 addition & 1 deletion packages/react-native/BdReactNative.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require "json"

package = JSON.parse(File.read(File.join(__dir__, "package.json")))
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
capture_version = '0.17.9'
capture_version = '0.17.11'

Pod::Spec.new do |s|
s.name = "BdReactNative"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ dependencies {
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
api 'io.bitdrift:capture:0.17.9'
api 'io.bitdrift:capture:0.17.11'
}

if (isNewArchitectureEnabled()) {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/src/plugin/withAndroid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const withBitdriftAppBuildGradle: ConfigPlugin<PluginProps | void> = (
// Add the capture-plugin at the very top of the file.
config.modResults.contents =
`plugins {
id 'io.bitdrift.capture-plugin' version '0.17.9'
id 'io.bitdrift.capture-plugin' version '0.17.11'
}

` + config.modResults.contents;
Expand Down