11apply plugin : ' com.android.library'
22apply from : " $rootProject . projectDir /publishing.gradle"
33
4- buildscript {
5- repositories {
6- google()
7- mavenCentral()
8- maven {
9- url " https://plugins.gradle.org/m2/"
10- }
11- }
12- }
13-
144android {
15- compileSdkVersion 31
5+ compileSdk versions . get( " compileSdkVersion " )
166
177 defaultConfig {
188 minSdkVersion versions. get(" minSdkVersion" )
@@ -27,54 +17,55 @@ android {
2717 buildTypes {
2818 release {
2919 minifyEnabled false
30- proguardFiles getDefaultProguardFile(' proguard-android-optimize.txt' ), ' proguard-rules.pro'
3120 }
3221 }
3322
34- afterEvaluate {
35- publishing {
36- publications {
37- release(MavenPublication ) {
38- from components. release
23+ publishing {
24+ singleVariant(' release' )
25+ }
26+ }
3927
40- groupId = ' com.github.wseemann'
41- artifactId = ' FFmpegMediaMetadataRetriever-core'
42- version = " $project . android . defaultConfig . versionName "
28+ afterEvaluate {
29+ publishing {
30+ publications {
31+ release(MavenPublication ) {
32+ from components. release
4333
44- pom {
45- name = ' FFmpegMediaMetadataRetriever-core'
46- description = ' FFmpegMediaMetadataRetriever library'
47- url = ' https://github.com/wseemann/FFmpegMediaMetadataRetriever'
48- packaging = ' aar'
49- licenses {
50- license {
51- name = ' Apache License, Version 2.0'
52- url = ' http://www.apache.org/licenses/LICENSE-2.0'
53- distribution = ' repo'
54- }
55- }
56- developers {
57- developer {
58- id = ' wseemann'
59- name = ' William Seemann'
60- }
34+ groupId = ' com.github.wseemann'
35+ artifactId = ' FFmpegMediaMetadataRetriever-core'
36+ version = " $project . android . defaultConfig . versionName "
37+
38+ pom {
39+ name = ' FFmpegMediaMetadataRetriever-core'
40+ description = ' FFmpegMediaMetadataRetriever library'
41+ url = ' https://github.com/wseemann/FFmpegMediaMetadataRetriever'
42+ packaging = ' aar'
43+ licenses {
44+ license {
45+ name = ' Apache License, Version 2.0'
46+ url = ' http://www.apache.org/licenses/LICENSE-2.0'
47+ distribution = ' repo'
6148 }
62- scm {
63- connection = ' scm:hg:https://github.com/wseemann/FFmpegMediaMetadataRetriever'
64- developerConnection = ' scm:hg:https://github.com/wseemann/FFmpegMediaMetadataRetriever'
65- url = ' https://github.com/wseemann/FFmpegMediaMetadataRetriever'
49+ }
50+ developers {
51+ developer {
52+ id = ' wseemann'
53+ name = ' William Seemann'
6654 }
6755 }
56+ scm {
57+ connection = ' scm:hg:https://github.com/wseemann/FFmpegMediaMetadataRetriever'
58+ developerConnection = ' scm:hg:https://github.com/wseemann/FFmpegMediaMetadataRetriever'
59+ url = ' https://github.com/wseemann/FFmpegMediaMetadataRetriever'
60+ }
6861 }
6962 }
7063 }
7164 }
7265}
7366
7467dependencies {
75- implementation fileTree(dir : ' libs' , include : [' *.jar' ])
76-
77- implementation ' androidx.appcompat:appcompat:1.3.1'
68+ implementation ' androidx.appcompat:appcompat:1.5.1'
7869 testImplementation ' junit:junit:4.13.2'
7970 androidTestImplementation ' androidx.test:runner:1.4.0'
8071 androidTestImplementation ' androidx.test.espresso:espresso-core:3.4.0'
0 commit comments