Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 27 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
> 原库地址:https://github.com/GavinCT/AndroidMP3Recorder
>
> 更改项:
>
> 1. 删除 support 库。
> 2. compileVersion & targetVersion 从 23 升到 34。
> 3. minSdvVersion 从 9 升到 20。
> 4. 删除 mips、x86 等 so,仅保留 arm 系列。
>
> 使用方式:
>
> 1. 打开 [Releases](https://github.com/yibaoshan/AndroidMP3Recorder/releases) 页面,下载 AAR 包(com.czt.mp3recorder-library-1.0.5.aar)。
> 2. 把 AAR 包保存到模块的 libs 目录下,然后在 build.gradle 指定依赖。
>
> ```
> dependencies {
>
> implementation fileTree(dir: 'libs', include: ['*.jar'])
> implementation files('libs/com.czt.mp3recorder-library-1.0.5.aar')
>
> }
> ```

AndroidMP3Recorder[RETIRED]
==================

# 停止维护声明
*因个人精力原因,无法顾及到本库的维护和更新。*
*需要的同学请自行fork进行改进,谢谢 ==> 实现思路讲解:[Android MP3录音实现](http://www.cnblogs.com/ct2011/p/4080193.html)*
Expand Down Expand Up @@ -98,13 +122,13 @@ android.useDeprecatedNdk=true
# 6. License

Copyright 2014 GavinCT

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down
Binary file added com.czt.mp3recorder-library-1.0.5.aar
Binary file not shown.
101 changes: 13 additions & 88 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,97 +1,22 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
version = "1.0.4"
plugins {
id 'com.android.library'
}

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
resourcePrefix "AndroidMP3RecorderLibrary_" //这个随便填
defaultConfig {
minSdkVersion 9
targetSdkVersion 23
}

sourceSets.main {
jni.srcDirs = [] // This prevents the auto generation of Android.mk
jniLibs.srcDir 'src/main/libs' // This is not necessary unless you have precompiled libraries in your project.
compileSdk 34

defaultConfig {
minSdk 20
targetSdk 34
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
compile 'com.android.support:support-v4:23.1.1'
}

def siteUrl = 'https://github.com/GavinCT/AndroidMP3Recorder' // 项目的主页
def gitUrl = 'https://github.com/GavinCT/AndroidMP3Recorder.git' // Git仓库的url
group = "com.czt.mp3recorder" // Maven Group ID for the artifact,一般填你唯一的包名
install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom {
project {
packaging 'aar'
// Add your description here
name 'Android MP3 Recorder Library' //项目描述
url siteUrl
// Set your license
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'GavinCT' //填写的一些基本信息
name 'chentong'
email '[email protected]'
}
}
scm {
connection gitUrl
developerConnection gitUrl
url siteUrl
}
}
}
}
}
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
options.encoding = "UTF-8"
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives javadocJar
archives sourcesJar
}
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
bintray {
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")
configurations = ['archives']
pkg {
repo = "maven"
name = "AndroidMP3RecorderLibrary" //发布到JCenter上的项目名字
websiteUrl = siteUrl
vcsUrl = gitUrl
licenses = ["Apache-2.0"]
publish = true
}
}
}
Binary file removed library/src/main/jniLibs/mips/libmp3lame.so
Binary file not shown.
Binary file removed library/src/main/jniLibs/mips64/libmp3lame.so
Binary file not shown.
Binary file removed library/src/main/jniLibs/x86/libmp3lame.so
Binary file not shown.
Binary file removed library/src/main/jniLibs/x86_64/libmp3lame.so
Binary file not shown.