Skip to content

Commit f02a63f

Browse files
authored
Merge pull request #74 from openimsdk/main
update readme
2 parents 42355b7 + f98c556 commit f02a63f

File tree

2 files changed

+48
-4
lines changed

2 files changed

+48
-4
lines changed

README.md

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,56 @@ Visit [https://doc.rentsoft.cn/](https://doc.rentsoft.cn/) for detailed document
1515
For the SDK reference, see [https://doc.rentsoft.cn/sdks/quickstart/android](https://doc.rentsoft.cn/sdks/quickstart/android).
1616

1717
## Installation 💻
18-
### Adding repositories
18+
### For used before November 2024
19+
If you are a new for our repository, just ignore this.
20+
21+
We had already moved most release libraries to Maven Central. So if you has some errors in build.gradle when build your project, you can replace the old repository to Maven Central in your build.gradle like this:
22+
23+
Before:
24+
```
25+
buildscript {
26+
repositories {
27+
...
28+
maven { url 'https://open-im-online.rentsoft.cn:51000/repository/maven2/' }
29+
google()
30+
mavenCentral()
31+
...
32+
}
33+
}
34+
35+
allprojects {
36+
repositories {
37+
...
38+
maven { url 'https://open-im-online.rentsoft.cn:51000/repository/maven2/' }
39+
google()
40+
mavenCentral()
41+
...
42+
}
43+
}
1944
```
20-
maven { url 'https://open-im-online.rentsoft.cn:51000/repository/maven2/' }
45+
46+
After:
47+
```
48+
buildscript {
49+
repositories {
50+
...
51+
google()
52+
mavenCentral()
53+
...
54+
}
55+
}
56+
57+
allprojects {
58+
repositories {
59+
...
60+
google()
61+
mavenCentral()
62+
...
63+
}
64+
}
2165
```
66+
67+
Just make sure your project had already used Maven Central to get our libraries' dependency when you wanna to build project.
2268
### Adding Dependencies
2369
```
2470
implementation 'io.openim:android-sdk:3.4.1@aar'

build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ buildscript {
55
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
66
maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
77
maven { url 'https://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
8-
maven { url 'https://open-im-online.rentsoft.cn:51000/repository/maven2/' }
98

109
maven { url 'https://jitpack.io' }
1110
google()
@@ -25,7 +24,6 @@ allprojects {
2524
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
2625
maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
2726
maven { url 'https://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
28-
maven { url 'https://open-im-online.rentsoft.cn:51000/repository/maven2/' }
2927

3028
maven { url 'https://jitpack.io' }
3129
google()

0 commit comments

Comments
 (0)