Skip to content

Commit

Permalink
修改说明
Browse files Browse the repository at this point in the history
  • Loading branch information
xiandanin committed May 27, 2017
1 parent ce0ccf6 commit f9b7b6a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,16 @@ MediaMetadataRetrieverCompat 内部有两种实现,各有特点

## __快速开始__
```
compile 'com.dyhdyh.compat.mmrc:media-metadata-retriever-compat:1.0.0'
//可选 不引入则使用原生API
compile 'com.github.wseemann:FFmpegMediaMetadataRetriever:1.0.14'
compile 'com.dyhdyh.compat:media-metadata-retriever-compat:1.0.0'
```

## __初始化(三种模式)__
```
//自动 - 推荐
MediaMetadataRetrieverCompat mmrc = new MediaMetadataRetrieverCompat();
//FFmpeg
//MediaMetadataRetrieverCompat mmrc = new MediaMetadataRetrieverCompat(MediaMetadataRetrieverCompat.RETRIEVER_FFMPEG);
//原生API
//自动 - 推荐
MediaMetadataRetrieverCompat mmrc = new MediaMetadataRetrieverCompat();
//FFmpeg
//MediaMetadataRetrieverCompat mmrc = new MediaMetadataRetrieverCompat(MediaMetadataRetrieverCompat.RETRIEVER_FFMPEG);
//原生API
//MediaMetadataRetrieverCompat mmrc = new MediaMetadataRetrieverCompat(MediaMetadataRetrieverCompat.RETRIEVER_ANDROID);
```
## __设置路径__
Expand Down
2 changes: 1 addition & 1 deletion config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ext {
[
//项目名称
name : "MediaMetadataRetrieverCompat",
groupId : "com.dyhdyh.compat.mmrc",
groupId : "com.dyhdyh.compat",
//项目地址
siteUrl : "https://github.com/dengyuhan/MediaMetadataRetrieverCompat",
//项目git地址
Expand Down
2 changes: 1 addition & 1 deletion example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ android {
versionName rootProject.ext.android.versionName

ndk {
//abiFilters 'armeabi-v7a', 'arm64-v8a'
abiFilters 'armeabi-v7a', 'arm64-v8a'
}
}
buildTypes {
Expand Down
5 changes: 5 additions & 0 deletions media-metadata-retriever-compat/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,13 @@ install {
}
}

// 生成jar包的task
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}

// 生成javaDoc的jar
task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
Expand All @@ -74,6 +77,8 @@ artifacts {
archives javadocJar
archives sourcesJar
}

//设置编码格式,如果不设置可能会在gradlew install的时候出现GBK编码映射错误
javadoc {
options {
encoding "UTF-8"
Expand Down

0 comments on commit f9b7b6a

Please sign in to comment.