Skip to content

Commit

Permalink
add dependency to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanTsisyk committed Dec 29, 2024
1 parent f9b35e7 commit 2dd3cb2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 9 deletions.
38 changes: 30 additions & 8 deletions cryptolib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ plugins {

android {
namespace = "io.github.romantsisyk.cryptolib"
compileSdk = 35
compileSdk = 34

defaultConfig {
minSdk = 30

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}
Expand All @@ -24,26 +23,50 @@ android {
)
}
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = "11"
jvmTarget = "1.8"
}
}

group = "com.github.RomanTsisyk"
version = "1.0.0"

//repositories {
// mavenCentral()
//}

dependencies {
implementation("org.bouncycastle:bcprov-jdk15on:1.70")
implementation("com.google.zxing:core:3.5.3")
implementation("androidx.biometric:biometric:1.4.0-alpha02")
implementation("androidx.security:security-crypto:1.1.0-alpha06")
implementation("androidx.core:core-ktx:1.15.0")
implementation("androidx.appcompat:appcompat:1.7.0")
implementation("com.google.android.material:material:1.12.0")
implementation("androidx.work:work-runtime-ktx:2.10.0")

testImplementation("junit:junit:4.13.2")
testImplementation("io.mockk:mockk:1.13.12")
testImplementation("org.mockito:mockito-core:5.14.2")
testImplementation("org.robolectric:robolectric:4.14.1")
androidTestImplementation("androidx.test.ext:junit:1.2.1")
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
androidTestImplementation("androidx.work:work-testing:2.10.0")
androidTestImplementation("androidx.test:core:1.6.1")
}

publishing {
publications {
create<MavenPublication>("maven") {
afterEvaluate {
from(components["release"])
// set groupId, artifactId, version, etc.
}

groupId = "com.github.romantsisyk"
artifactId = "cryptokit"
version = "1.0.0"
Expand Down Expand Up @@ -78,7 +101,6 @@ publishing {
}
}


dependencies {

implementation ("org.bouncycastle:bcprov-jdk15on:1.70")
Expand Down
5 changes: 4 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.nonTransitiveRClass=true

org.gradle.parallel=true
android.enableJetifier=true

0 comments on commit 2dd3cb2

Please sign in to comment.