diff --git a/velocidi-sdk/build.gradle b/velocidi-sdk/build.gradle index 60d3347..7abdfde 100644 --- a/velocidi-sdk/build.gradle +++ b/velocidi-sdk/build.gradle @@ -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 diff --git a/velocidi-sdk/publish.gradle b/velocidi-sdk/publish.gradle index c30a640..00f2c04 100644 --- a/velocidi-sdk/publish.gradle +++ b/velocidi-sdk/publish.gradle @@ -13,6 +13,14 @@ 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) { @@ -20,6 +28,10 @@ publishing { groupId project.group version project.version + afterEvaluate { + from components.release + } + pom { name = project.ext.name packaging = 'aar'