Skip to content

Commit

Permalink
feat: release v3.8.2 sdk (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgz5689 authored Nov 25, 2024
1 parent 24246df commit ef811c3
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 64 deletions.
39 changes: 0 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,45 +28,6 @@ For the SDK reference, see [https://doc.rentsoft.cn/sdks/quickstart/reactnative]
yarn add open-im-sdk-rn
```

### For android add following urls to build gradle:

https://open-im-online.rentsoft.cn:51000/repository/maven2/

```gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "33.0.0"
minSdkVersion = 21
compileSdkVersion = 33
targetSdkVersion = 33
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
ndkVersion = "23.1.7779620"
}
repositories {
google()
mavenCentral()
maven {
allowInsecureProtocol = true
url 'https://open-im-online.rentsoft.cn:51000/repository/maven2/'
}
}
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
}
}
allprojects {
repositories {
maven {
allowInsecureProtocol = true
url 'https://open-im-online.rentsoft.cn:51000/repository/maven2/'
}
}
}
```

## Usage 🚀

The following examples demonstrate how to use the SDK. TypeScript is used, providing complete type hints.
Expand Down
10 changes: 1 addition & 9 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
buildscript {
// if (project == rootProject) {
repositories {
maven {
allowInsecureProtocol = true
url 'https://open-im-online.rentsoft.cn:51000/repository/maven2/'
}
google()
mavenCentral()
jcenter()
Expand Down Expand Up @@ -47,10 +43,6 @@ android {
}

repositories {
maven {
allowInsecureProtocol = true
url 'https://open-im-online.rentsoft.cn:51000/repository/maven2/'
}
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
Expand All @@ -66,6 +58,6 @@ dependencies {
implementation "com.facebook.react:react-native:+" // From node_modules
implementation 'androidx.collection:collection:1.1.0'
implementation 'com.alibaba:fastjson:1.1.72.android'
implementation 'io.openim:core-sdk:3.8.1@aar'
implementation 'io.openim:core-sdk:3.8.2@aar'
// implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'], exclude: [])
}
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ public void createVideoMessageFromFullPath(ReadableMap options, String operation
int duration = options.getInt("duration");
String snapshotPath = options.getString("snapshotPath");

String message = Open_im_sdk.createVideoMessage(operationID, videoPath, videoType, duration, snapshotPath);
String message = Open_im_sdk.createVideoMessageFromFullPath(operationID, videoPath, videoType, duration, snapshotPath);
try {
JSONObject obj = JSON.parseObject(message);
promise.resolve(emitter.convertJsonToMap(obj));
Expand Down
10 changes: 2 additions & 8 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ buildscript {
repositories {
google()
mavenCentral()
maven {
allowInsecureProtocol = true
url 'https://open-im-online.rentsoft.cn:51000/repository/maven2/'
}
}
dependencies {
classpath("com.android.tools.build:gradle")
Expand All @@ -25,9 +21,7 @@ buildscript {
}
allprojects {
repositories {
maven {
allowInsecureProtocol = true
url 'https://open-im-online.rentsoft.cn:51000/repository/maven2/'
}
google()
mavenCentral()
}
}
10 changes: 5 additions & 5 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ PODS:
- hermes-engine/Pre-built (= 0.72.4)
- hermes-engine/Pre-built (0.72.4)
- libevent (2.1.12)
- open-im-sdk-rn (3.8.1):
- OpenIMSDKCore (= 3.8.1)
- open-im-sdk-rn (3.8.2):
- OpenIMSDKCore (= 3.8.2)
- React-Core
- OpenIMSDKCore (3.8.1)
- OpenIMSDKCore (3.8.2)
- OpenSSL-Universal (1.1.1100)
- RCT-Folly (2021.07.22.00):
- boost
Expand Down Expand Up @@ -684,8 +684,8 @@ SPEC CHECKSUMS:
glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
hermes-engine: 81191603c4eaa01f5e4ae5737a9efcf64756c7b2
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
open-im-sdk-rn: 08ea62228b06a90113c8316b3383ca557cc891e2
OpenIMSDKCore: b113c0f6aab579a711ffed444e4974cc43b6ba96
open-im-sdk-rn: 303f4f135b40d985993a9d91b1a2bac90fae71c8
OpenIMSDKCore: aaffd63079a874d9272b8b962598723cb8128d32
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1
RCTRequired: c0569ecc035894e4a68baecb30fe6a7ea6e399f9
Expand Down
2 changes: 1 addition & 1 deletion open-im-sdk-rn.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Pod::Spec.new do |s|
# else
s.static_framework = true
s.dependency "React-Core"
s.dependency "OpenIMSDKCore","3.8.1"
s.dependency "OpenIMSDKCore","3.8.2"
s.library = 'resolv'
# Don't install the dependencies when we run `pod install` in the old architecture.
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "open-im-sdk-rn",
"version": "3.8.2-alpha.1",
"version": "3.8.2",
"description": "OpenIM SDK for react-native",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down

0 comments on commit ef811c3

Please sign in to comment.