plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'maven-publish'
}
android {
namespace 'org.guardianproject.proofmode'
compileSdk 35
defaultConfig {
minSdk 21
targetSdk 35
versionName "0.8.4"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.12.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = 'org.guardianproject.proofmode'
artifactId = 'proofmode-android'
version = android.defaultConfig.versionName
pom {
name = 'ProofMode Android'
description = 'Android library for ProofMode - cryptographic media authentication'
url = 'https://proofmode.org'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'guardianproject'
name = 'Guardian Project'
email = 'support@guardianproject.info'
}
}
scm {
connection = 'scm:git:git://gitlab.com/guardianproject/proofmode/proofmode-rust.git'
developerConnection = 'scm:git:ssh://gitlab.com/guardianproject/proofmode/proofmode-rust.git'
url = 'https://gitlab.com/guardianproject/proofmode/proofmode-rust'
}
}
}
}
repositories {
maven {
name = "GitLab"
url = uri("${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/maven")
credentials(HttpHeaderCredentials) {
name = 'Job-Token'
value = System.getenv("CI_JOB_TOKEN")
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}
}