cobrowse-sdk-react-native 3.14.0 → 3.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
name: Version
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
args:
|
|
7
|
+
description: "standard-version arguments (e.g. --release-as minor --prerelease alpha)"
|
|
8
|
+
required: false
|
|
9
|
+
default: ""
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
version:
|
|
13
|
+
uses: cobrowseio/actions/.github/workflows/version.yml@730528b54790877767298571a0ea47bef97a4daa #v0.0.2
|
|
14
|
+
with:
|
|
15
|
+
args: ${{ inputs.args }}
|
|
16
|
+
secrets:
|
|
17
|
+
COBROWSE_BOT_KEY: ${{ secrets.COBROWSE_BOT_KEY }}
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [3.15.1](https://github.com/cobrowseio/cobrowse-sdk-react-native/compare/v3.15.0...v3.15.1) (2026-09-16)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **android:** support Android Gradle Plugin 9 by using proguard-android-optimize.txt ([#210](https://github.com/cobrowseio/cobrowse-sdk-react-native/issues/210)) ([6c7a537](https://github.com/cobrowseio/cobrowse-sdk-react-native/commit/6c7a53747292402c943a4631dde2d0838bd2a242))
|
|
11
|
+
|
|
12
|
+
## [3.15.0](https://github.com/cobrowseio/cobrowse-sdk-react-native/compare/v3.14.0...v3.15.0) (2026-09-14)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* update Cobrowse Android SDK to 3.18.1 ([59a108c](https://github.com/cobrowseio/cobrowse-sdk-react-native/commit/59a108cb35ac25f7c018d6a7803b93ac942f9bc8))
|
|
18
|
+
* update Cobrowse iOS SDK to 3.19.3 ([2b4d08b](https://github.com/cobrowseio/cobrowse-sdk-react-native/commit/2b4d08b5ee4e18c88bd3d765795e733365d8f582))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* android session controls proxy method handling crash ([#206](https://github.com/cobrowseio/cobrowse-sdk-react-native/issues/206)) ([07c7c61](https://github.com/cobrowseio/cobrowse-sdk-react-native/commit/07c7c613d913d3231f894bd1e093683c3b7dbe7f))
|
|
24
|
+
|
|
5
25
|
## [3.14.0](https://github.com/cobrowseio/cobrowse-sdk-react-native/compare/v3.13.0...v3.14.0) (2026-08-29)
|
|
6
26
|
|
|
7
27
|
|
package/android/build.gradle
CHANGED
|
@@ -28,14 +28,14 @@ android {
|
|
|
28
28
|
buildTypes {
|
|
29
29
|
release {
|
|
30
30
|
minifyEnabled false
|
|
31
|
-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
31
|
+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
dependencies {
|
|
37
37
|
implementation 'com.facebook.react:react-native:+' // support react-native-v0.22-rc+
|
|
38
|
-
implementation 'io.cobrowse:cobrowse-sdk-android:3.18.
|
|
38
|
+
implementation 'io.cobrowse:cobrowse-sdk-android:3.18.1'
|
|
39
39
|
implementation 'androidx.webkit:webkit:1.4.0'
|
|
40
40
|
implementation 'androidx.activity:activity:1.6.0'
|
|
41
41
|
}
|
package/android/src/main/java/io/cobrowse/reactnative/DynamicSessionControlInvocationHandler.java
CHANGED
|
@@ -2,30 +2,22 @@ package io.cobrowse.reactnative;
|
|
|
2
2
|
|
|
3
3
|
import java.lang.reflect.InvocationHandler;
|
|
4
4
|
import java.lang.reflect.Method;
|
|
5
|
-
|
|
6
|
-
import
|
|
5
|
+
|
|
6
|
+
import io.cobrowse.CobrowseIO;
|
|
7
7
|
|
|
8
8
|
class DynamicSessionControlInvocationHandler implements InvocationHandler {
|
|
9
|
-
private CobrowseIOCommonDelegates delegates;
|
|
10
|
-
private final Map<String, Method> methods = new HashMap<>();
|
|
9
|
+
private final CobrowseIOCommonDelegates delegates;
|
|
11
10
|
|
|
12
11
|
DynamicSessionControlInvocationHandler(CobrowseIOCommonDelegates delegates) {
|
|
13
12
|
this.delegates = delegates;
|
|
14
|
-
|
|
15
|
-
for(Method method: delegates.getClass().getDeclaredMethods()) {
|
|
16
|
-
this.methods.put(method.getName(), method);
|
|
17
|
-
}
|
|
18
13
|
}
|
|
19
14
|
|
|
20
15
|
@Override
|
|
21
16
|
public Object invoke(Object proxy, Method method, Object[] args)
|
|
22
17
|
throws Throwable {
|
|
23
|
-
|
|
24
|
-
if (method.getName() == "showSessionControls" || method.getName() == "hideSessionControls") {
|
|
18
|
+
if (method.getDeclaringClass() == CobrowseIO.SessionControlsDelegate.class) {
|
|
25
19
|
return null;
|
|
26
20
|
}
|
|
27
|
-
|
|
28
|
-
Object result = methods.get(method.getName()).invoke(delegates, args);
|
|
29
|
-
return result;
|
|
21
|
+
return method.invoke(delegates, args);
|
|
30
22
|
}
|
|
31
23
|
}
|
|
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.homepage = package["homepage"]
|
|
12
12
|
s.source = { :git => 'https://github.com/cobrowseio/cobrowse-sdk-react-native.git' }
|
|
13
13
|
s.platform = :ios, '15.0'
|
|
14
|
-
s.dependency 'CobrowseIO/XCFramework', '3.19.
|
|
14
|
+
s.dependency 'CobrowseIO/XCFramework', '3.19.3'
|
|
15
15
|
s.source_files = 'ios/**/*.{h,m,mm}'
|
|
16
16
|
|
|
17
17
|
if defined?(install_modules_dependencies)
|