From 2dd3cb2e357949ff73bd77d36c9d1c3e0b15dd14 Mon Sep 17 00:00:00 2001 From: RomanTsisyk Date: Sun, 29 Dec 2024 15:45:05 +0100 Subject: [PATCH] add dependency to publish --- cryptolib/build.gradle.kts | 38 ++++++++++++++++++++++++++++++-------- gradle.properties | 5 ++++- 2 files changed, 34 insertions(+), 9 deletions(-) diff --git a/cryptolib/build.gradle.kts b/cryptolib/build.gradle.kts index 7bc25ff..d6d89d8 100644 --- a/cryptolib/build.gradle.kts +++ b/cryptolib/build.gradle.kts @@ -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") } @@ -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("maven") { afterEvaluate { from(components["release"]) - // set groupId, artifactId, version, etc. } - groupId = "com.github.romantsisyk" artifactId = "cryptokit" version = "1.0.0" @@ -78,7 +101,6 @@ publishing { } } - dependencies { implementation ("org.bouncycastle:bcprov-jdk15on:1.70") diff --git a/gradle.properties b/gradle.properties index 85e52a2..f574fac 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 \ No newline at end of file +android.nonTransitiveRClass=true + +org.gradle.parallel=true +android.enableJetifier=true \ No newline at end of file