Skip to content

Commit

Permalink
fix gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
mfarzan80 committed Sep 21, 2023
1 parent 325aa5a commit 62c79b4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions ZOneSwitch/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ android {
minSdk 23
targetSdk 33

aarMetadata {
minCompileSdk = 29
}

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
Expand All @@ -22,6 +26,11 @@ android {
kotlinCompilerExtensionVersion '1.2.0'
}

testFixtures {
enable = true
}


buildTypes {
release {
minifyEnabled false
Expand All @@ -35,6 +44,13 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}

publishing {
singleVariant("release") {
withSourcesJar()
}
}

}

dependencies {
Expand All @@ -52,3 +68,16 @@ dependencies {
implementation 'androidx.compose.material:material:1.3.1'
}

publishing {
publications {
release(MavenPublication) {
groupId = 'com.mfarzan'
artifactId = 'zoneswitch'
version = '1.0.2'

afterEvaluate {
from components.release
}
}
}
}

0 comments on commit 62c79b4

Please sign in to comment.