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
10 changes: 5 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ android {
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.0.0'
// compile project(':om-recorder')
compile 'com.kailashdabhi:om-recorder:1.1.5'
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation 'junit:junit:4.12'
implementation 'com.android.support:appcompat-v7:24.0.0'
implementation project(':om-recorder')
// implementation 'com.kailashdabhi:om-recorder:1.1.5'
}
12 changes: 8 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
buildscript {
repositories {
jcenter()
google()

}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
classpath 'com.android.tools.build:gradle:7.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand All @@ -16,7 +16,11 @@ buildscript {
allprojects {
repositories {
jcenter()
maven { url 'https://dl.bintray.com/kailash09dabhi/maven' }
mavenCentral()
maven{
url "https://jitpack.io"
}
google()
}
}

Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu May 11 11:28:02 IST 2017
#Sat Aug 31 20:42:57 EEST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
114 changes: 65 additions & 49 deletions om-recorder/build.gradle
Original file line number Diff line number Diff line change
@@ -1,61 +1,77 @@
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'

android {
compileSdkVersion 24
buildToolsVersion '25.0.0'

defaultConfig {
minSdkVersion 14
targetSdkVersion 24
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
compileSdkVersion 24
buildToolsVersion '25.0.0'

defaultConfig {
minSdkVersion 14
targetSdkVersion 24
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
abortOnError false
}
}
lintOptions {
abortOnError false
}
}
ext {
// Where you will see your artifact in Bintray's web interface
// The "bintrayName" should match the name of the Bintray repro.
bintrayRepo = 'maven'
bintrayName = 'om-recorder' // Has to be same as your library module name

// Maven metadata
publishedGroupId = 'com.kailashdabhi'
libraryName = 'OmRecorder'
// Save yourself a head ache, and set this equal to the name of the Android Studio library
// module. The artifact name needs to match the name of the library.
artifact = 'om-recorder' // Has to be same as your library module name

// Your github repo link
siteUrl = 'https://github.com/kailash09dabhi/OmRecorder'
gitUrl = 'https://github.com/kailash09dabhi/OmRecorder.git'

libraryDescription =
'A fluent api wrapper of AudioRecord object to record Pcm & Wav file. There is a listner apis' +
' to have audio pulling and also silence detection.'
libraryVersion = '1.1.5'

developerId = 'kailash09dabhi'
developerName = 'Kailash Dabhi'
developerEmail = 'kailash09dabhi@gmail.com'

licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
// Where you will see your artifact in Bintray's web interface
// The "bintrayName" should match the name of the Bintray repro.
bintrayRepo = 'maven'
bintrayName = 'om-recorder' // Has to be same as your library module name

// Maven metadata
publishedGroupId = 'com.kailashdabhi'
libraryName = 'OmRecorder'
// Save yourself a head ache, and set this equal to the name of the Android Studio library
// module. The artifact name needs to match the name of the library.
artifact = 'om-recorder' // Has to be same as your library module name

// Your github repo link
siteUrl = 'https://github.com/kailash09dabhi/OmRecorder'
gitUrl = 'https://github.com/kailash09dabhi/OmRecorder.git'

libraryDescription =
'A fluent api wrapper of AudioRecord object to record Pcm & Wav file. There is a listner apis' +
' to have audio pulling and also silence detection.'
libraryVersion = '1.1.5'

developerId = 'kailash09dabhi'
developerName = 'Kailash Dabhi'
developerEmail = 'kailash09dabhi@gmail.com'

licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
}
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
}

apply from: 'https://raw.githubusercontent.com/kailash09dabhi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/kailash09dabhi/JCenter/master/bintrayv1.gradle'
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = 'com.kailashdabhi'
artifactId = 'omrecorder'
version = '1.0'
}
}
}
}
2 changes: 1 addition & 1 deletion om-recorder/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="omrecorder">
package="com.kingbull.omrecorder">

<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
Expand Down