Skip to content

Commit ef811c3

Browse files
authored
feat: release v3.8.2 sdk (#55)
1 parent 24246df commit ef811c3

File tree

7 files changed

+11
-64
lines changed

7 files changed

+11
-64
lines changed

README.md

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -28,45 +28,6 @@ For the SDK reference, see [https://doc.rentsoft.cn/sdks/quickstart/reactnative]
2828
yarn add open-im-sdk-rn
2929
```
3030

31-
### For android add following urls to build gradle:
32-
33-
https://open-im-online.rentsoft.cn:51000/repository/maven2/
34-
35-
```gradle
36-
// Top-level build file where you can add configuration options common to all sub-projects/modules.
37-
buildscript {
38-
ext {
39-
buildToolsVersion = "33.0.0"
40-
minSdkVersion = 21
41-
compileSdkVersion = 33
42-
targetSdkVersion = 33
43-
44-
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
45-
ndkVersion = "23.1.7779620"
46-
}
47-
repositories {
48-
google()
49-
mavenCentral()
50-
maven {
51-
allowInsecureProtocol = true
52-
url 'https://open-im-online.rentsoft.cn:51000/repository/maven2/'
53-
}
54-
}
55-
dependencies {
56-
classpath("com.android.tools.build:gradle")
57-
classpath("com.facebook.react:react-native-gradle-plugin")
58-
}
59-
}
60-
allprojects {
61-
repositories {
62-
maven {
63-
allowInsecureProtocol = true
64-
url 'https://open-im-online.rentsoft.cn:51000/repository/maven2/'
65-
}
66-
}
67-
}
68-
```
69-
7031
## Usage 🚀
7132

7233
The following examples demonstrate how to use the SDK. TypeScript is used, providing complete type hints.

android/build.gradle

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
buildscript {
22
// if (project == rootProject) {
33
repositories {
4-
maven {
5-
allowInsecureProtocol = true
6-
url 'https://open-im-online.rentsoft.cn:51000/repository/maven2/'
7-
}
84
google()
95
mavenCentral()
106
jcenter()
@@ -47,10 +43,6 @@ android {
4743
}
4844

4945
repositories {
50-
maven {
51-
allowInsecureProtocol = true
52-
url 'https://open-im-online.rentsoft.cn:51000/repository/maven2/'
53-
}
5446
mavenLocal()
5547
maven {
5648
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
@@ -66,6 +58,6 @@ dependencies {
6658
implementation "com.facebook.react:react-native:+" // From node_modules
6759
implementation 'androidx.collection:collection:1.1.0'
6860
implementation 'com.alibaba:fastjson:1.1.72.android'
69-
implementation 'io.openim:core-sdk:3.8.1@aar'
61+
implementation 'io.openim:core-sdk:3.8.2@aar'
7062
// implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'], exclude: [])
7163
}

android/src/main/java/com/openimsdkrn/OpenImSdkRnModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ public void createVideoMessageFromFullPath(ReadableMap options, String operation
503503
int duration = options.getInt("duration");
504504
String snapshotPath = options.getString("snapshotPath");
505505

506-
String message = Open_im_sdk.createVideoMessage(operationID, videoPath, videoType, duration, snapshotPath);
506+
String message = Open_im_sdk.createVideoMessageFromFullPath(operationID, videoPath, videoType, duration, snapshotPath);
507507
try {
508508
JSONObject obj = JSON.parseObject(message);
509509
promise.resolve(emitter.convertJsonToMap(obj));

example/android/build.gradle

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ buildscript {
1313
repositories {
1414
google()
1515
mavenCentral()
16-
maven {
17-
allowInsecureProtocol = true
18-
url 'https://open-im-online.rentsoft.cn:51000/repository/maven2/'
19-
}
2016
}
2117
dependencies {
2218
classpath("com.android.tools.build:gradle")
@@ -25,9 +21,7 @@ buildscript {
2521
}
2622
allprojects {
2723
repositories {
28-
maven {
29-
allowInsecureProtocol = true
30-
url 'https://open-im-online.rentsoft.cn:51000/repository/maven2/'
31-
}
24+
google()
25+
mavenCentral()
3226
}
3327
}

example/ios/Podfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ PODS:
7474
- hermes-engine/Pre-built (= 0.72.4)
7575
- hermes-engine/Pre-built (0.72.4)
7676
- libevent (2.1.12)
77-
- open-im-sdk-rn (3.8.1):
78-
- OpenIMSDKCore (= 3.8.1)
77+
- open-im-sdk-rn (3.8.2):
78+
- OpenIMSDKCore (= 3.8.2)
7979
- React-Core
80-
- OpenIMSDKCore (3.8.1)
80+
- OpenIMSDKCore (3.8.2)
8181
- OpenSSL-Universal (1.1.1100)
8282
- RCT-Folly (2021.07.22.00):
8383
- boost
@@ -684,8 +684,8 @@ SPEC CHECKSUMS:
684684
glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
685685
hermes-engine: 81191603c4eaa01f5e4ae5737a9efcf64756c7b2
686686
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
687-
open-im-sdk-rn: 08ea62228b06a90113c8316b3383ca557cc891e2
688-
OpenIMSDKCore: b113c0f6aab579a711ffed444e4974cc43b6ba96
687+
open-im-sdk-rn: 303f4f135b40d985993a9d91b1a2bac90fae71c8
688+
OpenIMSDKCore: aaffd63079a874d9272b8b962598723cb8128d32
689689
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
690690
RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1
691691
RCTRequired: c0569ecc035894e4a68baecb30fe6a7ea6e399f9

open-im-sdk-rn.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
2323
# else
2424
s.static_framework = true
2525
s.dependency "React-Core"
26-
s.dependency "OpenIMSDKCore","3.8.1"
26+
s.dependency "OpenIMSDKCore","3.8.2"
2727
s.library = 'resolv'
2828
# Don't install the dependencies when we run `pod install` in the old architecture.
2929
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "open-im-sdk-rn",
3-
"version": "3.8.2-alpha.1",
3+
"version": "3.8.2",
44
"description": "OpenIM SDK for react-native",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

0 commit comments

Comments
 (0)