Skip to content

Commit 995c3ea

Browse files
Updated gradle
1 parent e243d5e commit 995c3ea

File tree

2 files changed

+28
-10
lines changed

2 files changed

+28
-10
lines changed

library/build.gradle

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,41 @@ android {
88
namespace 'com.developer.spoti.vspoti'
99
minSdkVersion 23
1010
targetSdkVersion 35
11-
versionCode 4
12-
versionName "3.2.1"
11+
versionCode 5
12+
versionName "3.2.2"
1313
}
1414

1515
compileOptions {
1616
sourceCompatibility 11
1717
targetCompatibility 11
1818
}
19+
20+
buildTypes {
21+
release {
22+
minifyEnabled false
23+
shrinkResources false
24+
}
25+
}
1926
}
2027

21-
publishing {
28+
// Wrap publishing in afterEvaluate to ensure components are created
29+
afterEvaluate {
30+
publishing {
31+
publications {
32+
release(MavenPublication) {
33+
groupId = 'com.github.TutorialsAndroid'
34+
artifactId = 'VSpot'
35+
version = '3.2.2'
36+
37+
// Manually register the "release" component
38+
artifact("$buildDir/outputs/aar/library-release.aar")
2239

23-
publications {
24-
release(MavenPublication) {
25-
groupId = 'com.github.TutorialsAndroid' // Match JitPack’s format
26-
artifactId = 'VSpot' // Your library name
27-
version = '3.0.0' // Follow semantic versioning
40+
pom {
41+
name = 'VSpot'
42+
description = 'VSpot Android Library'
43+
url = 'https://github.com/TutorialsAndroid/VSpot'
44+
}
45+
}
2846
}
2947
}
3048
}

sample/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ android {
66
namespace 'com.developer.spoti.vspot'
77
minSdkVersion 23
88
targetSdkVersion 35
9-
versionCode 4
10-
versionName "3.2.1"
9+
versionCode 5
10+
versionName "3.2.2"
1111
}
1212

1313
compileOptions {

0 commit comments

Comments
 (0)