Skip to content

Commit

Permalink
Fix publish definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
JD557 committed Oct 4, 2024
1 parent 2845890 commit a865a2d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
7 changes: 5 additions & 2 deletions velocidi-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ android {
targetSdkVersion 33
versionCode 1
versionName "1.0"
aarMetadata {
minCompileSdk 33
}

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

buildFeatures {
buildConfig true
}
buildTypes {

debug {
buildConfigField "String", "SDK_VERSION", "\"${project.property('version')}\""
testCoverageEnabled true
Expand Down
12 changes: 12 additions & 0 deletions velocidi-sdk/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,25 @@ project.ext.description = 'Velocidi Android SDK'
project.ext.url = 'https://github.com/velocidi/velocidi-android-sdk'
project.version = version

android {
publishing {
singleVariant('release') {
withSourcesJar()
}
}
}

publishing {
publications {
release(MavenPublication) {
artifactId project.ext.artifactId
groupId project.group
version project.version

afterEvaluate {
from components.release
}

pom {
name = project.ext.name
packaging = 'aar'
Expand Down

0 comments on commit a865a2d

Please sign in to comment.