From fe0c8118068031e1666186872a88066492a4c8b5 Mon Sep 17 00:00:00 2001 From: 3llomi Date: Sat, 31 Aug 2024 22:19:29 +0300 Subject: [PATCH 1/4] Jitpack --- app/build.gradle | 10 +- build.gradle | 12 ++- gradle/wrapper/gradle-wrapper.properties | 4 +- om-recorder/build.gradle | 114 +++++++++++++---------- 4 files changed, 80 insertions(+), 60 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index f5bd63c..6760c12 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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' } diff --git a/build.gradle b/build.gradle index c31db21..8d43a68 100644 --- a/build.gradle +++ b/build.gradle @@ -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 } @@ -16,7 +16,11 @@ buildscript { allprojects { repositories { jcenter() - maven { url 'https://dl.bintray.com/kailash09dabhi/maven' } + mavenCentral() + maven{ + url "https://jitpack.io" + } + google() } } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 37b7568..08e7c1a 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -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 diff --git a/om-recorder/build.gradle b/om-recorder/build.gradle index eafa7f2..98a8afc 100644 --- a/om-recorder/build.gradle +++ b/om-recorder/build.gradle @@ -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' \ No newline at end of file +afterEvaluate { + publishing { + publications { + release(MavenPublication) { + from components.release + groupId = 'com.kailashdabhi' + artifactId = 'om-recorder' + version = '1.0' + } + } + } +} \ No newline at end of file From 057a5c6d5f642ca8f126b4aeb90b59744678446b Mon Sep 17 00:00:00 2001 From: 3llomi Date: Sat, 31 Aug 2024 22:25:17 +0300 Subject: [PATCH 2/4] Jitpack --- app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 6760c12..1f48493 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -28,6 +28,6 @@ dependencies { 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' + implementation project(':om-recorder') +// implementation 'com.kailashdabhi:om-recorder:1.1.5' } From ee9d7f753cc65381e9dbc5fe59e1c321e0e2279e Mon Sep 17 00:00:00 2001 From: 3llomi Date: Sat, 31 Aug 2024 22:33:50 +0300 Subject: [PATCH 3/4] Jitpack --- om-recorder/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/om-recorder/build.gradle b/om-recorder/build.gradle index 98a8afc..ad1bd8b 100644 --- a/om-recorder/build.gradle +++ b/om-recorder/build.gradle @@ -69,7 +69,7 @@ afterEvaluate { release(MavenPublication) { from components.release groupId = 'com.kailashdabhi' - artifactId = 'om-recorder' + artifactId = 'omrecorder' version = '1.0' } } From 34ecb007841e216dc74c972863f96674129a452a Mon Sep 17 00:00:00 2001 From: 3llomi Date: Sat, 31 Aug 2024 22:39:25 +0300 Subject: [PATCH 4/4] Jitpack --- om-recorder/src/main/AndroidManifest.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/om-recorder/src/main/AndroidManifest.xml b/om-recorder/src/main/AndroidManifest.xml index 3d82ee4..937f8cd 100644 --- a/om-recorder/src/main/AndroidManifest.xml +++ b/om-recorder/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ + package="com.kingbull.omrecorder">