Skip to content

Commit

Permalink
🎨 修改导入文档
Browse files Browse the repository at this point in the history
  • Loading branch information
AnJoiner committed Nov 9, 2023
1 parent d5ece0c commit b7e2aff
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
15 changes: 8 additions & 7 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@
在项目根目录下找到`build.gradle`,并添加如下

```groovy
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
```

Expand All @@ -85,9 +86,9 @@ allprojects {

```groovy
// 全部编解码-体积较大
implementation 'com.github.AnJoiner:FFmpegCommand:1.3.0'
implementation 'com.github.AnJoiner:FFmpegCommand:1.3.1'
// 部分常用编解码-体积较小,比上面引入减少大约6M
implementation 'com.github.AnJoiner:FFmpegCommand:1.3.0-lite'
implementation 'com.github.AnJoiner:FFmpegCommand:1.3.1-lite'
```

更改module下build.gradle,当前库只支持`armeabi-v7a``arm64-v8a`,当然也可以只使用一种(一般使用`armeabi-v7a`可以向下兼容),可以参考[【Android ABI】](https://developer.android.com/ndk/guides/abis)
Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@ The general functions are as follows:
Find `build.gradle` in the project root directory and add the following:

```groovy
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
```
Then add the import in `build.gradle` in `app` or other `module` directory
Expand All @@ -83,9 +84,9 @@ Choose only one of the following two introductions, and replace the following ac

```groovy
// All codecs-larger size
implementation 'com.github.AnJoiner:FFmpegCommand:1.3.0'
implementation 'com.github.AnJoiner:FFmpegCommand:1.3.1'
// Some commonly used codecs-smaller in size, about 6M less than the introduction above
implementation 'com.github.AnJoiner:FFmpegCommand:1.3.0-lite'
implementation 'com.github.AnJoiner:FFmpegCommand:1.3.1-lite'
```

Change build.gradle under module, the current library only supports `armeabi-v7a` and `arm64-v8a`, of course you can use only one (usually using `armeabi-v7a` for backward compatibility). You can Can refer to [【Android ABI】](https://developer.android.com/ndk/guides/abis)
Expand Down

0 comments on commit b7e2aff

Please sign in to comment.